diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f4c3c7480f..2325c8ae0db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,188 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## Unreleased +### Breaking Changes +- Apache connector configuration now propagates `SSLInitializationException` when TLS initialization fails instead of silently registering a plaintext socket factory for `https`. Applications that require the former behavior must explicitly provide a plaintext connection manager; see [PlainConnectionSocketFactoryExample.java](bmc-examples/src/main/java/PlainConnectionSocketFactoryExample.java). + +## 2.95.0 - 2026-07-28 +### Added +- Support for B200 shapes in dedicated AI clusters in the Generative AI service +- Support for Oracle Managed Database Software Updates in the Database service +- Support for Oracle-managed and customer-managed database home types in the Database service +- Support for specifying VM cluster IDs when creating databases in the Database service +- Support for Oracle Managed Software Updates delegation controls in the Delegate Access Control service +- Support for Exadata Database VM clusters in delegation controls in the Delegate Access Control service +- Support for database IDs in delegated resource access requests in the Delegate Access Control service +- Support for approval action timestamps and SSH access indicators in the Delegate Access Control service +- Support for public connectivity add-ons in the OCI Streaming with Apache Kafka service +- Support for Kafka cluster add-ons in the OCI Streaming with Apache Kafka service +- Support for GPU memory fabric IDs and size details in GPU memory cluster summaries, filtering GPU memory clusters by GPU memory fabric, associated GPU memory cluster IDs in GPU memory fabric resources, and partner-provided OS licenses when launching and updating instances in the Compute service +- Support for work request and waiters when attaching volumes, detaching volumes, and terminating instances in the Compute service +- Support for single-stack IPv6 in the Virtual Cloud Network service +- Support for hostnames on IPv6 addresses during create, update, and bulk operations in the Virtual Cloud Network service +- Support for IPv6 addresses on DB systems, read endpoints, read replicas, and snapshots in the MySQL HeatWave service +- Support for IPv6 selection in replication channels on dual-stack DB systems in the MySQL HeatWave service +- Support for X509 identity propagation trusts and CA certificate chains in the Identity Domains service +- Support for resource subject type, impersonating resources, claim validations, and claim propagation in identity propagation trusts in the Identity Domains service +- Support for ExaDB-D Public Cloud in the Operator Access Control service +- Support for cross region replication with hot standby in the PostgreSQL service +- Support for starting and stopping DB systems in the PostgreSQL service +- Support for Kerberos authentication in the PostgreSQL service +- Support for performance insights in the PostgreSQL service +- Support for log analytics integration in the Application Performance Monitoring Control Plane service +- Support for storing large data files in Application Performance Monitoring configurations in the Application Performance Monitoring service +- Support for compute clusters and host groups in the Kubernetes Engine service +- Support for Zero Trust Packet Routing (ZPR) security attributes on private endpoints in the Object Storage service +- Support for Zero Trust Packet Routing (ZPR) security attributes in the Cloud Migrations service +- Support for Zero Trust Packet Routing (ZPR) security attributes in the Secure Desktops service +- Support for forcefully restarting and stopping Autonomous Databases and Autonomous Container Databases in the Database service +- Support for restarting Oracle Rest Data Services (ORDS) services on Autonomous VM Clusters and Cloud Autonomous VM Clusters in the Database service +- Support for triggering forced reboot and stop of DB nodes in ExaDB-D, ExaDB-XS and ExaDB-C@C in the Database service +- Support for additional coordinator node pools for OCI Search in the OpenSearch service +- Support for multi-link organizations in the Organizations service +- Support for static redirect paths in OAuth2 and OpenID Connect authentication policies in the API Gateway service +- Support for returning SDK resources and etags during SDK updates in the API Gateway service +- Support for virtual node pool cycling in the Kubernetes Engine service +- Support for access types on Autonomous AI Database Serverless instances in the Database service +- Support for external logical zones on Autonomous AI Database Serverless instances and local Autonomous Data Guard standby databases in the Database service +- Support for scheduled backups of Autonomous Database Dedicated resources in the Resource Scheduler service +- Support for action-type filtering of resource types in the Resource Scheduler service +- Support for Log Analytics log groups on Oracle Process Automation (OPA) instances attached to Integration instances in the Integration service +- Support for Zero Trust Packet Routing (ZPR) security attributes on DNS resolver endpoints in the DNS service +- Support for free-form and defined tags on DNS resolver endpoints in the DNS service +- Support for resolver, private endpoint, and VNIC identifiers in DNS resolver endpoint responses in the DNS service +- Support for the `UPDATING` lifecycle state on DNS steering policies in the DNS service +- Support for Bitbucket Cloud email and API token configuration source providers in the Resource Manager service +- Support for configurable randomization windows for schedules in the Data Science service +- Support for partner-provided Windows licensing in the Compute service +- Support for Key Management service (KMS) bucket key in the Object Storage service +- Support for Point-In-Time Recovery (PITR) in the PostgreSQL service +- Support for DAC hardware shapes for self-hosted models in the Generative AI service +- Support for the Oracle Data Infrastructure Cloud@Customer service +- Support for AI Agents features in the AI Data Platform service +- Support for Hosted Application IAM resources in the Generative AI service +- Support for File Storage Service (FSS) volumes in the Container Instances service +- Support for Linux file system group security contexts for volumes in the Container Instances service +- Support for Zero Trust Packet Routing (ZPR) security attributes on private endpoints in the Digital Assistant service +- Support for placement constraints on compute clusters in the Compute service +- Support for GPU memory cluster configurations in instance pools in the Compute service +- Support for target database groups in target alert policy associations in the Data Safe service +- Support for pagination when generating and scheduling reports in the Data Safe service +- Support for refreshing audit policies in the Data Safe service +- Support for single report generation for target database group security assessments in the Data Safe service +- Support for Zero Trust Packet Routing (ZPR) security attributes on private endpoints in the Data Safe service +- Support for IPv6 endpoints in the OS Management Hub service +- Support for multiple FastConnect enhancements in the Networking service +- Support for updating a Letter of Authority for a cross-connect in the Networking service +- Support for creating, updating, deleting, getting, and listing Analytics instance resource groups in the Analytics Cloud service +- Support for reporting snapshot-exclusive bytes for compartment-level quota tracking in the File Storage service +- Support for retention locks for block backups in the Block Volume service +- Support for Data Guard creation with Azure encryption keys and changing encryption key locations to Azure in the Database service +- Support for registering and unregistering PKCS for Exadata Database Service on Dedicated Infrastructure VM clusters in the Database service +- Support for Exadata DomU OS live updates in Exadata Cloud and Exadata Cloud@Customer in the Database service +- Support for Oracle Base Database Cloud@Customer VM clusters in the Database service +- Support for autonomous database and two-level approver groups in the Oracle API Access Control service +- Support for creating virtual circuits with AWS as the provider in the Networking service +- Support for listing available provider regions in the Networking service +- Support for Oracle Exadata Exascale, Oracle Exadata Exascale at Azure, and Oracle Exadata Exascale at Google Cloud connection technology types in the GoldenGate service +- Support for Google Cloud Managed Service for Apache Kafka connection technology types in the GoldenGate service +- Support for AI model connections in the GoldenGate service +- Support for listing supported AI models by provider, region, and tenancy in the GoldenGate service +- Support for NEEDS_ATTENTION lifecycle state for connection resources in the GoldenGate service +- Support for connectionType metadata and connectionTypeNotEqualTo filtering on connection assignment resources in the GoldenGate service +- Support for H100_X16 and H100_X32 Dedicated AI Cluster shapes for model import in the Generative AI service + +### Breaking Changes +- Class `com.oracle.bmc.opensearch.model.CustomerLoggingDetails` has been removed from the OpenSearch service +- Class `com.oracle.bmc.tenantmanagercontrolplane.model.ReviveWorkflowInstanceDetails` has been removed from the Organizations service +- The models `BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary`, `BitbucketCloudUsernameAppPasswordConfigurationSourceProvider`, `CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails`, and `UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails` were removed in the Resource Manager service +- The return type of method `public com.oracle.bmc.generativeai.model.HostedApplication$LifecycleState getLifecycleState()` has been changed to `com.oracle.bmc.generativeai.model.HostedApplicationBase$LifecycleState` in the model `com.oracle.bmc.generativeai.model.HostedApplicationSummary` in the Generative AI service +- The return type of method `public com.oracle.bmc.generativeai.model.HostedApplication$LifecycleState getLifecycleState()` has been changed to `com.oracle.bmc.generativeai.model.HostedApplicationBase$LifecycleState` in the request class `com.oracle.bmc.generativeai.requests.ListHostedApplicationsRequest` in the Generative AI service +- The field `compartmentId` has been made required in the requests `ListApiMetadataByEntityTypesRequest`, `ListApiMetadataRequest`, `ListPrivilegedApiControlsRequest`, `ListPrivilegedApiRequestsRequest`, and `ListWorkRequestsRequest` in the Oracle API Access Control service +- The field `compartmentId` has been made required in the model `CreatePrivilegedApiRequestDetails` in the Oracle API Access Control service + +## 2.94.0 - 2026-07-14 +### Added +- Support for B200 shapes in dedicated AI clusters in the Generative AI service +- Support for Oracle Managed Database Software Updates in the Database service +- Support for Oracle-managed and customer-managed database home types in the Database service +- Support for specifying VM cluster IDs when creating databases in the Database service +- Support for Oracle Managed Software Updates delegation controls in the Delegate Access Control service +- Support for Exadata Database VM clusters in delegation controls in the Delegate Access Control service +- Support for database IDs in delegated resource access requests in the Delegate Access Control service +- Support for approval action timestamps and SSH access indicators in the Delegate Access Control service +- Support for public connectivity add-ons in the OCI Streaming with Apache Kafka service +- Support for Kafka cluster add-ons in the OCI Streaming with Apache Kafka service +- Support for GPU memory fabric IDs and size details in GPU memory cluster summaries, filtering GPU memory clusters by GPU memory fabric, associated GPU memory cluster IDs in GPU memory fabric resources, and partner-provided OS licenses when launching and updating instances in the Compute service +- Support for work request and waiters when attaching volumes, detaching volumes, and terminating instances in the Compute service +- Support for single-stack IPv6 in the Virtual Cloud Network service +- Support for hostnames on IPv6 addresses during create, update, and bulk operations in the Virtual Cloud Network service +- Support for IPv6 addresses on DB systems, read endpoints, read replicas, and snapshots in the MySQL HeatWave service +- Support for IPv6 selection in replication channels on dual-stack DB systems in the MySQL HeatWave service +- Support for X509 identity propagation trusts and CA certificate chains in the Identity Domains service +- Support for resource subject type, impersonating resources, claim validations, and claim propagation in identity propagation trusts in the Identity Domains service +- Support for ExaDB-D Public Cloud in the Operator Access Control service +- Support for cross region replication with hot standby in the PostgreSQL service +- Support for starting and stopping DB systems in the PostgreSQL service +- Support for Kerberos authentication in the PostgreSQL service +- Support for performance insights in the PostgreSQL service +- Support for log analytics integration in the Application Performance Monitoring Control Plane service +- Support for storing large data files in Application Performance Monitoring configurations in the Application Performance Monitoring service +- Support for compute clusters and host groups in the Kubernetes Engine service +- Support for Zero Trust Packet Routing (ZPR) security attributes on private endpoints in the Object Storage service +- Support for Zero Trust Packet Routing (ZPR) security attributes in the Cloud Migrations service +- Support for Zero Trust Packet Routing (ZPR) security attributes in the Secure Desktops service +- Support for forcefully restarting and stopping Autonomous Databases and Autonomous Container Databases in the Database service +- Support for restarting Oracle Rest Data Services (ORDS) services on Autonomous VM Clusters and Cloud Autonomous VM Clusters in the Database service +- Support for triggering forced reboot and stop of DB nodes in ExaDB-D, ExaDB-XS and ExaDB-C@C in the Database service +- Support for additional coordinator node pools for OCI Search in the OpenSearch service +- Support for multi-link organizations in the Organizations service +- Support for static redirect paths in OAuth2 and OpenID Connect authentication policies in the API Gateway service +- Support for returning SDK resources and etags during SDK updates in the API Gateway service +- Support for virtual node pool cycling in the Kubernetes Engine service +- Support for access types on Autonomous AI Database Serverless instances in the Database service +- Support for external logical zones on Autonomous AI Database Serverless instances and local Autonomous Data Guard standby databases in the Database service +- Support for scheduled backups of Autonomous Database Dedicated resources in the Resource Scheduler service +- Support for action-type filtering of resource types in the Resource Scheduler service +- Support for Log Analytics log groups on Oracle Process Automation (OPA) instances attached to Integration instances in the Integration service +- Support for Zero Trust Packet Routing (ZPR) security attributes on DNS resolver endpoints in the DNS service +- Support for free-form and defined tags on DNS resolver endpoints in the DNS service +- Support for resolver, private endpoint, and VNIC identifiers in DNS resolver endpoint responses in the DNS service +- Support for the `UPDATING` lifecycle state on DNS steering policies in the DNS service +- Support for Bitbucket Cloud email and API token configuration source providers in the Resource Manager service +- Support for configurable randomization windows for schedules in the Data Science service +- Support for partner-provided Windows licensing in the Compute service +- Support for Key Management service (KMS) bucket key in the Object Storage service +- Support for Point-In-Time Recovery (PITR) in the PostgreSQL service +- Support for DAC hardware shapes for self-hosted models in the Generative AI service +- Support for the Oracle Data Infrastructure Cloud@Customer service +- Support for AI Agents features in the AI Data Platform service +- Support for Hosted Application IAM resources in the Generative AI service +- Support for File Storage Service (FSS) volumes in the Container Instances service +- Support for Linux file system group security contexts for volumes in the Container Instances service +- Support for Zero Trust Packet Routing (ZPR) security attributes on private endpoints in the Digital Assistant service +- Support for placement constraints on compute clusters in the Compute service +- Support for GPU memory cluster configurations in instance pools in the Compute service +- Support for target database groups in target alert policy associations in the Data Safe service +- Support for pagination when generating and scheduling reports in the Data Safe service +- Support for refreshing audit policies in the Data Safe service +- Support for single report generation for target database group security assessments in the Data Safe service +- Support for Zero Trust Packet Routing (ZPR) security attributes on private endpoints in the Data Safe service +- Support for IPv6 endpoints in the OS Management Hub service + +### Fixed +- Fixed a connection leak in `ResponseHelper` by ensuring error responses and failed stream reads close the underlying response +- Fixed SDK debug logging to redact credential-bearing request and response headers +- Fixed a Jackson Databind vulnerability by updating `jackson-databind` from `2.21.2` to `2.21.4` + +### Breaking Changes +- Class `com.oracle.bmc.opensearch.model.CustomerLoggingDetails` has been removed from the OpenSearch service +- Class `com.oracle.bmc.tenantmanagercontrolplane.model.ReviveWorkflowInstanceDetails` has been removed from the Organizations service +- The models `BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary`, `BitbucketCloudUsernameAppPasswordConfigurationSourceProvider`, `CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails`, and `UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails` were removed in the Resource Manager service +- Return type of method `public com.oracle.bmc.generativeai.model.HostedApplication$LifecycleState getLifecycleState()` has been changed to `com.oracle.bmc.generativeai.model.HostedApplicationBase$LifecycleState` in the model `com.oracle.bmc.generativeai.model.HostedApplicationSummary` in the Generative AI service +- Return type of method `public com.oracle.bmc.generativeai.model.HostedApplication$LifecycleState getLifecycleState()` has been changed to `com.oracle.bmc.generativeai.model.HostedApplicationBase$LifecycleState` in the request `com.oracle.bmc.generativeai.requests.ListHostedApplicationsRequest` in the Generative AI service + ## 2.93.0 - 2026-06-02 ### Added - Support for managing OLVM environment and endpoint fields for asset sources in the Cloud Bridge service diff --git a/README.md b/README.md index e272a5d2518..ae9701f11bd 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ For details on compatibility, advanced configurations, and add-ons, see [Configu -Doci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.vault.VaultsClient=false -Doci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.vault.VaultsAsyncClient=false ``` - The global property applies to all supported clients. The per-class property applies only to the named client class. Both properties default to `"true"`, and the configurator is used only when both the global property and that client class property are enabled. + - If TLS initialization fails, Apache connector configuration now throws `SSLInitializationException`; it no longer maps `https` routes to plaintext. Applications that intentionally require plaintext transport can provide an explicit connection manager or perform the former fallback themselves, as shown in [PlainConnectionSocketFactoryExample.java](/bmc-examples/src/main/java/PlainConnectionSocketFactoryExample.java). ## Examples diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index f8bc1f11604..a37fffe4add 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 7d5243e8a32..31126f07e0b 100644 --- a/bmc-addons/bmc-apache-connector-provider/pom.xml +++ b/bmc-addons/bmc-apache-connector-provider/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 2.93.0 + 2.95.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-addons/bmc-graalvm-addon/pom.xml b/bmc-addons/bmc-graalvm-addon/pom.xml index a4aff57705a..7537ff8bc24 100644 --- a/bmc-addons/bmc-graalvm-addon/pom.xml +++ b/bmc-addons/bmc-graalvm-addon/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-addons-graalvm @@ -127,24 +127,24 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 2.93.0 + 2.95.0 test com.oracle.oci.sdk oci-java-sdk-identity - 2.93.0 + 2.95.0 test com.oracle.oci.sdk oci-java-sdk-core - 2.93.0 + 2.95.0 test diff --git a/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java b/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java index 43d5aaaa30c..1c1ce96aca8 100644 --- a/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java +++ b/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java @@ -51,6 +51,7 @@ "com.oracle.bmc.databasetools.SdkClientsMetadata", "com.oracle.bmc.databasetoolsruntime.SdkClientsMetadata", "com.oracle.bmc.datacatalog.SdkClientsMetadata", + "com.oracle.bmc.datacc.SdkClientsMetadata", "com.oracle.bmc.dataflow.SdkClientsMetadata", "com.oracle.bmc.dataintegration.SdkClientsMetadata", "com.oracle.bmc.datalabelingservice.SdkClientsMetadata", diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index ce3a0d12c12..13b07ff9c34 100644 --- a/bmc-addons/bmc-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 2.93.0 + 2.95.0 4.0.0 @@ -38,7 +38,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 com.fasterxml.jackson.core diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index a794f5db76d..c69abd0fa8d 100644 --- a/bmc-addons/bmc-resteasy-client-configurator/pom.xml +++ b/bmc-addons/bmc-resteasy-client-configurator/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 2.93.0 + 2.95.0 ../pom.xml @@ -25,7 +25,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index f1a63c41eba..cbf0ec94ff3 100644 --- a/bmc-addons/bmc-sasl/pom.xml +++ b/bmc-addons/bmc-sasl/pom.xml @@ -7,7 +7,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 2.93.0 + 2.95.0 ../pom.xml @@ -62,7 +62,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index 9eac2a053bd..2e4dc7d5adc 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index 21cdfdfc001..ec8d5c3f924 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-adm @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-aidataplatform/pom.xml b/bmc-aidataplatform/pom.xml index 6a5e437cf0a..7ebdd7792c1 100644 --- a/bmc-aidataplatform/pom.xml +++ b/bmc-aidataplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-aidataplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatform.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatform.java index 176bdfaed62..67709cc1f80 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatform.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatform.java @@ -111,6 +111,19 @@ ChangeAiDataPlatformCompartmentResponse changeAiDataPlatformCompartment( */ DeleteAiDataPlatformResponse deleteAiDataPlatform(DeleteAiDataPlatformRequest request); + /** + * The AiDataPlatform will be enabled with AI features + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use EnableAiFeature API. + */ + EnableAiFeatureResponse enableAiFeature(EnableAiFeatureRequest request); + /** * Gets information about a AiDataPlatform. * @param request The request object containing the details to send diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsync.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsync.java index 0f56fadd28a..d18e8aa817f 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsync.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsync.java @@ -127,6 +127,22 @@ java.util.concurrent.Future deleteAiDataPlatform( DeleteAiDataPlatformRequest, DeleteAiDataPlatformResponse> handler); + /** + * The AiDataPlatform will be enabled with AI features + * + * + * @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 enableAiFeature( + EnableAiFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Gets information about a AiDataPlatform. * diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsyncClient.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsyncClient.java index 5c8b2b90aaa..4261c752e79 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsyncClient.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformAsyncClient.java @@ -674,6 +674,58 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future enableAiFeature( + EnableAiFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EnableAiFeatureRequest, EnableAiFeatureResponse> + handler) { + LOG.trace("Called async enableAiFeature"); + final EnableAiFeatureRequest interceptedRequest = + EnableAiFeatureConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + EnableAiFeatureConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "AiDataPlatform", + "EnableAiFeature", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ai-data-platform/20240831/AiDataPlatform/EnableAiFeature"); + final java.util.function.Function + transformer = + EnableAiFeatureConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + EnableAiFeatureRequest, EnableAiFeatureResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getEnableAiFeatureDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + EnableAiFeatureRequest, EnableAiFeatureResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getAiDataPlatform( GetAiDataPlatformRequest request, diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformClient.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformClient.java index 5ffc0f057bb..72285ec6c3b 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformClient.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/AiDataPlatformClient.java @@ -720,6 +720,48 @@ public DeleteAiDataPlatformResponse deleteAiDataPlatform(DeleteAiDataPlatformReq }); } + @Override + public EnableAiFeatureResponse enableAiFeature(EnableAiFeatureRequest request) { + LOG.trace("Called enableAiFeature"); + final EnableAiFeatureRequest interceptedRequest = + EnableAiFeatureConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + EnableAiFeatureConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "AiDataPlatform", + "EnableAiFeature", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ai-data-platform/20240831/AiDataPlatform/EnableAiFeature"); + java.util.function.Function + transformer = + EnableAiFeatureConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getEnableAiFeatureDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetAiDataPlatformResponse getAiDataPlatform(GetAiDataPlatformRequest request) { LOG.trace("Called getAiDataPlatform"); diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/internal/http/EnableAiFeatureConverter.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/internal/http/EnableAiFeatureConverter.java new file mode 100644 index 00000000000..8aa74200933 --- /dev/null +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/internal/http/EnableAiFeatureConverter.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.aidataplatform.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.aidataplatform.model.*; +import com.oracle.bmc.aidataplatform.requests.*; +import com.oracle.bmc.aidataplatform.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240831") +public class EnableAiFeatureConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(EnableAiFeatureConverter.class); + + public static com.oracle.bmc.aidataplatform.requests.EnableAiFeatureRequest interceptRequest( + com.oracle.bmc.aidataplatform.requests.EnableAiFeatureRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.aidataplatform.requests.EnableAiFeatureRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getAiDataPlatformId(), "aiDataPlatformId must not be blank"); + Validate.notNull(request.getEnableAiFeatureDetails(), "enableAiFeatureDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240831") + .path("aiDataPlatforms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAiDataPlatformId())) + .path("actions") + .path("enableAiFeature"); + + 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()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.aidataplatform.responses.EnableAiFeatureResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.aidataplatform.responses.EnableAiFeatureResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.aidataplatform.responses.EnableAiFeatureResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.aidataplatform.responses.EnableAiFeatureResponse>() { + @Override + public com.oracle.bmc.aidataplatform.responses.EnableAiFeatureResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.aidataplatform.responses.EnableAiFeatureResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.aidataplatform.responses.EnableAiFeatureResponse + .Builder + builder = + com.oracle.bmc.aidataplatform.responses + .EnableAiFeatureResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.aidataplatform.responses.EnableAiFeatureResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatform.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatform.java index df5aace0ccb..1f425fc64bb 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatform.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatform.java @@ -35,6 +35,7 @@ public final class AiDataPlatform extends com.oracle.bmc.http.internal.Explicitl "aliasKey", "webSocketEndpoint", "lifecycleState", + "aiFeatureStatus", "lifecycleDetails", "freeformTags", "definedTags", @@ -51,6 +52,7 @@ public AiDataPlatform( String aliasKey, String webSocketEndpoint, LifecycleState lifecycleState, + AiFeatureStatus aiFeatureStatus, String lifecycleDetails, java.util.Map freeformTags, java.util.Map> definedTags, @@ -66,6 +68,7 @@ public AiDataPlatform( this.aliasKey = aliasKey; this.webSocketEndpoint = webSocketEndpoint; this.lifecycleState = lifecycleState; + this.aiFeatureStatus = aiFeatureStatus; this.lifecycleDetails = lifecycleDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -246,6 +249,22 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * The current aiFeatureStatus of the AiDataPlatform. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("aiFeatureStatus") + private AiFeatureStatus aiFeatureStatus; + + /** + * The current aiFeatureStatus of the AiDataPlatform. + * @param aiFeatureStatus the value to set + * @return this builder + **/ + public Builder aiFeatureStatus(AiFeatureStatus aiFeatureStatus) { + this.aiFeatureStatus = aiFeatureStatus; + this.__explicitlySet__.add("aiFeatureStatus"); + return this; + } /** * A message that describes the current state of the AiDataPlatform in more detail. For example, * can be used to provide actionable information for a resource in the Failed state. @@ -354,6 +373,7 @@ public AiDataPlatform build() { this.aliasKey, this.webSocketEndpoint, this.lifecycleState, + this.aiFeatureStatus, this.lifecycleDetails, this.freeformTags, this.definedTags, @@ -396,6 +416,9 @@ public Builder copy(AiDataPlatform model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("aiFeatureStatus")) { + this.aiFeatureStatus(model.getAiFeatureStatus()); + } if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } @@ -627,6 +650,70 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * The current aiFeatureStatus of the AiDataPlatform. + **/ + public enum AiFeatureStatus { + Disabled("DISABLED"), + Enabling("ENABLING"), + Ready("READY"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AiFeatureStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AiFeatureStatus v : AiFeatureStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AiFeatureStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AiFeatureStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AiFeatureStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current aiFeatureStatus of the AiDataPlatform. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("aiFeatureStatus") + private final AiFeatureStatus aiFeatureStatus; + + /** + * The current aiFeatureStatus of the AiDataPlatform. + * @return the value + **/ + public AiFeatureStatus getAiFeatureStatus() { + return aiFeatureStatus; + } + /** * A message that describes the current state of the AiDataPlatform in more detail. For example, * can be used to provide actionable information for a resource in the Failed state. @@ -733,6 +820,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", aliasKey=").append(String.valueOf(this.aliasKey)); sb.append(", webSocketEndpoint=").append(String.valueOf(this.webSocketEndpoint)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", aiFeatureStatus=").append(String.valueOf(this.aiFeatureStatus)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -761,6 +849,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.aliasKey, other.aliasKey) && java.util.Objects.equals(this.webSocketEndpoint, other.webSocketEndpoint) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.aiFeatureStatus, other.aiFeatureStatus) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -792,6 +881,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.aiFeatureStatus == null ? 43 : this.aiFeatureStatus.hashCode()); result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatformSummary.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatformSummary.java index c1fbce1e187..d2c3d8b80bb 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatformSummary.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/AiDataPlatformSummary.java @@ -31,6 +31,7 @@ public final class AiDataPlatformSummary "timeCreated", "timeUpdated", "aliasKey", + "aiFeatureStatus", "lifecycleState", "lifecycleDetails", "freeformTags", @@ -46,6 +47,7 @@ public AiDataPlatformSummary( java.util.Date timeCreated, java.util.Date timeUpdated, String aliasKey, + AiDataPlatform.AiFeatureStatus aiFeatureStatus, AiDataPlatform.LifecycleState lifecycleState, String lifecycleDetails, java.util.Map freeformTags, @@ -60,6 +62,7 @@ public AiDataPlatformSummary( this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.aliasKey = aliasKey; + this.aiFeatureStatus = aiFeatureStatus; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; this.freeformTags = freeformTags; @@ -209,6 +212,22 @@ public Builder aliasKey(String aliasKey) { this.__explicitlySet__.add("aliasKey"); return this; } + /** + * The current aiFeatureStatus of the AiDataPlatform. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("aiFeatureStatus") + private AiDataPlatform.AiFeatureStatus aiFeatureStatus; + + /** + * The current aiFeatureStatus of the AiDataPlatform. + * @param aiFeatureStatus the value to set + * @return this builder + **/ + public Builder aiFeatureStatus(AiDataPlatform.AiFeatureStatus aiFeatureStatus) { + this.aiFeatureStatus = aiFeatureStatus; + this.__explicitlySet__.add("aiFeatureStatus"); + return this; + } /** * The current state of the AiDataPlatform. **/ @@ -331,6 +350,7 @@ public AiDataPlatformSummary build() { this.timeCreated, this.timeUpdated, this.aliasKey, + this.aiFeatureStatus, this.lifecycleState, this.lifecycleDetails, this.freeformTags, @@ -368,6 +388,9 @@ public Builder copy(AiDataPlatformSummary model) { if (model.wasPropertyExplicitlySet("aliasKey")) { this.aliasKey(model.getAliasKey()); } + if (model.wasPropertyExplicitlySet("aiFeatureStatus")) { + this.aiFeatureStatus(model.getAiFeatureStatus()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -522,6 +545,20 @@ public String getAliasKey() { return aliasKey; } + /** + * The current aiFeatureStatus of the AiDataPlatform. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("aiFeatureStatus") + private final AiDataPlatform.AiFeatureStatus aiFeatureStatus; + + /** + * The current aiFeatureStatus of the AiDataPlatform. + * @return the value + **/ + public AiDataPlatform.AiFeatureStatus getAiFeatureStatus() { + return aiFeatureStatus; + } + /** * The current state of the AiDataPlatform. **/ @@ -640,6 +677,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", aliasKey=").append(String.valueOf(this.aliasKey)); + sb.append(", aiFeatureStatus=").append(String.valueOf(this.aiFeatureStatus)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -667,6 +705,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.aliasKey, other.aliasKey) + && java.util.Objects.equals(this.aiFeatureStatus, other.aiFeatureStatus) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -693,6 +732,9 @@ public int hashCode() { result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.aliasKey == null ? 43 : this.aliasKey.hashCode()); + result = + (result * PRIME) + + (this.aiFeatureStatus == null ? 43 : this.aiFeatureStatus.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/CreateAiDataPlatformDetails.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/CreateAiDataPlatformDetails.java index 859d21fb686..56c28c6b5bb 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/CreateAiDataPlatformDetails.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/CreateAiDataPlatformDetails.java @@ -22,9 +22,41 @@ public final class CreateAiDataPlatformDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateAiDataPlatformDetails( + String displayName, + String aiDataPlatformType, + Boolean isEnableAiFeature, + String vectorDbId, + String vectorDbAdminCred, + String vectorDbAdminSecretId, + String compartmentId, + String defaultWorkspaceName, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.displayName = displayName; + this.aiDataPlatformType = aiDataPlatformType; + this.isEnableAiFeature = isEnableAiFeature; + this.vectorDbId = vectorDbId; + this.vectorDbAdminCred = vectorDbAdminCred != null ? vectorDbAdminCred.toCharArray() : null; + this.vectorDbAdminSecretId = vectorDbAdminSecretId; + this.compartmentId = compartmentId; + this.defaultWorkspaceName = defaultWorkspaceName; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "aiDataPlatformType", + "isEnableAiFeature", + "vectorDbId", + "vectorDbAdminCred", + "vectorDbAdminSecretId", "compartmentId", "defaultWorkspaceName", "freeformTags", @@ -34,6 +66,10 @@ public final class CreateAiDataPlatformDetails public CreateAiDataPlatformDetails( String displayName, String aiDataPlatformType, + Boolean isEnableAiFeature, + String vectorDbId, + char[] vectorDbAdminCred, + String vectorDbAdminSecretId, String compartmentId, String defaultWorkspaceName, java.util.Map freeformTags, @@ -42,6 +78,10 @@ public CreateAiDataPlatformDetails( super(); this.displayName = displayName; this.aiDataPlatformType = aiDataPlatformType; + this.isEnableAiFeature = isEnableAiFeature; + this.vectorDbId = vectorDbId; + this.vectorDbAdminCred = vectorDbAdminCred; + this.vectorDbAdminSecretId = vectorDbAdminSecretId; this.compartmentId = compartmentId; this.defaultWorkspaceName = defaultWorkspaceName; this.freeformTags = freeformTags; @@ -83,6 +123,86 @@ public Builder aiDataPlatformType(String aiDataPlatformType) { this.__explicitlySet__.add("aiDataPlatformType"); return this; } + /** + * The flag to enable/disable AiFeatures for the instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnableAiFeature") + private Boolean isEnableAiFeature; + + /** + * The flag to enable/disable AiFeatures for the instance. + * + * @param isEnableAiFeature the value to set + * @return this builder + **/ + public Builder isEnableAiFeature(Boolean isEnableAiFeature) { + this.isEnableAiFeature = isEnableAiFeature; + this.__explicitlySet__.add("isEnableAiFeature"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vector db Lakehouse 26ai. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbId") + private String vectorDbId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vector db Lakehouse 26ai. + * + * @param vectorDbId the value to set + * @return this builder + **/ + public Builder vectorDbId(String vectorDbId) { + this.vectorDbId = vectorDbId; + this.__explicitlySet__.add("vectorDbId"); + return this; + } + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminCred") + private char[] vectorDbAdminCred; + + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + * @param vectorDbAdminCred the value to set + * @return this builder + **/ + public Builder vectorDbAdminCred(char[] vectorDbAdminCred) { + this.vectorDbAdminCred = vectorDbAdminCred; + this.__explicitlySet__.add("vectorDbAdminCred"); + return this; + } + + public Builder vectorDbAdminCred(String vectorDbAdminCred) { + this.vectorDbAdminCred = + vectorDbAdminCred != null ? vectorDbAdminCred.toCharArray() : null; + this.__explicitlySet__.add("vectorDbAdminCred"); + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI Vault secret holding the vector db Lakehouse 26ai Admin user password. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminSecretId") + private String vectorDbAdminSecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI Vault secret holding the vector db Lakehouse 26ai Admin user password. + * + * @param vectorDbAdminSecretId the value to set + * @return this builder + **/ + public Builder vectorDbAdminSecretId(String vectorDbAdminSecretId) { + this.vectorDbAdminSecretId = vectorDbAdminSecretId; + this.__explicitlySet__.add("vectorDbAdminSecretId"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the AiDataPlatform in. * @@ -197,6 +317,10 @@ public CreateAiDataPlatformDetails build() { new CreateAiDataPlatformDetails( this.displayName, this.aiDataPlatformType, + this.isEnableAiFeature, + this.vectorDbId, + this.vectorDbAdminCred, + this.vectorDbAdminSecretId, this.compartmentId, this.defaultWorkspaceName, this.freeformTags, @@ -216,6 +340,18 @@ public Builder copy(CreateAiDataPlatformDetails model) { if (model.wasPropertyExplicitlySet("aiDataPlatformType")) { this.aiDataPlatformType(model.getAiDataPlatformType()); } + if (model.wasPropertyExplicitlySet("isEnableAiFeature")) { + this.isEnableAiFeature(model.getIsEnableAiFeature()); + } + if (model.wasPropertyExplicitlySet("vectorDbId")) { + this.vectorDbId(model.getVectorDbId()); + } + if (model.wasPropertyExplicitlySet("vectorDbAdminCred")) { + this.vectorDbAdminCred(model.getVectorDbAdminCred()); + } + if (model.wasPropertyExplicitlySet("vectorDbAdminSecretId")) { + this.vectorDbAdminSecretId(model.getVectorDbAdminSecretId()); + } if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } @@ -274,6 +410,83 @@ public String getAiDataPlatformType() { return aiDataPlatformType; } + /** + * The flag to enable/disable AiFeatures for the instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnableAiFeature") + private final Boolean isEnableAiFeature; + + /** + * The flag to enable/disable AiFeatures for the instance. + * + * @return the value + **/ + public Boolean getIsEnableAiFeature() { + return isEnableAiFeature; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vector db Lakehouse 26ai. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbId") + private final String vectorDbId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vector db Lakehouse 26ai. + * + * @return the value + **/ + public String getVectorDbId() { + return vectorDbId; + } + + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminCred") + private final char[] vectorDbAdminCred; + + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + * return the value + * @Deprecated - Use getVectorDbAdminCred__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getVectorDbAdminCred() { + return vectorDbAdminCred != null ? new String(vectorDbAdminCred) : null; + } + + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminCred") + public char[] getVectorDbAdminCred__AsCharArray() { + return vectorDbAdminCred; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI Vault secret holding the vector db Lakehouse 26ai Admin user password. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminSecretId") + private final String vectorDbAdminSecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI Vault secret holding the vector db Lakehouse 26ai Admin user password. + * + * @return the value + **/ + public String getVectorDbAdminSecretId() { + return vectorDbAdminSecretId; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the AiDataPlatform in. * @@ -384,6 +597,10 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", aiDataPlatformType=").append(String.valueOf(this.aiDataPlatformType)); + sb.append(", isEnableAiFeature=").append(String.valueOf(this.isEnableAiFeature)); + sb.append(", vectorDbId=").append(String.valueOf(this.vectorDbId)); + sb.append(", vectorDbAdminCred=").append(""); + sb.append(", vectorDbAdminSecretId=").append(String.valueOf(this.vectorDbAdminSecretId)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", defaultWorkspaceName=").append(String.valueOf(this.defaultWorkspaceName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -405,6 +622,10 @@ public boolean equals(Object o) { CreateAiDataPlatformDetails other = (CreateAiDataPlatformDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.aiDataPlatformType, other.aiDataPlatformType) + && java.util.Objects.equals(this.isEnableAiFeature, other.isEnableAiFeature) + && java.util.Objects.equals(this.vectorDbId, other.vectorDbId) + && java.util.Objects.equals(this.vectorDbAdminCred, other.vectorDbAdminCred) + && java.util.Objects.equals(this.vectorDbAdminSecretId, other.vectorDbAdminSecretId) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.defaultWorkspaceName, other.defaultWorkspaceName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -423,6 +644,18 @@ public int hashCode() { + (this.aiDataPlatformType == null ? 43 : this.aiDataPlatformType.hashCode()); + result = + (result * PRIME) + + (this.isEnableAiFeature == null ? 43 : this.isEnableAiFeature.hashCode()); + result = (result * PRIME) + (this.vectorDbId == null ? 43 : this.vectorDbId.hashCode()); + result = + (result * PRIME) + + (this.vectorDbAdminCred == null ? 43 : this.vectorDbAdminCred.hashCode()); + result = + (result * PRIME) + + (this.vectorDbAdminSecretId == null + ? 43 + : this.vectorDbAdminSecretId.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/EnableAiFeatureDetails.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/EnableAiFeatureDetails.java new file mode 100644 index 00000000000..928acec9c85 --- /dev/null +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/EnableAiFeatureDetails.java @@ -0,0 +1,262 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.aidataplatform.model; + +/** + * The data to enable Ai Feature for AiDataPlatform. + *
+ * 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: 20240831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnableAiFeatureDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class EnableAiFeatureDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public EnableAiFeatureDetails( + String vectorDbId, String vectorDbAdminCred, String vectorDbAdminSecretId) { + super(); + this.vectorDbId = vectorDbId; + this.vectorDbAdminCred = vectorDbAdminCred != null ? vectorDbAdminCred.toCharArray() : null; + this.vectorDbAdminSecretId = vectorDbAdminSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"vectorDbId", "vectorDbAdminCred", "vectorDbAdminSecretId"}) + public EnableAiFeatureDetails( + String vectorDbId, char[] vectorDbAdminCred, String vectorDbAdminSecretId) { + super(); + this.vectorDbId = vectorDbId; + this.vectorDbAdminCred = vectorDbAdminCred; + this.vectorDbAdminSecretId = vectorDbAdminSecretId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vector db Lakehouse 26ai. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbId") + private String vectorDbId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vector db Lakehouse 26ai. + * + * @param vectorDbId the value to set + * @return this builder + **/ + public Builder vectorDbId(String vectorDbId) { + this.vectorDbId = vectorDbId; + this.__explicitlySet__.add("vectorDbId"); + return this; + } + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminCred") + private char[] vectorDbAdminCred; + + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + * @param vectorDbAdminCred the value to set + * @return this builder + **/ + public Builder vectorDbAdminCred(char[] vectorDbAdminCred) { + this.vectorDbAdminCred = vectorDbAdminCred; + this.__explicitlySet__.add("vectorDbAdminCred"); + return this; + } + + public Builder vectorDbAdminCred(String vectorDbAdminCred) { + this.vectorDbAdminCred = + vectorDbAdminCred != null ? vectorDbAdminCred.toCharArray() : null; + this.__explicitlySet__.add("vectorDbAdminCred"); + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI Vault secret holding the vector db Lakehouse 26ai Admin user password. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminSecretId") + private String vectorDbAdminSecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI Vault secret holding the vector db Lakehouse 26ai Admin user password. + * + * @param vectorDbAdminSecretId the value to set + * @return this builder + **/ + public Builder vectorDbAdminSecretId(String vectorDbAdminSecretId) { + this.vectorDbAdminSecretId = vectorDbAdminSecretId; + this.__explicitlySet__.add("vectorDbAdminSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableAiFeatureDetails build() { + EnableAiFeatureDetails model = + new EnableAiFeatureDetails( + this.vectorDbId, this.vectorDbAdminCred, this.vectorDbAdminSecretId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableAiFeatureDetails model) { + if (model.wasPropertyExplicitlySet("vectorDbId")) { + this.vectorDbId(model.getVectorDbId()); + } + if (model.wasPropertyExplicitlySet("vectorDbAdminCred")) { + this.vectorDbAdminCred(model.getVectorDbAdminCred()); + } + if (model.wasPropertyExplicitlySet("vectorDbAdminSecretId")) { + this.vectorDbAdminSecretId(model.getVectorDbAdminSecretId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vector db Lakehouse 26ai. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbId") + private final String vectorDbId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vector db Lakehouse 26ai. + * + * @return the value + **/ + public String getVectorDbId() { + return vectorDbId; + } + + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminCred") + private final char[] vectorDbAdminCred; + + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + * return the value + * @Deprecated - Use getVectorDbAdminCred__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getVectorDbAdminCred() { + return vectorDbAdminCred != null ? new String(vectorDbAdminCred) : null; + } + + /** + * The Vector DB Lakehouse 26ai ADMIN user password. + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminCred") + public char[] getVectorDbAdminCred__AsCharArray() { + return vectorDbAdminCred; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI Vault secret holding the vector db Lakehouse 26ai Admin user password. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vectorDbAdminSecretId") + private final String vectorDbAdminSecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI Vault secret holding the vector db Lakehouse 26ai Admin user password. + * + * @return the value + **/ + public String getVectorDbAdminSecretId() { + return vectorDbAdminSecretId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnableAiFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("vectorDbId=").append(String.valueOf(this.vectorDbId)); + sb.append(", vectorDbAdminCred=").append(""); + sb.append(", vectorDbAdminSecretId=").append(String.valueOf(this.vectorDbAdminSecretId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableAiFeatureDetails)) { + return false; + } + + EnableAiFeatureDetails other = (EnableAiFeatureDetails) o; + return java.util.Objects.equals(this.vectorDbId, other.vectorDbId) + && java.util.Objects.equals(this.vectorDbAdminCred, other.vectorDbAdminCred) + && java.util.Objects.equals(this.vectorDbAdminSecretId, other.vectorDbAdminSecretId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.vectorDbId == null ? 43 : this.vectorDbId.hashCode()); + result = + (result * PRIME) + + (this.vectorDbAdminCred == null ? 43 : this.vectorDbAdminCred.hashCode()); + result = + (result * PRIME) + + (this.vectorDbAdminSecretId == null + ? 43 + : this.vectorDbAdminSecretId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/OperationType.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/OperationType.java index b91e31d9f62..c3936aa1969 100644 --- a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/OperationType.java +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/model/OperationType.java @@ -13,6 +13,11 @@ public enum OperationType { UpdateDataLake("UPDATE_DATA_LAKE"), DeleteDataLake("DELETE_DATA_LAKE"), MoveDataLake("MOVE_DATA_LAKE"), + CreateAiDataPlatform("CREATE_AI_DATA_PLATFORM"), + UpdateAiDataPlatform("UPDATE_AI_DATA_PLATFORM"), + DeleteAiDataPlatform("DELETE_AI_DATA_PLATFORM"), + MoveAiDataPlatform("MOVE_AI_DATA_PLATFORM"), + EnableAiFeatures("ENABLE_AI_FEATURES"), CreateWorkspace("CREATE_WORKSPACE"), UpdateWorkspace("UPDATE_WORKSPACE"), DeleteWorkspace("DELETE_WORKSPACE"), diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/requests/EnableAiFeatureRequest.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/requests/EnableAiFeatureRequest.java new file mode 100644 index 00000000000..1657584ce58 --- /dev/null +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/requests/EnableAiFeatureRequest.java @@ -0,0 +1,378 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.aidataplatform.requests; + +import com.oracle.bmc.aidataplatform.model.*; +/** + * Example: Click here to see how to use EnableAiFeatureRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240831") +public class EnableAiFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the AiDataPlatform. + */ + private String aiDataPlatformId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the AiDataPlatform. + */ + public String getAiDataPlatformId() { + return aiDataPlatformId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails enableAiFeatureDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails getEnableAiFeatureDetails() { + return enableAiFeatureDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails getBody$() { + return enableAiFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnableAiFeatureRequest, + com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the AiDataPlatform. + */ + private String aiDataPlatformId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the AiDataPlatform. + * @param aiDataPlatformId the value to set + * @return this builder instance + */ + public Builder aiDataPlatformId(String aiDataPlatformId) { + this.aiDataPlatformId = aiDataPlatformId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails enableAiFeatureDetails = + null; + + /** + * The information to be updated. + * @param enableAiFeatureDetails the value to set + * @return this builder instance + */ + public Builder enableAiFeatureDetails( + com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails enableAiFeatureDetails) { + this.enableAiFeatureDetails = enableAiFeatureDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(EnableAiFeatureRequest o) { + aiDataPlatformId(o.getAiDataPlatformId()); + enableAiFeatureDetails(o.getEnableAiFeatureDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnableAiFeatureRequest 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 EnableAiFeatureRequest + */ + public EnableAiFeatureRequest build() { + EnableAiFeatureRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.aidataplatform.model.EnableAiFeatureDetails body) { + enableAiFeatureDetails(body); + return this; + } + + /** + * Build the instance of EnableAiFeatureRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of EnableAiFeatureRequest + */ + public EnableAiFeatureRequest buildWithoutInvocationCallback() { + EnableAiFeatureRequest request = new EnableAiFeatureRequest(); + request.aiDataPlatformId = aiDataPlatformId; + request.enableAiFeatureDetails = enableAiFeatureDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new EnableAiFeatureRequest(aiDataPlatformId, enableAiFeatureDetails, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .aiDataPlatformId(aiDataPlatformId) + .enableAiFeatureDetails(enableAiFeatureDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",aiDataPlatformId=").append(String.valueOf(this.aiDataPlatformId)); + sb.append(",enableAiFeatureDetails=").append(String.valueOf(this.enableAiFeatureDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableAiFeatureRequest)) { + return false; + } + + EnableAiFeatureRequest other = (EnableAiFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.aiDataPlatformId, other.aiDataPlatformId) + && java.util.Objects.equals( + this.enableAiFeatureDetails, other.enableAiFeatureDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.aiDataPlatformId == null ? 43 : this.aiDataPlatformId.hashCode()); + result = + (result * PRIME) + + (this.enableAiFeatureDetails == null + ? 43 + : this.enableAiFeatureDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/responses/EnableAiFeatureResponse.java b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/responses/EnableAiFeatureResponse.java new file mode 100644 index 00000000000..f815659c1f6 --- /dev/null +++ b/bmc-aidataplatform/src/main/java/com/oracle/bmc/aidataplatform/responses/EnableAiFeatureResponse.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.aidataplatform.responses; + +import com.oracle.bmc.aidataplatform.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240831") +public class EnableAiFeatureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private EnableAiFeatureResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(EnableAiFeatureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public EnableAiFeatureResponse build() { + return new EnableAiFeatureResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableAiFeatureResponse)) { + return false; + } + + EnableAiFeatureResponse other = (EnableAiFeatureResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 678c6617dda..6a8d69a9de9 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-aidocument @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 503d9e56276..beb28466a73 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-ailanguage @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index 8fd7b2cc9f8..31058b6bbb1 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-aispeech @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 43df15139d3..f6d4cce1477 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-aivision @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 09e8db606d2..f1f6c62d17e 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-analytics @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/Analytics.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/Analytics.java index 7cd1a6455c7..cd80667256b 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/Analytics.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/Analytics.java @@ -62,7 +62,7 @@ public interface Analytics extends AutoCloseable { /** * Change the compartment of an Analytics instance. The operation is long-running - * and creates a new WorkRequest. + * and creates a new work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -76,8 +76,8 @@ ChangeAnalyticsInstanceCompartmentResponse changeAnalyticsInstanceCompartment( ChangeAnalyticsInstanceCompartmentRequest request); /** - * Change an Analytics instance network endpoint. The operation is long-running - * and creates a new WorkRequest. + * Change the network endpoint for an Analytics instance. The operation is long-running + * and creates a new work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -91,8 +91,8 @@ ChangeAnalyticsInstanceNetworkEndpointResponse changeAnalyticsInstanceNetworkEnd ChangeAnalyticsInstanceNetworkEndpointRequest request); /** - * Create a new AnalyticsInstance in the specified compartment. The operation is long-running - * and creates a new WorkRequest. + * Create a new Analytics instance in the specified compartment. The operation is long-running + * and creates a new work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -105,8 +105,8 @@ ChangeAnalyticsInstanceNetworkEndpointResponse changeAnalyticsInstanceNetworkEnd CreateAnalyticsInstanceResponse createAnalyticsInstance(CreateAnalyticsInstanceRequest request); /** - * Create an Private access Channel for the Analytics instance. The operation is long-running - * and creates a new WorkRequest. + * Create an private access channel for the Analytics instance. The operation is long-running + * and creates a new work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -120,8 +120,20 @@ CreatePrivateAccessChannelResponse createPrivateAccessChannel( CreatePrivateAccessChannelRequest request); /** - * Allows specifying a custom host name to be used to access the analytics instance. This requires prior setup of DNS entry and certificate - * for this host. + * Create a new resource group for the instance + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateResourceGroup API. + */ + CreateResourceGroupResponse createResourceGroup(CreateResourceGroupRequest request); + + /** + * Allows you to specify a custom host name to be used to access the Analytics instance. You must set up a DNS entry and certificate for this host in advance. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -134,8 +146,8 @@ CreatePrivateAccessChannelResponse createPrivateAccessChannel( CreateVanityUrlResponse createVanityUrl(CreateVanityUrlRequest request); /** - * Terminates the specified Analytics instance. The operation is long-running - * and creates a new WorkRequest. + * Deletes the specified Analytics instance. The operation is long-running + * and creates a new work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -148,7 +160,7 @@ CreatePrivateAccessChannelResponse createPrivateAccessChannel( DeleteAnalyticsInstanceResponse deleteAnalyticsInstance(DeleteAnalyticsInstanceRequest request); /** - * Delete an Analytics instance's Private access channel with the given unique identifier key. + * Delete a private access channel with a given unique identifier key, for an Analytics instance. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -162,7 +174,20 @@ DeletePrivateAccessChannelResponse deletePrivateAccessChannel( DeletePrivateAccessChannelRequest request); /** - * Allows deleting a previously created vanity url. + * Allows deleting a previously created resource group. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteResourceGroup API. + */ + DeleteResourceGroupResponse deleteResourceGroup(DeleteResourceGroupRequest request); + + /** + * Deletes a previously created vanity URL. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -175,7 +200,7 @@ DeletePrivateAccessChannelResponse deletePrivateAccessChannel( DeleteVanityUrlResponse deleteVanityUrl(DeleteVanityUrlRequest request); /** - * Cancel a work request that has not started yet. + * Cancel a work request that hasn't started yet. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -188,7 +213,7 @@ DeletePrivateAccessChannelResponse deletePrivateAccessChannel( DeleteWorkRequestResponse deleteWorkRequest(DeleteWorkRequestRequest request); /** - * Info for a specific Analytics instance. + * Information about a specific Analytics instance. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -201,7 +226,7 @@ DeletePrivateAccessChannelResponse deletePrivateAccessChannel( GetAnalyticsInstanceResponse getAnalyticsInstance(GetAnalyticsInstanceRequest request); /** - * Retrieve private access channel in the specified Analytics Instance. + * Retrieve private access channel for the specified Analytics Instance. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -213,6 +238,19 @@ DeletePrivateAccessChannelResponse deletePrivateAccessChannel( */ GetPrivateAccessChannelResponse getPrivateAccessChannel(GetPrivateAccessChannelRequest request); + /** + * Get details of a resource group for an instance + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetResourceGroup API. + */ + GetResourceGroupResponse getResourceGroup(GetResourceGroupRequest request); + /** * Get the details of a work request. * @@ -239,6 +277,19 @@ DeletePrivateAccessChannelResponse deletePrivateAccessChannel( */ ListAnalyticsInstancesResponse listAnalyticsInstances(ListAnalyticsInstancesRequest request); + /** + * List resource groups associated with an instance. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListResourceGroups API. + */ + ListResourceGroupsResponse listResourceGroups(ListResourceGroupsRequest request); + /** * Get the errors of a work request. * @@ -280,7 +331,7 @@ DeletePrivateAccessChannelResponse deletePrivateAccessChannel( /** * Scale an Analytics instance up or down. The operation is long-running - * and creates a new WorkRequest. + * and creates a new work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -306,7 +357,7 @@ DeletePrivateAccessChannelResponse deletePrivateAccessChannel( SetFeatureBundleResponse setFeatureBundle(SetFeatureBundleRequest request); /** - * Encrypts the customer data of this Analytics instance using either a customer OCI Vault Key or Oracle managed default key. + * Encrypts the customer data of this Analytics instance using either a customer OCI vault key or default Oracle-managed key. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -320,7 +371,7 @@ DeletePrivateAccessChannelResponse deletePrivateAccessChannel( /** * Starts the specified Analytics instance. The operation is long-running - * and creates a new WorkRequest. + * and creates a new work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -334,7 +385,7 @@ DeletePrivateAccessChannelResponse deletePrivateAccessChannel( /** * Stop the specified Analytics instance. The operation is long-running - * and creates a new WorkRequest. + * and creates a new work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -361,7 +412,7 @@ DeletePrivateAccessChannelResponse deletePrivateAccessChannel( UpdateAnalyticsInstanceResponse updateAnalyticsInstance(UpdateAnalyticsInstanceRequest request); /** - * Update the Private Access Channel with the given unique identifier key in the specified Analytics Instance. + * Update the private access channel with the given unique identifier key in the specified Analytics instance. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -375,7 +426,20 @@ UpdatePrivateAccessChannelResponse updatePrivateAccessChannel( UpdatePrivateAccessChannelRequest request); /** - * Allows uploading a new certificate for a vanity url, which will have to be done when the current certificate is expiring. + * Update any fields in a resource group + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateResourceGroup API. + */ + UpdateResourceGroupResponse updateResourceGroup(UpdateResourceGroupRequest request); + + /** + * Uploads a new certificate for a vanity URL. Required before the current certificate expires. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsync.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsync.java index 45697565ee2..37339dbccdb 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsync.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsync.java @@ -61,7 +61,7 @@ public interface AnalyticsAsync extends AutoCloseable { /** * Change the compartment of an Analytics instance. The operation is long-running - * and creates a new WorkRequest. + * and creates a new work request. * * * @param request The request object containing the details to send @@ -80,8 +80,8 @@ public interface AnalyticsAsync extends AutoCloseable { handler); /** - * Change an Analytics instance network endpoint. The operation is long-running - * and creates a new WorkRequest. + * Change the network endpoint for an Analytics instance. The operation is long-running + * and creates a new work request. * * * @param request The request object containing the details to send @@ -100,8 +100,8 @@ public interface AnalyticsAsync extends AutoCloseable { handler); /** - * Create a new AnalyticsInstance in the specified compartment. The operation is long-running - * and creates a new WorkRequest. + * Create a new Analytics instance in the specified compartment. The operation is long-running + * and creates a new work request. * * * @param request The request object containing the details to send @@ -118,8 +118,8 @@ java.util.concurrent.Future createAnalyticsInst handler); /** - * Create an Private access Channel for the Analytics instance. The operation is long-running - * and creates a new WorkRequest. + * Create an private access channel for the Analytics instance. The operation is long-running + * and creates a new work request. * * * @param request The request object containing the details to send @@ -136,8 +136,24 @@ java.util.concurrent.Future createPrivateAcc handler); /** - * Allows specifying a custom host name to be used to access the analytics instance. This requires prior setup of DNS entry and certificate - * for this host. + * Create a new resource group for the instance + * + * + * @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 createResourceGroup( + CreateResourceGroupRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateResourceGroupRequest, CreateResourceGroupResponse> + handler); + + /** + * Allows you to specify a custom host name to be used to access the Analytics instance. You must set up a DNS entry and certificate for this host in advance. * * * @param request The request object containing the details to send @@ -153,8 +169,8 @@ java.util.concurrent.Future createVanityUrl( handler); /** - * Terminates the specified Analytics instance. The operation is long-running - * and creates a new WorkRequest. + * Deletes the specified Analytics instance. The operation is long-running + * and creates a new work request. * * * @param request The request object containing the details to send @@ -171,7 +187,7 @@ java.util.concurrent.Future deleteAnalyticsInst handler); /** - * Delete an Analytics instance's Private access channel with the given unique identifier key. + * Delete a private access channel with a given unique identifier key, for an Analytics instance. * * * @param request The request object containing the details to send @@ -188,7 +204,24 @@ java.util.concurrent.Future deletePrivateAcc handler); /** - * Allows deleting a previously created vanity url. + * Allows deleting a previously created resource group. + * + * + * @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 deleteResourceGroup( + DeleteResourceGroupRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteResourceGroupRequest, DeleteResourceGroupResponse> + handler); + + /** + * Deletes a previously created vanity URL. * * * @param request The request object containing the details to send @@ -204,7 +237,7 @@ java.util.concurrent.Future deleteVanityUrl( handler); /** - * Cancel a work request that has not started yet. + * Cancel a work request that hasn't started yet. * * * @param request The request object containing the details to send @@ -221,7 +254,7 @@ java.util.concurrent.Future deleteWorkRequest( handler); /** - * Info for a specific Analytics instance. + * Information about a specific Analytics instance. * * * @param request The request object containing the details to send @@ -238,7 +271,7 @@ java.util.concurrent.Future getAnalyticsInstance( handler); /** - * Retrieve private access channel in the specified Analytics Instance. + * Retrieve private access channel for the specified Analytics Instance. * * * @param request The request object containing the details to send @@ -254,6 +287,22 @@ java.util.concurrent.Future getPrivateAccessCha GetPrivateAccessChannelRequest, GetPrivateAccessChannelResponse> handler); + /** + * Get details of a resource group for an instance + * + * + * @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 getResourceGroup( + GetResourceGroupRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Get the details of a work request. * @@ -287,6 +336,23 @@ java.util.concurrent.Future listAnalyticsInstanc ListAnalyticsInstancesRequest, ListAnalyticsInstancesResponse> handler); + /** + * List resource groups associated with an instance. + * + * + * @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 listResourceGroups( + ListResourceGroupsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListResourceGroupsRequest, ListResourceGroupsResponse> + handler); + /** * Get the errors of a work request. * @@ -339,7 +405,7 @@ java.util.concurrent.Future listWorkRequests( /** * Scale an Analytics instance up or down. The operation is long-running - * and creates a new WorkRequest. + * and creates a new work request. * * * @param request The request object containing the details to send @@ -372,7 +438,7 @@ java.util.concurrent.Future setFeatureBundle( handler); /** - * Encrypts the customer data of this Analytics instance using either a customer OCI Vault Key or Oracle managed default key. + * Encrypts the customer data of this Analytics instance using either a customer OCI vault key or default Oracle-managed key. * * * @param request The request object containing the details to send @@ -388,7 +454,7 @@ java.util.concurrent.Future setKmsKey( /** * Starts the specified Analytics instance. The operation is long-running - * and creates a new WorkRequest. + * and creates a new work request. * * * @param request The request object containing the details to send @@ -406,7 +472,7 @@ java.util.concurrent.Future startAnalyticsInstan /** * Stop the specified Analytics instance. The operation is long-running - * and creates a new WorkRequest. + * and creates a new work request. * * * @param request The request object containing the details to send @@ -441,7 +507,7 @@ java.util.concurrent.Future updateAnalyticsInst handler); /** - * Update the Private Access Channel with the given unique identifier key in the specified Analytics Instance. + * Update the private access channel with the given unique identifier key in the specified Analytics instance. * * * @param request The request object containing the details to send @@ -458,7 +524,24 @@ java.util.concurrent.Future updatePrivateAcc handler); /** - * Allows uploading a new certificate for a vanity url, which will have to be done when the current certificate is expiring. + * Update any fields in a resource group + * + * + * @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 updateResourceGroup( + UpdateResourceGroupRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateResourceGroupRequest, UpdateResourceGroupResponse> + handler); + + /** + * Uploads a new certificate for a vanity URL. Required before the current certificate expires. * * * @param request The request object containing the details to send diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsyncClient.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsyncClient.java index 4b418ecf106..6ff988e1e8a 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsyncClient.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsyncClient.java @@ -697,6 +697,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future createResourceGroup( + CreateResourceGroupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateResourceGroupRequest, CreateResourceGroupResponse> + handler) { + LOG.trace("Called async createResourceGroup"); + final CreateResourceGroupRequest interceptedRequest = + CreateResourceGroupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateResourceGroupConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Analytics", + "CreateResourceGroup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/CreateResourceGroup"); + final java.util.function.Function + transformer = + CreateResourceGroupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateResourceGroupRequest, CreateResourceGroupResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateResourceGroupRequest, CreateResourceGroupResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateResourceGroupDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateResourceGroupRequest, CreateResourceGroupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future createVanityUrl( CreateVanityUrlRequest request, @@ -850,6 +903,54 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future deleteResourceGroup( + DeleteResourceGroupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteResourceGroupRequest, DeleteResourceGroupResponse> + handler) { + LOG.trace("Called async deleteResourceGroup"); + final DeleteResourceGroupRequest interceptedRequest = + DeleteResourceGroupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteResourceGroupConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Analytics", + "DeleteResourceGroup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/DeleteResourceGroup"); + final java.util.function.Function + transformer = + DeleteResourceGroupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteResourceGroupRequest, DeleteResourceGroupResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteResourceGroupRequest, DeleteResourceGroupResponse>, + 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< + DeleteResourceGroupRequest, DeleteResourceGroupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deleteVanityUrl( DeleteVanityUrlRequest request, @@ -1038,6 +1139,52 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getResourceGroup( + GetResourceGroupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetResourceGroupRequest, GetResourceGroupResponse> + handler) { + LOG.trace("Called async getResourceGroup"); + final GetResourceGroupRequest interceptedRequest = + GetResourceGroupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetResourceGroupConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Analytics", + "GetResourceGroup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/GetResourceGroup"); + final java.util.function.Function + transformer = + GetResourceGroupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetResourceGroupRequest, GetResourceGroupResponse>, + 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< + GetResourceGroupRequest, GetResourceGroupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getWorkRequest( GetWorkRequestRequest request, @@ -1130,6 +1277,52 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listResourceGroups( + ListResourceGroupsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListResourceGroupsRequest, ListResourceGroupsResponse> + handler) { + LOG.trace("Called async listResourceGroups"); + final ListResourceGroupsRequest interceptedRequest = + ListResourceGroupsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListResourceGroupsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Analytics", + "ListResourceGroups", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/ListResourceGroups"); + final java.util.function.Function + transformer = + ListResourceGroupsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListResourceGroupsRequest, ListResourceGroupsResponse>, + 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< + ListResourceGroupsRequest, ListResourceGroupsResponse>( + (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, @@ -1629,6 +1822,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future updateResourceGroup( + UpdateResourceGroupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateResourceGroupRequest, UpdateResourceGroupResponse> + handler) { + LOG.trace("Called async updateResourceGroup"); + final UpdateResourceGroupRequest interceptedRequest = + UpdateResourceGroupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateResourceGroupConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Analytics", + "UpdateResourceGroup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/UpdateResourceGroup"); + final java.util.function.Function + transformer = + UpdateResourceGroupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateResourceGroupRequest, UpdateResourceGroupResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateResourceGroupRequest, UpdateResourceGroupResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateResourceGroupDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateResourceGroupRequest, UpdateResourceGroupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateVanityUrl( UpdateVanityUrlRequest request, diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsClient.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsClient.java index 74973e3d04c..17adedf73bf 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsClient.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsClient.java @@ -732,6 +732,48 @@ public CreatePrivateAccessChannelResponse createPrivateAccessChannel( }); } + @Override + public CreateResourceGroupResponse createResourceGroup(CreateResourceGroupRequest request) { + LOG.trace("Called createResourceGroup"); + final CreateResourceGroupRequest interceptedRequest = + CreateResourceGroupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateResourceGroupConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Analytics", + "CreateResourceGroup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/CreateResourceGroup"); + java.util.function.Function + transformer = + CreateResourceGroupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateResourceGroupDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateVanityUrlResponse createVanityUrl(CreateVanityUrlRequest request) { LOG.trace("Called createVanityUrl"); @@ -854,6 +896,45 @@ public DeletePrivateAccessChannelResponse deletePrivateAccessChannel( }); } + @Override + public DeleteResourceGroupResponse deleteResourceGroup(DeleteResourceGroupRequest request) { + LOG.trace("Called deleteResourceGroup"); + final DeleteResourceGroupRequest interceptedRequest = + DeleteResourceGroupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteResourceGroupConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Analytics", + "DeleteResourceGroup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/DeleteResourceGroup"); + java.util.function.Function + transformer = + DeleteResourceGroupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DeleteVanityUrlResponse deleteVanityUrl(DeleteVanityUrlRequest request) { LOG.trace("Called deleteVanityUrl"); @@ -1006,6 +1087,43 @@ public GetPrivateAccessChannelResponse getPrivateAccessChannel( }); } + @Override + public GetResourceGroupResponse getResourceGroup(GetResourceGroupRequest request) { + LOG.trace("Called getResourceGroup"); + final GetResourceGroupRequest interceptedRequest = + GetResourceGroupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetResourceGroupConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Analytics", + "GetResourceGroup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/GetResourceGroup"); + java.util.function.Function + transformer = + GetResourceGroupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { LOG.trace("Called getWorkRequest"); @@ -1079,6 +1197,43 @@ public ListAnalyticsInstancesResponse listAnalyticsInstances( }); } + @Override + public ListResourceGroupsResponse listResourceGroups(ListResourceGroupsRequest request) { + LOG.trace("Called listResourceGroups"); + final ListResourceGroupsRequest interceptedRequest = + ListResourceGroupsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListResourceGroupsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Analytics", + "ListResourceGroups", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/ListResourceGroups"); + java.util.function.Function + transformer = + ListResourceGroupsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListWorkRequestErrorsResponse listWorkRequestErrors( ListWorkRequestErrorsRequest request) { @@ -1481,6 +1636,48 @@ public UpdatePrivateAccessChannelResponse updatePrivateAccessChannel( }); } + @Override + public UpdateResourceGroupResponse updateResourceGroup(UpdateResourceGroupRequest request) { + LOG.trace("Called updateResourceGroup"); + final UpdateResourceGroupRequest interceptedRequest = + UpdateResourceGroupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateResourceGroupConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Analytics", + "UpdateResourceGroup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/UpdateResourceGroup"); + java.util.function.Function + transformer = + UpdateResourceGroupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateResourceGroupDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateVanityUrlResponse updateVanityUrl(UpdateVanityUrlRequest request) { LOG.trace("Called updateVanityUrl"); diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsPaginators.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsPaginators.java index 79b03f9231a..3b3876cc497 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsPaginators.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsPaginators.java @@ -149,6 +149,122 @@ public ListAnalyticsInstancesResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listResourceGroups 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 listResourceGroupsResponseIterator( + final ListResourceGroupsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListResourceGroupsRequest.Builder, ListResourceGroupsRequest, + ListResourceGroupsResponse>( + new java.util.function.Supplier() { + @Override + public ListResourceGroupsRequest.Builder get() { + return ListResourceGroupsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListResourceGroupsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListResourceGroupsRequest.Builder>, + ListResourceGroupsRequest>() { + @Override + public ListResourceGroupsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListResourceGroupsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListResourceGroupsRequest, ListResourceGroupsResponse>() { + @Override + public ListResourceGroupsResponse apply(ListResourceGroupsRequest request) { + return client.listResourceGroups(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.analytics.model.InstanceResourceGroupSummary} objects + * contained in responses from the listResourceGroups 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.analytics.model.InstanceResourceGroupSummary} objects + * contained in responses received from the service. + */ + public Iterable + listResourceGroupsRecordIterator(final ListResourceGroupsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListResourceGroupsRequest.Builder, ListResourceGroupsRequest, + ListResourceGroupsResponse, + com.oracle.bmc.analytics.model.InstanceResourceGroupSummary>( + new java.util.function.Supplier() { + @Override + public ListResourceGroupsRequest.Builder get() { + return ListResourceGroupsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListResourceGroupsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListResourceGroupsRequest.Builder>, + ListResourceGroupsRequest>() { + @Override + public ListResourceGroupsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListResourceGroupsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListResourceGroupsRequest, ListResourceGroupsResponse>() { + @Override + public ListResourceGroupsResponse apply(ListResourceGroupsRequest request) { + return client.listResourceGroups(request); + } + }, + new java.util.function.Function< + ListResourceGroupsResponse, + java.util.List< + com.oracle.bmc.analytics.model.InstanceResourceGroupSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.analytics.model.InstanceResourceGroupSummary> + apply(ListResourceGroupsResponse response) { + return response.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-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/CreateResourceGroupConverter.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/CreateResourceGroupConverter.java new file mode 100644 index 00000000000..e320090d1ba --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/CreateResourceGroupConverter.java @@ -0,0 +1,187 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.analytics.model.*; +import com.oracle.bmc.analytics.requests.*; +import com.oracle.bmc.analytics.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class CreateResourceGroupConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CreateResourceGroupConverter.class); + + public static com.oracle.bmc.analytics.requests.CreateResourceGroupRequest interceptRequest( + com.oracle.bmc.analytics.requests.CreateResourceGroupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.analytics.requests.CreateResourceGroupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getAnalyticsInstanceId(), "analyticsInstanceId must not be blank"); + Validate.notNull( + request.getCreateResourceGroupDetails(), "createResourceGroupDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190331") + .path("analyticsInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAnalyticsInstanceId())) + .path("resourceGroups"); + + 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()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.CreateResourceGroupResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.CreateResourceGroupResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.CreateResourceGroupResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.CreateResourceGroupResponse>() { + @Override + public com.oracle.bmc.analytics.responses.CreateResourceGroupResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.analytics.responses.CreateResourceGroupResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.analytics.model + .InstanceResourceGroup>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.analytics.model + .InstanceResourceGroup + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.analytics.model + .InstanceResourceGroup + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.analytics.model + .InstanceResourceGroup> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.analytics.responses.CreateResourceGroupResponse + .Builder + builder = + com.oracle.bmc.analytics.responses + .CreateResourceGroupResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.instanceResourceGroup(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> childResourceIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "child-resource-id"); + if (childResourceIdHeader.isPresent()) { + builder.childResourceId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "child-resource-id", + childResourceIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.analytics.responses.CreateResourceGroupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/DeleteResourceGroupConverter.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/DeleteResourceGroupConverter.java new file mode 100644 index 00000000000..d53404dad2a --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/DeleteResourceGroupConverter.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.analytics.model.*; +import com.oracle.bmc.analytics.requests.*; +import com.oracle.bmc.analytics.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class DeleteResourceGroupConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteResourceGroupConverter.class); + + public static com.oracle.bmc.analytics.requests.DeleteResourceGroupRequest interceptRequest( + com.oracle.bmc.analytics.requests.DeleteResourceGroupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.analytics.requests.DeleteResourceGroupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getAnalyticsInstanceId(), "analyticsInstanceId must not be blank"); + Validate.notBlank( + request.getAnalyticsInstanceResourceGroupId(), + "analyticsInstanceResourceGroupId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190331") + .path("analyticsInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAnalyticsInstanceId())) + .path("resourceGroups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAnalyticsInstanceResourceGroupId())); + + 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()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.DeleteResourceGroupResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.DeleteResourceGroupResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.DeleteResourceGroupResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.DeleteResourceGroupResponse>() { + @Override + public com.oracle.bmc.analytics.responses.DeleteResourceGroupResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.analytics.responses.DeleteResourceGroupResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.analytics.responses.DeleteResourceGroupResponse + .Builder + builder = + com.oracle.bmc.analytics.responses + .DeleteResourceGroupResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> childResourceIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "child-resource-id"); + if (childResourceIdHeader.isPresent()) { + builder.childResourceId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "child-resource-id", + childResourceIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.analytics.responses.DeleteResourceGroupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/GetResourceGroupConverter.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/GetResourceGroupConverter.java new file mode 100644 index 00000000000..c84bfa39a07 --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/GetResourceGroupConverter.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.analytics.model.*; +import com.oracle.bmc.analytics.requests.*; +import com.oracle.bmc.analytics.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class GetResourceGroupConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetResourceGroupConverter.class); + + public static com.oracle.bmc.analytics.requests.GetResourceGroupRequest interceptRequest( + com.oracle.bmc.analytics.requests.GetResourceGroupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.analytics.requests.GetResourceGroupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getAnalyticsInstanceId(), "analyticsInstanceId must not be blank"); + Validate.notBlank( + request.getAnalyticsInstanceResourceGroupId(), + "analyticsInstanceResourceGroupId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190331") + .path("analyticsInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAnalyticsInstanceId())) + .path("resourceGroups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAnalyticsInstanceResourceGroupId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.GetResourceGroupResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.GetResourceGroupResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.GetResourceGroupResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.GetResourceGroupResponse>() { + @Override + public com.oracle.bmc.analytics.responses.GetResourceGroupResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.analytics.responses.GetResourceGroupResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.analytics.model + .InstanceResourceGroup>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.analytics.model + .InstanceResourceGroup + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.analytics.model + .InstanceResourceGroup + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.analytics.model + .InstanceResourceGroup> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.analytics.responses.GetResourceGroupResponse.Builder + builder = + com.oracle.bmc.analytics.responses + .GetResourceGroupResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.instanceResourceGroup(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.analytics.responses.GetResourceGroupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/ListResourceGroupsConverter.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/ListResourceGroupsConverter.java new file mode 100644 index 00000000000..414273f276d --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/ListResourceGroupsConverter.java @@ -0,0 +1,194 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.analytics.model.*; +import com.oracle.bmc.analytics.requests.*; +import com.oracle.bmc.analytics.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class ListResourceGroupsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListResourceGroupsConverter.class); + + public static com.oracle.bmc.analytics.requests.ListResourceGroupsRequest interceptRequest( + com.oracle.bmc.analytics.requests.ListResourceGroupsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.analytics.requests.ListResourceGroupsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getAnalyticsInstanceId(), "analyticsInstanceId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190331") + .path("analyticsInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAnalyticsInstanceId())) + .path("resourceGroups"); + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + 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())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.ListResourceGroupsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.ListResourceGroupsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.ListResourceGroupsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.ListResourceGroupsResponse>() { + @Override + public com.oracle.bmc.analytics.responses.ListResourceGroupsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.analytics.responses.ListResourceGroupsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + com.oracle.bmc.analytics.model + .InstanceResourceGroupSummary>>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + com.oracle.bmc.analytics.model + .InstanceResourceGroupSummary>>() {}, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + com.oracle.bmc.analytics.model + .InstanceResourceGroupSummary>>() {}); + } + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + com.oracle.bmc.analytics.model + .InstanceResourceGroupSummary>> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.analytics.responses.ListResourceGroupsResponse + .Builder + builder = + com.oracle.bmc.analytics.responses + .ListResourceGroupsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.items(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.analytics.responses.ListResourceGroupsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/UpdateResourceGroupConverter.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/UpdateResourceGroupConverter.java new file mode 100644 index 00000000000..6900f1cf2eb --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/internal/http/UpdateResourceGroupConverter.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.analytics.model.*; +import com.oracle.bmc.analytics.requests.*; +import com.oracle.bmc.analytics.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class UpdateResourceGroupConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateResourceGroupConverter.class); + + public static com.oracle.bmc.analytics.requests.UpdateResourceGroupRequest interceptRequest( + com.oracle.bmc.analytics.requests.UpdateResourceGroupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.analytics.requests.UpdateResourceGroupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getAnalyticsInstanceId(), "analyticsInstanceId must not be blank"); + Validate.notBlank( + request.getAnalyticsInstanceResourceGroupId(), + "analyticsInstanceResourceGroupId must not be blank"); + Validate.notNull( + request.getUpdateResourceGroupDetails(), "updateResourceGroupDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190331") + .path("analyticsInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAnalyticsInstanceId())) + .path("resourceGroups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAnalyticsInstanceResourceGroupId())); + + 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()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.UpdateResourceGroupResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.UpdateResourceGroupResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.UpdateResourceGroupResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.analytics.responses.UpdateResourceGroupResponse>() { + @Override + public com.oracle.bmc.analytics.responses.UpdateResourceGroupResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.analytics.responses.UpdateResourceGroupResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.analytics.model + .InstanceResourceGroup>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.analytics.model + .InstanceResourceGroup + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.analytics.model + .InstanceResourceGroup + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.analytics.model + .InstanceResourceGroup> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.analytics.responses.UpdateResourceGroupResponse + .Builder + builder = + com.oracle.bmc.analytics.responses + .UpdateResourceGroupResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.instanceResourceGroup(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> childResourceIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "child-resource-id"); + if (childResourceIdHeader.isPresent()) { + builder.childResourceId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "child-resource-id", + childResourceIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.analytics.responses.UpdateResourceGroupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AccessControlServiceType.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AccessControlServiceType.java index 49138b69daa..c1d669ca684 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AccessControlServiceType.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AccessControlServiceType.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * Various types of Oracle Service categories that can be whitelisted to access an Analytics Instance. + * Various types of Oracle Service categories that can be whitelisted to access an Analytics instance. * **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstance.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstance.java index c571bacd836..81f21637868 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstance.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstance.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * Analytics Instance metadata. + * Analytics instance metadata. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -44,7 +44,8 @@ public final class AnalyticsInstance extends com.oracle.bmc.http.internal.Explic "timeCreated", "timeUpdated", "featureBundle", - "domainId" + "domainId", + "resourceGroups" }) public AnalyticsInstance( String id, @@ -68,7 +69,8 @@ public AnalyticsInstance( java.util.Date timeCreated, java.util.Date timeUpdated, FeatureBundle featureBundle, - String domainId) { + String domainId, + java.util.List resourceGroups) { super(); this.id = id; this.name = name; @@ -92,6 +94,7 @@ public AnalyticsInstance( this.timeUpdated = timeUpdated; this.featureBundle = featureBundle; this.domainId = domainId; + this.resourceGroups = resourceGroups; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -115,14 +118,16 @@ public Builder id(String id) { return this; } /** - * The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed. + * The name of the Analytics instance. This name must be unique in the tenancy and can't be changed. + * The name must start with a letter and can contain only letters, numbers and dash (-). * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; /** - * The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed. + * The name of the Analytics instance. This name must be unique in the tenancy and can't be changed. + * The name must start with a letter and can contain only letters, numbers and dash (-). * * @param name the value to set * @return this builder @@ -169,14 +174,14 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * The current state of an instance. + * The current state of the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private AnalyticsInstanceLifecycleState lifecycleState; /** - * The current state of an instance. + * The current state of the Analytics instance. * * @param lifecycleState the value to set * @return this builder @@ -187,14 +192,14 @@ public Builder lifecycleState(AnalyticsInstanceLifecycleState lifecycleState) { return this; } /** - * Analytics feature set. + * The feature set. Either {@code SELF_SERVICE_ANALYTICS} (Professional Edition) or {@code ENTERPRISE_ANALYTICS} (Enterprise Edition). * **/ @com.fasterxml.jackson.annotation.JsonProperty("featureSet") private FeatureSet featureSet; /** - * Analytics feature set. + * The feature set. Either {@code SELF_SERVICE_ANALYTICS} (Professional Edition) or {@code ENTERPRISE_ANALYTICS} (Enterprise Edition). * * @param featureSet the value to set * @return this builder @@ -250,14 +255,14 @@ public Builder emailNotification(String emailNotification) { return this; } /** - * Analytics instance update channel. + * The Analytics instance update cycle. * **/ @com.fasterxml.jackson.annotation.JsonProperty("updateChannel") private UpdateChannel updateChannel; /** - * Analytics instance update channel. + * The Analytics instance update cycle. * * @param updateChannel the value to set * @return this builder @@ -314,14 +319,14 @@ public Builder vanityUrlDetails(java.util.Map vanityUr return this; } /** - * URL of the Analytics service. + * URL of the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceUrl") private String serviceUrl; /** - * URL of the Analytics service. + * URL of the Analytics instance. * * @param serviceUrl the value to set * @return this builder @@ -401,14 +406,14 @@ public Builder systemTags(java.util.Map> s return this; } /** - * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates that the default Oracle-managed encryption is used. * **/ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") private String kmsKeyId; /** - * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates that the default Oracle-managed encryption is used. * * @param kmsKeyId the value to set * @return this builder @@ -419,7 +424,7 @@ public Builder kmsKeyId(String kmsKeyId) { return this; } /** - * The date and time the instance was created, in the format defined by RFC3339. + * The date and time the Analytics instance was created, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -428,7 +433,7 @@ public Builder kmsKeyId(String kmsKeyId) { private java.util.Date timeCreated; /** - * The date and time the instance was created, in the format defined by RFC3339. + * The date and time the Analytics instance was created, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -441,18 +446,18 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * The date and time the instance was last updated (in the format defined by RFC3339). - * This timestamp represents updates made through this API. External events do not - * influence it. + * The date and time the Analytics instance was last updated (in the format defined by RFC3339). + * This timestamp represents updates made through this API. External events don't + * affect it. * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private java.util.Date timeUpdated; /** - * The date and time the instance was last updated (in the format defined by RFC3339). - * This timestamp represents updates made through this API. External events do not - * influence it. + * The date and time the Analytics instance was last updated (in the format defined by RFC3339). + * This timestamp represents updates made through this API. External events don't + * affect it. * * @param timeUpdated the value to set * @return this builder @@ -498,6 +503,24 @@ public Builder domainId(String domainId) { this.__explicitlySet__.add("domainId"); return this; } + /** + * List of resource groups for this Analytics instance. The resource group id must be unique within the instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceGroups") + private java.util.List resourceGroups; + + /** + * List of resource groups for this Analytics instance. The resource group id must be unique within the instance. + * + * @param resourceGroups the value to set + * @return this builder + **/ + public Builder resourceGroups(java.util.List resourceGroups) { + this.resourceGroups = resourceGroups; + this.__explicitlySet__.add("resourceGroups"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -526,7 +549,8 @@ public AnalyticsInstance build() { this.timeCreated, this.timeUpdated, this.featureBundle, - this.domainId); + this.domainId, + this.resourceGroups); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -601,6 +625,9 @@ public Builder copy(AnalyticsInstance model) { if (model.wasPropertyExplicitlySet("domainId")) { this.domainId(model.getDomainId()); } + if (model.wasPropertyExplicitlySet("resourceGroups")) { + this.resourceGroups(model.getResourceGroups()); + } return this; } } @@ -633,14 +660,16 @@ public String getId() { } /** - * The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed. + * The name of the Analytics instance. This name must be unique in the tenancy and can't be changed. + * The name must start with a letter and can contain only letters, numbers and dash (-). * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** - * The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed. + * The name of the Analytics instance. This name must be unique in the tenancy and can't be changed. + * The name must start with a letter and can contain only letters, numbers and dash (-). * * @return the value **/ @@ -681,14 +710,14 @@ public String getCompartmentId() { } /** - * The current state of an instance. + * The current state of the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final AnalyticsInstanceLifecycleState lifecycleState; /** - * The current state of an instance. + * The current state of the Analytics instance. * * @return the value **/ @@ -697,14 +726,14 @@ public AnalyticsInstanceLifecycleState getLifecycleState() { } /** - * Analytics feature set. + * The feature set. Either {@code SELF_SERVICE_ANALYTICS} (Professional Edition) or {@code ENTERPRISE_ANALYTICS} (Enterprise Edition). * **/ @com.fasterxml.jackson.annotation.JsonProperty("featureSet") private final FeatureSet featureSet; /** - * Analytics feature set. + * The feature set. Either {@code SELF_SERVICE_ANALYTICS} (Professional Edition) or {@code ENTERPRISE_ANALYTICS} (Enterprise Edition). * * @return the value **/ @@ -752,14 +781,14 @@ public String getEmailNotification() { } /** - * Analytics instance update channel. + * The Analytics instance update cycle. * **/ @com.fasterxml.jackson.annotation.JsonProperty("updateChannel") private final UpdateChannel updateChannel; /** - * Analytics instance update channel. + * The Analytics instance update cycle. * * @return the value **/ @@ -807,14 +836,14 @@ public java.util.Map getVanityUrlDetails() { } /** - * URL of the Analytics service. + * URL of the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceUrl") private final String serviceUrl; /** - * URL of the Analytics service. + * URL of the Analytics instance. * * @return the value **/ @@ -885,14 +914,14 @@ public java.util.Map> getSystemTags() { } /** - * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates that the default Oracle-managed encryption is used. * **/ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") private final String kmsKeyId; /** - * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates that the default Oracle-managed encryption is used. * * @return the value **/ @@ -901,7 +930,7 @@ public String getKmsKeyId() { } /** - * The date and time the instance was created, in the format defined by RFC3339. + * The date and time the Analytics instance was created, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -910,7 +939,7 @@ public String getKmsKeyId() { private final java.util.Date timeCreated; /** - * The date and time the instance was created, in the format defined by RFC3339. + * The date and time the Analytics instance was created, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -921,18 +950,18 @@ public java.util.Date getTimeCreated() { } /** - * The date and time the instance was last updated (in the format defined by RFC3339). - * This timestamp represents updates made through this API. External events do not - * influence it. + * The date and time the Analytics instance was last updated (in the format defined by RFC3339). + * This timestamp represents updates made through this API. External events don't + * affect it. * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private final java.util.Date timeUpdated; /** - * The date and time the instance was last updated (in the format defined by RFC3339). - * This timestamp represents updates made through this API. External events do not - * influence it. + * The date and time the Analytics instance was last updated (in the format defined by RFC3339). + * This timestamp represents updates made through this API. External events don't + * affect it. * * @return the value **/ @@ -972,6 +1001,22 @@ public String getDomainId() { return domainId; } + /** + * List of resource groups for this Analytics instance. The resource group id must be unique within the instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceGroups") + private final java.util.List resourceGroups; + + /** + * List of resource groups for this Analytics instance. The resource group id must be unique within the instance. + * + * @return the value + **/ + public java.util.List getResourceGroups() { + return resourceGroups; + } + @Override public String toString() { return this.toString(true); @@ -1008,6 +1053,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", featureBundle=").append(String.valueOf(this.featureBundle)); sb.append(", domainId=").append(String.valueOf(this.domainId)); + sb.append(", resourceGroups=").append(String.valueOf(this.resourceGroups)); sb.append(")"); return sb.toString(); } @@ -1045,6 +1091,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.featureBundle, other.featureBundle) && java.util.Objects.equals(this.domainId, other.domainId) + && java.util.Objects.equals(this.resourceGroups, other.resourceGroups) && super.equals(other); } @@ -1094,6 +1141,9 @@ public int hashCode() { (result * PRIME) + (this.featureBundle == null ? 43 : this.featureBundle.hashCode()); result = (result * PRIME) + (this.domainId == null ? 43 : this.domainId.hashCode()); + result = + (result * PRIME) + + (this.resourceGroups == null ? 43 : this.resourceGroups.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstanceLifecycleState.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstanceLifecycleState.java index a834f742f84..063278184e9 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstanceLifecycleState.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstanceLifecycleState.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * The current state of an instance. + * The current state of an Analytics instance. * **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstanceSummary.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstanceSummary.java index b7b5e4177eb..9d4c2fd6449 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstanceSummary.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstanceSummary.java @@ -98,14 +98,16 @@ public Builder id(String id) { return this; } /** - * The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed. + * The name of the Analytics instance. This name must be unique in the tenancy and can't be changed. + * The name must start with a letter and can contain only letters, numbers and dash (-). * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; /** - * The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed. + * The name of the Analytics instance. This name must be unique in the tenancy and can't be changed. + * The name must start with a letter and can contain only letters, numbers and dash (-). * * @param name the value to set * @return this builder @@ -152,14 +154,14 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * The current state of an instance. + * The current state of the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private AnalyticsInstanceLifecycleState lifecycleState; /** - * The current state of an instance. + * The current state of the Analytics instance. * * @param lifecycleState the value to set * @return this builder @@ -170,14 +172,14 @@ public Builder lifecycleState(AnalyticsInstanceLifecycleState lifecycleState) { return this; } /** - * Analytics feature set. + * The feature set. Either {@code SELF_SERVICE_ANALYTICS} (Professional Edition) or {@code ENTERPRISE_ANALYTICS} (Enterprise Edition). * **/ @com.fasterxml.jackson.annotation.JsonProperty("featureSet") private FeatureSet featureSet; /** - * Analytics feature set. + * The feature set. Either {@code SELF_SERVICE_ANALYTICS} (Professional Edition) or {@code ENTERPRISE_ANALYTICS} (Enterprise Edition). * * @param featureSet the value to set * @return this builder @@ -242,14 +244,14 @@ public Builder networkEndpointDetails(NetworkEndpointDetails networkEndpointDeta return this; } /** - * URL of the Analytics service. + * URL of the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceUrl") private String serviceUrl; /** - * URL of the Analytics service. + * URL of the Analytics instance. * * @param serviceUrl the value to set * @return this builder @@ -329,7 +331,7 @@ public Builder systemTags(java.util.Map> s return this; } /** - * The date and time the instance was created, in the format defined by RFC3339. + * The date and time the Analytics instance was created, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -338,7 +340,7 @@ public Builder systemTags(java.util.Map> s private java.util.Date timeCreated; /** - * The date and time the instance was created, in the format defined by RFC3339. + * The date and time the Analytics instance was created, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -351,18 +353,18 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * The date and time the instance was last updated (in the format defined by RFC3339). - * This timestamp represents updates made through this API. External events do not - * influence it. + * The date and time the Analytics instance was last updated (in the format defined by RFC3339). + * This timestamp represents updates made through this API. External events don't + * affect it. * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private java.util.Date timeUpdated; /** - * The date and time the instance was last updated (in the format defined by RFC3339). - * This timestamp represents updates made through this API. External events do not - * influence it. + * The date and time the Analytics instance was last updated (in the format defined by RFC3339). + * This timestamp represents updates made through this API. External events don't + * affect it. * * @param timeUpdated the value to set * @return this builder @@ -483,14 +485,16 @@ public String getId() { } /** - * The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed. + * The name of the Analytics instance. This name must be unique in the tenancy and can't be changed. + * The name must start with a letter and can contain only letters, numbers and dash (-). * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** - * The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed. + * The name of the Analytics instance. This name must be unique in the tenancy and can't be changed. + * The name must start with a letter and can contain only letters, numbers and dash (-). * * @return the value **/ @@ -531,14 +535,14 @@ public String getCompartmentId() { } /** - * The current state of an instance. + * The current state of the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final AnalyticsInstanceLifecycleState lifecycleState; /** - * The current state of an instance. + * The current state of the Analytics instance. * * @return the value **/ @@ -547,14 +551,14 @@ public AnalyticsInstanceLifecycleState getLifecycleState() { } /** - * Analytics feature set. + * The feature set. Either {@code SELF_SERVICE_ANALYTICS} (Professional Edition) or {@code ENTERPRISE_ANALYTICS} (Enterprise Edition). * **/ @com.fasterxml.jackson.annotation.JsonProperty("featureSet") private final FeatureSet featureSet; /** - * Analytics feature set. + * The feature set. Either {@code SELF_SERVICE_ANALYTICS} (Professional Edition) or {@code ENTERPRISE_ANALYTICS} (Enterprise Edition). * * @return the value **/ @@ -609,14 +613,14 @@ public NetworkEndpointDetails getNetworkEndpointDetails() { } /** - * URL of the Analytics service. + * URL of the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceUrl") private final String serviceUrl; /** - * URL of the Analytics service. + * URL of the Analytics instance. * * @return the value **/ @@ -687,7 +691,7 @@ public java.util.Map> getSystemTags() { } /** - * The date and time the instance was created, in the format defined by RFC3339. + * The date and time the Analytics instance was created, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -696,7 +700,7 @@ public java.util.Map> getSystemTags() { private final java.util.Date timeCreated; /** - * The date and time the instance was created, in the format defined by RFC3339. + * The date and time the Analytics instance was created, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -707,18 +711,18 @@ public java.util.Date getTimeCreated() { } /** - * The date and time the instance was last updated (in the format defined by RFC3339). - * This timestamp represents updates made through this API. External events do not - * influence it. + * The date and time the Analytics instance was last updated (in the format defined by RFC3339). + * This timestamp represents updates made through this API. External events don't + * affect it. * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private final java.util.Date timeUpdated; /** - * The date and time the instance was last updated (in the format defined by RFC3339). - * This timestamp represents updates made through this API. External events do not - * influence it. + * The date and time the Analytics instance was last updated (in the format defined by RFC3339). + * This timestamp represents updates made through this API. External events don't + * affect it. * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/Capacity.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/Capacity.java index 444be8b93b4..f126d811dc4 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/Capacity.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/Capacity.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * Service instance capacity metadata (e.g.: OLPU count, number of users, ...etc...). + * Service instance capacity metadata (for example, OLPU count, number of users, and so on). * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -53,7 +53,7 @@ public Builder capacityType(CapacityType capacityType) { } /** * The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users (USER_COUNT). - * This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the instance. + * This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("capacityValue") @@ -61,7 +61,7 @@ public Builder capacityType(CapacityType capacityType) { /** * The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users (USER_COUNT). - * This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the instance. + * This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the Analytics instance. * * @param capacityValue the value to set * @return this builder @@ -128,7 +128,7 @@ public CapacityType getCapacityType() { /** * The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users (USER_COUNT). - * This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the instance. + * This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("capacityValue") @@ -136,7 +136,7 @@ public CapacityType getCapacityType() { /** * The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users (USER_COUNT). - * This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the instance. + * This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the Analytics instance. * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/ChangeAnalyticsInstanceNetworkEndpointDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/ChangeAnalyticsInstanceNetworkEndpointDetails.java index ed9c9d9e118..3bb5b70ab40 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/ChangeAnalyticsInstanceNetworkEndpointDetails.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/ChangeAnalyticsInstanceNetworkEndpointDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * Input payload to update an Analytics instance endpoint details. + * Input payload to update endpoint details for an Analytics instance. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateAnalyticsInstanceDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateAnalyticsInstanceDetails.java index b733b9a8052..4aa7356c5f7 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateAnalyticsInstanceDetails.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateAnalyticsInstanceDetails.java @@ -80,14 +80,16 @@ public CreateAnalyticsInstanceDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed. + * The name of the Analytics instance. This name must be unique in the tenancy and can't be changed. + * The name must start with a letter and can contain only letters, numbers and dash (-). * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; /** - * The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed. + * The name of the Analytics instance. This name must be unique in the tenancy and can't be changed. + * The name must start with a letter and can contain only letters, numbers and dash (-). * * @param name the value to set * @return this builder @@ -134,14 +136,14 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * Analytics feature set. + * The feature set. Either {@code SELF_SERVICE_ANALYTICS} (Professional Edition) or {@code ENTERPRISE_ANALYTICS} (Enterprise Edition). * **/ @com.fasterxml.jackson.annotation.JsonProperty("featureSet") private FeatureSet featureSet; /** - * Analytics feature set. + * The feature set. Either {@code SELF_SERVICE_ANALYTICS} (Professional Edition) or {@code ENTERPRISE_ANALYTICS} (Enterprise Edition). * * @param featureSet the value to set * @return this builder @@ -273,14 +275,14 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } /** - * Analytics instance update channel. + * The Analytics instance update cycle. * **/ @com.fasterxml.jackson.annotation.JsonProperty("updateChannel") private UpdateChannel updateChannel; /** - * Analytics instance update channel. + * The Analytics instance update cycle. * * @param updateChannel the value to set * @return this builder @@ -291,14 +293,14 @@ public Builder updateChannel(UpdateChannel updateChannel) { return this; } /** - * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates that the default Oracle-managed encryption is used. * **/ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") private String kmsKeyId; /** - * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates that the default Oracle-managed encryption is used. * * @param kmsKeyId the value to set * @return this builder @@ -309,14 +311,14 @@ public Builder kmsKeyId(String kmsKeyId) { return this; } /** - * domain id for which the user is authorized. + * The OCID of the identity domain to use for the new Analytics instance. For example: ocid1.domain.oc1..ocid1.domain.oc1..aaaaaa111111bbbbbb222222cccccc333333dddddd444444eeeeee5555. * **/ @com.fasterxml.jackson.annotation.JsonProperty("domainId") private String domainId; /** - * domain id for which the user is authorized. + * The OCID of the identity domain to use for the new Analytics instance. For example: ocid1.domain.oc1..ocid1.domain.oc1..aaaaaa111111bbbbbb222222cccccc333333dddddd444444eeeeee5555. * * @param domainId the value to set * @return this builder @@ -327,14 +329,14 @@ public Builder domainId(String domainId) { return this; } /** - * user name of the authorized user. + * The Analytics instance administrator user. This must be the user name (not OCID) of a user in the nominated identity domain. For example: john.smith@example.com. * **/ @com.fasterxml.jackson.annotation.JsonProperty("adminUser") private String adminUser; /** - * user name of the authorized user. + * The Analytics instance administrator user. This must be the user name (not OCID) of a user in the nominated identity domain. For example: john.smith@example.com. * * @param adminUser the value to set * @return this builder @@ -457,14 +459,16 @@ public Builder toBuilder() { } /** - * The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed. + * The name of the Analytics instance. This name must be unique in the tenancy and can't be changed. + * The name must start with a letter and can contain only letters, numbers and dash (-). * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** - * The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed. + * The name of the Analytics instance. This name must be unique in the tenancy and can't be changed. + * The name must start with a letter and can contain only letters, numbers and dash (-). * * @return the value **/ @@ -505,14 +509,14 @@ public String getCompartmentId() { } /** - * Analytics feature set. + * The feature set. Either {@code SELF_SERVICE_ANALYTICS} (Professional Edition) or {@code ENTERPRISE_ANALYTICS} (Enterprise Edition). * **/ @com.fasterxml.jackson.annotation.JsonProperty("featureSet") private final FeatureSet featureSet; /** - * Analytics feature set. + * The feature set. Either {@code SELF_SERVICE_ANALYTICS} (Professional Edition) or {@code ENTERPRISE_ANALYTICS} (Enterprise Edition). * * @return the value **/ @@ -627,14 +631,14 @@ public java.util.Map getFreeformTags() { } /** - * Analytics instance update channel. + * The Analytics instance update cycle. * **/ @com.fasterxml.jackson.annotation.JsonProperty("updateChannel") private final UpdateChannel updateChannel; /** - * Analytics instance update channel. + * The Analytics instance update cycle. * * @return the value **/ @@ -643,14 +647,14 @@ public UpdateChannel getUpdateChannel() { } /** - * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates that the default Oracle-managed encryption is used. * **/ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") private final String kmsKeyId; /** - * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates that the default Oracle-managed encryption is used. * * @return the value **/ @@ -659,14 +663,14 @@ public String getKmsKeyId() { } /** - * domain id for which the user is authorized. + * The OCID of the identity domain to use for the new Analytics instance. For example: ocid1.domain.oc1..ocid1.domain.oc1..aaaaaa111111bbbbbb222222cccccc333333dddddd444444eeeeee5555. * **/ @com.fasterxml.jackson.annotation.JsonProperty("domainId") private final String domainId; /** - * domain id for which the user is authorized. + * The OCID of the identity domain to use for the new Analytics instance. For example: ocid1.domain.oc1..ocid1.domain.oc1..aaaaaa111111bbbbbb222222cccccc333333dddddd444444eeeeee5555. * * @return the value **/ @@ -675,14 +679,14 @@ public String getDomainId() { } /** - * user name of the authorized user. + * The Analytics instance administrator user. This must be the user name (not OCID) of a user in the nominated identity domain. For example: john.smith@example.com. * **/ @com.fasterxml.jackson.annotation.JsonProperty("adminUser") private final String adminUser; /** - * user name of the authorized user. + * The Analytics instance administrator user. This must be the user name (not OCID) of a user in the nominated identity domain. For example: john.smith@example.com. * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreatePrivateAccessChannelDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreatePrivateAccessChannelDetails.java index 0e14cf9a170..da8a9d2c63b 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreatePrivateAccessChannelDetails.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreatePrivateAccessChannelDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * Input payload to create a Private Access Channel. + * Input payload to create a private access channel. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -50,14 +50,14 @@ public CreatePrivateAccessChannelDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Display Name of the Private Access Channel. + * Display name of the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * Display Name of the Private Access Channel. + * Display name of the private access channel. * * @param displayName the value to set * @return this builder @@ -68,14 +68,14 @@ public Builder displayName(String displayName) { return this; } /** - * OCID of the customer VCN peered with private access channel. + * OCID of the customer VCN peered with the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("vcnId") private String vcnId; /** - * OCID of the customer VCN peered with private access channel. + * OCID of the customer VCN peered with the private access channel. * * @param vcnId the value to set * @return this builder @@ -86,14 +86,14 @@ public Builder vcnId(String vcnId) { return this; } /** - * OCID of the customer subnet connected to private access channel. + * OCID of the customer subnet connected to the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private String subnetId; /** - * OCID of the customer subnet connected to private access channel. + * OCID of the customer subnet connected to the private access channel. * * @param subnetId the value to set * @return this builder @@ -104,18 +104,18 @@ public Builder subnetId(String subnetId) { return this; } /** - * List of Private Source DNS zones registered with Private Access Channel, - * where datasource hostnames from these dns zones / domains will be resolved in the peered VCN for access from Analytics Instance. - * Min of 1 is required and Max of 30 Private Source DNS zones can be registered. + * List of private source DNS zones registered with the private access channel. The + * datasource hostnames from these DNS zones / domains will be resolved in the peered VCN for access from the Analytics instance. + * Minimum 1 private source is required. Maximum 30 private source DNS zones can be registered. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateSourceDnsZones") private java.util.List privateSourceDnsZones; /** - * List of Private Source DNS zones registered with Private Access Channel, - * where datasource hostnames from these dns zones / domains will be resolved in the peered VCN for access from Analytics Instance. - * Min of 1 is required and Max of 30 Private Source DNS zones can be registered. + * List of private source DNS zones registered with the private access channel. The + * datasource hostnames from these DNS zones / domains will be resolved in the peered VCN for access from the Analytics instance. + * Minimum 1 private source is required. Maximum 30 private source DNS zones can be registered. * * @param privateSourceDnsZones the value to set * @return this builder @@ -127,14 +127,14 @@ public Builder privateSourceDnsZones( return this; } /** - * List of Private Source DB SCAN hosts registered with Private Access Channel for access from Analytics Instance. + * List of private source database SCAN hosts registered with the private access channel for access from the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateSourceScanHosts") private java.util.List privateSourceScanHosts; /** - * List of Private Source DB SCAN hosts registered with Private Access Channel for access from Analytics Instance. + * List of private source database SCAN hosts registered with the private access channel for access from the Analytics instance. * * @param privateSourceScanHosts the value to set * @return this builder @@ -146,14 +146,14 @@ public Builder privateSourceScanHosts( return this; } /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("networkSecurityGroupIds") private java.util.List networkSecurityGroupIds; /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * * @param networkSecurityGroupIds the value to set * @return this builder @@ -218,14 +218,14 @@ public Builder toBuilder() { } /** - * Display Name of the Private Access Channel. + * Display name of the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Display Name of the Private Access Channel. + * Display name of the private access channel. * * @return the value **/ @@ -234,14 +234,14 @@ public String getDisplayName() { } /** - * OCID of the customer VCN peered with private access channel. + * OCID of the customer VCN peered with the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("vcnId") private final String vcnId; /** - * OCID of the customer VCN peered with private access channel. + * OCID of the customer VCN peered with the private access channel. * * @return the value **/ @@ -250,14 +250,14 @@ public String getVcnId() { } /** - * OCID of the customer subnet connected to private access channel. + * OCID of the customer subnet connected to the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private final String subnetId; /** - * OCID of the customer subnet connected to private access channel. + * OCID of the customer subnet connected to the private access channel. * * @return the value **/ @@ -266,18 +266,18 @@ public String getSubnetId() { } /** - * List of Private Source DNS zones registered with Private Access Channel, - * where datasource hostnames from these dns zones / domains will be resolved in the peered VCN for access from Analytics Instance. - * Min of 1 is required and Max of 30 Private Source DNS zones can be registered. + * List of private source DNS zones registered with the private access channel. The + * datasource hostnames from these DNS zones / domains will be resolved in the peered VCN for access from the Analytics instance. + * Minimum 1 private source is required. Maximum 30 private source DNS zones can be registered. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateSourceDnsZones") private final java.util.List privateSourceDnsZones; /** - * List of Private Source DNS zones registered with Private Access Channel, - * where datasource hostnames from these dns zones / domains will be resolved in the peered VCN for access from Analytics Instance. - * Min of 1 is required and Max of 30 Private Source DNS zones can be registered. + * List of private source DNS zones registered with the private access channel. The + * datasource hostnames from these DNS zones / domains will be resolved in the peered VCN for access from the Analytics instance. + * Minimum 1 private source is required. Maximum 30 private source DNS zones can be registered. * * @return the value **/ @@ -286,14 +286,14 @@ public java.util.List getPrivateSourceDnsZones() { } /** - * List of Private Source DB SCAN hosts registered with Private Access Channel for access from Analytics Instance. + * List of private source database SCAN hosts registered with the private access channel for access from the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateSourceScanHosts") private final java.util.List privateSourceScanHosts; /** - * List of Private Source DB SCAN hosts registered with Private Access Channel for access from Analytics Instance. + * List of private source database SCAN hosts registered with the private access channel for access from the Analytics instance. * * @return the value **/ @@ -302,14 +302,14 @@ public java.util.List getPrivateSourceScanHosts() { } /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("networkSecurityGroupIds") private final java.util.List networkSecurityGroupIds; /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateResourceGroupDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateResourceGroupDetails.java new file mode 100644 index 00000000000..6e535e7b6dc --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateResourceGroupDetails.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.model; + +/** + * Input payload to create resource group. + * + *
+ * 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: 20190331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateResourceGroupDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateResourceGroupDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"resourceName", "displayName", "description", "capacity"}) + public CreateResourceGroupDetails( + String resourceName, String displayName, String description, Integer capacity) { + super(); + this.resourceName = resourceName; + this.displayName = displayName; + this.description = description; + this.capacity = capacity; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private String resourceName; + + /** + * Meaningful name of resource group for end user + * @param resourceName the value to set + * @return this builder + **/ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + this.__explicitlySet__.add("resourceName"); + return this; + } + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Meaningful name of resource group for end user + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Optional description of the resource group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Optional description of the resource group + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The capacity (in OCPU's) to be allocated for this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("capacity") + private Integer capacity; + + /** + * The capacity (in OCPU's) to be allocated for this resource. + * @param capacity the value to set + * @return this builder + **/ + public Builder capacity(Integer capacity) { + this.capacity = capacity; + this.__explicitlySet__.add("capacity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateResourceGroupDetails build() { + CreateResourceGroupDetails model = + new CreateResourceGroupDetails( + this.resourceName, this.displayName, this.description, this.capacity); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateResourceGroupDetails model) { + if (model.wasPropertyExplicitlySet("resourceName")) { + this.resourceName(model.getResourceName()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("capacity")) { + this.capacity(model.getCapacity()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private final String resourceName; + + /** + * Meaningful name of resource group for end user + * @return the value + **/ + public String getResourceName() { + return resourceName; + } + + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Meaningful name of resource group for end user + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Optional description of the resource group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Optional description of the resource group + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The capacity (in OCPU's) to be allocated for this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("capacity") + private final Integer capacity; + + /** + * The capacity (in OCPU's) to be allocated for this resource. + * @return the value + **/ + public Integer getCapacity() { + return capacity; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateResourceGroupDetails("); + sb.append("super=").append(super.toString()); + sb.append("resourceName=").append(String.valueOf(this.resourceName)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", capacity=").append(String.valueOf(this.capacity)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateResourceGroupDetails)) { + return false; + } + + CreateResourceGroupDetails other = (CreateResourceGroupDetails) o; + return java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.capacity, other.capacity) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.capacity == null ? 43 : this.capacity.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateVanityUrlDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateVanityUrlDetails.java index 053f3eeb79a..46968f201ae 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateVanityUrlDetails.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateVanityUrlDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * Input payload to create a vanity url. + * Input payload to create a vanity URL. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -68,14 +68,14 @@ public Builder description(String description) { return this; } /** - * List of fully qualified hostnames supported by this vanity URL definition (max of 3). + * List of fully-qualified hostnames supported by this vanity URL definition (maximum of 3). * **/ @com.fasterxml.jackson.annotation.JsonProperty("hosts") private java.util.List hosts; /** - * List of fully qualified hostnames supported by this vanity URL definition (max of 3). + * List of fully-qualified hostnames supported by this vanity URL definition (maximum of 3). * * @param hosts the value to set * @return this builder @@ -86,14 +86,14 @@ public Builder hosts(java.util.List hosts) { return this; } /** - * Passphrase for the PEM Private key (if any). + * Passphrase for the PEM private key (if any). * **/ @com.fasterxml.jackson.annotation.JsonProperty("passphrase") private String passphrase; /** - * Passphrase for the PEM Private key (if any). + * Passphrase for the PEM private key (if any). * * @param passphrase the value to set * @return this builder @@ -104,14 +104,14 @@ public Builder passphrase(String passphrase) { return this; } /** - * PEM Private key for HTTPS connections. + * PEM private key for HTTPS connections. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKey") private String privateKey; /** - * PEM Private key for HTTPS connections. + * PEM private key for HTTPS connections. * * @param privateKey the value to set * @return this builder @@ -140,14 +140,14 @@ public Builder publicCertificate(String publicCertificate) { return this; } /** - * PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates. + * PEM CA certificates for HTTPS connections. This may include multiple PEM certificates. * **/ @com.fasterxml.jackson.annotation.JsonProperty("caCertificate") private String caCertificate; /** - * PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates. + * PEM CA certificates for HTTPS connections. This may include multiple PEM certificates. * * @param caCertificate the value to set * @return this builder @@ -228,14 +228,14 @@ public String getDescription() { } /** - * List of fully qualified hostnames supported by this vanity URL definition (max of 3). + * List of fully-qualified hostnames supported by this vanity URL definition (maximum of 3). * **/ @com.fasterxml.jackson.annotation.JsonProperty("hosts") private final java.util.List hosts; /** - * List of fully qualified hostnames supported by this vanity URL definition (max of 3). + * List of fully-qualified hostnames supported by this vanity URL definition (maximum of 3). * * @return the value **/ @@ -244,14 +244,14 @@ public java.util.List getHosts() { } /** - * Passphrase for the PEM Private key (if any). + * Passphrase for the PEM private key (if any). * **/ @com.fasterxml.jackson.annotation.JsonProperty("passphrase") private final String passphrase; /** - * Passphrase for the PEM Private key (if any). + * Passphrase for the PEM private key (if any). * * @return the value **/ @@ -260,14 +260,14 @@ public String getPassphrase() { } /** - * PEM Private key for HTTPS connections. + * PEM private key for HTTPS connections. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKey") private final String privateKey; /** - * PEM Private key for HTTPS connections. + * PEM private key for HTTPS connections. * * @return the value **/ @@ -292,14 +292,14 @@ public String getPublicCertificate() { } /** - * PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates. + * PEM CA certificates for HTTPS connections. This may include multiple PEM certificates. * **/ @com.fasterxml.jackson.annotation.JsonProperty("caCertificate") private final String caCertificate; /** - * PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates. + * PEM CA certificates for HTTPS connections. This may include multiple PEM certificates. * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/FeatureBundle.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/FeatureBundle.java index e97934cb386..2153f4ddd72 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/FeatureBundle.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/FeatureBundle.java @@ -12,6 +12,7 @@ public enum FeatureBundle { FawPaid("FAW_PAID"), FawFree("FAW_FREE"), + FdiBase("FDI_BASE"), EeEmbedded("EE_EMBEDDED"), SeEmbedded("SE_EMBEDDED"), diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/InstanceResourceGroup.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/InstanceResourceGroup.java new file mode 100644 index 00000000000..2b741ad2425 --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/InstanceResourceGroup.java @@ -0,0 +1,302 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.model; + +/** + * Resource Groups for Instance + * + *
+ * 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: 20190331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InstanceResourceGroup.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InstanceResourceGroup + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "resourceName", + "displayName", + "description", + "capacity" + }) + public InstanceResourceGroup( + String id, + String resourceName, + String displayName, + String description, + Integer capacity) { + super(); + this.id = id; + this.resourceName = resourceName; + this.displayName = displayName; + this.description = description; + this.capacity = capacity; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Unique identifier and name of resource group. Must be unique within the instance + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier and name of resource group. Must be unique within the instance + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private String resourceName; + + /** + * Meaningful name of resource group for end user + * @param resourceName the value to set + * @return this builder + **/ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + this.__explicitlySet__.add("resourceName"); + return this; + } + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Meaningful name of resource group for end user + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Optional description of the resource group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Optional description of the resource group + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The capacity (in OCPU's) to be allocated for this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("capacity") + private Integer capacity; + + /** + * The capacity (in OCPU's) to be allocated for this resource. + * @param capacity the value to set + * @return this builder + **/ + public Builder capacity(Integer capacity) { + this.capacity = capacity; + this.__explicitlySet__.add("capacity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InstanceResourceGroup build() { + InstanceResourceGroup model = + new InstanceResourceGroup( + this.id, + this.resourceName, + this.displayName, + this.description, + this.capacity); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InstanceResourceGroup model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("resourceName")) { + this.resourceName(model.getResourceName()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("capacity")) { + this.capacity(model.getCapacity()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Unique identifier and name of resource group. Must be unique within the instance + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier and name of resource group. Must be unique within the instance + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private final String resourceName; + + /** + * Meaningful name of resource group for end user + * @return the value + **/ + public String getResourceName() { + return resourceName; + } + + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Meaningful name of resource group for end user + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Optional description of the resource group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Optional description of the resource group + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The capacity (in OCPU's) to be allocated for this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("capacity") + private final Integer capacity; + + /** + * The capacity (in OCPU's) to be allocated for this resource. + * @return the value + **/ + public Integer getCapacity() { + return capacity; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InstanceResourceGroup("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", resourceName=").append(String.valueOf(this.resourceName)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", capacity=").append(String.valueOf(this.capacity)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstanceResourceGroup)) { + return false; + } + + InstanceResourceGroup other = (InstanceResourceGroup) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.capacity, other.capacity) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.capacity == null ? 43 : this.capacity.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/InstanceResourceGroupSummary.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/InstanceResourceGroupSummary.java new file mode 100644 index 00000000000..6309b51bc0e --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/InstanceResourceGroupSummary.java @@ -0,0 +1,302 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.model; + +/** + * Resource Groups for Instance + * + *
+ * 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: 20190331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InstanceResourceGroupSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InstanceResourceGroupSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "resourceName", + "displayName", + "description", + "capacity" + }) + public InstanceResourceGroupSummary( + String id, + String resourceName, + String displayName, + String description, + Integer capacity) { + super(); + this.id = id; + this.resourceName = resourceName; + this.displayName = displayName; + this.description = description; + this.capacity = capacity; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Unique identifier and name of resource group. Must be unique within the instance + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier and name of resource group. Must be unique within the instance + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private String resourceName; + + /** + * Meaningful name of resource group for end user + * @param resourceName the value to set + * @return this builder + **/ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + this.__explicitlySet__.add("resourceName"); + return this; + } + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Meaningful name of resource group for end user + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Optional description of the resource group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Optional description of the resource group + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The capacity (in OCPU's) to be allocated for this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("capacity") + private Integer capacity; + + /** + * The capacity (in OCPU's) to be allocated for this resource. + * @param capacity the value to set + * @return this builder + **/ + public Builder capacity(Integer capacity) { + this.capacity = capacity; + this.__explicitlySet__.add("capacity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InstanceResourceGroupSummary build() { + InstanceResourceGroupSummary model = + new InstanceResourceGroupSummary( + this.id, + this.resourceName, + this.displayName, + this.description, + this.capacity); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InstanceResourceGroupSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("resourceName")) { + this.resourceName(model.getResourceName()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("capacity")) { + this.capacity(model.getCapacity()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Unique identifier and name of resource group. Must be unique within the instance + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier and name of resource group. Must be unique within the instance + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private final String resourceName; + + /** + * Meaningful name of resource group for end user + * @return the value + **/ + public String getResourceName() { + return resourceName; + } + + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Meaningful name of resource group for end user + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Optional description of the resource group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Optional description of the resource group + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The capacity (in OCPU's) to be allocated for this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("capacity") + private final Integer capacity; + + /** + * The capacity (in OCPU's) to be allocated for this resource. + * @return the value + **/ + public Integer getCapacity() { + return capacity; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InstanceResourceGroupSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", resourceName=").append(String.valueOf(this.resourceName)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", capacity=").append(String.valueOf(this.capacity)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstanceResourceGroupSummary)) { + return false; + } + + InstanceResourceGroupSummary other = (InstanceResourceGroupSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.capacity, other.capacity) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.capacity == null ? 43 : this.capacity.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/LicenseType.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/LicenseType.java index fcc5a3ecc92..a19761e32b5 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/LicenseType.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/LicenseType.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * The license type of the instance. + * The license type of the Analytics instance. * **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/NetworkEndpointType.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/NetworkEndpointType.java index 128334e8ea7..50f3b252ee4 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/NetworkEndpointType.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/NetworkEndpointType.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * Public/Private endpoint access type. + * Public or private endpoint access type. * **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateAccessChannel.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateAccessChannel.java index 9011fd4d8de..1f539612ddb 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateAccessChannel.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateAccessChannel.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * Analytics Instance Private Access Channel model. + * Analytics instance private access channel model. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -58,14 +58,14 @@ public PrivateAccessChannel( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Private Access Channel unique identifier key. + * Private access channel unique identifier key. * **/ @com.fasterxml.jackson.annotation.JsonProperty("key") private String key; /** - * Private Access Channel unique identifier key. + * Private access channel unique identifier key. * * @param key the value to set * @return this builder @@ -76,14 +76,14 @@ public Builder key(String key) { return this; } /** - * Display Name of the Private Access Channel. + * Display name of the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * Display Name of the Private Access Channel. + * Display name of the private access channel. * * @param displayName the value to set * @return this builder @@ -94,14 +94,14 @@ public Builder displayName(String displayName) { return this; } /** - * OCID of the customer VCN peered with private access channel. + * OCID of the customer VCN peered with the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("vcnId") private String vcnId; /** - * OCID of the customer VCN peered with private access channel. + * OCID of the customer VCN peered with the private access channel. * * @param vcnId the value to set * @return this builder @@ -112,14 +112,14 @@ public Builder vcnId(String vcnId) { return this; } /** - * OCID of the customer subnet connected to private access channel. + * OCID of the customer subnet connected to the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private String subnetId; /** - * OCID of the customer subnet connected to private access channel. + * OCID of the customer subnet connected to the private access channel. * * @param subnetId the value to set * @return this builder @@ -130,14 +130,14 @@ public Builder subnetId(String subnetId) { return this; } /** - * IP Address of the Private Access channel. + * IP address of the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ipAddress") private String ipAddress; /** - * IP Address of the Private Access channel. + * IP address of the private access channel. * * @param ipAddress the value to set * @return this builder @@ -148,16 +148,16 @@ public Builder ipAddress(String ipAddress) { return this; } /** - * The list of IP addresses from the customer subnet connected to private access channel, used as a source Ip by Private Access Channel - * for network traffic from the AnalyticsInstance to Private Sources. + * List of IP addresses from the customer subnet connected to the private access channel, used as a source IP by the private access channel + * for network traffic from the Analytics instance to the private sources. * **/ @com.fasterxml.jackson.annotation.JsonProperty("egressSourceIpAddresses") private java.util.List egressSourceIpAddresses; /** - * The list of IP addresses from the customer subnet connected to private access channel, used as a source Ip by Private Access Channel - * for network traffic from the AnalyticsInstance to Private Sources. + * List of IP addresses from the customer subnet connected to the private access channel, used as a source IP by the private access channel + * for network traffic from the Analytics instance to the private sources. * * @param egressSourceIpAddresses the value to set * @return this builder @@ -168,18 +168,18 @@ public Builder egressSourceIpAddresses(java.util.List egressSourceIpAddr return this; } /** - * List of Private Source DNS zones registered with Private Access Channel, - * where datasource hostnames from these dns zones / domains will be resolved in the peered VCN for access from Analytics Instance. - * Min of 1 is required and Max of 30 Private Source DNS zones can be registered. + * List of private source DNS zones registered with the private access channel. The + * datasource hostnames from these DNS zones / domains will be resolved in the peered VCN for access from the Analytics instance. + * Minimum 1 private source is required. Maximum 30 private source DNS zones can be registered. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateSourceDnsZones") private java.util.List privateSourceDnsZones; /** - * List of Private Source DNS zones registered with Private Access Channel, - * where datasource hostnames from these dns zones / domains will be resolved in the peered VCN for access from Analytics Instance. - * Min of 1 is required and Max of 30 Private Source DNS zones can be registered. + * List of private source DNS zones registered with the private access channel. The + * datasource hostnames from these DNS zones / domains will be resolved in the peered VCN for access from the Analytics instance. + * Minimum 1 private source is required. Maximum 30 private source DNS zones can be registered. * * @param privateSourceDnsZones the value to set * @return this builder @@ -191,14 +191,14 @@ public Builder privateSourceDnsZones( return this; } /** - * List of Private Source DB SCAN hosts registered with Private Access Channel for access from Analytics Instance. + * List of private source database SCAN hosts registered with the private access channel for access from the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateSourceScanHosts") private java.util.List privateSourceScanHosts; /** - * List of Private Source DB SCAN hosts registered with Private Access Channel for access from Analytics Instance. + * List of private source database SCAN hosts registered with the private access channel for access from the Analytics instance. * * @param privateSourceScanHosts the value to set * @return this builder @@ -210,14 +210,14 @@ public Builder privateSourceScanHosts( return this; } /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("networkSecurityGroupIds") private java.util.List networkSecurityGroupIds; /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * * @param networkSecurityGroupIds the value to set * @return this builder @@ -294,14 +294,14 @@ public Builder toBuilder() { } /** - * Private Access Channel unique identifier key. + * Private access channel unique identifier key. * **/ @com.fasterxml.jackson.annotation.JsonProperty("key") private final String key; /** - * Private Access Channel unique identifier key. + * Private access channel unique identifier key. * * @return the value **/ @@ -310,14 +310,14 @@ public String getKey() { } /** - * Display Name of the Private Access Channel. + * Display name of the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Display Name of the Private Access Channel. + * Display name of the private access channel. * * @return the value **/ @@ -326,14 +326,14 @@ public String getDisplayName() { } /** - * OCID of the customer VCN peered with private access channel. + * OCID of the customer VCN peered with the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("vcnId") private final String vcnId; /** - * OCID of the customer VCN peered with private access channel. + * OCID of the customer VCN peered with the private access channel. * * @return the value **/ @@ -342,14 +342,14 @@ public String getVcnId() { } /** - * OCID of the customer subnet connected to private access channel. + * OCID of the customer subnet connected to the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private final String subnetId; /** - * OCID of the customer subnet connected to private access channel. + * OCID of the customer subnet connected to the private access channel. * * @return the value **/ @@ -358,14 +358,14 @@ public String getSubnetId() { } /** - * IP Address of the Private Access channel. + * IP address of the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ipAddress") private final String ipAddress; /** - * IP Address of the Private Access channel. + * IP address of the private access channel. * * @return the value **/ @@ -374,16 +374,16 @@ public String getIpAddress() { } /** - * The list of IP addresses from the customer subnet connected to private access channel, used as a source Ip by Private Access Channel - * for network traffic from the AnalyticsInstance to Private Sources. + * List of IP addresses from the customer subnet connected to the private access channel, used as a source IP by the private access channel + * for network traffic from the Analytics instance to the private sources. * **/ @com.fasterxml.jackson.annotation.JsonProperty("egressSourceIpAddresses") private final java.util.List egressSourceIpAddresses; /** - * The list of IP addresses from the customer subnet connected to private access channel, used as a source Ip by Private Access Channel - * for network traffic from the AnalyticsInstance to Private Sources. + * List of IP addresses from the customer subnet connected to the private access channel, used as a source IP by the private access channel + * for network traffic from the Analytics instance to the private sources. * * @return the value **/ @@ -392,18 +392,18 @@ public java.util.List getEgressSourceIpAddresses() { } /** - * List of Private Source DNS zones registered with Private Access Channel, - * where datasource hostnames from these dns zones / domains will be resolved in the peered VCN for access from Analytics Instance. - * Min of 1 is required and Max of 30 Private Source DNS zones can be registered. + * List of private source DNS zones registered with the private access channel. The + * datasource hostnames from these DNS zones / domains will be resolved in the peered VCN for access from the Analytics instance. + * Minimum 1 private source is required. Maximum 30 private source DNS zones can be registered. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateSourceDnsZones") private final java.util.List privateSourceDnsZones; /** - * List of Private Source DNS zones registered with Private Access Channel, - * where datasource hostnames from these dns zones / domains will be resolved in the peered VCN for access from Analytics Instance. - * Min of 1 is required and Max of 30 Private Source DNS zones can be registered. + * List of private source DNS zones registered with the private access channel. The + * datasource hostnames from these DNS zones / domains will be resolved in the peered VCN for access from the Analytics instance. + * Minimum 1 private source is required. Maximum 30 private source DNS zones can be registered. * * @return the value **/ @@ -412,14 +412,14 @@ public java.util.List getPrivateSourceDnsZones() { } /** - * List of Private Source DB SCAN hosts registered with Private Access Channel for access from Analytics Instance. + * List of private source database SCAN hosts registered with the private access channel for access from the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateSourceScanHosts") private final java.util.List privateSourceScanHosts; /** - * List of Private Source DB SCAN hosts registered with Private Access Channel for access from Analytics Instance. + * List of private source database SCAN hosts registered with the private access channel for access from the Analytics instance. * * @return the value **/ @@ -428,14 +428,14 @@ public java.util.List getPrivateSourceScanHosts() { } /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("networkSecurityGroupIds") private final java.util.List networkSecurityGroupIds; /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateEndpointDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateEndpointDetails.java index 1afa14b04c3..2776f1cc78e 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateEndpointDetails.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateEndpointDetails.java @@ -65,14 +65,14 @@ public Builder subnetId(String subnetId) { return this; } /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("networkSecurityGroupIds") private java.util.List networkSecurityGroupIds; /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * * @param networkSecurityGroupIds the value to set * @return this builder @@ -164,14 +164,14 @@ public String getSubnetId() { } /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("networkSecurityGroupIds") private final java.util.List networkSecurityGroupIds; /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateSourceDnsZone.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateSourceDnsZone.java index 8007cd5488d..061eda1e1df 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateSourceDnsZone.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateSourceDnsZone.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * Private source DNS Zone model. + * Private source DNS zone model. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -32,14 +32,14 @@ public PrivateSourceDnsZone(String dnsZone, String description) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Private Source DNS Zone. Ex: example-vcn.oraclevcn.com, corp.example.com. + * Private source DNS zone. For example: example-vcn.oraclevcn.com, corp.example.com. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dnsZone") private String dnsZone; /** - * Private Source DNS Zone. Ex: example-vcn.oraclevcn.com, corp.example.com. + * Private source DNS zone. For example: example-vcn.oraclevcn.com, corp.example.com. * * @param dnsZone the value to set * @return this builder @@ -50,14 +50,14 @@ public Builder dnsZone(String dnsZone) { return this; } /** - * Description of private source dns zone. + * Description of the private source DNS zone. * **/ @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; /** - * Description of private source dns zone. + * Description of the private source DNS zone. * * @param description the value to set * @return this builder @@ -103,14 +103,14 @@ public Builder toBuilder() { } /** - * Private Source DNS Zone. Ex: example-vcn.oraclevcn.com, corp.example.com. + * Private source DNS zone. For example: example-vcn.oraclevcn.com, corp.example.com. * **/ @com.fasterxml.jackson.annotation.JsonProperty("dnsZone") private final String dnsZone; /** - * Private Source DNS Zone. Ex: example-vcn.oraclevcn.com, corp.example.com. + * Private source DNS zone. For example: example-vcn.oraclevcn.com, corp.example.com. * * @return the value **/ @@ -119,14 +119,14 @@ public String getDnsZone() { } /** - * Description of private source dns zone. + * Description of the private source DNS zone. * **/ @com.fasterxml.jackson.annotation.JsonProperty("description") private final String description; /** - * Description of private source dns zone. + * Description of the private source DNS zone. * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateSourceScanHost.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateSourceScanHost.java index 90257893290..d4f08a8ff3a 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateSourceScanHost.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PrivateSourceScanHost.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * Private source Scan Hostname model. + * Private source SCAN hostname model. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -34,14 +34,14 @@ public PrivateSourceScanHost(String scanHostname, Integer scanPort, String descr @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Private Source Scan hostname. Ex: db01-scan.corp.example.com, prd-db01-scan.mycompany.com. + * Private source SCAN hostname. For example: db01-scan.corp.example.com, prd-db01-scan.mycompany.com. * **/ @com.fasterxml.jackson.annotation.JsonProperty("scanHostname") private String scanHostname; /** - * Private Source Scan hostname. Ex: db01-scan.corp.example.com, prd-db01-scan.mycompany.com. + * Private source SCAN hostname. For example: db01-scan.corp.example.com, prd-db01-scan.mycompany.com. * * @param scanHostname the value to set * @return this builder @@ -52,14 +52,14 @@ public Builder scanHostname(String scanHostname) { return this; } /** - * Private Source Scan host port. This is the source port where SCAN protocol will get connected (e.g. 1521). + * Private source SCAN host port. This is the source port where the SCAN protocol connects (for example, 1521). * **/ @com.fasterxml.jackson.annotation.JsonProperty("scanPort") private Integer scanPort; /** - * Private Source Scan host port. This is the source port where SCAN protocol will get connected (e.g. 1521). + * Private source SCAN host port. This is the source port where the SCAN protocol connects (for example, 1521). * * @param scanPort the value to set * @return this builder @@ -70,14 +70,14 @@ public Builder scanPort(Integer scanPort) { return this; } /** - * Description of private source scan host zone. + * Description of private source SCAN host zone. * **/ @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; /** - * Description of private source scan host zone. + * Description of private source SCAN host zone. * * @param description the value to set * @return this builder @@ -127,14 +127,14 @@ public Builder toBuilder() { } /** - * Private Source Scan hostname. Ex: db01-scan.corp.example.com, prd-db01-scan.mycompany.com. + * Private source SCAN hostname. For example: db01-scan.corp.example.com, prd-db01-scan.mycompany.com. * **/ @com.fasterxml.jackson.annotation.JsonProperty("scanHostname") private final String scanHostname; /** - * Private Source Scan hostname. Ex: db01-scan.corp.example.com, prd-db01-scan.mycompany.com. + * Private source SCAN hostname. For example: db01-scan.corp.example.com, prd-db01-scan.mycompany.com. * * @return the value **/ @@ -143,14 +143,14 @@ public String getScanHostname() { } /** - * Private Source Scan host port. This is the source port where SCAN protocol will get connected (e.g. 1521). + * Private source SCAN host port. This is the source port where the SCAN protocol connects (for example, 1521). * **/ @com.fasterxml.jackson.annotation.JsonProperty("scanPort") private final Integer scanPort; /** - * Private Source Scan host port. This is the source port where SCAN protocol will get connected (e.g. 1521). + * Private source SCAN host port. This is the source port where the SCAN protocol connects (for example, 1521). * * @return the value **/ @@ -159,14 +159,14 @@ public Integer getScanPort() { } /** - * Description of private source scan host zone. + * Description of private source SCAN host zone. * **/ @com.fasterxml.jackson.annotation.JsonProperty("description") private final String description; /** - * Description of private source scan host zone. + * Description of private source SCAN host zone. * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PublicEndpointDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PublicEndpointDetails.java index a824aaebf39..e6ac72f8d2c 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PublicEndpointDetails.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/PublicEndpointDetails.java @@ -65,14 +65,14 @@ public Builder whitelistedVcns(java.util.List whitelistedVc return this; } /** - * Oracle Cloud Services that are allowed to access this Analytics instance. + * Oracle Cloud services that are allowed to access this Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("whitelistedServices") private java.util.List whitelistedServices; /** - * Oracle Cloud Services that are allowed to access this Analytics instance. + * Oracle Cloud services that are allowed to access this Analytics instance. * * @param whitelistedServices the value to set * @return this builder @@ -167,14 +167,14 @@ public java.util.List getWhitelistedVcns() { } /** - * Oracle Cloud Services that are allowed to access this Analytics instance. + * Oracle Cloud services that are allowed to access this Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("whitelistedServices") private final java.util.List whitelistedServices; /** - * Oracle Cloud Services that are allowed to access this Analytics instance. + * Oracle Cloud services that are allowed to access this Analytics instance. * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/ResourceGroupSortBy.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/ResourceGroupSortBy.java new file mode 100644 index 00000000000..36760424db7 --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/ResourceGroupSortBy.java @@ -0,0 +1,48 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.model; + +/** + * The field to sort by (one column only). Default sort order is + * default group first, then sort by resource name, ascending. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public enum ResourceGroupSortBy { + Id("id"), + ResourceName("resourceName"), + DisplayName("displayName"), + Description("description"), + Capacity("capacity"), + Status("status"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ResourceGroupSortBy v : ResourceGroupSortBy.values()) { + map.put(v.getValue(), v); + } + } + + ResourceGroupSortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ResourceGroupSortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ResourceGroupSortBy: " + key); + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/SetKmsKeyDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/SetKmsKeyDetails.java index 83da3a2817d..f24d62a43ef 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/SetKmsKeyDetails.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/SetKmsKeyDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * Input payload to reset the OCI Vault encryption key. + * Input payload to reset the OCI vault encryption key. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -29,14 +29,14 @@ public SetKmsKeyDetails(String kmsKeyId) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. An empty value indicates Oracle managed default encryption (null is not supported in this API). + * OCID of the OCI vault key encrypting the customer data stored in this Analytics instance. An empty value indicates the default Oracle-managed encryption (this API doesn't support null). * **/ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") private String kmsKeyId; /** - * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. An empty value indicates Oracle managed default encryption (null is not supported in this API). + * OCID of the OCI vault key encrypting the customer data stored in this Analytics instance. An empty value indicates the default Oracle-managed encryption (this API doesn't support null). * * @param kmsKeyId the value to set * @return this builder @@ -79,14 +79,14 @@ public Builder toBuilder() { } /** - * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. An empty value indicates Oracle managed default encryption (null is not supported in this API). + * OCID of the OCI vault key encrypting the customer data stored in this Analytics instance. An empty value indicates the default Oracle-managed encryption (this API doesn't support null). * **/ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") private final String kmsKeyId; /** - * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. An empty value indicates Oracle managed default encryption (null is not supported in this API). + * OCID of the OCI vault key encrypting the customer data stored in this Analytics instance. An empty value indicates the default Oracle-managed encryption (this API doesn't support null). * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/SortBy.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/SortBy.java index 83cd805775a..194f375148c 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/SortBy.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/SortBy.java @@ -6,7 +6,7 @@ /** * The field to sort by (one column only). Default sort order is - * ascending exception of {@code timeCreated} column (descending). + * ascending, except for the {@code timeCreated} column which is descending. * **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateAnalyticsInstanceDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateAnalyticsInstanceDetails.java index 0a41ffccfe7..5e93ce80376 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateAnalyticsInstanceDetails.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateAnalyticsInstanceDetails.java @@ -5,8 +5,8 @@ package com.oracle.bmc.analytics.model; /** - * Input payload to update an Analytics instance. Fields that are not provided - * will not be updated. + * Input payload to update an Analytics instance. Fields that aren't provided + * won't be updated. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -154,14 +154,14 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } /** - * Analytics instance update channel. + * The Analytics instance update cycle. * **/ @com.fasterxml.jackson.annotation.JsonProperty("updateChannel") private UpdateChannel updateChannel; /** - * Analytics instance update channel. + * The Analytics instance update cycle. * * @param updateChannel the value to set * @return this builder @@ -318,14 +318,14 @@ public java.util.Map getFreeformTags() { } /** - * Analytics instance update channel. + * The Analytics instance update cycle. * **/ @com.fasterxml.jackson.annotation.JsonProperty("updateChannel") private final UpdateChannel updateChannel; /** - * Analytics instance update channel. + * The Analytics instance update cycle. * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateChannel.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateChannel.java index 4a462fc9a16..1ec35d7f927 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateChannel.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateChannel.java @@ -5,8 +5,8 @@ package com.oracle.bmc.analytics.model; /** - * EARLY - Early update channel recommended for pre-production use. - * REGULAR - Regular update channel recommended for production use. + * EARLY - Early update cycle. Oracle delivers updates as soon as they're available. + * REGULAR - Regular update cycle. Oracle delivers updates a few weeks after completing the early update cycle. * PHASE_1 - Reserved for future use. * PHASE_2 - Reserved for future use. * diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdatePrivateAccessChannelDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdatePrivateAccessChannelDetails.java index 9a1687fa1ef..61a51882092 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdatePrivateAccessChannelDetails.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdatePrivateAccessChannelDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * Input payload to update a Private Access Channel. + * Input payload to update a private access channel. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -50,14 +50,14 @@ public UpdatePrivateAccessChannelDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Display Name of the Private Access Channel. + * Display name of the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * Display Name of the Private Access Channel. + * Display name of the private access channel. * * @param displayName the value to set * @return this builder @@ -68,14 +68,14 @@ public Builder displayName(String displayName) { return this; } /** - * OCID of the customer VCN peered with private access channel. + * OCID of the customer VCN peered with the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("vcnId") private String vcnId; /** - * OCID of the customer VCN peered with private access channel. + * OCID of the customer VCN peered with the private access channel. * * @param vcnId the value to set * @return this builder @@ -86,14 +86,14 @@ public Builder vcnId(String vcnId) { return this; } /** - * OCID of the customer subnet connected to private access channel. + * OCID of the customer subnet connected to the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private String subnetId; /** - * OCID of the customer subnet connected to private access channel. + * OCID of the customer subnet connected to the private access channel. * * @param subnetId the value to set * @return this builder @@ -104,18 +104,18 @@ public Builder subnetId(String subnetId) { return this; } /** - * List of Private Source DNS zones registered with Private Access Channel, - * where datasource hostnames from these dns zones / domains will be resolved in the peered VCN for access from Analytics Instance. - * Min of 1 is required and Max of 30 Private Source DNS zones can be registered. + * List of private source DNS zones registered with the private access channel. The + * datasource hostnames from these DNS zones / domains will be resolved in the peered VCN for access from the Analytics instance. + * Minimum 1 private source is required. Maximum 30 private source DNS zones can be registered. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateSourceDnsZones") private java.util.List privateSourceDnsZones; /** - * List of Private Source DNS zones registered with Private Access Channel, - * where datasource hostnames from these dns zones / domains will be resolved in the peered VCN for access from Analytics Instance. - * Min of 1 is required and Max of 30 Private Source DNS zones can be registered. + * List of private source DNS zones registered with the private access channel. The + * datasource hostnames from these DNS zones / domains will be resolved in the peered VCN for access from the Analytics instance. + * Minimum 1 private source is required. Maximum 30 private source DNS zones can be registered. * * @param privateSourceDnsZones the value to set * @return this builder @@ -127,14 +127,14 @@ public Builder privateSourceDnsZones( return this; } /** - * List of Private Source DB SCAN hosts registered with Private Access Channel for access from Analytics Instance. + * List of private source database SCAN hosts registered with the private access channel for access from the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateSourceScanHosts") private java.util.List privateSourceScanHosts; /** - * List of Private Source DB SCAN hosts registered with Private Access Channel for access from Analytics Instance. + * List of private source database SCAN hosts registered with the private access channel for access from the Analytics instance. * * @param privateSourceScanHosts the value to set * @return this builder @@ -146,14 +146,14 @@ public Builder privateSourceScanHosts( return this; } /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("networkSecurityGroupIds") private java.util.List networkSecurityGroupIds; /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * * @param networkSecurityGroupIds the value to set * @return this builder @@ -218,14 +218,14 @@ public Builder toBuilder() { } /** - * Display Name of the Private Access Channel. + * Display name of the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Display Name of the Private Access Channel. + * Display name of the private access channel. * * @return the value **/ @@ -234,14 +234,14 @@ public String getDisplayName() { } /** - * OCID of the customer VCN peered with private access channel. + * OCID of the customer VCN peered with the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("vcnId") private final String vcnId; /** - * OCID of the customer VCN peered with private access channel. + * OCID of the customer VCN peered with the private access channel. * * @return the value **/ @@ -250,14 +250,14 @@ public String getVcnId() { } /** - * OCID of the customer subnet connected to private access channel. + * OCID of the customer subnet connected to the private access channel. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private final String subnetId; /** - * OCID of the customer subnet connected to private access channel. + * OCID of the customer subnet connected to the private access channel. * * @return the value **/ @@ -266,18 +266,18 @@ public String getSubnetId() { } /** - * List of Private Source DNS zones registered with Private Access Channel, - * where datasource hostnames from these dns zones / domains will be resolved in the peered VCN for access from Analytics Instance. - * Min of 1 is required and Max of 30 Private Source DNS zones can be registered. + * List of private source DNS zones registered with the private access channel. The + * datasource hostnames from these DNS zones / domains will be resolved in the peered VCN for access from the Analytics instance. + * Minimum 1 private source is required. Maximum 30 private source DNS zones can be registered. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateSourceDnsZones") private final java.util.List privateSourceDnsZones; /** - * List of Private Source DNS zones registered with Private Access Channel, - * where datasource hostnames from these dns zones / domains will be resolved in the peered VCN for access from Analytics Instance. - * Min of 1 is required and Max of 30 Private Source DNS zones can be registered. + * List of private source DNS zones registered with the private access channel. The + * datasource hostnames from these DNS zones / domains will be resolved in the peered VCN for access from the Analytics instance. + * Minimum 1 private source is required. Maximum 30 private source DNS zones can be registered. * * @return the value **/ @@ -286,14 +286,14 @@ public java.util.List getPrivateSourceDnsZones() { } /** - * List of Private Source DB SCAN hosts registered with Private Access Channel for access from Analytics Instance. + * List of private source database SCAN hosts registered with the private access channel for access from the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateSourceScanHosts") private final java.util.List privateSourceScanHosts; /** - * List of Private Source DB SCAN hosts registered with Private Access Channel for access from Analytics Instance. + * List of private source database SCAN hosts registered with the private access channel for access from the Analytics instance. * * @return the value **/ @@ -302,14 +302,14 @@ public java.util.List getPrivateSourceScanHosts() { } /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("networkSecurityGroupIds") private final java.util.List networkSecurityGroupIds; /** - * Network Security Group OCIDs for an Analytics instance. + * Network Security Group OCIDs for the Analytics instance. * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateResourceGroupDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateResourceGroupDetails.java new file mode 100644 index 00000000000..6268393d1ae --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateResourceGroupDetails.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.model; + +/** + * Input payload to update a resource group. + * + *
+ * 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: 20190331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateResourceGroupDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateResourceGroupDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"resourceName", "displayName", "description", "capacity"}) + public UpdateResourceGroupDetails( + String resourceName, String displayName, String description, Integer capacity) { + super(); + this.resourceName = resourceName; + this.displayName = displayName; + this.description = description; + this.capacity = capacity; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private String resourceName; + + /** + * Meaningful name of resource group for end user + * @param resourceName the value to set + * @return this builder + **/ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + this.__explicitlySet__.add("resourceName"); + return this; + } + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Meaningful name of resource group for end user + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Optional description of the resource group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Optional description of the resource group + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The capacity (in OCPU's) to be allocated for this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("capacity") + private Integer capacity; + + /** + * The capacity (in OCPU's) to be allocated for this resource. + * @param capacity the value to set + * @return this builder + **/ + public Builder capacity(Integer capacity) { + this.capacity = capacity; + this.__explicitlySet__.add("capacity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateResourceGroupDetails build() { + UpdateResourceGroupDetails model = + new UpdateResourceGroupDetails( + this.resourceName, this.displayName, this.description, this.capacity); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateResourceGroupDetails model) { + if (model.wasPropertyExplicitlySet("resourceName")) { + this.resourceName(model.getResourceName()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("capacity")) { + this.capacity(model.getCapacity()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private final String resourceName; + + /** + * Meaningful name of resource group for end user + * @return the value + **/ + public String getResourceName() { + return resourceName; + } + + /** + * Meaningful name of resource group for end user + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Meaningful name of resource group for end user + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Optional description of the resource group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Optional description of the resource group + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The capacity (in OCPU's) to be allocated for this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("capacity") + private final Integer capacity; + + /** + * The capacity (in OCPU's) to be allocated for this resource. + * @return the value + **/ + public Integer getCapacity() { + return capacity; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateResourceGroupDetails("); + sb.append("super=").append(super.toString()); + sb.append("resourceName=").append(String.valueOf(this.resourceName)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", capacity=").append(String.valueOf(this.capacity)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateResourceGroupDetails)) { + return false; + } + + UpdateResourceGroupDetails other = (UpdateResourceGroupDetails) o; + return java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.capacity, other.capacity) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.capacity == null ? 43 : this.capacity.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateVanityUrlDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateVanityUrlDetails.java index 139c0f3affd..5879df9638c 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateVanityUrlDetails.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/UpdateVanityUrlDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * Input payload to update a vanity url. + * Input payload to update a vanity URL. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -41,14 +41,14 @@ public UpdateVanityUrlDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Passphrase for the PEM Private key (if any). + * Passphrase for the PEM private key (if any). * **/ @com.fasterxml.jackson.annotation.JsonProperty("passphrase") private String passphrase; /** - * Passphrase for the PEM Private key (if any). + * Passphrase for the PEM private key (if any). * * @param passphrase the value to set * @return this builder @@ -59,14 +59,14 @@ public Builder passphrase(String passphrase) { return this; } /** - * PEM Private key for HTTPS connections. + * PEM private key for HTTPS connections. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKey") private String privateKey; /** - * PEM Private key for HTTPS connections. + * PEM private key for HTTPS connections. * * @param privateKey the value to set * @return this builder @@ -95,14 +95,14 @@ public Builder publicCertificate(String publicCertificate) { return this; } /** - * PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates. + * PEM CA certificates for HTTPS connections. This may include multiple PEM certificates. * **/ @com.fasterxml.jackson.annotation.JsonProperty("caCertificate") private String caCertificate; /** - * PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates. + * PEM CA certificates for HTTPS connections. This may include multiple PEM certificates. * * @param caCertificate the value to set * @return this builder @@ -159,14 +159,14 @@ public Builder toBuilder() { } /** - * Passphrase for the PEM Private key (if any). + * Passphrase for the PEM private key (if any). * **/ @com.fasterxml.jackson.annotation.JsonProperty("passphrase") private final String passphrase; /** - * Passphrase for the PEM Private key (if any). + * Passphrase for the PEM private key (if any). * * @return the value **/ @@ -175,14 +175,14 @@ public String getPassphrase() { } /** - * PEM Private key for HTTPS connections. + * PEM private key for HTTPS connections. * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKey") private final String privateKey; /** - * PEM Private key for HTTPS connections. + * PEM private key for HTTPS connections. * * @return the value **/ @@ -207,14 +207,14 @@ public String getPublicCertificate() { } /** - * PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates. + * PEM CA certificates for HTTPS connections. This may include multiple PEM certificates. * **/ @com.fasterxml.jackson.annotation.JsonProperty("caCertificate") private final String caCertificate; /** - * PEM CA certificate(s) for HTTPS connections. This may include multiple PEM certificates. + * PEM CA certificates for HTTPS connections. This may include multiple PEM certificates. * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/VanityUrlDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/VanityUrlDetails.java index 5b0d2da01eb..02678e340db 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/VanityUrlDetails.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/VanityUrlDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.analytics.model; /** - * Vanity url configuration details. + * Vanity URL configuration details. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -38,14 +38,14 @@ public VanityUrlDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The vanity url unique identifier key. + * The vanity URL unique identifier key. * **/ @com.fasterxml.jackson.annotation.JsonProperty("key") private String key; /** - * The vanity url unique identifier key. + * The vanity URL unique identifier key. * * @param key the value to set * @return this builder @@ -56,14 +56,14 @@ public Builder key(String key) { return this; } /** - * Description of the vanity url. + * Description of the vanity URL. * **/ @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; /** - * Description of the vanity url. + * Description of the vanity URL. * * @param description the value to set * @return this builder @@ -74,14 +74,14 @@ public Builder description(String description) { return this; } /** - * List of urls supported by this vanity URL definition (max of 3). + * List of URLs supported by this vanity URL definition (maximum of 3). * **/ @com.fasterxml.jackson.annotation.JsonProperty("urls") private java.util.List urls; /** - * List of urls supported by this vanity URL definition (max of 3). + * List of URLs supported by this vanity URL definition (maximum of 3). * * @param urls the value to set * @return this builder @@ -92,14 +92,14 @@ public Builder urls(java.util.List urls) { return this; } /** - * List of fully qualified hostnames supported by this vanity URL definition (max of 3). + * List of fully-qualified hostnames supported by this vanity URL definition (maximum of 3). * **/ @com.fasterxml.jackson.annotation.JsonProperty("hosts") private java.util.List hosts; /** - * List of fully qualified hostnames supported by this vanity URL definition (max of 3). + * List of fully-qualified hostnames supported by this vanity URL definition (maximum of 3). * * @param hosts the value to set * @return this builder @@ -178,14 +178,14 @@ public Builder toBuilder() { } /** - * The vanity url unique identifier key. + * The vanity URL unique identifier key. * **/ @com.fasterxml.jackson.annotation.JsonProperty("key") private final String key; /** - * The vanity url unique identifier key. + * The vanity URL unique identifier key. * * @return the value **/ @@ -194,14 +194,14 @@ public String getKey() { } /** - * Description of the vanity url. + * Description of the vanity URL. * **/ @com.fasterxml.jackson.annotation.JsonProperty("description") private final String description; /** - * Description of the vanity url. + * Description of the vanity URL. * * @return the value **/ @@ -210,14 +210,14 @@ public String getDescription() { } /** - * List of urls supported by this vanity URL definition (max of 3). + * List of URLs supported by this vanity URL definition (maximum of 3). * **/ @com.fasterxml.jackson.annotation.JsonProperty("urls") private final java.util.List urls; /** - * List of urls supported by this vanity URL definition (max of 3). + * List of URLs supported by this vanity URL definition (maximum of 3). * * @return the value **/ @@ -226,14 +226,14 @@ public java.util.List getUrls() { } /** - * List of fully qualified hostnames supported by this vanity URL definition (max of 3). + * List of fully-qualified hostnames supported by this vanity URL definition (maximum of 3). * **/ @com.fasterxml.jackson.annotation.JsonProperty("hosts") private final java.util.List hosts; /** - * List of fully qualified hostnames supported by this vanity URL definition (max of 3). + * List of fully-qualified hostnames supported by this vanity URL definition (maximum of 3). * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestActionResult.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestActionResult.java index d4a24cad54f..66d796121f6 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestActionResult.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestActionResult.java @@ -24,6 +24,9 @@ public enum WorkRequestActionResult { PrivateAccessChannelUpdated("PRIVATE_ACCESS_CHANNEL_UPDATED"), PrivateAccessChannelDeleted("PRIVATE_ACCESS_CHANNEL_DELETED"), None("NONE"), + ResourceGroupCreated("RESOURCE_GROUP_CREATED"), + ResourceGroupUpdated("RESOURCE_GROUP_UPDATED"), + ResourceGroupDeleted("RESOURCE_GROUP_DELETED"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestError.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestError.java index f25699ec94a..85067c0a099 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestError.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestError.java @@ -31,14 +31,14 @@ public WorkRequestError(String code, String message, java.util.Date timestamp) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * A short error code that defines the error, meant for programmatic parsing. + * A short error code that defines the error, for programmatic parsing. * **/ @com.fasterxml.jackson.annotation.JsonProperty("code") private String code; /** - * A short error code that defines the error, meant for programmatic parsing. + * A short error code that defines the error, for programmatic parsing. * * @param code the value to set * @return this builder @@ -67,7 +67,7 @@ public Builder message(String message) { return this; } /** - * The date and time the error occured, in the format defined by RFC3339. + * The date and time the error occurred, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -76,7 +76,7 @@ public Builder message(String message) { private java.util.Date timestamp; /** - * The date and time the error occured, in the format defined by RFC3339. + * The date and time the error occurred, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -127,14 +127,14 @@ public Builder toBuilder() { } /** - * A short error code that defines the error, meant for programmatic parsing. + * A short error code that defines the error, for programmatic parsing. * **/ @com.fasterxml.jackson.annotation.JsonProperty("code") private final String code; /** - * A short error code that defines the error, meant for programmatic parsing. + * A short error code that defines the error, for programmatic parsing. * * @return the value **/ @@ -159,7 +159,7 @@ public String getMessage() { } /** - * The date and time the error occured, in the format defined by RFC3339. + * The date and time the error occurred, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -168,7 +168,7 @@ public String getMessage() { private final java.util.Date timestamp; /** - * The date and time the error occured, in the format defined by RFC3339. + * The date and time the error occurred, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestLog.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestLog.java index 70b68caaae4..9c9215ce2f6 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestLog.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestLog.java @@ -48,7 +48,7 @@ public Builder message(String message) { return this; } /** - * The date and time the log entry occured, in the format defined by RFC3339. + * The date and time the log entry occurred, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -57,7 +57,7 @@ public Builder message(String message) { private java.util.Date timestamp; /** - * The date and time the log entry occured, in the format defined by RFC3339. + * The date and time the log entry occurred, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -121,7 +121,7 @@ public String getMessage() { } /** - * The date and time the log entry occured, in the format defined by RFC3339. + * The date and time the log entry occurred, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * @@ -130,7 +130,7 @@ public String getMessage() { private final java.util.Date timestamp; /** - * The date and time the log entry occured, in the format defined by RFC3339. + * The date and time the log entry occurred, in the format defined by RFC3339. *

* Example: {@code 2016-08-25T21:10:29.600Z} * diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestOperationType.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestOperationType.java index c4b8719d852..397560f23f3 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestOperationType.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestOperationType.java @@ -24,6 +24,10 @@ public enum WorkRequestOperationType { UpdatePrivateAccessChannel("UPDATE_PRIVATE_ACCESS_CHANNEL"), DeletePrivateAccessChannel("DELETE_PRIVATE_ACCESS_CHANNEL"), UpdateInstanceEncryptionKey("UPDATE_INSTANCE_ENCRYPTION_KEY"), + CreateResourceGroup("CREATE_RESOURCE_GROUP"), + UpdateResourceGroup("UPDATE_RESOURCE_GROUP"), + DeleteResourceGroup("DELETE_RESOURCE_GROUP"), + SetFeatureSet("SET_FEATURE_SET"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestResource.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestResource.java index cfe5b024c18..3c2b01e08a4 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestResource.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/WorkRequestResource.java @@ -45,14 +45,14 @@ public WorkRequestResource( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The way in which this resource was affected by this work request. + * The way this resource was affected by this work request. * **/ @com.fasterxml.jackson.annotation.JsonProperty("actionResult") private WorkRequestActionResult actionResult; /** - * The way in which this resource was affected by this work request. + * The way this resource was affected by this work request. * * @param actionResult the value to set * @return this builder @@ -183,14 +183,14 @@ public Builder toBuilder() { } /** - * The way in which this resource was affected by this work request. + * The way this resource was affected by this work request. * **/ @com.fasterxml.jackson.annotation.JsonProperty("actionResult") private final WorkRequestActionResult actionResult; /** - * The way in which this resource was affected by this work request. + * The way this resource was affected by this work request. * * @return the value **/ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ChangeAnalyticsInstanceCompartmentRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ChangeAnalyticsInstanceCompartmentRequest.java index a97df037c7d..0c59809d9e1 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ChangeAnalyticsInstanceCompartmentRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ChangeAnalyticsInstanceCompartmentRequest.java @@ -14,13 +14,13 @@ public class ChangeAnalyticsInstanceCompartmentRequest com.oracle.bmc.analytics.model.ChangeCompartmentDetails> { /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { @@ -112,13 +112,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ChangeAnalyticsInstanceNetworkEndpointRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ChangeAnalyticsInstanceNetworkEndpointRequest.java index 714e9554fa9..420155d2d4a 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ChangeAnalyticsInstanceNetworkEndpointRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ChangeAnalyticsInstanceNetworkEndpointRequest.java @@ -14,27 +14,27 @@ public class ChangeAnalyticsInstanceNetworkEndpointRequest com.oracle.bmc.analytics.model.ChangeAnalyticsInstanceNetworkEndpointDetails> { /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { return analyticsInstanceId; } /** - * Input payload for changing an Analytics instance network endpoint. + * Input payload for changing a network endpoint for an Analytics instance. * */ private com.oracle.bmc.analytics.model.ChangeAnalyticsInstanceNetworkEndpointDetails changeAnalyticsInstanceNetworkEndpointDetails; /** - * Input payload for changing an Analytics instance network endpoint. + * Input payload for changing a network endpoint for an Analytics instance. * */ public com.oracle.bmc.analytics.model.ChangeAnalyticsInstanceNetworkEndpointDetails @@ -114,13 +114,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance @@ -131,14 +131,14 @@ public Builder analyticsInstanceId(String analyticsInstanceId) { } /** - * Input payload for changing an Analytics instance network endpoint. + * Input payload for changing a network endpoint for an Analytics instance. * */ private com.oracle.bmc.analytics.model.ChangeAnalyticsInstanceNetworkEndpointDetails changeAnalyticsInstanceNetworkEndpointDetails = null; /** - * Input payload for changing an Analytics instance network endpoint. + * Input payload for changing a network endpoint for an Analytics instance. * * @param changeAnalyticsInstanceNetworkEndpointDetails the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreateAnalyticsInstanceRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreateAnalyticsInstanceRequest.java index ad245aa39d0..d6ee41c30d6 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreateAnalyticsInstanceRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreateAnalyticsInstanceRequest.java @@ -14,14 +14,14 @@ public class CreateAnalyticsInstanceRequest com.oracle.bmc.analytics.model.CreateAnalyticsInstanceDetails> { /** - * Analytics Instance details. + * Analytics instance details. * */ private com.oracle.bmc.analytics.model.CreateAnalyticsInstanceDetails createAnalyticsInstanceDetails; /** - * Analytics Instance details. + * Analytics instance details. * */ public com.oracle.bmc.analytics.model.CreateAnalyticsInstanceDetails @@ -84,14 +84,14 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Analytics Instance details. + * Analytics instance details. * */ private com.oracle.bmc.analytics.model.CreateAnalyticsInstanceDetails createAnalyticsInstanceDetails = null; /** - * Analytics Instance details. + * Analytics instance details. * * @param createAnalyticsInstanceDetails the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreatePrivateAccessChannelRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreatePrivateAccessChannelRequest.java index 6a728b1a0e2..087ecc71e14 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreatePrivateAccessChannelRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreatePrivateAccessChannelRequest.java @@ -14,13 +14,13 @@ public class CreatePrivateAccessChannelRequest com.oracle.bmc.analytics.model.CreatePrivateAccessChannelDetails> { /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { @@ -97,13 +97,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreateResourceGroupRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreateResourceGroupRequest.java new file mode 100644 index 00000000000..782dda383e3 --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreateResourceGroupRequest.java @@ -0,0 +1,335 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.requests; + +import com.oracle.bmc.analytics.model.*; +/** + * Example: Click here to see how to use CreateResourceGroupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class CreateResourceGroupRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.analytics.model.CreateResourceGroupDetails> { + + /** + * The OCID of the Analytics instance. + * + */ + private String analyticsInstanceId; + + /** + * The OCID of the Analytics instance. + * + */ + public String getAnalyticsInstanceId() { + return analyticsInstanceId; + } + /** + * Resource group details + * + */ + private com.oracle.bmc.analytics.model.CreateResourceGroupDetails createResourceGroupDetails; + + /** + * Resource group details + * + */ + public com.oracle.bmc.analytics.model.CreateResourceGroupDetails + getCreateResourceGroupDetails() { + return createResourceGroupDetails; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.analytics.model.CreateResourceGroupDetails getBody$() { + return createResourceGroupDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateResourceGroupRequest, + com.oracle.bmc.analytics.model.CreateResourceGroupDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the Analytics instance. + * + */ + private String analyticsInstanceId = null; + + /** + * The OCID of the Analytics instance. + * + * @param analyticsInstanceId the value to set + * @return this builder instance + */ + public Builder analyticsInstanceId(String analyticsInstanceId) { + this.analyticsInstanceId = analyticsInstanceId; + return this; + } + + /** + * Resource group details + * + */ + private com.oracle.bmc.analytics.model.CreateResourceGroupDetails + createResourceGroupDetails = null; + + /** + * Resource group details + * + * @param createResourceGroupDetails the value to set + * @return this builder instance + */ + public Builder createResourceGroupDetails( + com.oracle.bmc.analytics.model.CreateResourceGroupDetails + createResourceGroupDetails) { + this.createResourceGroupDetails = createResourceGroupDetails; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(CreateResourceGroupRequest o) { + analyticsInstanceId(o.getAnalyticsInstanceId()); + createResourceGroupDetails(o.getCreateResourceGroupDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateResourceGroupRequest 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 CreateResourceGroupRequest + */ + public CreateResourceGroupRequest build() { + CreateResourceGroupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.analytics.model.CreateResourceGroupDetails body) { + createResourceGroupDetails(body); + return this; + } + + /** + * Build the instance of CreateResourceGroupRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateResourceGroupRequest + */ + public CreateResourceGroupRequest buildWithoutInvocationCallback() { + CreateResourceGroupRequest request = new CreateResourceGroupRequest(); + request.analyticsInstanceId = analyticsInstanceId; + request.createResourceGroupDetails = createResourceGroupDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateResourceGroupRequest(analyticsInstanceId, createResourceGroupDetails, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .analyticsInstanceId(analyticsInstanceId) + .createResourceGroupDetails(createResourceGroupDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",analyticsInstanceId=").append(String.valueOf(this.analyticsInstanceId)); + sb.append(",createResourceGroupDetails=") + .append(String.valueOf(this.createResourceGroupDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateResourceGroupRequest)) { + return false; + } + + CreateResourceGroupRequest other = (CreateResourceGroupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.analyticsInstanceId, other.analyticsInstanceId) + && java.util.Objects.equals( + this.createResourceGroupDetails, other.createResourceGroupDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.analyticsInstanceId == null + ? 43 + : this.analyticsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.createResourceGroupDetails == null + ? 43 + : this.createResourceGroupDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreateVanityUrlRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreateVanityUrlRequest.java index 491094e2aef..b5db25329a7 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreateVanityUrlRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/CreateVanityUrlRequest.java @@ -14,26 +14,26 @@ public class CreateVanityUrlRequest com.oracle.bmc.analytics.model.CreateVanityUrlDetails> { /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { return analyticsInstanceId; } /** - * Vanity url details. + * Vanity URL details. * */ private com.oracle.bmc.analytics.model.CreateVanityUrlDetails createVanityUrlDetails; /** - * Vanity url details. + * Vanity URL details. * */ public com.oracle.bmc.analytics.model.CreateVanityUrlDetails getCreateVanityUrlDetails() { @@ -94,13 +94,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance @@ -111,13 +111,13 @@ public Builder analyticsInstanceId(String analyticsInstanceId) { } /** - * Vanity url details. + * Vanity URL details. * */ private com.oracle.bmc.analytics.model.CreateVanityUrlDetails createVanityUrlDetails = null; /** - * Vanity url details. + * Vanity URL details. * * @param createVanityUrlDetails the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeleteAnalyticsInstanceRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeleteAnalyticsInstanceRequest.java index 7f86f16e396..0b4c4afba5d 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeleteAnalyticsInstanceRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeleteAnalyticsInstanceRequest.java @@ -13,13 +13,13 @@ public class DeleteAnalyticsInstanceRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { @@ -87,13 +87,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeletePrivateAccessChannelRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeletePrivateAccessChannelRequest.java index 40bbb852454..161a0f0bda2 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeletePrivateAccessChannelRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeletePrivateAccessChannelRequest.java @@ -13,26 +13,26 @@ public class DeletePrivateAccessChannelRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The unique identifier key of the Private Access Channel. + * The unique identifier key of the private access channel. * */ private String privateAccessChannelKey; /** - * The unique identifier key of the Private Access Channel. + * The unique identifier key of the private access channel. * */ public String getPrivateAccessChannelKey() { return privateAccessChannelKey; } /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { @@ -100,13 +100,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The unique identifier key of the Private Access Channel. + * The unique identifier key of the private access channel. * */ private String privateAccessChannelKey = null; /** - * The unique identifier key of the Private Access Channel. + * The unique identifier key of the private access channel. * * @param privateAccessChannelKey the value to set * @return this builder instance @@ -117,13 +117,13 @@ public Builder privateAccessChannelKey(String privateAccessChannelKey) { } /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeleteResourceGroupRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeleteResourceGroupRequest.java new file mode 100644 index 00000000000..f602f108621 --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeleteResourceGroupRequest.java @@ -0,0 +1,352 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.requests; + +import com.oracle.bmc.analytics.model.*; +/** + * Example: Click here to see how to use DeleteResourceGroupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class DeleteResourceGroupRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the Analytics instance. + * + */ + private String analyticsInstanceId; + + /** + * The OCID of the Analytics instance. + * + */ + public String getAnalyticsInstanceId() { + return analyticsInstanceId; + } + /** + * Specify unique id of a resource group within an Analytics instance. + * + */ + private String analyticsInstanceResourceGroupId; + + /** + * Specify unique id of a resource group within an Analytics instance. + * + */ + public String getAnalyticsInstanceResourceGroupId() { + return analyticsInstanceResourceGroupId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteResourceGroupRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the Analytics instance. + * + */ + private String analyticsInstanceId = null; + + /** + * The OCID of the Analytics instance. + * + * @param analyticsInstanceId the value to set + * @return this builder instance + */ + public Builder analyticsInstanceId(String analyticsInstanceId) { + this.analyticsInstanceId = analyticsInstanceId; + return this; + } + + /** + * Specify unique id of a resource group within an Analytics instance. + * + */ + private String analyticsInstanceResourceGroupId = null; + + /** + * Specify unique id of a resource group within an Analytics instance. + * + * @param analyticsInstanceResourceGroupId the value to set + * @return this builder instance + */ + public Builder analyticsInstanceResourceGroupId(String analyticsInstanceResourceGroupId) { + this.analyticsInstanceResourceGroupId = analyticsInstanceResourceGroupId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(DeleteResourceGroupRequest o) { + analyticsInstanceId(o.getAnalyticsInstanceId()); + analyticsInstanceResourceGroupId(o.getAnalyticsInstanceResourceGroupId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteResourceGroupRequest 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 DeleteResourceGroupRequest + */ + public DeleteResourceGroupRequest build() { + DeleteResourceGroupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteResourceGroupRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteResourceGroupRequest + */ + public DeleteResourceGroupRequest buildWithoutInvocationCallback() { + DeleteResourceGroupRequest request = new DeleteResourceGroupRequest(); + request.analyticsInstanceId = analyticsInstanceId; + request.analyticsInstanceResourceGroupId = analyticsInstanceResourceGroupId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new DeleteResourceGroupRequest(analyticsInstanceId, analyticsInstanceResourceGroupId, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .analyticsInstanceId(analyticsInstanceId) + .analyticsInstanceResourceGroupId(analyticsInstanceResourceGroupId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",analyticsInstanceId=").append(String.valueOf(this.analyticsInstanceId)); + sb.append(",analyticsInstanceResourceGroupId=") + .append(String.valueOf(this.analyticsInstanceResourceGroupId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteResourceGroupRequest)) { + return false; + } + + DeleteResourceGroupRequest other = (DeleteResourceGroupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.analyticsInstanceId, other.analyticsInstanceId) + && java.util.Objects.equals( + this.analyticsInstanceResourceGroupId, + other.analyticsInstanceResourceGroupId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.analyticsInstanceId == null + ? 43 + : this.analyticsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.analyticsInstanceResourceGroupId == null + ? 43 + : this.analyticsInstanceResourceGroupId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeleteVanityUrlRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeleteVanityUrlRequest.java index a0a9ccd63f6..df4f3fc245c 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeleteVanityUrlRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/DeleteVanityUrlRequest.java @@ -12,26 +12,26 @@ public class DeleteVanityUrlRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { return analyticsInstanceId; } /** - * Specify unique identifier key of a vanity url to update or delete. + * Specify unique identifier key of a vanity URL to update or delete. * */ private String vanityUrlKey; /** - * Specify unique identifier key of a vanity url to update or delete. + * Specify unique identifier key of a vanity URL to update or delete. * */ public String getVanityUrlKey() { @@ -99,13 +99,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance @@ -116,13 +116,13 @@ public Builder analyticsInstanceId(String analyticsInstanceId) { } /** - * Specify unique identifier key of a vanity url to update or delete. + * Specify unique identifier key of a vanity URL to update or delete. * */ private String vanityUrlKey = null; /** - * Specify unique identifier key of a vanity url to update or delete. + * Specify unique identifier key of a vanity URL to update or delete. * * @param vanityUrlKey the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/GetAnalyticsInstanceRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/GetAnalyticsInstanceRequest.java index 75bef4d2011..f8425c5c04c 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/GetAnalyticsInstanceRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/GetAnalyticsInstanceRequest.java @@ -13,13 +13,13 @@ public class GetAnalyticsInstanceRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { @@ -49,13 +49,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/GetPrivateAccessChannelRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/GetPrivateAccessChannelRequest.java index 28234334d31..4cc8900565e 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/GetPrivateAccessChannelRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/GetPrivateAccessChannelRequest.java @@ -13,26 +13,26 @@ public class GetPrivateAccessChannelRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The unique identifier key of the Private Access Channel. + * The unique identifier key of the private access channel. * */ private String privateAccessChannelKey; /** - * The unique identifier key of the Private Access Channel. + * The unique identifier key of the private access channel. * */ public String getPrivateAccessChannelKey() { return privateAccessChannelKey; } /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { @@ -62,13 +62,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The unique identifier key of the Private Access Channel. + * The unique identifier key of the private access channel. * */ private String privateAccessChannelKey = null; /** - * The unique identifier key of the Private Access Channel. + * The unique identifier key of the private access channel. * * @param privateAccessChannelKey the value to set * @return this builder instance @@ -79,13 +79,13 @@ public Builder privateAccessChannelKey(String privateAccessChannelKey) { } /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/GetResourceGroupRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/GetResourceGroupRequest.java new file mode 100644 index 00000000000..a96f0eff354 --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/GetResourceGroupRequest.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.requests; + +import com.oracle.bmc.analytics.model.*; +/** + * Example: Click here to see how to use GetResourceGroupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class GetResourceGroupRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the Analytics instance. + * + */ + private String analyticsInstanceId; + + /** + * The OCID of the Analytics instance. + * + */ + public String getAnalyticsInstanceId() { + return analyticsInstanceId; + } + /** + * Specify unique id of a resource group within an Analytics instance. + * + */ + private String analyticsInstanceResourceGroupId; + + /** + * Specify unique id of a resource group within an Analytics instance. + * + */ + public String getAnalyticsInstanceResourceGroupId() { + return analyticsInstanceResourceGroupId; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetResourceGroupRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the Analytics instance. + * + */ + private String analyticsInstanceId = null; + + /** + * The OCID of the Analytics instance. + * + * @param analyticsInstanceId the value to set + * @return this builder instance + */ + public Builder analyticsInstanceId(String analyticsInstanceId) { + this.analyticsInstanceId = analyticsInstanceId; + return this; + } + + /** + * Specify unique id of a resource group within an Analytics instance. + * + */ + private String analyticsInstanceResourceGroupId = null; + + /** + * Specify unique id of a resource group within an Analytics instance. + * + * @param analyticsInstanceResourceGroupId the value to set + * @return this builder instance + */ + public Builder analyticsInstanceResourceGroupId(String analyticsInstanceResourceGroupId) { + this.analyticsInstanceResourceGroupId = analyticsInstanceResourceGroupId; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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(GetResourceGroupRequest o) { + analyticsInstanceId(o.getAnalyticsInstanceId()); + analyticsInstanceResourceGroupId(o.getAnalyticsInstanceResourceGroupId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetResourceGroupRequest 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 GetResourceGroupRequest + */ + public GetResourceGroupRequest build() { + GetResourceGroupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetResourceGroupRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetResourceGroupRequest + */ + public GetResourceGroupRequest buildWithoutInvocationCallback() { + GetResourceGroupRequest request = new GetResourceGroupRequest(); + request.analyticsInstanceId = analyticsInstanceId; + request.analyticsInstanceResourceGroupId = analyticsInstanceResourceGroupId; + request.opcRequestId = opcRequestId; + return request; + // new GetResourceGroupRequest(analyticsInstanceId, analyticsInstanceResourceGroupId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .analyticsInstanceId(analyticsInstanceId) + .analyticsInstanceResourceGroupId(analyticsInstanceResourceGroupId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",analyticsInstanceId=").append(String.valueOf(this.analyticsInstanceId)); + sb.append(",analyticsInstanceResourceGroupId=") + .append(String.valueOf(this.analyticsInstanceResourceGroupId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetResourceGroupRequest)) { + return false; + } + + GetResourceGroupRequest other = (GetResourceGroupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.analyticsInstanceId, other.analyticsInstanceId) + && java.util.Objects.equals( + this.analyticsInstanceResourceGroupId, + other.analyticsInstanceResourceGroupId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.analyticsInstanceId == null + ? 43 + : this.analyticsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.analyticsInstanceResourceGroupId == null + ? 43 + : this.analyticsInstanceResourceGroupId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ListResourceGroupsRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ListResourceGroupsRequest.java new file mode 100644 index 00000000000..0a318d2b44f --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ListResourceGroupsRequest.java @@ -0,0 +1,419 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.requests; + +import com.oracle.bmc.analytics.model.*; +/** + * Example: Click here to see how to use ListResourceGroupsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class ListResourceGroupsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the Analytics instance. + * + */ + private String analyticsInstanceId; + + /** + * The OCID of the Analytics instance. + * + */ + public String getAnalyticsInstanceId() { + return analyticsInstanceId; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A filter to return only resources that match the given name exactly. + * + */ + private String name; + + /** + * A filter to return only resources that match the given name exactly. + * + */ + public String getName() { + return name; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" + * call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" + * call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + /** + * The field to sort by (one column only). Default sort order is + * default group first, then sort by resource name, ascending. + * + */ + private com.oracle.bmc.analytics.model.ResourceGroupSortBy sortBy; + + /** + * The field to sort by (one column only). Default sort order is + * default group first, then sort by resource name, ascending. + * + */ + public com.oracle.bmc.analytics.model.ResourceGroupSortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + */ + private com.oracle.bmc.analytics.model.SortOrder sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + */ + public com.oracle.bmc.analytics.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListResourceGroupsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the Analytics instance. + * + */ + private String analyticsInstanceId = null; + + /** + * The OCID of the Analytics instance. + * + * @param analyticsInstanceId the value to set + * @return this builder instance + */ + public Builder analyticsInstanceId(String analyticsInstanceId) { + this.analyticsInstanceId = analyticsInstanceId; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A filter to return only resources that match the given name exactly. + * + */ + private String name = null; + + /** + * A filter to return only resources that match the given name exactly. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" + * call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" + * call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The field to sort by (one column only). Default sort order is + * default group first, then sort by resource name, ascending. + * + */ + private com.oracle.bmc.analytics.model.ResourceGroupSortBy sortBy = null; + + /** + * The field to sort by (one column only). Default sort order is + * default group first, then sort by resource name, ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(com.oracle.bmc.analytics.model.ResourceGroupSortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + */ + private com.oracle.bmc.analytics.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.analytics.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListResourceGroupsRequest o) { + analyticsInstanceId(o.getAnalyticsInstanceId()); + opcRequestId(o.getOpcRequestId()); + name(o.getName()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListResourceGroupsRequest 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 ListResourceGroupsRequest + */ + public ListResourceGroupsRequest build() { + ListResourceGroupsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListResourceGroupsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListResourceGroupsRequest + */ + public ListResourceGroupsRequest buildWithoutInvocationCallback() { + ListResourceGroupsRequest request = new ListResourceGroupsRequest(); + request.analyticsInstanceId = analyticsInstanceId; + request.opcRequestId = opcRequestId; + request.name = name; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListResourceGroupsRequest(analyticsInstanceId, opcRequestId, name, limit, page, sortBy, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .analyticsInstanceId(analyticsInstanceId) + .opcRequestId(opcRequestId) + .name(name) + .limit(limit) + .page(page) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",analyticsInstanceId=").append(String.valueOf(this.analyticsInstanceId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListResourceGroupsRequest)) { + return false; + } + + ListResourceGroupsRequest other = (ListResourceGroupsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.analyticsInstanceId, other.analyticsInstanceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.analyticsInstanceId == null + ? 43 + : this.analyticsInstanceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ScaleAnalyticsInstanceRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ScaleAnalyticsInstanceRequest.java index fba7c0f070e..b727c41e199 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ScaleAnalyticsInstanceRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/ScaleAnalyticsInstanceRequest.java @@ -14,13 +14,13 @@ public class ScaleAnalyticsInstanceRequest com.oracle.bmc.analytics.model.ScaleAnalyticsInstanceDetails> { /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { @@ -114,13 +114,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/SetFeatureBundleRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/SetFeatureBundleRequest.java index f248ea6bede..b778a9104da 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/SetFeatureBundleRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/SetFeatureBundleRequest.java @@ -14,13 +14,13 @@ public class SetFeatureBundleRequest com.oracle.bmc.analytics.model.SetFeatureBundleDetails> { /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { @@ -112,13 +112,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/SetKmsKeyRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/SetKmsKeyRequest.java index d11c80a02d6..4644c02abe0 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/SetKmsKeyRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/SetKmsKeyRequest.java @@ -14,26 +14,26 @@ public class SetKmsKeyRequest com.oracle.bmc.analytics.model.SetKmsKeyDetails> { /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { return analyticsInstanceId; } /** - * Input payload to reset the OCI Vault encryption key. + * Input payload to reset the OCI vault encryption key. * */ private com.oracle.bmc.analytics.model.SetKmsKeyDetails setKmsKeyDetails; /** - * Input payload to reset the OCI Vault encryption key. + * Input payload to reset the OCI vault encryption key. * */ public com.oracle.bmc.analytics.model.SetKmsKeyDetails getSetKmsKeyDetails() { @@ -111,13 +111,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance @@ -128,13 +128,13 @@ public Builder analyticsInstanceId(String analyticsInstanceId) { } /** - * Input payload to reset the OCI Vault encryption key. + * Input payload to reset the OCI vault encryption key. * */ private com.oracle.bmc.analytics.model.SetKmsKeyDetails setKmsKeyDetails = null; /** - * Input payload to reset the OCI Vault encryption key. + * Input payload to reset the OCI vault encryption key. * * @param setKmsKeyDetails the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/StartAnalyticsInstanceRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/StartAnalyticsInstanceRequest.java index c2805da7327..5e82f677cda 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/StartAnalyticsInstanceRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/StartAnalyticsInstanceRequest.java @@ -13,13 +13,13 @@ public class StartAnalyticsInstanceRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { @@ -87,13 +87,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/StopAnalyticsInstanceRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/StopAnalyticsInstanceRequest.java index 888c9d56bd4..00d44992aa1 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/StopAnalyticsInstanceRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/StopAnalyticsInstanceRequest.java @@ -13,13 +13,13 @@ public class StopAnalyticsInstanceRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { @@ -87,13 +87,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdateAnalyticsInstanceRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdateAnalyticsInstanceRequest.java index 54d1277bde8..634ce2d4b38 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdateAnalyticsInstanceRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdateAnalyticsInstanceRequest.java @@ -14,29 +14,29 @@ public class UpdateAnalyticsInstanceRequest com.oracle.bmc.analytics.model.UpdateAnalyticsInstanceDetails> { /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { return analyticsInstanceId; } /** - * The Analytics Instance fields to update. Fields that are not provided - * will not be updated. + * Update specified fields for an Analytics instance. Fields that aren't provided + * won't be updated. * */ private com.oracle.bmc.analytics.model.UpdateAnalyticsInstanceDetails updateAnalyticsInstanceDetails; /** - * The Analytics Instance fields to update. Fields that are not provided - * will not be updated. + * Update specified fields for an Analytics instance. Fields that aren't provided + * won't be updated. * */ public com.oracle.bmc.analytics.model.UpdateAnalyticsInstanceDetails @@ -95,13 +95,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance @@ -112,16 +112,16 @@ public Builder analyticsInstanceId(String analyticsInstanceId) { } /** - * The Analytics Instance fields to update. Fields that are not provided - * will not be updated. + * Update specified fields for an Analytics instance. Fields that aren't provided + * won't be updated. * */ private com.oracle.bmc.analytics.model.UpdateAnalyticsInstanceDetails updateAnalyticsInstanceDetails = null; /** - * The Analytics Instance fields to update. Fields that are not provided - * will not be updated. + * Update specified fields for an Analytics instance. Fields that aren't provided + * won't be updated. * * @param updateAnalyticsInstanceDetails the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdatePrivateAccessChannelRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdatePrivateAccessChannelRequest.java index 9f28ec7cd74..e14790b951e 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdatePrivateAccessChannelRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdatePrivateAccessChannelRequest.java @@ -14,40 +14,40 @@ public class UpdatePrivateAccessChannelRequest com.oracle.bmc.analytics.model.UpdatePrivateAccessChannelDetails> { /** - * The unique identifier key of the Private Access Channel. + * The unique identifier key of the private access channel. * */ private String privateAccessChannelKey; /** - * The unique identifier key of the Private Access Channel. + * The unique identifier key of the private access channel. * */ public String getPrivateAccessChannelKey() { return privateAccessChannelKey; } /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { return analyticsInstanceId; } /** - * Update the Private Access Channel with the given unique identifier key in the specified Analytics Instance. + * Update the private access channel with the given unique identifier key in the specified Analytics instance. * */ private com.oracle.bmc.analytics.model.UpdatePrivateAccessChannelDetails updatePrivateAccessChannelDetails; /** - * Update the Private Access Channel with the given unique identifier key in the specified Analytics Instance. + * Update the private access channel with the given unique identifier key in the specified Analytics instance. * */ public com.oracle.bmc.analytics.model.UpdatePrivateAccessChannelDetails @@ -127,13 +127,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The unique identifier key of the Private Access Channel. + * The unique identifier key of the private access channel. * */ private String privateAccessChannelKey = null; /** - * The unique identifier key of the Private Access Channel. + * The unique identifier key of the private access channel. * * @param privateAccessChannelKey the value to set * @return this builder instance @@ -144,13 +144,13 @@ public Builder privateAccessChannelKey(String privateAccessChannelKey) { } /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance @@ -161,14 +161,14 @@ public Builder analyticsInstanceId(String analyticsInstanceId) { } /** - * Update the Private Access Channel with the given unique identifier key in the specified Analytics Instance. + * Update the private access channel with the given unique identifier key in the specified Analytics instance. * */ private com.oracle.bmc.analytics.model.UpdatePrivateAccessChannelDetails updatePrivateAccessChannelDetails = null; /** - * Update the Private Access Channel with the given unique identifier key in the specified Analytics Instance. + * Update the private access channel with the given unique identifier key in the specified Analytics instance. * * @param updatePrivateAccessChannelDetails the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdateResourceGroupRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdateResourceGroupRequest.java new file mode 100644 index 00000000000..13d2d9deacc --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdateResourceGroupRequest.java @@ -0,0 +1,422 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.requests; + +import com.oracle.bmc.analytics.model.*; +/** + * Example: Click here to see how to use UpdateResourceGroupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class UpdateResourceGroupRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.analytics.model.UpdateResourceGroupDetails> { + + /** + * The OCID of the Analytics instance. + * + */ + private String analyticsInstanceId; + + /** + * The OCID of the Analytics instance. + * + */ + public String getAnalyticsInstanceId() { + return analyticsInstanceId; + } + /** + * Specify unique id of a resource group within an Analytics instance. + * + */ + private String analyticsInstanceResourceGroupId; + + /** + * Specify unique id of a resource group within an Analytics instance. + * + */ + public String getAnalyticsInstanceResourceGroupId() { + return analyticsInstanceResourceGroupId; + } + /** + * Resource group details to update (certificate). + * + */ + private com.oracle.bmc.analytics.model.UpdateResourceGroupDetails updateResourceGroupDetails; + + /** + * Resource group details to update (certificate). + * + */ + public com.oracle.bmc.analytics.model.UpdateResourceGroupDetails + getUpdateResourceGroupDetails() { + return updateResourceGroupDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.analytics.model.UpdateResourceGroupDetails getBody$() { + return updateResourceGroupDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateResourceGroupRequest, + com.oracle.bmc.analytics.model.UpdateResourceGroupDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the Analytics instance. + * + */ + private String analyticsInstanceId = null; + + /** + * The OCID of the Analytics instance. + * + * @param analyticsInstanceId the value to set + * @return this builder instance + */ + public Builder analyticsInstanceId(String analyticsInstanceId) { + this.analyticsInstanceId = analyticsInstanceId; + return this; + } + + /** + * Specify unique id of a resource group within an Analytics instance. + * + */ + private String analyticsInstanceResourceGroupId = null; + + /** + * Specify unique id of a resource group within an Analytics instance. + * + * @param analyticsInstanceResourceGroupId the value to set + * @return this builder instance + */ + public Builder analyticsInstanceResourceGroupId(String analyticsInstanceResourceGroupId) { + this.analyticsInstanceResourceGroupId = analyticsInstanceResourceGroupId; + return this; + } + + /** + * Resource group details to update (certificate). + * + */ + private com.oracle.bmc.analytics.model.UpdateResourceGroupDetails + updateResourceGroupDetails = null; + + /** + * Resource group details to update (certificate). + * + * @param updateResourceGroupDetails the value to set + * @return this builder instance + */ + public Builder updateResourceGroupDetails( + com.oracle.bmc.analytics.model.UpdateResourceGroupDetails + updateResourceGroupDetails) { + this.updateResourceGroupDetails = updateResourceGroupDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(UpdateResourceGroupRequest o) { + analyticsInstanceId(o.getAnalyticsInstanceId()); + analyticsInstanceResourceGroupId(o.getAnalyticsInstanceResourceGroupId()); + updateResourceGroupDetails(o.getUpdateResourceGroupDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateResourceGroupRequest 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 UpdateResourceGroupRequest + */ + public UpdateResourceGroupRequest build() { + UpdateResourceGroupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.analytics.model.UpdateResourceGroupDetails body) { + updateResourceGroupDetails(body); + return this; + } + + /** + * Build the instance of UpdateResourceGroupRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateResourceGroupRequest + */ + public UpdateResourceGroupRequest buildWithoutInvocationCallback() { + UpdateResourceGroupRequest request = new UpdateResourceGroupRequest(); + request.analyticsInstanceId = analyticsInstanceId; + request.analyticsInstanceResourceGroupId = analyticsInstanceResourceGroupId; + request.updateResourceGroupDetails = updateResourceGroupDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new UpdateResourceGroupRequest(analyticsInstanceId, analyticsInstanceResourceGroupId, updateResourceGroupDetails, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .analyticsInstanceId(analyticsInstanceId) + .analyticsInstanceResourceGroupId(analyticsInstanceResourceGroupId) + .updateResourceGroupDetails(updateResourceGroupDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",analyticsInstanceId=").append(String.valueOf(this.analyticsInstanceId)); + sb.append(",analyticsInstanceResourceGroupId=") + .append(String.valueOf(this.analyticsInstanceResourceGroupId)); + sb.append(",updateResourceGroupDetails=") + .append(String.valueOf(this.updateResourceGroupDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateResourceGroupRequest)) { + return false; + } + + UpdateResourceGroupRequest other = (UpdateResourceGroupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.analyticsInstanceId, other.analyticsInstanceId) + && java.util.Objects.equals( + this.analyticsInstanceResourceGroupId, + other.analyticsInstanceResourceGroupId) + && java.util.Objects.equals( + this.updateResourceGroupDetails, other.updateResourceGroupDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.analyticsInstanceId == null + ? 43 + : this.analyticsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.analyticsInstanceResourceGroupId == null + ? 43 + : this.analyticsInstanceResourceGroupId.hashCode()); + result = + (result * PRIME) + + (this.updateResourceGroupDetails == null + ? 43 + : this.updateResourceGroupDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdateVanityUrlRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdateVanityUrlRequest.java index 2136f304a49..0609135621e 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdateVanityUrlRequest.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/UpdateVanityUrlRequest.java @@ -14,39 +14,39 @@ public class UpdateVanityUrlRequest com.oracle.bmc.analytics.model.UpdateVanityUrlDetails> { /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ public String getAnalyticsInstanceId() { return analyticsInstanceId; } /** - * Specify unique identifier key of a vanity url to update or delete. + * Specify unique identifier key of a vanity URL to update or delete. * */ private String vanityUrlKey; /** - * Specify unique identifier key of a vanity url to update or delete. + * Specify unique identifier key of a vanity URL to update or delete. * */ public String getVanityUrlKey() { return vanityUrlKey; } /** - * Vanity url details to update (certificate). + * Vanity URL details to update (certificate). * */ private com.oracle.bmc.analytics.model.UpdateVanityUrlDetails updateVanityUrlDetails; /** - * Vanity url details to update (certificate). + * Vanity URL details to update (certificate). * */ public com.oracle.bmc.analytics.model.UpdateVanityUrlDetails getUpdateVanityUrlDetails() { @@ -124,13 +124,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * */ private String analyticsInstanceId = null; /** - * The OCID of the AnalyticsInstance. + * The OCID of the Analytics instance. * * @param analyticsInstanceId the value to set * @return this builder instance @@ -141,13 +141,13 @@ public Builder analyticsInstanceId(String analyticsInstanceId) { } /** - * Specify unique identifier key of a vanity url to update or delete. + * Specify unique identifier key of a vanity URL to update or delete. * */ private String vanityUrlKey = null; /** - * Specify unique identifier key of a vanity url to update or delete. + * Specify unique identifier key of a vanity URL to update or delete. * * @param vanityUrlKey the value to set * @return this builder instance @@ -158,13 +158,13 @@ public Builder vanityUrlKey(String vanityUrlKey) { } /** - * Vanity url details to update (certificate). + * Vanity URL details to update (certificate). * */ private com.oracle.bmc.analytics.model.UpdateVanityUrlDetails updateVanityUrlDetails = null; /** - * Vanity url details to update (certificate). + * Vanity URL details to update (certificate). * * @param updateVanityUrlDetails the value to set * @return this builder instance diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/CreateResourceGroupResponse.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/CreateResourceGroupResponse.java new file mode 100644 index 00000000000..946d0afdead --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/CreateResourceGroupResponse.java @@ -0,0 +1,352 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.responses; + +import com.oracle.bmc.analytics.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class CreateResourceGroupResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this ID to track the status + * of the request. + * + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this ID to track the status + * of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * The id of the child object being created. Child objects are not top level objects, but + * exist as part of a larger object (usually instance). + * + */ + private String childResourceId; + + /** + * The id of the child object being created. Child objects are not top level objects, but + * exist as part of a larger object (usually instance). + * + * @return the value + */ + public String getChildResourceId() { + return childResourceId; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned InstanceResourceGroup instance. + */ + private com.oracle.bmc.analytics.model.InstanceResourceGroup instanceResourceGroup; + + /** + * The returned InstanceResourceGroup instance. + * @return the value + */ + public com.oracle.bmc.analytics.model.InstanceResourceGroup getInstanceResourceGroup() { + return instanceResourceGroup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcWorkRequestId", + "childResourceId", + "location", + "instanceResourceGroup" + }) + private CreateResourceGroupResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + String opcWorkRequestId, + String childResourceId, + String location, + com.oracle.bmc.analytics.model.InstanceResourceGroup instanceResourceGroup) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.childResourceId = childResourceId; + this.location = location; + this.instanceResourceGroup = instanceResourceGroup; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this ID to track the status + * of the request. + * + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this ID to track the status + * of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * The id of the child object being created. Child objects are not top level objects, but + * exist as part of a larger object (usually instance). + * + */ + private String childResourceId; + + /** + * The id of the child object being created. Child objects are not top level objects, but + * exist as part of a larger object (usually instance). + * + * @param childResourceId the value to set + * @return this builder + */ + public Builder childResourceId(String childResourceId) { + this.childResourceId = childResourceId; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned InstanceResourceGroup instance. + */ + private com.oracle.bmc.analytics.model.InstanceResourceGroup instanceResourceGroup; + + /** + * The returned InstanceResourceGroup instance. + * @param instanceResourceGroup the value to set + * @return this builder + */ + public Builder instanceResourceGroup( + com.oracle.bmc.analytics.model.InstanceResourceGroup instanceResourceGroup) { + this.instanceResourceGroup = instanceResourceGroup; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateResourceGroupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + childResourceId(o.getChildResourceId()); + location(o.getLocation()); + instanceResourceGroup(o.getInstanceResourceGroup()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateResourceGroupResponse build() { + return new CreateResourceGroupResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcWorkRequestId, + childResourceId, + location, + instanceResourceGroup); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",childResourceId=").append(String.valueOf(childResourceId)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",instanceResourceGroup=").append(String.valueOf(instanceResourceGroup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateResourceGroupResponse)) { + return false; + } + + CreateResourceGroupResponse other = (CreateResourceGroupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.childResourceId, other.childResourceId) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals( + this.instanceResourceGroup, other.instanceResourceGroup); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.childResourceId == null ? 43 : this.childResourceId.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.instanceResourceGroup == null + ? 43 + : this.instanceResourceGroup.hashCode()); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/DeleteResourceGroupResponse.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/DeleteResourceGroupResponse.java new file mode 100644 index 00000000000..40d72ee9ea3 --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/DeleteResourceGroupResponse.java @@ -0,0 +1,226 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.responses; + +import com.oracle.bmc.analytics.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class DeleteResourceGroupResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this ID to track the status + * of the request. + * + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this ID to track the status + * of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * The id of the child object being created. Child objects are not top level objects, but + * exist as part of a larger object (usually instance). + * + */ + private String childResourceId; + + /** + * The id of the child object being created. Child objects are not top level objects, but + * exist as part of a larger object (usually instance). + * + * @return the value + */ + public String getChildResourceId() { + return childResourceId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId", + "childResourceId" + }) + private DeleteResourceGroupResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId, + String childResourceId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.childResourceId = childResourceId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this ID to track the status + * of the request. + * + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this ID to track the status + * of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * The id of the child object being created. Child objects are not top level objects, but + * exist as part of a larger object (usually instance). + * + */ + private String childResourceId; + + /** + * The id of the child object being created. Child objects are not top level objects, but + * exist as part of a larger object (usually instance). + * + * @param childResourceId the value to set + * @return this builder + */ + public Builder childResourceId(String childResourceId) { + this.childResourceId = childResourceId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteResourceGroupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + childResourceId(o.getChildResourceId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteResourceGroupResponse build() { + return new DeleteResourceGroupResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId, childResourceId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",childResourceId=").append(String.valueOf(childResourceId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteResourceGroupResponse)) { + return false; + } + + DeleteResourceGroupResponse other = (DeleteResourceGroupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.childResourceId, other.childResourceId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.childResourceId == null ? 43 : this.childResourceId.hashCode()); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/GetResourceGroupResponse.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/GetResourceGroupResponse.java new file mode 100644 index 00000000000..900673ea812 --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/GetResourceGroupResponse.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.responses; + +import com.oracle.bmc.analytics.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class GetResourceGroupResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned InstanceResourceGroup instance. + */ + private com.oracle.bmc.analytics.model.InstanceResourceGroup instanceResourceGroup; + + /** + * The returned InstanceResourceGroup instance. + * @return the value + */ + public com.oracle.bmc.analytics.model.InstanceResourceGroup getInstanceResourceGroup() { + return instanceResourceGroup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "instanceResourceGroup" + }) + private GetResourceGroupResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.analytics.model.InstanceResourceGroup instanceResourceGroup) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.instanceResourceGroup = instanceResourceGroup; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned InstanceResourceGroup instance. + */ + private com.oracle.bmc.analytics.model.InstanceResourceGroup instanceResourceGroup; + + /** + * The returned InstanceResourceGroup instance. + * @param instanceResourceGroup the value to set + * @return this builder + */ + public Builder instanceResourceGroup( + com.oracle.bmc.analytics.model.InstanceResourceGroup instanceResourceGroup) { + this.instanceResourceGroup = instanceResourceGroup; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetResourceGroupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + instanceResourceGroup(o.getInstanceResourceGroup()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetResourceGroupResponse build() { + return new GetResourceGroupResponse( + __httpStatusCode__, headers, opcRequestId, etag, instanceResourceGroup); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",instanceResourceGroup=").append(String.valueOf(instanceResourceGroup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetResourceGroupResponse)) { + return false; + } + + GetResourceGroupResponse other = (GetResourceGroupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.instanceResourceGroup, other.instanceResourceGroup); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.instanceResourceGroup == null + ? 43 + : this.instanceResourceGroup.hashCode()); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/GetWorkRequestResponse.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/GetWorkRequestResponse.java index 286fd759053..937d92b4449 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/GetWorkRequestResponse.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/GetWorkRequestResponse.java @@ -41,13 +41,13 @@ public String getOpcRequestId() { } /** - * The number of seconds a client should wait before polling this endpoint again. + * The number of seconds a client waits before polling this endpoint again. * */ private Integer retryAfter; /** - * The number of seconds a client should wait before polling this endpoint again. + * The number of seconds a client waits before polling this endpoint again. * * @return the value */ @@ -142,13 +142,13 @@ public Builder opcRequestId(String opcRequestId) { } /** - * The number of seconds a client should wait before polling this endpoint again. + * The number of seconds a client waits before polling this endpoint again. * */ private Integer retryAfter; /** - * The number of seconds a client should wait before polling this endpoint again. + * The number of seconds a client waits before polling this endpoint again. * * @param retryAfter the value to set * @return this builder diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/ListResourceGroupsResponse.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/ListResourceGroupsResponse.java new file mode 100644 index 00000000000..9675d851f1f --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/ListResourceGroupsResponse.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.responses; + +import com.oracle.bmc.analytics.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class ListResourceGroupsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * A list of com.oracle.bmc.analytics.model.InstanceResourceGroupSummary instances. + */ + private java.util.List items; + + /** + * A list of com.oracle.bmc.analytics.model.InstanceResourceGroupSummary instances. + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "items" + }) + private ListResourceGroupsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + java.util.List items) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.items = items; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * A list of com.oracle.bmc.analytics.model.InstanceResourceGroupSummary instances. + */ + private java.util.List items; + + /** + * A list of com.oracle.bmc.analytics.model.InstanceResourceGroupSummary instances. + * @param items the value to set + * @return this builder + */ + public Builder items( + java.util.List items) { + this.items = items; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListResourceGroupsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListResourceGroupsResponse build() { + return new ListResourceGroupsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, items); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",items=").append(String.valueOf(items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListResourceGroupsResponse)) { + return false; + } + + ListResourceGroupsResponse other = (ListResourceGroupsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.items, other.items); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/UpdateResourceGroupResponse.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/UpdateResourceGroupResponse.java new file mode 100644 index 00000000000..589ab7fcd4b --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/UpdateResourceGroupResponse.java @@ -0,0 +1,312 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.analytics.responses; + +import com.oracle.bmc.analytics.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class UpdateResourceGroupResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this ID to track the status + * of the request. + * + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this ID to track the status + * of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * The id of the child object being created. Child objects are not top level objects, but + * exist as part of a larger object (usually instance). + * + */ + private String childResourceId; + + /** + * The id of the child object being created. Child objects are not top level objects, but + * exist as part of a larger object (usually instance). + * + * @return the value + */ + public String getChildResourceId() { + return childResourceId; + } + + /** + * The returned InstanceResourceGroup instance. + */ + private com.oracle.bmc.analytics.model.InstanceResourceGroup instanceResourceGroup; + + /** + * The returned InstanceResourceGroup instance. + * @return the value + */ + public com.oracle.bmc.analytics.model.InstanceResourceGroup getInstanceResourceGroup() { + return instanceResourceGroup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcWorkRequestId", + "childResourceId", + "instanceResourceGroup" + }) + private UpdateResourceGroupResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + String opcWorkRequestId, + String childResourceId, + com.oracle.bmc.analytics.model.InstanceResourceGroup instanceResourceGroup) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.childResourceId = childResourceId; + this.instanceResourceGroup = instanceResourceGroup; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this ID to track the status + * of the request. + * + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this ID to track the status + * of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * The id of the child object being created. Child objects are not top level objects, but + * exist as part of a larger object (usually instance). + * + */ + private String childResourceId; + + /** + * The id of the child object being created. Child objects are not top level objects, but + * exist as part of a larger object (usually instance). + * + * @param childResourceId the value to set + * @return this builder + */ + public Builder childResourceId(String childResourceId) { + this.childResourceId = childResourceId; + return this; + } + + /** + * The returned InstanceResourceGroup instance. + */ + private com.oracle.bmc.analytics.model.InstanceResourceGroup instanceResourceGroup; + + /** + * The returned InstanceResourceGroup instance. + * @param instanceResourceGroup the value to set + * @return this builder + */ + public Builder instanceResourceGroup( + com.oracle.bmc.analytics.model.InstanceResourceGroup instanceResourceGroup) { + this.instanceResourceGroup = instanceResourceGroup; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateResourceGroupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + childResourceId(o.getChildResourceId()); + instanceResourceGroup(o.getInstanceResourceGroup()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateResourceGroupResponse build() { + return new UpdateResourceGroupResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcWorkRequestId, + childResourceId, + instanceResourceGroup); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",childResourceId=").append(String.valueOf(childResourceId)); + sb.append(",instanceResourceGroup=").append(String.valueOf(instanceResourceGroup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateResourceGroupResponse)) { + return false; + } + + UpdateResourceGroupResponse other = (UpdateResourceGroupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.childResourceId, other.childResourceId) + && java.util.Objects.equals( + this.instanceResourceGroup, other.instanceResourceGroup); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.childResourceId == null ? 43 : this.childResourceId.hashCode()); + result = + (result * PRIME) + + (this.instanceResourceGroup == null + ? 43 + : this.instanceResourceGroup.hashCode()); + return result; + } +} diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 40ba7c31997..6bd0f56f3cf 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-announcementsservice @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-apiaccesscontrol/pom.xml b/bmc-apiaccesscontrol/pom.xml index 4633853ff8a..e8bd200cabd 100644 --- a/bmc-apiaccesscontrol/pom.xml +++ b/bmc-apiaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-apiaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListApiMetadataByEntityTypesConverter.java b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListApiMetadataByEntityTypesConverter.java index 414e3061b77..f16f61886f8 100644 --- a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListApiMetadataByEntityTypesConverter.java +++ b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListApiMetadataByEntityTypesConverter.java @@ -31,17 +31,16 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, com.oracle.bmc.apiaccesscontrol.requests.ListApiMetadataByEntityTypesRequest request) { Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget().path("/20241130").path("apiMetadatas").path("byEntityType"); - if (request.getCompartmentId() != null) { - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); - } + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); if (request.getLifecycleState() != null) { target = diff --git a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListApiMetadataConverter.java b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListApiMetadataConverter.java index 557107d1e6e..1be274dcb24 100644 --- a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListApiMetadataConverter.java +++ b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListApiMetadataConverter.java @@ -29,17 +29,16 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, com.oracle.bmc.apiaccesscontrol.requests.ListApiMetadataRequest request) { Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget().path("/20241130").path("apiMetadatas"); - if (request.getCompartmentId() != null) { - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); - } + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); if (request.getLifecycleState() != null) { target = diff --git a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListPrivilegedApiControlsConverter.java b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListPrivilegedApiControlsConverter.java index 97189293b48..566ac0cc755 100644 --- a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListPrivilegedApiControlsConverter.java +++ b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListPrivilegedApiControlsConverter.java @@ -31,17 +31,16 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, com.oracle.bmc.apiaccesscontrol.requests.ListPrivilegedApiControlsRequest request) { Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget().path("/20241130").path("privilegedApiControls"); - if (request.getCompartmentId() != null) { - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); - } + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); if (request.getId() != null) { target = diff --git a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListPrivilegedApiRequestsConverter.java b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListPrivilegedApiRequestsConverter.java index f22e3f90b44..4cd18b226f6 100644 --- a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListPrivilegedApiRequestsConverter.java +++ b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListPrivilegedApiRequestsConverter.java @@ -31,17 +31,16 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, com.oracle.bmc.apiaccesscontrol.requests.ListPrivilegedApiRequestsRequest request) { Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget().path("/20241130").path("privilegedApiRequests"); - if (request.getCompartmentId() != null) { - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); - } + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); if (request.getId() != null) { target = diff --git a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListWorkRequestsConverter.java b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListWorkRequestsConverter.java index f111fd9674b..74e4fd6311b 100644 --- a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListWorkRequestsConverter.java +++ b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/internal/http/ListWorkRequestsConverter.java @@ -29,17 +29,16 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, com.oracle.bmc.apiaccesscontrol.requests.ListWorkRequestsRequest request) { Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget().path("/20241130").path("workRequests"); - if (request.getCompartmentId() != null) { - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); - } + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); if (request.getWorkRequestId() != null) { target = diff --git a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApiMetadata.java b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApiMetadata.java index e2696429da3..6e0a86c68ce 100644 --- a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApiMetadata.java +++ b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApiMetadata.java @@ -32,6 +32,7 @@ public final class ApiMetadata extends com.oracle.bmc.http.internal.ExplicitlySe "entityType", "apiName", "fields", + "attributes", "timeCreated", "timeUpdated", "timeDeleted", @@ -49,6 +50,7 @@ public ApiMetadata( String entityType, String apiName, java.util.List fields, + java.util.List attributes, java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Date timeDeleted, @@ -65,6 +67,7 @@ public ApiMetadata( this.entityType = entityType; this.apiName = apiName; this.fields = fields; + this.attributes = attributes; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.timeDeleted = timeDeleted; @@ -174,13 +177,13 @@ public Builder apiName(String apiName) { return this; } /** - * List of the fields that is use while calling post or put for the data. + * deprecated; Use attributes field instead. **/ @com.fasterxml.jackson.annotation.JsonProperty("fields") private java.util.List fields; /** - * List of the fields that is use while calling post or put for the data. + * deprecated; Use attributes field instead. * @param fields the value to set * @return this builder **/ @@ -189,6 +192,22 @@ public Builder fields(java.util.List fields) { this.__explicitlySet__.add("fields"); return this; } + /** + * List of the fields that is use while calling post or put for the data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("attributes") + private java.util.List attributes; + + /** + * List of the fields that is use while calling post or put for the data. + * @param attributes the value to set + * @return this builder + **/ + public Builder attributes(java.util.List attributes) { + this.attributes = attributes; + this.__explicitlySet__.add("attributes"); + return this; + } /** * The date and time the PrivilegedApiControl was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

@@ -376,6 +395,7 @@ public ApiMetadata build() { this.entityType, this.apiName, this.fields, + this.attributes, this.timeCreated, this.timeUpdated, this.timeDeleted, @@ -413,6 +433,9 @@ public Builder copy(ApiMetadata model) { if (model.wasPropertyExplicitlySet("fields")) { this.fields(model.getFields()); } + if (model.wasPropertyExplicitlySet("attributes")) { + this.attributes(model.getAttributes()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -537,19 +560,33 @@ public String getApiName() { } /** - * List of the fields that is use while calling post or put for the data. + * deprecated; Use attributes field instead. **/ @com.fasterxml.jackson.annotation.JsonProperty("fields") private final java.util.List fields; /** - * List of the fields that is use while calling post or put for the data. + * deprecated; Use attributes field instead. * @return the value **/ public java.util.List getFields() { return fields; } + /** + * List of the fields that is use while calling post or put for the data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("attributes") + private final java.util.List attributes; + + /** + * List of the fields that is use while calling post or put for the data. + * @return the value + **/ + public java.util.List getAttributes() { + return attributes; + } + /** * The date and time the PrivilegedApiControl was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). *

@@ -779,6 +816,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", entityType=").append(String.valueOf(this.entityType)); sb.append(", apiName=").append(String.valueOf(this.apiName)); sb.append(", fields=").append(String.valueOf(this.fields)); + sb.append(", attributes=").append(String.valueOf(this.attributes)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", timeDeleted=").append(String.valueOf(this.timeDeleted)); @@ -808,6 +846,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.entityType, other.entityType) && java.util.Objects.equals(this.apiName, other.apiName) && java.util.Objects.equals(this.fields, other.fields) + && java.util.Objects.equals(this.attributes, other.attributes) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.timeDeleted, other.timeDeleted) @@ -830,6 +869,7 @@ public int hashCode() { result = (result * PRIME) + (this.entityType == null ? 43 : this.entityType.hashCode()); result = (result * PRIME) + (this.apiName == null ? 43 : this.apiName.hashCode()); result = (result * PRIME) + (this.fields == null ? 43 : this.fields.hashCode()); + result = (result * PRIME) + (this.attributes == null ? 43 : this.attributes.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.timeDeleted == null ? 43 : this.timeDeleted.hashCode()); diff --git a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApiMetadataByEntityTypeSummary.java b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApiMetadataByEntityTypeSummary.java index 5a669b984f2..3dd3a1ba167 100644 --- a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApiMetadataByEntityTypeSummary.java +++ b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApiMetadataByEntityTypeSummary.java @@ -23,6 +23,7 @@ public final class ApiMetadataByEntityTypeSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "compartmentId", "entityType", "apiMetadatas", "freeformTags", @@ -30,12 +31,14 @@ public final class ApiMetadataByEntityTypeSummary "systemTags" }) public ApiMetadataByEntityTypeSummary( + String compartmentId, String entityType, java.util.List apiMetadatas, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { super(); + this.compartmentId = compartmentId; this.entityType = entityType; this.apiMetadatas = apiMetadatas; this.freeformTags = freeformTags; @@ -45,6 +48,22 @@ public ApiMetadataByEntityTypeSummary( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** + * The OCID of the compartment that contains the Service Provider Action. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the Service Provider Action. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } /** * The entity Type to which the Api belongs to. **/ @@ -155,6 +174,7 @@ public Builder systemTags(java.util.Map> s public ApiMetadataByEntityTypeSummary build() { ApiMetadataByEntityTypeSummary model = new ApiMetadataByEntityTypeSummary( + this.compartmentId, this.entityType, this.apiMetadatas, this.freeformTags, @@ -168,6 +188,9 @@ public ApiMetadataByEntityTypeSummary build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(ApiMetadataByEntityTypeSummary model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } if (model.wasPropertyExplicitlySet("entityType")) { this.entityType(model.getEntityType()); } @@ -198,6 +221,20 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** + * The OCID of the compartment that contains the Service Provider Action. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the Service Provider Action. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + /** * The entity Type to which the Api belongs to. **/ @@ -304,7 +341,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("ApiMetadataByEntityTypeSummary("); sb.append("super=").append(super.toString()); - sb.append("entityType=").append(String.valueOf(this.entityType)); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", entityType=").append(String.valueOf(this.entityType)); sb.append(", apiMetadatas=").append(String.valueOf(this.apiMetadatas)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -323,7 +361,8 @@ public boolean equals(Object o) { } ApiMetadataByEntityTypeSummary other = (ApiMetadataByEntityTypeSummary) o; - return java.util.Objects.equals(this.entityType, other.entityType) + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.entityType, other.entityType) && java.util.Objects.equals(this.apiMetadatas, other.apiMetadatas) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -335,6 +374,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.entityType == null ? 43 : this.entityType.hashCode()); result = (result * PRIME) + (this.apiMetadatas == null ? 43 : this.apiMetadatas.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApproverDetail.java b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApproverDetail.java index fb7acc4c308..f165ebb65f5 100644 --- a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApproverDetail.java +++ b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApproverDetail.java @@ -22,6 +22,7 @@ public final class ApproverDetail extends com.oracle.bmc.http.internal.Explicitl @java.beans.ConstructorProperties({ "approverId", "approvalAction", + "approverGroupLevel", "approvalComment", "timeOfAuthorization", "timeApprovedForAccess" @@ -29,12 +30,14 @@ public final class ApproverDetail extends com.oracle.bmc.http.internal.Explicitl public ApproverDetail( String approverId, String approvalAction, + Integer approverGroupLevel, String approvalComment, java.util.Date timeOfAuthorization, java.util.Date timeApprovedForAccess) { super(); this.approverId = approverId; this.approvalAction = approvalAction; + this.approverGroupLevel = approverGroupLevel; this.approvalComment = approvalComment; this.timeOfAuthorization = timeOfAuthorization; this.timeApprovedForAccess = timeApprovedForAccess; @@ -74,6 +77,22 @@ public Builder approvalAction(String approvalAction) { this.__explicitlySet__.add("approvalAction"); return this; } + /** + * The group level at which the approver approved. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("approverGroupLevel") + private Integer approverGroupLevel; + + /** + * The group level at which the approver approved. + * @param approverGroupLevel the value to set + * @return this builder + **/ + public Builder approverGroupLevel(Integer approverGroupLevel) { + this.approverGroupLevel = approverGroupLevel; + this.__explicitlySet__.add("approverGroupLevel"); + return this; + } /** * Comment specified by the approver of the request. **/ @@ -135,6 +154,7 @@ public ApproverDetail build() { new ApproverDetail( this.approverId, this.approvalAction, + this.approverGroupLevel, this.approvalComment, this.timeOfAuthorization, this.timeApprovedForAccess); @@ -152,6 +172,9 @@ public Builder copy(ApproverDetail model) { if (model.wasPropertyExplicitlySet("approvalAction")) { this.approvalAction(model.getApprovalAction()); } + if (model.wasPropertyExplicitlySet("approverGroupLevel")) { + this.approverGroupLevel(model.getApproverGroupLevel()); + } if (model.wasPropertyExplicitlySet("approvalComment")) { this.approvalComment(model.getApprovalComment()); } @@ -204,6 +227,20 @@ public String getApprovalAction() { return approvalAction; } + /** + * The group level at which the approver approved. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("approverGroupLevel") + private final Integer approverGroupLevel; + + /** + * The group level at which the approver approved. + * @return the value + **/ + public Integer getApproverGroupLevel() { + return approverGroupLevel; + } + /** * Comment specified by the approver of the request. **/ @@ -266,6 +303,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("approverId=").append(String.valueOf(this.approverId)); sb.append(", approvalAction=").append(String.valueOf(this.approvalAction)); + sb.append(", approverGroupLevel=").append(String.valueOf(this.approverGroupLevel)); sb.append(", approvalComment=").append(String.valueOf(this.approvalComment)); sb.append(", timeOfAuthorization=").append(String.valueOf(this.timeOfAuthorization)); sb.append(", timeApprovedForAccess=").append(String.valueOf(this.timeApprovedForAccess)); @@ -285,6 +323,7 @@ public boolean equals(Object o) { ApproverDetail other = (ApproverDetail) o; return java.util.Objects.equals(this.approverId, other.approverId) && java.util.Objects.equals(this.approvalAction, other.approvalAction) + && java.util.Objects.equals(this.approverGroupLevel, other.approverGroupLevel) && java.util.Objects.equals(this.approvalComment, other.approvalComment) && java.util.Objects.equals(this.timeOfAuthorization, other.timeOfAuthorization) && java.util.Objects.equals(this.timeApprovedForAccess, other.timeApprovedForAccess) @@ -299,6 +338,11 @@ public int hashCode() { result = (result * PRIME) + (this.approvalAction == null ? 43 : this.approvalAction.hashCode()); + result = + (result * PRIME) + + (this.approverGroupLevel == null + ? 43 + : this.approverGroupLevel.hashCode()); result = (result * PRIME) + (this.approvalComment == null ? 43 : this.approvalComment.hashCode()); diff --git a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApproverGroupLevel.java b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApproverGroupLevel.java new file mode 100644 index 00000000000..e7f14235bbe --- /dev/null +++ b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/ApproverGroupLevel.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apiaccesscontrol.model; + +/** + * It represents the group level detail for authorization + *
+ * 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: 20241130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ApproverGroupLevel.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ApproverGroupLevel extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"groupId", "groupLevel"}) + public ApproverGroupLevel(java.util.List groupId, Integer groupLevel) { + super(); + this.groupId = groupId; + this.groupLevel = groupLevel; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * id of the group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("groupId") + private java.util.List groupId; + + /** + * id of the group. + * @param groupId the value to set + * @return this builder + **/ + public Builder groupId(java.util.List groupId) { + this.groupId = groupId; + this.__explicitlySet__.add("groupId"); + return this; + } + /** + * level of the group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("groupLevel") + private Integer groupLevel; + + /** + * level of the group. + * @param groupLevel the value to set + * @return this builder + **/ + public Builder groupLevel(Integer groupLevel) { + this.groupLevel = groupLevel; + this.__explicitlySet__.add("groupLevel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ApproverGroupLevel build() { + ApproverGroupLevel model = new ApproverGroupLevel(this.groupId, this.groupLevel); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ApproverGroupLevel model) { + if (model.wasPropertyExplicitlySet("groupId")) { + this.groupId(model.getGroupId()); + } + if (model.wasPropertyExplicitlySet("groupLevel")) { + this.groupLevel(model.getGroupLevel()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * id of the group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("groupId") + private final java.util.List groupId; + + /** + * id of the group. + * @return the value + **/ + public java.util.List getGroupId() { + return groupId; + } + + /** + * level of the group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("groupLevel") + private final Integer groupLevel; + + /** + * level of the group. + * @return the value + **/ + public Integer getGroupLevel() { + return groupLevel; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ApproverGroupLevel("); + sb.append("super=").append(super.toString()); + sb.append("groupId=").append(String.valueOf(this.groupId)); + sb.append(", groupLevel=").append(String.valueOf(this.groupLevel)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ApproverGroupLevel)) { + return false; + } + + ApproverGroupLevel other = (ApproverGroupLevel) o; + return java.util.Objects.equals(this.groupId, other.groupId) + && java.util.Objects.equals(this.groupLevel, other.groupLevel) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.groupId == null ? 43 : this.groupId.hashCode()); + result = (result * PRIME) + (this.groupLevel == null ? 43 : this.groupLevel.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/CreatePrivilegedApiControlDetails.java b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/CreatePrivilegedApiControlDetails.java index 5ddc7e51d48..1cec847f3fe 100644 --- a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/CreatePrivilegedApiControlDetails.java +++ b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/CreatePrivilegedApiControlDetails.java @@ -28,6 +28,7 @@ public final class CreatePrivilegedApiControlDetails "compartmentId", "notificationTopicId", "approverGroupIdList", + "approverGroupLevelList", "privilegedOperationList", "resourceType", "resources", @@ -41,6 +42,7 @@ public CreatePrivilegedApiControlDetails( String compartmentId, String notificationTopicId, java.util.List approverGroupIdList, + java.util.List approverGroupLevelList, java.util.List privilegedOperationList, String resourceType, java.util.List resources, @@ -53,6 +55,7 @@ public CreatePrivilegedApiControlDetails( this.compartmentId = compartmentId; this.notificationTopicId = notificationTopicId; this.approverGroupIdList = approverGroupIdList; + this.approverGroupLevelList = approverGroupLevelList; this.privilegedOperationList = privilegedOperationList; this.resourceType = resourceType; this.resources = resources; @@ -114,13 +117,13 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * The OCID of the OCI Notification topic to publish messages related to this Delegation Control. + * The OCID of the OCI Notification topic to publish messages related to this Privileged Api Control. **/ @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") private String notificationTopicId; /** - * The OCID of the OCI Notification topic to publish messages related to this Delegation Control. + * The OCID of the OCI Notification topic to publish messages related to this Privileged Api Control. * @param notificationTopicId the value to set * @return this builder **/ @@ -145,6 +148,23 @@ public Builder approverGroupIdList(java.util.List approverGroupIdList) { this.__explicitlySet__.add("approverGroupIdList"); return this; } + /** + * List of Group containing the levels at which the users belonging to the group can authorize. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("approverGroupLevelList") + private java.util.List approverGroupLevelList; + + /** + * List of Group containing the levels at which the users belonging to the group can authorize. + * @param approverGroupLevelList the value to set + * @return this builder + **/ + public Builder approverGroupLevelList( + java.util.List approverGroupLevelList) { + this.approverGroupLevelList = approverGroupLevelList; + this.__explicitlySet__.add("approverGroupLevelList"); + return this; + } /** * List of privileged operator operations. If Privileged API Managment is enabled for a resource it will be validated whether the operation done by the operator is a part of privileged operation. * @@ -273,6 +293,7 @@ public CreatePrivilegedApiControlDetails build() { this.compartmentId, this.notificationTopicId, this.approverGroupIdList, + this.approverGroupLevelList, this.privilegedOperationList, this.resourceType, this.resources, @@ -302,6 +323,9 @@ public Builder copy(CreatePrivilegedApiControlDetails model) { if (model.wasPropertyExplicitlySet("approverGroupIdList")) { this.approverGroupIdList(model.getApproverGroupIdList()); } + if (model.wasPropertyExplicitlySet("approverGroupLevelList")) { + this.approverGroupLevelList(model.getApproverGroupLevelList()); + } if (model.wasPropertyExplicitlySet("privilegedOperationList")) { this.privilegedOperationList(model.getPrivilegedOperationList()); } @@ -380,13 +404,13 @@ public String getCompartmentId() { } /** - * The OCID of the OCI Notification topic to publish messages related to this Delegation Control. + * The OCID of the OCI Notification topic to publish messages related to this Privileged Api Control. **/ @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") private final String notificationTopicId; /** - * The OCID of the OCI Notification topic to publish messages related to this Delegation Control. + * The OCID of the OCI Notification topic to publish messages related to this Privileged Api Control. * @return the value **/ public String getNotificationTopicId() { @@ -407,6 +431,20 @@ public java.util.List getApproverGroupIdList() { return approverGroupIdList; } + /** + * List of Group containing the levels at which the users belonging to the group can authorize. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("approverGroupLevelList") + private final java.util.List approverGroupLevelList; + + /** + * List of Group containing the levels at which the users belonging to the group can authorize. + * @return the value + **/ + public java.util.List getApproverGroupLevelList() { + return approverGroupLevelList; + } + /** * List of privileged operator operations. If Privileged API Managment is enabled for a resource it will be validated whether the operation done by the operator is a part of privileged operation. * @@ -528,6 +566,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", notificationTopicId=").append(String.valueOf(this.notificationTopicId)); sb.append(", approverGroupIdList=").append(String.valueOf(this.approverGroupIdList)); + sb.append(", approverGroupLevelList=").append(String.valueOf(this.approverGroupLevelList)); sb.append(", privilegedOperationList=") .append(String.valueOf(this.privilegedOperationList)); sb.append(", resourceType=").append(String.valueOf(this.resourceType)); @@ -554,6 +593,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.notificationTopicId, other.notificationTopicId) && java.util.Objects.equals(this.approverGroupIdList, other.approverGroupIdList) + && java.util.Objects.equals( + this.approverGroupLevelList, other.approverGroupLevelList) && java.util.Objects.equals( this.privilegedOperationList, other.privilegedOperationList) && java.util.Objects.equals(this.resourceType, other.resourceType) @@ -583,6 +624,11 @@ public int hashCode() { + (this.approverGroupIdList == null ? 43 : this.approverGroupIdList.hashCode()); + result = + (result * PRIME) + + (this.approverGroupLevelList == null + ? 43 + : this.approverGroupLevelList.hashCode()); result = (result * PRIME) + (this.privilegedOperationList == null diff --git a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/PrivilegedApiControl.java b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/PrivilegedApiControl.java index e100864d9fc..29ff2a3f152 100644 --- a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/PrivilegedApiControl.java +++ b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/PrivilegedApiControl.java @@ -33,6 +33,7 @@ public final class PrivilegedApiControl extends com.oracle.bmc.http.internal.Exp "description", "notificationTopicId", "approverGroupIdList", + "approverGroupLevelList", "resourceType", "resources", "privilegedOperationList", @@ -55,6 +56,7 @@ public PrivilegedApiControl( String description, String notificationTopicId, java.util.List approverGroupIdList, + java.util.List approverGroupLevelList, String resourceType, java.util.List resources, java.util.List privilegedOperationList, @@ -76,6 +78,7 @@ public PrivilegedApiControl( this.description = description; this.notificationTopicId = notificationTopicId; this.approverGroupIdList = approverGroupIdList; + this.approverGroupLevelList = approverGroupLevelList; this.resourceType = resourceType; this.resources = resources; this.privilegedOperationList = privilegedOperationList; @@ -190,6 +193,23 @@ public Builder approverGroupIdList(java.util.List approverGroupIdList) { this.__explicitlySet__.add("approverGroupIdList"); return this; } + /** + * List of Group containing the levels at which the users belonging to the group can authorize. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("approverGroupLevelList") + private java.util.List approverGroupLevelList; + + /** + * List of Group containing the levels at which the users belonging to the group can authorize. + * @param approverGroupLevelList the value to set + * @return this builder + **/ + public Builder approverGroupLevelList( + java.util.List approverGroupLevelList) { + this.approverGroupLevelList = approverGroupLevelList; + this.__explicitlySet__.add("approverGroupLevelList"); + return this; + } /** * resourceType for which the PrivilegedApiControl is applicable **/ @@ -259,7 +279,6 @@ public Builder numberOfApprovers(Integer numberOfApprovers) { } /** * The date and time the PrivilegedApiControl was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). - *

* Example: {@code 2016-08-25T21:10:29.600Z} * **/ @@ -268,7 +287,6 @@ public Builder numberOfApprovers(Integer numberOfApprovers) { /** * The date and time the PrivilegedApiControl was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). - *

* Example: {@code 2016-08-25T21:10:29.600Z} * * @param timeCreated the value to set @@ -479,6 +497,7 @@ public PrivilegedApiControl build() { this.description, this.notificationTopicId, this.approverGroupIdList, + this.approverGroupLevelList, this.resourceType, this.resources, this.privilegedOperationList, @@ -519,6 +538,9 @@ public Builder copy(PrivilegedApiControl model) { if (model.wasPropertyExplicitlySet("approverGroupIdList")) { this.approverGroupIdList(model.getApproverGroupIdList()); } + if (model.wasPropertyExplicitlySet("approverGroupLevelList")) { + this.approverGroupLevelList(model.getApproverGroupLevelList()); + } if (model.wasPropertyExplicitlySet("resourceType")) { this.resourceType(model.getResourceType()); } @@ -660,6 +682,20 @@ public java.util.List getApproverGroupIdList() { return approverGroupIdList; } + /** + * List of Group containing the levels at which the users belonging to the group can authorize. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("approverGroupLevelList") + private final java.util.List approverGroupLevelList; + + /** + * List of Group containing the levels at which the users belonging to the group can authorize. + * @return the value + **/ + public java.util.List getApproverGroupLevelList() { + return approverGroupLevelList; + } + /** * resourceType for which the PrivilegedApiControl is applicable **/ @@ -720,7 +756,6 @@ public Integer getNumberOfApprovers() { /** * The date and time the PrivilegedApiControl was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). - *

* Example: {@code 2016-08-25T21:10:29.600Z} * **/ @@ -729,7 +764,6 @@ public Integer getNumberOfApprovers() { /** * The date and time the PrivilegedApiControl was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). - *

* Example: {@code 2016-08-25T21:10:29.600Z} * * @return the value @@ -979,6 +1013,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", notificationTopicId=").append(String.valueOf(this.notificationTopicId)); sb.append(", approverGroupIdList=").append(String.valueOf(this.approverGroupIdList)); + sb.append(", approverGroupLevelList=").append(String.valueOf(this.approverGroupLevelList)); sb.append(", resourceType=").append(String.valueOf(this.resourceType)); sb.append(", resources=").append(String.valueOf(this.resources)); sb.append(", privilegedOperationList=") @@ -1014,6 +1049,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.notificationTopicId, other.notificationTopicId) && java.util.Objects.equals(this.approverGroupIdList, other.approverGroupIdList) + && java.util.Objects.equals( + this.approverGroupLevelList, other.approverGroupLevelList) && java.util.Objects.equals(this.resourceType, other.resourceType) && java.util.Objects.equals(this.resources, other.resources) && java.util.Objects.equals( @@ -1052,6 +1089,11 @@ public int hashCode() { + (this.approverGroupIdList == null ? 43 : this.approverGroupIdList.hashCode()); + result = + (result * PRIME) + + (this.approverGroupLevelList == null + ? 43 + : this.approverGroupLevelList.hashCode()); result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); result = diff --git a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/PrivilegedApiControlSummary.java b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/PrivilegedApiControlSummary.java index 839b2a20b78..bc817c398bc 100644 --- a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/PrivilegedApiControlSummary.java +++ b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/PrivilegedApiControlSummary.java @@ -171,7 +171,6 @@ public Builder timeCreated(java.util.Date timeCreated) { } /** * The date and time the PrivilegedApiControl was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). - *

* Example: {@code 2016-08-25T21:10:29.600Z} * **/ @@ -180,7 +179,6 @@ public Builder timeCreated(java.util.Date timeCreated) { /** * The date and time the PrivilegedApiControl was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). - *

* Example: {@code 2016-08-25T21:10:29.600Z} * * @param timeUpdated the value to set @@ -488,7 +486,6 @@ public java.util.Date getTimeCreated() { /** * The date and time the PrivilegedApiControl was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). - *

* Example: {@code 2016-08-25T21:10:29.600Z} * **/ @@ -497,7 +494,6 @@ public java.util.Date getTimeCreated() { /** * The date and time the PrivilegedApiControl was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). - *

* Example: {@code 2016-08-25T21:10:29.600Z} * * @return the value diff --git a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/UpdatePrivilegedApiControlDetails.java b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/UpdatePrivilegedApiControlDetails.java index f48373778cb..fe4c0a44762 100644 --- a/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/UpdatePrivilegedApiControlDetails.java +++ b/bmc-apiaccesscontrol/src/main/java/com/oracle/bmc/apiaccesscontrol/model/UpdatePrivilegedApiControlDetails.java @@ -29,6 +29,7 @@ public final class UpdatePrivilegedApiControlDetails "resources", "notificationTopicId", "approverGroupIdList", + "approverGroupLevelList", "privilegedOperationList", "numberOfApprovers", "freeformTags", @@ -41,6 +42,7 @@ public UpdatePrivilegedApiControlDetails( java.util.List resources, String notificationTopicId, java.util.List approverGroupIdList, + java.util.List approverGroupLevelList, java.util.List privilegedOperationList, Integer numberOfApprovers, java.util.Map freeformTags, @@ -52,6 +54,7 @@ public UpdatePrivilegedApiControlDetails( this.resources = resources; this.notificationTopicId = notificationTopicId; this.approverGroupIdList = approverGroupIdList; + this.approverGroupLevelList = approverGroupLevelList; this.privilegedOperationList = privilegedOperationList; this.numberOfApprovers = numberOfApprovers; this.freeformTags = freeformTags; @@ -125,13 +128,13 @@ public Builder resources(java.util.List resources) { return this; } /** - * The OCID of the OCI Notification topic to publish messages related to this Delegation Control. + * The OCID of the OCI Notification topic to publish messages related to this Privileged Api Control. **/ @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") private String notificationTopicId; /** - * The OCID of the OCI Notification topic to publish messages related to this Delegation Control. + * The OCID of the OCI Notification topic to publish messages related to this Privileged Api Control. * @param notificationTopicId the value to set * @return this builder **/ @@ -156,6 +159,23 @@ public Builder approverGroupIdList(java.util.List approverGroupIdList) { this.__explicitlySet__.add("approverGroupIdList"); return this; } + /** + * List of Group containing the levels at which the users belonging to the group can authorize. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("approverGroupLevelList") + private java.util.List approverGroupLevelList; + + /** + * List of Group containing the levels at which the users belonging to the group can authorize. + * @param approverGroupLevelList the value to set + * @return this builder + **/ + public Builder approverGroupLevelList( + java.util.List approverGroupLevelList) { + this.approverGroupLevelList = approverGroupLevelList; + this.__explicitlySet__.add("approverGroupLevelList"); + return this; + } /** * List of privileged operator operations. If Privileged API Managment is enabled for a resource it will be validated whether the operation done by the operator is a part of privileged operation. * @@ -253,6 +273,7 @@ public UpdatePrivilegedApiControlDetails build() { this.resources, this.notificationTopicId, this.approverGroupIdList, + this.approverGroupLevelList, this.privilegedOperationList, this.numberOfApprovers, this.freeformTags, @@ -283,6 +304,9 @@ public Builder copy(UpdatePrivilegedApiControlDetails model) { if (model.wasPropertyExplicitlySet("approverGroupIdList")) { this.approverGroupIdList(model.getApproverGroupIdList()); } + if (model.wasPropertyExplicitlySet("approverGroupLevelList")) { + this.approverGroupLevelList(model.getApproverGroupLevelList()); + } if (model.wasPropertyExplicitlySet("privilegedOperationList")) { this.privilegedOperationList(model.getPrivilegedOperationList()); } @@ -367,13 +391,13 @@ public java.util.List getResources() { } /** - * The OCID of the OCI Notification topic to publish messages related to this Delegation Control. + * The OCID of the OCI Notification topic to publish messages related to this Privileged Api Control. **/ @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") private final String notificationTopicId; /** - * The OCID of the OCI Notification topic to publish messages related to this Delegation Control. + * The OCID of the OCI Notification topic to publish messages related to this Privileged Api Control. * @return the value **/ public String getNotificationTopicId() { @@ -394,6 +418,20 @@ public java.util.List getApproverGroupIdList() { return approverGroupIdList; } + /** + * List of Group containing the levels at which the users belonging to the group can authorize. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("approverGroupLevelList") + private final java.util.List approverGroupLevelList; + + /** + * List of Group containing the levels at which the users belonging to the group can authorize. + * @return the value + **/ + public java.util.List getApproverGroupLevelList() { + return approverGroupLevelList; + } + /** * List of privileged operator operations. If Privileged API Managment is enabled for a resource it will be validated whether the operation done by the operator is a part of privileged operation. * @@ -488,6 +526,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", resources=").append(String.valueOf(this.resources)); sb.append(", notificationTopicId=").append(String.valueOf(this.notificationTopicId)); sb.append(", approverGroupIdList=").append(String.valueOf(this.approverGroupIdList)); + sb.append(", approverGroupLevelList=").append(String.valueOf(this.approverGroupLevelList)); sb.append(", privilegedOperationList=") .append(String.valueOf(this.privilegedOperationList)); sb.append(", numberOfApprovers=").append(String.valueOf(this.numberOfApprovers)); @@ -513,6 +552,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.resources, other.resources) && java.util.Objects.equals(this.notificationTopicId, other.notificationTopicId) && java.util.Objects.equals(this.approverGroupIdList, other.approverGroupIdList) + && java.util.Objects.equals( + this.approverGroupLevelList, other.approverGroupLevelList) && java.util.Objects.equals( this.privilegedOperationList, other.privilegedOperationList) && java.util.Objects.equals(this.numberOfApprovers, other.numberOfApprovers) @@ -539,6 +580,11 @@ public int hashCode() { + (this.approverGroupIdList == null ? 43 : this.approverGroupIdList.hashCode()); + result = + (result * PRIME) + + (this.approverGroupLevelList == null + ? 43 + : this.approverGroupLevelList.hashCode()); result = (result * PRIME) + (this.privilegedOperationList == null diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index ccc18e47d91..6c03fcb4c1c 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-apigateway @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/internal/http/UpdateSdkConverter.java b/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/internal/http/UpdateSdkConverter.java index 384c750fa51..8d31f4e2d58 100644 --- a/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/internal/http/UpdateSdkConverter.java +++ b/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/internal/http/UpdateSdkConverter.java @@ -91,18 +91,23 @@ public com.oracle.bmc.apigateway.responses.UpdateSdkResponse apply( "Transform function invoked for com.oracle.bmc.apigateway.responses.UpdateSdkResponse"); final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.apigateway.model.Sdk>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.apigateway.model.Sdk.class, serviceDetails.get()); } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.apigateway.model.Sdk.class); } - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.apigateway.model.Sdk> + response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); @@ -113,6 +118,17 @@ public com.oracle.bmc.apigateway.responses.UpdateSdkResponse apply( .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); + builder.sdk(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "opc-request-id"); diff --git a/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/model/ApiSpecificationRouteBackend.java b/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/model/ApiSpecificationRouteBackend.java index b2e2833224a..fc98f08515f 100644 --- a/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/model/ApiSpecificationRouteBackend.java +++ b/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/model/ApiSpecificationRouteBackend.java @@ -39,6 +39,10 @@ value = StockResponseBackend.class, name = "STOCK_RESPONSE_BACKEND" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OAuth2LoginBackend.class, + name = "OAUTH2_LOGIN_BACKEND" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = DynamicRoutingBackend.class, name = "DYNAMIC_ROUTING_BACKEND" @@ -101,6 +105,7 @@ public enum Type { StockResponseBackend("STOCK_RESPONSE_BACKEND"), DynamicRoutingBackend("DYNAMIC_ROUTING_BACKEND"), Oauth2LogoutBackend("OAUTH2_LOGOUT_BACKEND"), + Oauth2LoginBackend("OAUTH2_LOGIN_BACKEND"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/model/OAuth2LoginBackend.java b/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/model/OAuth2LoginBackend.java new file mode 100644 index 00000000000..11439f6ded0 --- /dev/null +++ b/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/model/OAuth2LoginBackend.java @@ -0,0 +1,102 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apigateway.model; + +/** + * Backend which completes OAuth2/OIDC flow post redirection from Idp. + * + *
+ * 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: 20190501") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OAuth2LoginBackend.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OAuth2LoginBackend extends ApiSpecificationRouteBackend { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OAuth2LoginBackend build() { + OAuth2LoginBackend model = new OAuth2LoginBackend(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OAuth2LoginBackend model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OAuth2LoginBackend() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OAuth2LoginBackend("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OAuth2LoginBackend)) { + return false; + } + + OAuth2LoginBackend other = (OAuth2LoginBackend) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/model/OAuth2ResponseValidationFailurePolicy.java b/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/model/OAuth2ResponseValidationFailurePolicy.java index 95c310adc0d..846a8614203 100644 --- a/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/model/OAuth2ResponseValidationFailurePolicy.java +++ b/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/model/OAuth2ResponseValidationFailurePolicy.java @@ -184,6 +184,28 @@ public Builder logoutPath(String logoutPath) { this.__explicitlySet__.add("logoutPath"); return this; } + /** + * The path (relative to the deployment) where the Identity Provider + * will redirect the user after authentication. This path must match + * a route in the specification that uses the OAUTH2_LOGIN_BACKEND. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("loginPath") + private String loginPath; + + /** + * The path (relative to the deployment) where the Identity Provider + * will redirect the user after authentication. This path must match + * a route in the specification that uses the OAUTH2_LOGIN_BACKEND. + * + * @param loginPath the value to set + * @return this builder + **/ + public Builder loginPath(String loginPath) { + this.loginPath = loginPath; + this.__explicitlySet__.add("loginPath"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -200,7 +222,8 @@ public OAuth2ResponseValidationFailurePolicy build() { this.usePkce, this.responseType, this.fallbackRedirectPath, - this.logoutPath); + this.logoutPath, + this.loginPath); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -239,6 +262,9 @@ public Builder copy(OAuth2ResponseValidationFailurePolicy model) { if (model.wasPropertyExplicitlySet("logoutPath")) { this.logoutPath(model.getLogoutPath()); } + if (model.wasPropertyExplicitlySet("loginPath")) { + this.loginPath(model.getLoginPath()); + } return this; } } @@ -265,7 +291,8 @@ public OAuth2ResponseValidationFailurePolicy( Boolean usePkce, ResponseType responseType, String fallbackRedirectPath, - String logoutPath) { + String logoutPath, + String loginPath) { super(); this.clientDetails = clientDetails; this.sourceUriDetails = sourceUriDetails; @@ -277,6 +304,7 @@ public OAuth2ResponseValidationFailurePolicy( this.responseType = responseType; this.fallbackRedirectPath = fallbackRedirectPath; this.logoutPath = logoutPath; + this.loginPath = loginPath; } @com.fasterxml.jackson.annotation.JsonProperty("clientDetails") @@ -462,6 +490,26 @@ public String getLogoutPath() { return logoutPath; } + /** + * The path (relative to the deployment) where the Identity Provider + * will redirect the user after authentication. This path must match + * a route in the specification that uses the OAUTH2_LOGIN_BACKEND. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("loginPath") + private final String loginPath; + + /** + * The path (relative to the deployment) where the Identity Provider + * will redirect the user after authentication. This path must match + * a route in the specification that uses the OAUTH2_LOGIN_BACKEND. + * + * @return the value + **/ + public String getLoginPath() { + return loginPath; + } + @Override public String toString() { return this.toString(true); @@ -488,6 +536,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", responseType=").append(String.valueOf(this.responseType)); sb.append(", fallbackRedirectPath=").append(String.valueOf(this.fallbackRedirectPath)); sb.append(", logoutPath=").append(String.valueOf(this.logoutPath)); + sb.append(", loginPath=").append(String.valueOf(this.loginPath)); sb.append(")"); return sb.toString(); } @@ -514,6 +563,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.responseType, other.responseType) && java.util.Objects.equals(this.fallbackRedirectPath, other.fallbackRedirectPath) && java.util.Objects.equals(this.logoutPath, other.logoutPath) + && java.util.Objects.equals(this.loginPath, other.loginPath) && super.equals(other); } @@ -551,6 +601,7 @@ public int hashCode() { ? 43 : this.fallbackRedirectPath.hashCode()); result = (result * PRIME) + (this.logoutPath == null ? 43 : this.logoutPath.hashCode()); + result = (result * PRIME) + (this.loginPath == null ? 43 : this.loginPath.hashCode()); return result; } } diff --git a/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/responses/UpdateSdkResponse.java b/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/responses/UpdateSdkResponse.java index bdede9151ff..0516c159d4f 100644 --- a/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/responses/UpdateSdkResponse.java +++ b/bmc-apigateway/src/main/java/com/oracle/bmc/apigateway/responses/UpdateSdkResponse.java @@ -8,6 +8,21 @@ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190501") public class UpdateSdkResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + /** * Unique Oracle-assigned identifier for the request. If you need to * contact Oracle about a particular request, please provide the request @@ -27,13 +42,36 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + /** + * The returned Sdk instance. + */ + private com.oracle.bmc.apigateway.model.Sdk sdk; + + /** + * The returned Sdk instance. + * @return the value + */ + public com.oracle.bmc.apigateway.model.Sdk getSdk() { + return sdk; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "sdk" + }) private UpdateSdkResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId) { + String etag, + String opcRequestId, + com.oracle.bmc.apigateway.model.Sdk sdk) { super(__httpStatusCode__, headers); + this.etag = etag; this.opcRequestId = opcRequestId; + this.sdk = sdk; } public static class Builder { @@ -51,6 +89,23 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) return this; } + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + /** * Unique Oracle-assigned identifier for the request. If you need to * contact Oracle about a particular request, please provide the request @@ -72,6 +127,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * The returned Sdk instance. + */ + private com.oracle.bmc.apigateway.model.Sdk sdk; + + /** + * The returned Sdk instance. + * @param sdk the value to set + * @return this builder + */ + public Builder sdk(com.oracle.bmc.apigateway.model.Sdk sdk) { + this.sdk = sdk; + return this; + } + /** * Copy method to populate the builder with values from the given instance. * @return this builder instance @@ -79,7 +149,9 @@ public Builder opcRequestId(String opcRequestId) { public Builder copy(UpdateSdkResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); + etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); + sdk(o.getSdk()); return this; } @@ -89,7 +161,7 @@ public Builder copy(UpdateSdkResponse o) { * @return the response object */ public UpdateSdkResponse build() { - return new UpdateSdkResponse(__httpStatusCode__, headers, opcRequestId); + return new UpdateSdkResponse(__httpStatusCode__, headers, etag, opcRequestId, sdk); } } @@ -106,7 +178,9 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",sdk=").append(String.valueOf(sdk)); sb.append(")"); return sb.toString(); } @@ -121,14 +195,19 @@ public boolean equals(Object o) { } UpdateSdkResponse other = (UpdateSdkResponse) o; - return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.sdk, other.sdk); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.sdk == null ? 43 : this.sdk.hashCode()); return result; } } diff --git a/bmc-apiplatform/pom.xml b/bmc-apiplatform/pom.xml index f5dbc625549..7abbd279460 100644 --- a/bmc-apiplatform/pom.xml +++ b/bmc-apiplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-apiplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index dabc97052c9..797d67bd881 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-apmconfig @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/Config.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/Config.java index 350e8e0e66a..efe43fccf00 100644 --- a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/Config.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/Config.java @@ -97,6 +97,19 @@ public interface Config extends AutoCloseable { */ DeleteConfigResponse deleteConfig(DeleteConfigRequest request); + /** + * Removes the data file. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteDataFile API. + */ + DeleteDataFileResponse deleteDataFile(DeleteDataFileRequest request); + /** * Exports configurations for the whole domain by domainId. * @param request The request object containing the details to send @@ -121,6 +134,19 @@ public interface Config extends AutoCloseable { */ GetConfigResponse getConfig(GetConfigRequest request); + /** + * Retrieves the Data file with the specified name and type. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetDataFile API. + */ + GetDataFileResponse getDataFile(GetDataFileRequest request); + /** * The domain-wide agents matching attribute key. * @param request The request object containing the details to send @@ -134,6 +160,19 @@ public interface Config extends AutoCloseable { GetMatchAgentsWithAttributeKeyResponse getMatchAgentsWithAttributeKey( GetMatchAgentsWithAttributeKeyRequest request); + /** + * Returns metadata about the datafile. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use HeadDataFile API. + */ + HeadDataFileResponse headDataFile(HeadDataFileRequest request); + /** * Import configurations Item(s) with its dependencies into a destination domain. * @param request The request object containing the details to send @@ -158,6 +197,59 @@ GetMatchAgentsWithAttributeKeyResponse getMatchAgentsWithAttributeKey( */ ListConfigsResponse listConfigs(ListConfigsRequest request); + /** + * Fetches a list of Data files using some parameters. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDataFiles API. + */ + ListDataFilesResponse listDataFiles(ListDataFilesRequest request); + + /** + * Creates a new data file or replaces an existing one with the same name and type. + * + * + * 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. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use PutDataFile API. + */ + PutDataFileResponse putDataFile(PutDataFileRequest request); + /** * Returns all metrics associated with the specified namespace. * @param request The request object containing the details to send diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsync.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsync.java index b6d628e3a5e..dd237b95e22 100644 --- a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsync.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsync.java @@ -106,6 +106,22 @@ java.util.concurrent.Future deleteConfig( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Removes the data file. + * + * + * @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 deleteDataFile( + DeleteDataFileRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Exports configurations for the whole domain by domainId. * @@ -136,6 +152,21 @@ java.util.concurrent.Future getConfig( GetConfigRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Retrieves the Data file with the specified name and type. + * + * + * @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 getDataFile( + GetDataFileRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * The domain-wide agents matching attribute key. * @@ -154,6 +185,22 @@ java.util.concurrent.Future getConfig( GetMatchAgentsWithAttributeKeyResponse> handler); + /** + * Returns metadata about the datafile. + * + * + * @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 headDataFile( + HeadDataFileRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Import configurations Item(s) with its dependencies into a destination domain. * @@ -184,6 +231,37 @@ java.util.concurrent.Future listConfigs( ListConfigsRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Fetches a list of Data files using some parameters. + * + * + * @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 listDataFiles( + ListDataFilesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Creates a new data file or replaces an existing one with the same name and type. + * + * + * @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 putDataFile( + PutDataFileRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Returns all metrics associated with the specified namespace. * diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsyncClient.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsyncClient.java index 1e7609b5159..aa6f3e89859 100644 --- a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsyncClient.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsyncClient.java @@ -307,6 +307,11 @@ public ConfigAsyncClient( if (endpoint != null) { setEndpoint(endpoint); } + if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.http.ApacheUtils.getStreamWarningMessage( + "ConfigAsyncClient", "getDataFile")); + } } /** @@ -615,6 +620,52 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future deleteDataFile( + DeleteDataFileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDataFileRequest, DeleteDataFileResponse> + handler) { + LOG.trace("Called async deleteDataFile"); + final DeleteDataFileRequest interceptedRequest = + DeleteDataFileConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDataFileConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Config", + "DeleteDataFile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/DeleteDataFile"); + final java.util.function.Function + transformer = + DeleteDataFileConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteDataFileRequest, DeleteDataFileResponse>, + 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< + DeleteDataFileRequest, DeleteDataFileResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future exportConfiguration( ExportConfigurationRequest request, @@ -710,6 +761,51 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getDataFile( + GetDataFileRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getDataFile"); + final GetDataFileRequest interceptedRequest = + GetDataFileConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDataFileConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Config", + "GetDataFile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/GetDataFile"); + final java.util.function.Function + transformer = + GetDataFileConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDataFileRequest, GetDataFileResponse>, + 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< + GetDataFileRequest, GetDataFileResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getMatchAgentsWithAttributeKey( @@ -762,6 +858,51 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future headDataFile( + HeadDataFileRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async headDataFile"); + final HeadDataFileRequest interceptedRequest = + HeadDataFileConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + HeadDataFileConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Config", + "HeadDataFile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/HeadDataFile"); + final java.util.function.Function + transformer = + HeadDataFileConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + HeadDataFileRequest, HeadDataFileResponse>, + java.util.concurrent.Future> + futureSupplier = client.headFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + HeadDataFileRequest, HeadDataFileResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future importConfiguration( ImportConfigurationRequest request, @@ -859,6 +1000,117 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listDataFiles( + ListDataFilesRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listDataFiles"); + final ListDataFilesRequest interceptedRequest = + ListDataFilesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataFilesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Config", + "ListDataFiles", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFileSummaryCollection/ListDataFiles"); + final java.util.function.Function + transformer = + ListDataFilesConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDataFilesRequest, ListDataFilesResponse>, + 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< + ListDataFilesRequest, ListDataFilesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future putDataFile( + PutDataFileRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async putDataFile"); + if (request.getRetryConfiguration() != null + || authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + request = + com.oracle.bmc.retrier.Retriers.wrapBodyInputStreamIfNecessary( + request, PutDataFileRequest.builder()); + } + final PutDataFileRequest interceptedRequest = + PutDataFileConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PutDataFileConverter.fromRequest(client, interceptedRequest); + + ib.property( + com.oracle.bmc.http.internal.AuthnClientFilter.SIGNING_STRATEGY_PROPERTY_NAME, + com.oracle.bmc.http.signing.SigningStrategy.EXCLUDE_BODY); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Config", + "PutDataFile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/PutDataFile"); + final java.util.function.Function + transformer = + PutDataFileConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = + new com.oracle.bmc.responses.internal.StreamClosingAsyncHandler<>(handler); + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + PutDataFileRequest, PutDataFileResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getPutDataFileBody(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + PutDataFileRequest, PutDataFileResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() { + LOG.debug("Resetting stream"); + com.oracle.bmc.retrier.Retriers.tryResetStreamForRetry( + interceptedRequest.getPutDataFileBody(), true); + } + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future retrieveNamespaceMetrics( RetrieveNamespaceMetricsRequest request, diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigClient.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigClient.java index 89a0532ed49..f8209159972 100644 --- a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigClient.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigClient.java @@ -323,6 +323,11 @@ protected ConfigClient( if (endpoint != null) { setEndpoint(endpoint); } + if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.http.ApacheUtils.getStreamWarningMessage( + "ConfigClient", "getDataFile")); + } } /** @@ -602,6 +607,43 @@ public DeleteConfigResponse deleteConfig(DeleteConfigRequest request) { }); } + @Override + public DeleteDataFileResponse deleteDataFile(DeleteDataFileRequest request) { + LOG.trace("Called deleteDataFile"); + final DeleteDataFileRequest interceptedRequest = + DeleteDataFileConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDataFileConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Config", + "DeleteDataFile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/DeleteDataFile"); + java.util.function.Function transformer = + DeleteDataFileConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ExportConfigurationResponse exportConfiguration(ExportConfigurationRequest request) { LOG.trace("Called exportConfiguration"); @@ -678,6 +720,42 @@ public GetConfigResponse getConfig(GetConfigRequest request) { }); } + @Override + public GetDataFileResponse getDataFile(GetDataFileRequest request) { + LOG.trace("Called getDataFile"); + final GetDataFileRequest interceptedRequest = + GetDataFileConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDataFileConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Config", + "GetDataFile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/GetDataFile"); + java.util.function.Function transformer = + GetDataFileConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetMatchAgentsWithAttributeKeyResponse getMatchAgentsWithAttributeKey( GetMatchAgentsWithAttributeKeyRequest request) { @@ -717,6 +795,43 @@ public GetMatchAgentsWithAttributeKeyResponse getMatchAgentsWithAttributeKey( }); } + @Override + public HeadDataFileResponse headDataFile(HeadDataFileRequest request) { + LOG.trace("Called headDataFile"); + final HeadDataFileRequest interceptedRequest = + HeadDataFileConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + HeadDataFileConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Config", + "HeadDataFile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/HeadDataFile"); + java.util.function.Function transformer = + HeadDataFileConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.head(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ImportConfigurationResponse importConfiguration(ImportConfigurationRequest request) { LOG.trace("Called importConfiguration"); @@ -794,6 +909,118 @@ public ListConfigsResponse listConfigs(ListConfigsRequest request) { }); } + @Override + public ListDataFilesResponse listDataFiles(ListDataFilesRequest request) { + LOG.trace("Called listDataFiles"); + final ListDataFilesRequest interceptedRequest = + ListDataFilesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataFilesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Config", + "ListDataFiles", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFileSummaryCollection/ListDataFiles"); + java.util.function.Function transformer = + ListDataFilesConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public PutDataFileResponse putDataFile(PutDataFileRequest request) { + LOG.trace("Called putDataFile"); + try { + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + request.getRetryConfiguration(), retryConfiguration, true); + if (request.getRetryConfiguration() != null + || retryConfiguration != null + || shouldRetryBecauseOfWaiterConfiguration(retrier) + || authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + request = + com.oracle.bmc.retrier.Retriers.wrapBodyInputStreamIfNecessary( + request, PutDataFileRequest.builder()); + } + final PutDataFileRequest interceptedRequest = + PutDataFileConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PutDataFileConverter.fromRequest(client, interceptedRequest); + + ib.property( + com.oracle.bmc.http.internal.AuthnClientFilter.SIGNING_STRATEGY_PROPERTY_NAME, + com.oracle.bmc.http.signing.SigningStrategy.EXCLUDE_BODY); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Config", + "PutDataFile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/PutDataFile"); + java.util.function.Function + transformer = + PutDataFileConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + try { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getPutDataFileBody(), + retriedRequest); + return transformer.apply(response); + } catch (RuntimeException e) { + if (interceptedRequest.getRetryConfiguration() != null + || retryConfiguration != null + || shouldRetryBecauseOfWaiterConfiguration(retrier) + || (e instanceof com.oracle.bmc.model.BmcException + && tokenRefreshRetrier + .getRetryCondition() + .shouldBeRetried( + (com.oracle.bmc.model + .BmcException) + e))) { + com.oracle.bmc.retrier.Retriers.tryResetStreamForRetry( + interceptedRequest.getPutDataFileBody(), true); + } + throw e; // rethrow + } + }); + }); + } finally { + com.oracle.bmc.io.internal.KeepOpenInputStream.closeStream( + request.getPutDataFileBody()); + } + } + @Override public RetrieveNamespaceMetricsResponse retrieveNamespaceMetrics( RetrieveNamespaceMetricsRequest request) { @@ -1042,4 +1269,30 @@ public ValidateSpanFilterPatternResponse validateSpanFilterPattern( public ConfigPaginators getPaginators() { return paginators; } + + private static boolean shouldRetryBecauseOfWaiterConfiguration( + com.oracle.bmc.retrier.BmcGenericRetrier retrier) { + boolean hasTerminationStrategy = false; + boolean isMaxAttemptsTerminationStrategy = false; + if (retrier.getWaiter() != null && retrier.getWaiter().getWaiterConfiguration() != null) { + hasTerminationStrategy = + retrier.getWaiter().getWaiterConfiguration().getTerminationStrategy() != null; + if (hasTerminationStrategy) { + isMaxAttemptsTerminationStrategy = + retrier.getWaiter().getWaiterConfiguration().getTerminationStrategy() + instanceof com.oracle.bmc.waiter.MaxAttemptsTerminationStrategy; + } + } + final boolean shouldRetry = + hasTerminationStrategy + && (!isMaxAttemptsTerminationStrategy + || isMaxAttemptsTerminationStrategy + && ((com.oracle.bmc.waiter.MaxAttemptsTerminationStrategy) + retrier.getWaiter() + .getWaiterConfiguration() + .getTerminationStrategy()) + .getMaxAttempts() + > 1); + return shouldRetry; + } } diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigPaginators.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigPaginators.java index c110e83fd08..56fc1b38414 100644 --- a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigPaginators.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigPaginators.java @@ -142,4 +142,114 @@ public java.util.List apply( } }); } + + /** + * Creates a new iterable which will iterate over the responses received from the listDataFiles 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 listDataFilesResponseIterator( + final ListDataFilesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDataFilesRequest.Builder, ListDataFilesRequest, ListDataFilesResponse>( + new java.util.function.Supplier() { + @Override + public ListDataFilesRequest.Builder get() { + return ListDataFilesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDataFilesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataFilesRequest.Builder>, + ListDataFilesRequest>() { + @Override + public ListDataFilesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataFilesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListDataFilesResponse apply(ListDataFilesRequest request) { + return client.listDataFiles(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.apmconfig.model.DataFileSummary} objects + * contained in responses from the listDataFiles 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.apmconfig.model.DataFileSummary} objects + * contained in responses received from the service. + */ + public Iterable listDataFilesRecordIterator( + final ListDataFilesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDataFilesRequest.Builder, ListDataFilesRequest, ListDataFilesResponse, + com.oracle.bmc.apmconfig.model.DataFileSummary>( + new java.util.function.Supplier() { + @Override + public ListDataFilesRequest.Builder get() { + return ListDataFilesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDataFilesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataFilesRequest.Builder>, + ListDataFilesRequest>() { + @Override + public ListDataFilesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataFilesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListDataFilesResponse apply(ListDataFilesRequest request) { + return client.listDataFiles(request); + } + }, + new java.util.function.Function< + ListDataFilesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListDataFilesResponse response) { + return response.getDataFileSummaryCollection().getItems(); + } + }); + } } diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/DeleteDataFileConverter.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/DeleteDataFileConverter.java new file mode 100644 index 00000000000..0fb5f059183 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/DeleteDataFileConverter.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.apmconfig.model.*; +import com.oracle.bmc.apmconfig.requests.*; +import com.oracle.bmc.apmconfig.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class DeleteDataFileConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteDataFileConverter.class); + + public static com.oracle.bmc.apmconfig.requests.DeleteDataFileRequest interceptRequest( + com.oracle.bmc.apmconfig.requests.DeleteDataFileRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.apmconfig.requests.DeleteDataFileRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDataFileName(), "dataFileName must not be blank"); + Validate.notNull(request.getApmDomainId(), "apmDomainId is required"); + Validate.notNull(request.getApmType(), "apmType is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20210201") + .path("dataFiles") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataFileName())); + + target = + target.queryParam( + "apmDomainId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getApmDomainId())); + + target = + target.queryParam( + "apmType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getApmType())); + + 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.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcClientRequestId() != null) { + ib.header("opc-client-request-id", request.getOpcClientRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.DeleteDataFileResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.DeleteDataFileResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.DeleteDataFileResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.DeleteDataFileResponse>() { + @Override + public com.oracle.bmc.apmconfig.responses.DeleteDataFileResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.apmconfig.responses.DeleteDataFileResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.apmconfig.responses.DeleteDataFileResponse.Builder + builder = + com.oracle.bmc.apmconfig.responses + .DeleteDataFileResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> + opcClientRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils + .getHeadersWithName( + headers, "opc-client-request-id"); + if (opcClientRequestIdHeader.isPresent()) { + builder.opcClientRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-client-request-id", + opcClientRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.apmconfig.responses.DeleteDataFileResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/GetDataFileConverter.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/GetDataFileConverter.java new file mode 100644 index 00000000000..6260511f43b --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/GetDataFileConverter.java @@ -0,0 +1,257 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.internal.http; + +import com.oracle.bmc.apmconfig.model.*; +import com.oracle.bmc.apmconfig.requests.*; +import com.oracle.bmc.apmconfig.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class GetDataFileConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetDataFileConverter.class); + + public static com.oracle.bmc.apmconfig.requests.GetDataFileRequest interceptRequest( + com.oracle.bmc.apmconfig.requests.GetDataFileRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.apmconfig.requests.GetDataFileRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDataFileName(), "dataFileName must not be blank"); + Validate.notNull(request.getApmDomainId(), "apmDomainId is required"); + Validate.notNull(request.getApmType(), "apmType is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20210201") + .path("dataFiles") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataFileName())); + + target = + target.queryParam( + "apmDomainId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getApmDomainId())); + + target = + target.queryParam( + "apmType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getApmType())); + + 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.getOpcClientRequestId() != null) { + ib.header("opc-client-request-id", request.getOpcClientRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.GetDataFileResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.GetDataFileResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.GetDataFileResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.GetDataFileResponse>() { + @Override + public com.oracle.bmc.apmconfig.responses.GetDataFileResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.apmconfig.responses.GetDataFileResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.io.InputStream>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + java.io.InputStream.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + java.io.InputStream.class); + } + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.apmconfig.responses.GetDataFileResponse.Builder + builder = + com.oracle.bmc.apmconfig.responses + .GetDataFileResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.inputStream(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> + opcClientRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils + .getHeadersWithName( + headers, "opc-client-request-id"); + if (opcClientRequestIdHeader.isPresent()) { + builder.opcClientRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-client-request-id", + opcClientRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> contentTypeHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-type"); + if (contentTypeHeader.isPresent()) { + builder.contentType( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-type", + contentTypeHeader.get().get(0), + String.class)); + } + + java.util.Optional> contentLengthHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-length"); + if (contentLengthHeader.isPresent()) { + builder.contentLength( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-length", + contentLengthHeader.get().get(0), + Long.class)); + } + + java.util.Optional> contentMd5Header = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-md5"); + if (contentMd5Header.isPresent()) { + builder.contentMd5( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-md5", + contentMd5Header.get().get(0), + String.class)); + } + + java.util.Optional> contentEncodingHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-encoding"); + if (contentEncodingHeader.isPresent()) { + builder.contentEncoding( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-encoding", + contentEncodingHeader.get().get(0), + String.class)); + } + + java.util.Optional> contentLanguageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-language"); + if (contentLanguageHeader.isPresent()) { + builder.contentLanguage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-language", + contentLanguageHeader.get().get(0), + String.class)); + } + + java.util.Optional> + contentDispositionHeader = + com.oracle.bmc.http.internal.HeaderUtils + .getHeadersWithName( + headers, "content-disposition"); + if (contentDispositionHeader.isPresent()) { + builder.contentDisposition( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-disposition", + contentDispositionHeader.get().get(0), + String.class)); + } + + java.util.Optional> lastModifiedHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "last-modified"); + if (lastModifiedHeader.isPresent()) { + builder.lastModified( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "last-modified", + lastModifiedHeader.get().get(0), + java.util.Date.class)); + } + + java.util.Optional> metadataHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "metadata"); + if (metadataHeader.isPresent()) { + builder.metadata( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "metadata", + metadataHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.apmconfig.responses.GetDataFileResponse + responseWrapper = builder.build(); + + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/HeadDataFileConverter.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/HeadDataFileConverter.java new file mode 100644 index 00000000000..f941c52c57c --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/HeadDataFileConverter.java @@ -0,0 +1,253 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.apmconfig.model.*; +import com.oracle.bmc.apmconfig.requests.*; +import com.oracle.bmc.apmconfig.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class HeadDataFileConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(HeadDataFileConverter.class); + + public static com.oracle.bmc.apmconfig.requests.HeadDataFileRequest interceptRequest( + com.oracle.bmc.apmconfig.requests.HeadDataFileRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.apmconfig.requests.HeadDataFileRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDataFileName(), "dataFileName must not be blank"); + Validate.notNull(request.getApmDomainId(), "apmDomainId is required"); + Validate.notNull(request.getApmType(), "apmType is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20210201") + .path("dataFiles") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataFileName())); + + target = + target.queryParam( + "apmDomainId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getApmDomainId())); + + target = + target.queryParam( + "apmType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getApmType())); + + 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.getOpcClientRequestId() != null) { + ib.header("opc-client-request-id", request.getOpcClientRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.HeadDataFileResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.HeadDataFileResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.HeadDataFileResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.HeadDataFileResponse>() { + @Override + public com.oracle.bmc.apmconfig.responses.HeadDataFileResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.apmconfig.responses.HeadDataFileResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.apmconfig.responses.HeadDataFileResponse.Builder + builder = + com.oracle.bmc.apmconfig.responses + .HeadDataFileResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> + opcClientRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils + .getHeadersWithName( + headers, "opc-client-request-id"); + if (opcClientRequestIdHeader.isPresent()) { + builder.opcClientRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-client-request-id", + opcClientRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> contentTypeHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-type"); + if (contentTypeHeader.isPresent()) { + builder.contentType( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-type", + contentTypeHeader.get().get(0), + String.class)); + } + + java.util.Optional> contentLengthHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-length"); + if (contentLengthHeader.isPresent()) { + builder.contentLength( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-length", + contentLengthHeader.get().get(0), + Long.class)); + } + + java.util.Optional> contentMd5Header = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-md5"); + if (contentMd5Header.isPresent()) { + builder.contentMd5( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-md5", + contentMd5Header.get().get(0), + String.class)); + } + + java.util.Optional> contentEncodingHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-encoding"); + if (contentEncodingHeader.isPresent()) { + builder.contentEncoding( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-encoding", + contentEncodingHeader.get().get(0), + String.class)); + } + + java.util.Optional> contentLanguageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-language"); + if (contentLanguageHeader.isPresent()) { + builder.contentLanguage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-language", + contentLanguageHeader.get().get(0), + String.class)); + } + + java.util.Optional> + contentDispositionHeader = + com.oracle.bmc.http.internal.HeaderUtils + .getHeadersWithName( + headers, "content-disposition"); + if (contentDispositionHeader.isPresent()) { + builder.contentDisposition( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-disposition", + contentDispositionHeader.get().get(0), + String.class)); + } + + java.util.Optional> lastModifiedHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "last-modified"); + if (lastModifiedHeader.isPresent()) { + builder.lastModified( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "last-modified", + lastModifiedHeader.get().get(0), + java.util.Date.class)); + } + + java.util.Optional> metadataHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "metadata"); + if (metadataHeader.isPresent()) { + builder.metadata( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "metadata", + metadataHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.apmconfig.responses.HeadDataFileResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/ListDataFilesConverter.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/ListDataFilesConverter.java new file mode 100644 index 00000000000..a532fe2bbfc --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/ListDataFilesConverter.java @@ -0,0 +1,233 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.apmconfig.model.*; +import com.oracle.bmc.apmconfig.requests.*; +import com.oracle.bmc.apmconfig.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class ListDataFilesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListDataFilesConverter.class); + + public static com.oracle.bmc.apmconfig.requests.ListDataFilesRequest interceptRequest( + com.oracle.bmc.apmconfig.requests.ListDataFilesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.apmconfig.requests.ListDataFilesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getApmDomainId(), "apmDomainId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20210201").path("dataFiles"); + + target = + target.queryParam( + "apmDomainId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getApmDomainId())); + + if (request.getApmType() != null) { + target = + target.queryParam( + "apmType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getApmType())); + } + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getTimeLastModifiedBefore() != null) { + target = + target.queryParam( + "timeLastModifiedBefore", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeLastModifiedBefore())); + } + + if (request.getTimeLastModifiedAfter() != null) { + target = + target.queryParam( + "timeLastModifiedAfter", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeLastModifiedAfter())); + } + + 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.getMetadata() != null) { + ib.header("metadata", request.getMetadata()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcClientRequestId() != null) { + ib.header("opc-client-request-id", request.getOpcClientRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.ListDataFilesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.ListDataFilesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.ListDataFilesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.ListDataFilesResponse>() { + @Override + public com.oracle.bmc.apmconfig.responses.ListDataFilesResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.apmconfig.responses.ListDataFilesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.apmconfig.model + .DataFileSummaryCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.apmconfig.model + .DataFileSummaryCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.apmconfig.model + .DataFileSummaryCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.apmconfig.model + .DataFileSummaryCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.apmconfig.responses.ListDataFilesResponse.Builder + builder = + com.oracle.bmc.apmconfig.responses + .ListDataFilesResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.dataFileSummaryCollection(response.getItem()); + + java.util.Optional> + opcClientRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils + .getHeadersWithName( + headers, "opc-client-request-id"); + if (opcClientRequestIdHeader.isPresent()) { + builder.opcClientRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-client-request-id", + opcClientRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.apmconfig.responses.ListDataFilesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/PutDataFileConverter.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/PutDataFileConverter.java new file mode 100644 index 00000000000..7b55a230c89 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/PutDataFileConverter.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.apmconfig.model.*; +import com.oracle.bmc.apmconfig.requests.*; +import com.oracle.bmc.apmconfig.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class PutDataFileConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PutDataFileConverter.class); + + public static com.oracle.bmc.apmconfig.requests.PutDataFileRequest interceptRequest( + com.oracle.bmc.apmconfig.requests.PutDataFileRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.apmconfig.requests.PutDataFileRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getPutDataFileBody(), "putDataFileBody is required"); + Validate.notBlank(request.getDataFileName(), "dataFileName must not be blank"); + Validate.notNull(request.getApmDomainId(), "apmDomainId is required"); + Validate.notNull(request.getApmType(), "apmType is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20210201") + .path("dataFiles") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataFileName())); + + target = + target.queryParam( + "apmDomainId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getApmDomainId())); + + target = + target.queryParam( + "apmType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getApmType())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getContentMD5() != null) { + ib.header("Content-MD5", request.getContentMD5()); + } + + if (request.getContentType() != null) { + ib.header("Content-Type", request.getContentType()); + } + + if (request.getContentLanguage() != null) { + ib.header("Content-Language", request.getContentLanguage()); + } + + if (request.getContentEncoding() != null) { + ib.header("Content-Encoding", request.getContentEncoding()); + } + + if (request.getContentDisposition() != null) { + ib.header("Content-Disposition", request.getContentDisposition()); + } + + if (request.getMetadata() != null) { + ib.header("metadata", request.getMetadata()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcClientRequestId() != null) { + ib.header("opc-client-request-id", request.getOpcClientRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.PutDataFileResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.PutDataFileResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.PutDataFileResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.PutDataFileResponse>() { + @Override + public com.oracle.bmc.apmconfig.responses.PutDataFileResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.apmconfig.responses.PutDataFileResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.apmconfig.responses.PutDataFileResponse.Builder + builder = + com.oracle.bmc.apmconfig.responses + .PutDataFileResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> + opcClientRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils + .getHeadersWithName( + headers, "opc-client-request-id"); + if (opcClientRequestIdHeader.isPresent()) { + builder.opcClientRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-client-request-id", + opcClientRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> contentMd5Header = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-md5"); + if (contentMd5Header.isPresent()) { + builder.contentMd5( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-md5", + contentMd5Header.get().get(0), + String.class)); + } + + java.util.Optional> lastModifiedHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "last-modified"); + if (lastModifiedHeader.isPresent()) { + builder.lastModified( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "last-modified", + lastModifiedHeader.get().get(0), + java.util.Date.class)); + } + + com.oracle.bmc.apmconfig.responses.PutDataFileResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFile.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFile.java new file mode 100644 index 00000000000..f6dc30a0eed --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFile.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.model; + +/** + * The data file to be uploaded. + *
+ * 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: 20210201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DataFile.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DataFile extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + public DataFile() { + super(); + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataFile build() { + DataFile model = new DataFile(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataFile model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataFile("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataFile)) { + return false; + } + + DataFile other = (DataFile) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFileSummary.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFileSummary.java new file mode 100644 index 00000000000..ee503a8be77 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFileSummary.java @@ -0,0 +1,360 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.model; + +/** + * Properties related to the 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 + * 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: 20210201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DataFileSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DataFileSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "apmType", + "sizeInBytes", + "md5", + "timeLastModified", + "metadata" + }) + public DataFileSummary( + String name, + String apmType, + Long sizeInBytes, + String md5, + java.util.Date timeLastModified, + java.util.Map metadata) { + super(); + this.name = name; + this.apmType = apmType; + this.sizeInBytes = sizeInBytes; + this.md5 = md5; + this.timeLastModified = timeLastModified; + this.metadata = metadata; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name to use as identifier for the data file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name to use as identifier for the data file. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The type of the data file, indicating its intended use + * Example: {@code source_map} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apmType") + private String apmType; + + /** + * The type of the data file, indicating its intended use + * Example: {@code source_map} + * + * @param apmType the value to set + * @return this builder + **/ + public Builder apmType(String apmType) { + this.apmType = apmType; + this.__explicitlySet__.add("apmType"); + return this; + } + /** + * Size of the object in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private Long sizeInBytes; + + /** + * Size of the object in bytes. + * @param sizeInBytes the value to set + * @return this builder + **/ + public Builder sizeInBytes(Long sizeInBytes) { + this.sizeInBytes = sizeInBytes; + this.__explicitlySet__.add("sizeInBytes"); + return this; + } + /** + * Base64-encoded MD5 hash of the object data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("md5") + private String md5; + + /** + * Base64-encoded MD5 hash of the object data. + * @param md5 the value to set + * @return this builder + **/ + public Builder md5(String md5) { + this.md5 = md5; + this.__explicitlySet__.add("md5"); + return this; + } + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastModified") + private java.util.Date timeLastModified; + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + * @param timeLastModified the value to set + * @return this builder + **/ + public Builder timeLastModified(java.util.Date timeLastModified) { + this.timeLastModified = timeLastModified; + this.__explicitlySet__.add("timeLastModified"); + return this; + } + /** + * Metadata properties related to the data file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Metadata properties related to the data file. + * @param metadata the value to set + * @return this builder + **/ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataFileSummary build() { + DataFileSummary model = + new DataFileSummary( + this.name, + this.apmType, + this.sizeInBytes, + this.md5, + this.timeLastModified, + this.metadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataFileSummary model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("apmType")) { + this.apmType(model.getApmType()); + } + if (model.wasPropertyExplicitlySet("sizeInBytes")) { + this.sizeInBytes(model.getSizeInBytes()); + } + if (model.wasPropertyExplicitlySet("md5")) { + this.md5(model.getMd5()); + } + if (model.wasPropertyExplicitlySet("timeLastModified")) { + this.timeLastModified(model.getTimeLastModified()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name to use as identifier for the data file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name to use as identifier for the data file. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The type of the data file, indicating its intended use + * Example: {@code source_map} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apmType") + private final String apmType; + + /** + * The type of the data file, indicating its intended use + * Example: {@code source_map} + * + * @return the value + **/ + public String getApmType() { + return apmType; + } + + /** + * Size of the object in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private final Long sizeInBytes; + + /** + * Size of the object in bytes. + * @return the value + **/ + public Long getSizeInBytes() { + return sizeInBytes; + } + + /** + * Base64-encoded MD5 hash of the object data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("md5") + private final String md5; + + /** + * Base64-encoded MD5 hash of the object data. + * @return the value + **/ + public String getMd5() { + return md5; + } + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastModified") + private final java.util.Date timeLastModified; + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + * @return the value + **/ + public java.util.Date getTimeLastModified() { + return timeLastModified; + } + + /** + * Metadata properties related to the data file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Metadata properties related to the data file. + * @return the value + **/ + public java.util.Map getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataFileSummary("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", apmType=").append(String.valueOf(this.apmType)); + sb.append(", sizeInBytes=").append(String.valueOf(this.sizeInBytes)); + sb.append(", md5=").append(String.valueOf(this.md5)); + sb.append(", timeLastModified=").append(String.valueOf(this.timeLastModified)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataFileSummary)) { + return false; + } + + DataFileSummary other = (DataFileSummary) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.apmType, other.apmType) + && java.util.Objects.equals(this.sizeInBytes, other.sizeInBytes) + && java.util.Objects.equals(this.md5, other.md5) + && java.util.Objects.equals(this.timeLastModified, other.timeLastModified) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.apmType == null ? 43 : this.apmType.hashCode()); + result = (result * PRIME) + (this.sizeInBytes == null ? 43 : this.sizeInBytes.hashCode()); + result = (result * PRIME) + (this.md5 == null ? 43 : this.md5.hashCode()); + result = + (result * PRIME) + + (this.timeLastModified == null ? 43 : this.timeLastModified.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFileSummaryCollection.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFileSummaryCollection.java new file mode 100644 index 00000000000..02b490518d6 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFileSummaryCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.model; + +/** + * A collection of Data File summaries. + *
+ * 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: 20210201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DataFileSummaryCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DataFileSummaryCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DataFileSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of Data File summaries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of Data File summaries. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataFileSummaryCollection build() { + DataFileSummaryCollection model = new DataFileSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataFileSummaryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of Data File summaries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of Data File summaries. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataFileSummaryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataFileSummaryCollection)) { + return false; + } + + DataFileSummaryCollection other = (DataFileSummaryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/DeleteDataFileRequest.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/DeleteDataFileRequest.java new file mode 100644 index 00000000000..742fd2b9501 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/DeleteDataFileRequest.java @@ -0,0 +1,373 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.requests; + +import com.oracle.bmc.apmconfig.model.*; +/** + * Example: Click here to see how to use DeleteDataFileRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class DeleteDataFileRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The name of the data file. + */ + private String dataFileName; + + /** + * The name of the data file. + */ + public String getDataFileName() { + return dataFileName; + } + /** + * The APM Domain ID the request is intended for. + * + */ + private String apmDomainId; + + /** + * The APM Domain ID the request is intended for. + * + */ + public String getApmDomainId() { + return apmDomainId; + } + /** + * The type of the data file. + */ + private String apmType; + + /** + * The type of the data file. + */ + public String getApmType() { + return apmType; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcClientRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteDataFileRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The name of the data file. + */ + private String dataFileName = null; + + /** + * The name of the data file. + * @param dataFileName the value to set + * @return this builder instance + */ + public Builder dataFileName(String dataFileName) { + this.dataFileName = dataFileName; + return this; + } + + /** + * The APM Domain ID the request is intended for. + * + */ + private String apmDomainId = null; + + /** + * The APM Domain ID the request is intended for. + * + * @param apmDomainId the value to set + * @return this builder instance + */ + public Builder apmDomainId(String apmDomainId) { + this.apmDomainId = apmDomainId; + return this; + } + + /** + * The type of the data file. + */ + private String apmType = null; + + /** + * The type of the data file. + * @param apmType the value to set + * @return this builder instance + */ + public Builder apmType(String apmType) { + this.apmType = apmType; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDataFileRequest o) { + dataFileName(o.getDataFileName()); + apmDomainId(o.getApmDomainId()); + apmType(o.getApmType()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcClientRequestId(o.getOpcClientRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDataFileRequest 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 DeleteDataFileRequest + */ + public DeleteDataFileRequest build() { + DeleteDataFileRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDataFileRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteDataFileRequest + */ + public DeleteDataFileRequest buildWithoutInvocationCallback() { + DeleteDataFileRequest request = new DeleteDataFileRequest(); + request.dataFileName = dataFileName; + request.apmDomainId = apmDomainId; + request.apmType = apmType; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcClientRequestId = opcClientRequestId; + return request; + // new DeleteDataFileRequest(dataFileName, apmDomainId, apmType, ifMatch, opcRetryToken, opcClientRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dataFileName(dataFileName) + .apmDomainId(apmDomainId) + .apmType(apmType) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcClientRequestId(opcClientRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dataFileName=").append(String.valueOf(this.dataFileName)); + sb.append(",apmDomainId=").append(String.valueOf(this.apmDomainId)); + sb.append(",apmType=").append(String.valueOf(this.apmType)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDataFileRequest)) { + return false; + } + + DeleteDataFileRequest other = (DeleteDataFileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dataFileName, other.dataFileName) + && java.util.Objects.equals(this.apmDomainId, other.apmDomainId) + && java.util.Objects.equals(this.apmType, other.apmType) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dataFileName == null ? 43 : this.dataFileName.hashCode()); + result = (result * PRIME) + (this.apmDomainId == null ? 43 : this.apmDomainId.hashCode()); + result = (result * PRIME) + (this.apmType == null ? 43 : this.apmType.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/GetDataFileRequest.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/GetDataFileRequest.java new file mode 100644 index 00000000000..3e96d992bec --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/GetDataFileRequest.java @@ -0,0 +1,321 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.requests; + +import com.oracle.bmc.apmconfig.model.*; +/** + * Example: Click here to see how to use GetDataFileRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class GetDataFileRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The name of the data file. + */ + private String dataFileName; + + /** + * The name of the data file. + */ + public String getDataFileName() { + return dataFileName; + } + /** + * The APM Domain ID the request is intended for. + * + */ + private String apmDomainId; + + /** + * The APM Domain ID the request is intended for. + * + */ + public String getApmDomainId() { + return apmDomainId; + } + /** + * The type of the data file. + */ + private String apmType; + + /** + * The type of the data file. + */ + public String getApmType() { + return apmType; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcClientRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDataFileRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The name of the data file. + */ + private String dataFileName = null; + + /** + * The name of the data file. + * @param dataFileName the value to set + * @return this builder instance + */ + public Builder dataFileName(String dataFileName) { + this.dataFileName = dataFileName; + return this; + } + + /** + * The APM Domain ID the request is intended for. + * + */ + private String apmDomainId = null; + + /** + * The APM Domain ID the request is intended for. + * + * @param apmDomainId the value to set + * @return this builder instance + */ + public Builder apmDomainId(String apmDomainId) { + this.apmDomainId = apmDomainId; + return this; + } + + /** + * The type of the data file. + */ + private String apmType = null; + + /** + * The type of the data file. + * @param apmType the value to set + * @return this builder instance + */ + public Builder apmType(String apmType) { + this.apmType = apmType; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDataFileRequest o) { + dataFileName(o.getDataFileName()); + apmDomainId(o.getApmDomainId()); + apmType(o.getApmType()); + opcRetryToken(o.getOpcRetryToken()); + opcClientRequestId(o.getOpcClientRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDataFileRequest 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 GetDataFileRequest + */ + public GetDataFileRequest build() { + GetDataFileRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDataFileRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetDataFileRequest + */ + public GetDataFileRequest buildWithoutInvocationCallback() { + GetDataFileRequest request = new GetDataFileRequest(); + request.dataFileName = dataFileName; + request.apmDomainId = apmDomainId; + request.apmType = apmType; + request.opcRetryToken = opcRetryToken; + request.opcClientRequestId = opcClientRequestId; + return request; + // new GetDataFileRequest(dataFileName, apmDomainId, apmType, opcRetryToken, opcClientRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dataFileName(dataFileName) + .apmDomainId(apmDomainId) + .apmType(apmType) + .opcRetryToken(opcRetryToken) + .opcClientRequestId(opcClientRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dataFileName=").append(String.valueOf(this.dataFileName)); + sb.append(",apmDomainId=").append(String.valueOf(this.apmDomainId)); + sb.append(",apmType=").append(String.valueOf(this.apmType)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDataFileRequest)) { + return false; + } + + GetDataFileRequest other = (GetDataFileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dataFileName, other.dataFileName) + && java.util.Objects.equals(this.apmDomainId, other.apmDomainId) + && java.util.Objects.equals(this.apmType, other.apmType) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dataFileName == null ? 43 : this.dataFileName.hashCode()); + result = (result * PRIME) + (this.apmDomainId == null ? 43 : this.apmDomainId.hashCode()); + result = (result * PRIME) + (this.apmType == null ? 43 : this.apmType.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/HeadDataFileRequest.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/HeadDataFileRequest.java new file mode 100644 index 00000000000..33c524360a6 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/HeadDataFileRequest.java @@ -0,0 +1,321 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.requests; + +import com.oracle.bmc.apmconfig.model.*; +/** + * Example: Click here to see how to use HeadDataFileRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class HeadDataFileRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The name of the data file. + */ + private String dataFileName; + + /** + * The name of the data file. + */ + public String getDataFileName() { + return dataFileName; + } + /** + * The APM Domain ID the request is intended for. + * + */ + private String apmDomainId; + + /** + * The APM Domain ID the request is intended for. + * + */ + public String getApmDomainId() { + return apmDomainId; + } + /** + * The type of the data file. + */ + private String apmType; + + /** + * The type of the data file. + */ + public String getApmType() { + return apmType; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcClientRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + HeadDataFileRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The name of the data file. + */ + private String dataFileName = null; + + /** + * The name of the data file. + * @param dataFileName the value to set + * @return this builder instance + */ + public Builder dataFileName(String dataFileName) { + this.dataFileName = dataFileName; + return this; + } + + /** + * The APM Domain ID the request is intended for. + * + */ + private String apmDomainId = null; + + /** + * The APM Domain ID the request is intended for. + * + * @param apmDomainId the value to set + * @return this builder instance + */ + public Builder apmDomainId(String apmDomainId) { + this.apmDomainId = apmDomainId; + return this; + } + + /** + * The type of the data file. + */ + private String apmType = null; + + /** + * The type of the data file. + * @param apmType the value to set + * @return this builder instance + */ + public Builder apmType(String apmType) { + this.apmType = apmType; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(HeadDataFileRequest o) { + dataFileName(o.getDataFileName()); + apmDomainId(o.getApmDomainId()); + apmType(o.getApmType()); + opcRetryToken(o.getOpcRetryToken()); + opcClientRequestId(o.getOpcClientRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of HeadDataFileRequest 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 HeadDataFileRequest + */ + public HeadDataFileRequest build() { + HeadDataFileRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of HeadDataFileRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of HeadDataFileRequest + */ + public HeadDataFileRequest buildWithoutInvocationCallback() { + HeadDataFileRequest request = new HeadDataFileRequest(); + request.dataFileName = dataFileName; + request.apmDomainId = apmDomainId; + request.apmType = apmType; + request.opcRetryToken = opcRetryToken; + request.opcClientRequestId = opcClientRequestId; + return request; + // new HeadDataFileRequest(dataFileName, apmDomainId, apmType, opcRetryToken, opcClientRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dataFileName(dataFileName) + .apmDomainId(apmDomainId) + .apmType(apmType) + .opcRetryToken(opcRetryToken) + .opcClientRequestId(opcClientRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dataFileName=").append(String.valueOf(this.dataFileName)); + sb.append(",apmDomainId=").append(String.valueOf(this.apmDomainId)); + sb.append(",apmType=").append(String.valueOf(this.apmType)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HeadDataFileRequest)) { + return false; + } + + HeadDataFileRequest other = (HeadDataFileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dataFileName, other.dataFileName) + && java.util.Objects.equals(this.apmDomainId, other.apmDomainId) + && java.util.Objects.equals(this.apmType, other.apmType) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dataFileName == null ? 43 : this.dataFileName.hashCode()); + result = (result * PRIME) + (this.apmDomainId == null ? 43 : this.apmDomainId.hashCode()); + result = (result * PRIME) + (this.apmType == null ? 43 : this.apmType.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/ListDataFilesRequest.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/ListDataFilesRequest.java new file mode 100644 index 00000000000..a3c0f9765c4 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/ListDataFilesRequest.java @@ -0,0 +1,657 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.requests; + +import com.oracle.bmc.apmconfig.model.*; +/** + * Example: Click here to see how to use ListDataFilesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class ListDataFilesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The APM Domain ID the request is intended for. + * + */ + private String apmDomainId; + + /** + * The APM Domain ID the request is intended for. + * + */ + public String getApmDomainId() { + return apmDomainId; + } + /** + * The type of the data file. + */ + private String apmType; + + /** + * The type of the data file. + */ + public String getApmType() { + return apmType; + } + /** + * A filter to return resources that match the specified name. Supports regular expressions to filter data files. + */ + private String name; + + /** + * A filter to return resources that match the specified name. Supports regular expressions to filter data files. + */ + public String getName() { + return name; + } + /** + * Return data files with time 'timeLastModified' before the specified time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + */ + private java.util.Date timeLastModifiedBefore; + + /** + * Return data files with time 'timeLastModified' before the specified time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + */ + public java.util.Date getTimeLastModifiedBefore() { + return timeLastModifiedBefore; + } + /** + * Return data files with the 'timeLastModified' after the specified time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + */ + private java.util.Date timeLastModifiedAfter; + + /** + * Return data files with the 'timeLastModified' after the specified time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + */ + public java.util.Date getTimeLastModifiedAfter() { + return timeLastModifiedAfter; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The maximum number of results per page, or items to return in a paginated "List" call. For information on + * how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * Example: {@code 50} + * + */ + private String page; + + /** + * The maximum number of results per page, or items to return in a paginated "List" call. For information on + * how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * Example: {@code 50} + * + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The displayName sort order + * is case-sensitive. + * + */ + private com.oracle.bmc.apmconfig.model.SortOrders sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The displayName sort order + * is case-sensitive. + * + */ + public com.oracle.bmc.apmconfig.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. You can provide one "sortBy" value. The default order for displayName, timeCreated + * and timeUpdated is ascending. The displayName sort by is case-sensitive. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one "sortBy" value. The default order for displayName, timeCreated + * and timeUpdated is ascending. The displayName sort by is case-sensitive. + * + **/ + public enum SortBy { + DisplayName("displayName"), + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide one "sortBy" value. The default order for displayName, timeCreated + * and timeUpdated is ascending. The displayName sort by is case-sensitive. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + */ + private String metadata; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + */ + public String getMetadata() { + return metadata; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcClientRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDataFilesRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The APM Domain ID the request is intended for. + * + */ + private String apmDomainId = null; + + /** + * The APM Domain ID the request is intended for. + * + * @param apmDomainId the value to set + * @return this builder instance + */ + public Builder apmDomainId(String apmDomainId) { + this.apmDomainId = apmDomainId; + return this; + } + + /** + * The type of the data file. + */ + private String apmType = null; + + /** + * The type of the data file. + * @param apmType the value to set + * @return this builder instance + */ + public Builder apmType(String apmType) { + this.apmType = apmType; + return this; + } + + /** + * A filter to return resources that match the specified name. Supports regular expressions to filter data files. + */ + private String name = null; + + /** + * A filter to return resources that match the specified name. Supports regular expressions to filter data files. + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * Return data files with time 'timeLastModified' before the specified time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + */ + private java.util.Date timeLastModifiedBefore = null; + + /** + * Return data files with time 'timeLastModified' before the specified time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + * @param timeLastModifiedBefore the value to set + * @return this builder instance + */ + public Builder timeLastModifiedBefore(java.util.Date timeLastModifiedBefore) { + this.timeLastModifiedBefore = timeLastModifiedBefore; + return this; + } + + /** + * Return data files with the 'timeLastModified' after the specified time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + */ + private java.util.Date timeLastModifiedAfter = null; + + /** + * Return data files with the 'timeLastModified' after the specified time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + * @param timeLastModifiedAfter the value to set + * @return this builder instance + */ + public Builder timeLastModifiedAfter(java.util.Date timeLastModifiedAfter) { + this.timeLastModifiedAfter = timeLastModifiedAfter; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The maximum number of results per page, or items to return in a paginated "List" call. For information on + * how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * Example: {@code 50} + * + */ + private String page = null; + + /** + * The maximum number of results per page, or items to return in a paginated "List" call. For information on + * how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * Example: {@code 50} + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The displayName sort order + * is case-sensitive. + * + */ + private com.oracle.bmc.apmconfig.model.SortOrders sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The displayName sort order + * is case-sensitive. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.apmconfig.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. You can provide one "sortBy" value. The default order for displayName, timeCreated + * and timeUpdated is ascending. The displayName sort by is case-sensitive. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide one "sortBy" value. The default order for displayName, timeCreated + * and timeUpdated is ascending. The displayName sort by is case-sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + */ + private String metadata = null; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + * @param metadata the value to set + * @return this builder instance + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDataFilesRequest o) { + apmDomainId(o.getApmDomainId()); + apmType(o.getApmType()); + name(o.getName()); + timeLastModifiedBefore(o.getTimeLastModifiedBefore()); + timeLastModifiedAfter(o.getTimeLastModifiedAfter()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + metadata(o.getMetadata()); + opcRetryToken(o.getOpcRetryToken()); + opcClientRequestId(o.getOpcClientRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDataFilesRequest 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 ListDataFilesRequest + */ + public ListDataFilesRequest build() { + ListDataFilesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDataFilesRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListDataFilesRequest + */ + public ListDataFilesRequest buildWithoutInvocationCallback() { + ListDataFilesRequest request = new ListDataFilesRequest(); + request.apmDomainId = apmDomainId; + request.apmType = apmType; + request.name = name; + request.timeLastModifiedBefore = timeLastModifiedBefore; + request.timeLastModifiedAfter = timeLastModifiedAfter; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.metadata = metadata; + request.opcRetryToken = opcRetryToken; + request.opcClientRequestId = opcClientRequestId; + return request; + // new ListDataFilesRequest(apmDomainId, apmType, name, timeLastModifiedBefore, timeLastModifiedAfter, limit, page, sortOrder, sortBy, metadata, opcRetryToken, opcClientRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .apmDomainId(apmDomainId) + .apmType(apmType) + .name(name) + .timeLastModifiedBefore(timeLastModifiedBefore) + .timeLastModifiedAfter(timeLastModifiedAfter) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .metadata(metadata) + .opcRetryToken(opcRetryToken) + .opcClientRequestId(opcClientRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",apmDomainId=").append(String.valueOf(this.apmDomainId)); + sb.append(",apmType=").append(String.valueOf(this.apmType)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",timeLastModifiedBefore=").append(String.valueOf(this.timeLastModifiedBefore)); + sb.append(",timeLastModifiedAfter=").append(String.valueOf(this.timeLastModifiedAfter)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",metadata=").append(String.valueOf(this.metadata)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataFilesRequest)) { + return false; + } + + ListDataFilesRequest other = (ListDataFilesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.apmDomainId, other.apmDomainId) + && java.util.Objects.equals(this.apmType, other.apmType) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals( + this.timeLastModifiedBefore, other.timeLastModifiedBefore) + && java.util.Objects.equals(this.timeLastModifiedAfter, other.timeLastModifiedAfter) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.apmDomainId == null ? 43 : this.apmDomainId.hashCode()); + result = (result * PRIME) + (this.apmType == null ? 43 : this.apmType.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.timeLastModifiedBefore == null + ? 43 + : this.timeLastModifiedBefore.hashCode()); + result = + (result * PRIME) + + (this.timeLastModifiedAfter == null + ? 43 + : this.timeLastModifiedAfter.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/PutDataFileRequest.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/PutDataFileRequest.java new file mode 100644 index 00000000000..db4ae042a99 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/PutDataFileRequest.java @@ -0,0 +1,664 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.requests; + +import com.oracle.bmc.apmconfig.model.*; +/** + * Example: Click here to see how to use PutDataFileRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class PutDataFileRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The data file to be uploaded. + */ + private java.io.InputStream putDataFileBody; + + /** + * The data file to be uploaded. + */ + public java.io.InputStream getPutDataFileBody() { + return putDataFileBody; + } + /** + * The name of the data file. + */ + private String dataFileName; + + /** + * The name of the data file. + */ + public String getDataFileName() { + return dataFileName; + } + /** + * The APM Domain ID the request is intended for. + * + */ + private String apmDomainId; + + /** + * The APM Domain ID the request is intended for. + * + */ + public String getApmDomainId() { + return apmDomainId; + } + /** + * The type of the data file. + */ + private String apmType; + + /** + * The type of the data file. + */ + public String getApmType() { + return apmType; + } + /** + * Optional base64-encoded MD5 hash of the request body. If provided, the server will perform + * a data integrity check by computing the MD5 of the received content and comparing it to the + * supplied value. + *

+ * If the values do not match, the request will be rejected with an HTTP 400 error and a message such as: + *

+ * "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)" + * + */ + private String contentMD5; + + /** + * Optional base64-encoded MD5 hash of the request body. If provided, the server will perform + * a data integrity check by computing the MD5 of the received content and comparing it to the + * supplied value. + *

+ * If the values do not match, the request will be rejected with an HTTP 400 error and a message such as: + *

+ * "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)" + * + */ + public String getContentMD5() { + return contentMD5; + } + /** + * Optional parameter specifying the media type (MIME type) of the request or response body. + * If not specified, the default is {@code application/octet-stream}. + *

+ * This value can be used by recipients to determine how to interpret or render the content. + * + */ + private String contentType; + + /** + * Optional parameter specifying the media type (MIME type) of the request or response body. + * If not specified, the default is {@code application/octet-stream}. + *

+ * This value can be used by recipients to determine how to interpret or render the content. + * + */ + public String getContentType() { + return contentType; + } + /** + * Optional parameter that indicates the natural language of the content. + * This value can be used by clients or intermediaries to select or display content based on language preferences. + * + */ + private String contentLanguage; + + /** + * Optional parameter that indicates the natural language of the content. + * This value can be used by clients or intermediaries to select or display content based on language preferences. + * + */ + public String getContentLanguage() { + return contentLanguage; + } + /** + * Optional parameter indicating the content encodings applied to the request body (e.g., gzip, deflate). + * This value can be used by recipients to determine how to decode the content. + * + */ + private String contentEncoding; + + /** + * Optional parameter indicating the content encodings applied to the request body (e.g., gzip, deflate). + * This value can be used by recipients to determine how to decode the content. + * + */ + public String getContentEncoding() { + return contentEncoding; + } + /** + * Optional parameter that provides presentation information for how the content should be displayed or handled by the recipient. + *

+ * For example, to prompt a file download with a custom filename: + * {@code attachment; filename="example.txt"} + * + */ + private String contentDisposition; + + /** + * Optional parameter that provides presentation information for how the content should be displayed or handled by the recipient. + *

+ * For example, to prompt a file download with a custom filename: + * {@code attachment; filename="example.txt"} + * + */ + public String getContentDisposition() { + return contentDisposition; + } + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + */ + private String metadata; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + */ + public String getMetadata() { + return metadata; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request ID for tracing. + */ + private String opcClientRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public java.io.InputStream getBody$() { + return putDataFileBody; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + PutDataFileRequest, java.io.InputStream> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The data file to be uploaded. + */ + private java.io.InputStream putDataFileBody = null; + + /** + * The data file to be uploaded. + * @param putDataFileBody the value to set + * @return this builder instance + */ + public Builder putDataFileBody(java.io.InputStream putDataFileBody) { + this.putDataFileBody = putDataFileBody; + return this; + } + + /** + * The name of the data file. + */ + private String dataFileName = null; + + /** + * The name of the data file. + * @param dataFileName the value to set + * @return this builder instance + */ + public Builder dataFileName(String dataFileName) { + this.dataFileName = dataFileName; + return this; + } + + /** + * The APM Domain ID the request is intended for. + * + */ + private String apmDomainId = null; + + /** + * The APM Domain ID the request is intended for. + * + * @param apmDomainId the value to set + * @return this builder instance + */ + public Builder apmDomainId(String apmDomainId) { + this.apmDomainId = apmDomainId; + return this; + } + + /** + * The type of the data file. + */ + private String apmType = null; + + /** + * The type of the data file. + * @param apmType the value to set + * @return this builder instance + */ + public Builder apmType(String apmType) { + this.apmType = apmType; + return this; + } + + /** + * Optional base64-encoded MD5 hash of the request body. If provided, the server will perform + * a data integrity check by computing the MD5 of the received content and comparing it to the + * supplied value. + *

+ * If the values do not match, the request will be rejected with an HTTP 400 error and a message such as: + *

+ * "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)" + * + */ + private String contentMD5 = null; + + /** + * Optional base64-encoded MD5 hash of the request body. If provided, the server will perform + * a data integrity check by computing the MD5 of the received content and comparing it to the + * supplied value. + *

+ * If the values do not match, the request will be rejected with an HTTP 400 error and a message such as: + *

+ * "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)" + * + * @param contentMD5 the value to set + * @return this builder instance + */ + public Builder contentMD5(String contentMD5) { + this.contentMD5 = contentMD5; + return this; + } + + /** + * Optional parameter specifying the media type (MIME type) of the request or response body. + * If not specified, the default is {@code application/octet-stream}. + *

+ * This value can be used by recipients to determine how to interpret or render the content. + * + */ + private String contentType = null; + + /** + * Optional parameter specifying the media type (MIME type) of the request or response body. + * If not specified, the default is {@code application/octet-stream}. + *

+ * This value can be used by recipients to determine how to interpret or render the content. + * + * @param contentType the value to set + * @return this builder instance + */ + public Builder contentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * Optional parameter that indicates the natural language of the content. + * This value can be used by clients or intermediaries to select or display content based on language preferences. + * + */ + private String contentLanguage = null; + + /** + * Optional parameter that indicates the natural language of the content. + * This value can be used by clients or intermediaries to select or display content based on language preferences. + * + * @param contentLanguage the value to set + * @return this builder instance + */ + public Builder contentLanguage(String contentLanguage) { + this.contentLanguage = contentLanguage; + return this; + } + + /** + * Optional parameter indicating the content encodings applied to the request body (e.g., gzip, deflate). + * This value can be used by recipients to determine how to decode the content. + * + */ + private String contentEncoding = null; + + /** + * Optional parameter indicating the content encodings applied to the request body (e.g., gzip, deflate). + * This value can be used by recipients to determine how to decode the content. + * + * @param contentEncoding the value to set + * @return this builder instance + */ + public Builder contentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + return this; + } + + /** + * Optional parameter that provides presentation information for how the content should be displayed or handled by the recipient. + *

+ * For example, to prompt a file download with a custom filename: + * {@code attachment; filename="example.txt"} + * + */ + private String contentDisposition = null; + + /** + * Optional parameter that provides presentation information for how the content should be displayed or handled by the recipient. + *

+ * For example, to prompt a file download with a custom filename: + * {@code attachment; filename="example.txt"} + * + * @param contentDisposition the value to set + * @return this builder instance + */ + public Builder contentDisposition(String contentDisposition) { + this.contentDisposition = contentDisposition; + return this; + } + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + */ + private String metadata = null; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + * @param metadata the value to set + * @return this builder instance + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(PutDataFileRequest o) { + putDataFileBody(o.getPutDataFileBody()); + dataFileName(o.getDataFileName()); + apmDomainId(o.getApmDomainId()); + apmType(o.getApmType()); + contentMD5(o.getContentMD5()); + contentType(o.getContentType()); + contentLanguage(o.getContentLanguage()); + contentEncoding(o.getContentEncoding()); + contentDisposition(o.getContentDisposition()); + metadata(o.getMetadata()); + opcRetryToken(o.getOpcRetryToken()); + opcClientRequestId(o.getOpcClientRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PutDataFileRequest 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 PutDataFileRequest + */ + public PutDataFileRequest build() { + PutDataFileRequest 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) { + putDataFileBody(body); + return this; + } + + /** + * Build the instance of PutDataFileRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of PutDataFileRequest + */ + public PutDataFileRequest buildWithoutInvocationCallback() { + PutDataFileRequest request = new PutDataFileRequest(); + request.putDataFileBody = putDataFileBody; + request.dataFileName = dataFileName; + request.apmDomainId = apmDomainId; + request.apmType = apmType; + request.contentMD5 = contentMD5; + request.contentType = contentType; + request.contentLanguage = contentLanguage; + request.contentEncoding = contentEncoding; + request.contentDisposition = contentDisposition; + request.metadata = metadata; + request.opcRetryToken = opcRetryToken; + request.opcClientRequestId = opcClientRequestId; + return request; + // new PutDataFileRequest(putDataFileBody, dataFileName, apmDomainId, apmType, contentMD5, contentType, contentLanguage, contentEncoding, contentDisposition, metadata, opcRetryToken, opcClientRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .putDataFileBody(putDataFileBody) + .dataFileName(dataFileName) + .apmDomainId(apmDomainId) + .apmType(apmType) + .contentMD5(contentMD5) + .contentType(contentType) + .contentLanguage(contentLanguage) + .contentEncoding(contentEncoding) + .contentDisposition(contentDisposition) + .metadata(metadata) + .opcRetryToken(opcRetryToken) + .opcClientRequestId(opcClientRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",putDataFileBody=").append(String.valueOf(this.putDataFileBody)); + sb.append(",dataFileName=").append(String.valueOf(this.dataFileName)); + sb.append(",apmDomainId=").append(String.valueOf(this.apmDomainId)); + sb.append(",apmType=").append(String.valueOf(this.apmType)); + sb.append(",contentMD5=").append(String.valueOf(this.contentMD5)); + sb.append(",contentType=").append(String.valueOf(this.contentType)); + sb.append(",contentLanguage=").append(String.valueOf(this.contentLanguage)); + sb.append(",contentEncoding=").append(String.valueOf(this.contentEncoding)); + sb.append(",contentDisposition=").append(String.valueOf(this.contentDisposition)); + sb.append(",metadata=").append(String.valueOf(this.metadata)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PutDataFileRequest)) { + return false; + } + + PutDataFileRequest other = (PutDataFileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.putDataFileBody, other.putDataFileBody) + && java.util.Objects.equals(this.dataFileName, other.dataFileName) + && java.util.Objects.equals(this.apmDomainId, other.apmDomainId) + && java.util.Objects.equals(this.apmType, other.apmType) + && java.util.Objects.equals(this.contentMD5, other.contentMD5) + && java.util.Objects.equals(this.contentType, other.contentType) + && java.util.Objects.equals(this.contentLanguage, other.contentLanguage) + && java.util.Objects.equals(this.contentEncoding, other.contentEncoding) + && java.util.Objects.equals(this.contentDisposition, other.contentDisposition) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.putDataFileBody == null ? 43 : this.putDataFileBody.hashCode()); + result = (result * PRIME) + (this.dataFileName == null ? 43 : this.dataFileName.hashCode()); + result = (result * PRIME) + (this.apmDomainId == null ? 43 : this.apmDomainId.hashCode()); + result = (result * PRIME) + (this.apmType == null ? 43 : this.apmType.hashCode()); + result = (result * PRIME) + (this.contentMD5 == null ? 43 : this.contentMD5.hashCode()); + result = (result * PRIME) + (this.contentType == null ? 43 : this.contentType.hashCode()); + result = + (result * PRIME) + + (this.contentLanguage == null ? 43 : this.contentLanguage.hashCode()); + result = + (result * PRIME) + + (this.contentEncoding == null ? 43 : this.contentEncoding.hashCode()); + result = + (result * PRIME) + + (this.contentDisposition == null + ? 43 + : this.contentDisposition.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/DeleteDataFileResponse.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/DeleteDataFileResponse.java new file mode 100644 index 00000000000..95b20e30be2 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/DeleteDataFileResponse.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.responses; + +import com.oracle.bmc.apmconfig.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class DeleteDataFileResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The client request ID. + */ + private String opcClientRequestId; + + /** + * The client request ID. + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcClientRequestId" + }) + private DeleteDataFileResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcClientRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcClientRequestId = opcClientRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The client request ID. + */ + private String opcClientRequestId; + + /** + * The client request ID. + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDataFileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcClientRequestId(o.getOpcClientRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteDataFileResponse build() { + return new DeleteDataFileResponse( + __httpStatusCode__, headers, opcRequestId, opcClientRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDataFileResponse)) { + return false; + } + + DeleteDataFileResponse other = (DeleteDataFileResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/GetDataFileResponse.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/GetDataFileResponse.java new file mode 100644 index 00000000000..85eb1b75ad8 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/GetDataFileResponse.java @@ -0,0 +1,576 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.responses; + +import com.oracle.bmc.apmconfig.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class GetDataFileResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The client request ID. + */ + private String opcClientRequestId; + + /** + * The client request ID. + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** + * Content-Type header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + */ + private String contentType; + + /** + * Content-Type header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + * @return the value + */ + public String getContentType() { + return contentType; + } + + /** + * The object size in bytes. + */ + private Long contentLength; + + /** + * The object size in bytes. + * @return the value + */ + public Long getContentLength() { + return contentLength; + } + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + */ + private String contentMd5; + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + * @return the value + */ + public String getContentMd5() { + return contentMd5; + } + + /** + * Content-Encoding header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + */ + private String contentEncoding; + + /** + * Content-Encoding header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + * @return the value + */ + public String getContentEncoding() { + return contentEncoding; + } + + /** + * Content-Language header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + */ + private String contentLanguage; + + /** + * Content-Language header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + * @return the value + */ + public String getContentLanguage() { + return contentLanguage; + } + + /** + * Content-Disposition header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + */ + private String contentDisposition; + + /** + * Content-Disposition header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + * @return the value + */ + public String getContentDisposition() { + return contentDisposition; + } + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + */ + private java.util.Date lastModified; + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + * @return the value + */ + public java.util.Date getLastModified() { + return lastModified; + } + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + */ + private String metadata; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + * @return the value + */ + public String getMetadata() { + return metadata; + } + + /** + * The returned java.io.InputStream instance. + */ + private java.io.InputStream inputStream; + + /** + * The returned java.io.InputStream instance. + * @return the value + */ + public java.io.InputStream getInputStream() { + return inputStream; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcClientRequestId", + "contentType", + "contentLength", + "contentMd5", + "contentEncoding", + "contentLanguage", + "contentDisposition", + "lastModified", + "metadata", + "inputStream" + }) + private GetDataFileResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + String opcClientRequestId, + String contentType, + Long contentLength, + String contentMd5, + String contentEncoding, + String contentLanguage, + String contentDisposition, + java.util.Date lastModified, + String metadata, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.opcClientRequestId = opcClientRequestId; + this.contentType = contentType; + this.contentLength = contentLength; + this.contentMd5 = contentMd5; + this.contentEncoding = contentEncoding; + this.contentLanguage = contentLanguage; + this.contentDisposition = contentDisposition; + this.lastModified = lastModified; + this.metadata = metadata; + this.inputStream = inputStream; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The client request ID. + */ + private String opcClientRequestId; + + /** + * The client request ID. + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Content-Type header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + */ + private String contentType; + + /** + * Content-Type header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + * @param contentType the value to set + * @return this builder + */ + public Builder contentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * The object size in bytes. + */ + private Long contentLength; + + /** + * The object size in bytes. + * @param contentLength the value to set + * @return this builder + */ + public Builder contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + */ + private String contentMd5; + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + * @param contentMd5 the value to set + * @return this builder + */ + public Builder contentMd5(String contentMd5) { + this.contentMd5 = contentMd5; + return this; + } + + /** + * Content-Encoding header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + */ + private String contentEncoding; + + /** + * Content-Encoding header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + * @param contentEncoding the value to set + * @return this builder + */ + public Builder contentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + return this; + } + + /** + * Content-Language header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + */ + private String contentLanguage; + + /** + * Content-Language header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + * @param contentLanguage the value to set + * @return this builder + */ + public Builder contentLanguage(String contentLanguage) { + this.contentLanguage = contentLanguage; + return this; + } + + /** + * Content-Disposition header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + */ + private String contentDisposition; + + /** + * Content-Disposition header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + * @param contentDisposition the value to set + * @return this builder + */ + public Builder contentDisposition(String contentDisposition) { + this.contentDisposition = contentDisposition; + return this; + } + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + */ + private java.util.Date lastModified; + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + * @param lastModified the value to set + * @return this builder + */ + public Builder lastModified(java.util.Date lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + */ + private String metadata; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + return this; + } + + /** + * The returned java.io.InputStream instance. + */ + private java.io.InputStream inputStream; + + /** + * The returned java.io.InputStream instance. + * @param inputStream the value to set + * @return this builder + */ + public Builder inputStream(java.io.InputStream inputStream) { + this.inputStream = inputStream; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDataFileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + opcClientRequestId(o.getOpcClientRequestId()); + contentType(o.getContentType()); + contentLength(o.getContentLength()); + contentMd5(o.getContentMd5()); + contentEncoding(o.getContentEncoding()); + contentLanguage(o.getContentLanguage()); + contentDisposition(o.getContentDisposition()); + lastModified(o.getLastModified()); + metadata(o.getMetadata()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetDataFileResponse build() { + return new GetDataFileResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcClientRequestId, + contentType, + contentLength, + contentMd5, + contentEncoding, + contentLanguage, + contentDisposition, + lastModified, + metadata, + inputStream); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + sb.append(",contentType=").append(String.valueOf(contentType)); + sb.append(",contentLength=").append(String.valueOf(contentLength)); + sb.append(",contentMd5=").append(String.valueOf(contentMd5)); + sb.append(",contentEncoding=").append(String.valueOf(contentEncoding)); + sb.append(",contentLanguage=").append(String.valueOf(contentLanguage)); + sb.append(",contentDisposition=").append(String.valueOf(contentDisposition)); + sb.append(",lastModified=").append(String.valueOf(lastModified)); + sb.append(",metadata=").append(String.valueOf(metadata)); + sb.append(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDataFileResponse)) { + return false; + } + + GetDataFileResponse other = (GetDataFileResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) + && java.util.Objects.equals(this.contentType, other.contentType) + && java.util.Objects.equals(this.contentLength, other.contentLength) + && java.util.Objects.equals(this.contentMd5, other.contentMd5) + && java.util.Objects.equals(this.contentEncoding, other.contentEncoding) + && java.util.Objects.equals(this.contentLanguage, other.contentLanguage) + && java.util.Objects.equals(this.contentDisposition, other.contentDisposition) + && java.util.Objects.equals(this.lastModified, other.lastModified) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.inputStream, other.inputStream); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + result = (result * PRIME) + (this.contentType == null ? 43 : this.contentType.hashCode()); + result = + (result * PRIME) + + (this.contentLength == null ? 43 : this.contentLength.hashCode()); + result = (result * PRIME) + (this.contentMd5 == null ? 43 : this.contentMd5.hashCode()); + result = + (result * PRIME) + + (this.contentEncoding == null ? 43 : this.contentEncoding.hashCode()); + result = + (result * PRIME) + + (this.contentLanguage == null ? 43 : this.contentLanguage.hashCode()); + result = + (result * PRIME) + + (this.contentDisposition == null + ? 43 + : this.contentDisposition.hashCode()); + result = (result * PRIME) + (this.lastModified == null ? 43 : this.lastModified.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/HeadDataFileResponse.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/HeadDataFileResponse.java new file mode 100644 index 00000000000..9898cae6eb7 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/HeadDataFileResponse.java @@ -0,0 +1,540 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.responses; + +import com.oracle.bmc.apmconfig.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class HeadDataFileResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The client request ID. + */ + private String opcClientRequestId; + + /** + * The client request ID. + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** + * Content-Type header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + */ + private String contentType; + + /** + * Content-Type header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + * @return the value + */ + public String getContentType() { + return contentType; + } + + /** + * The object size in bytes. + */ + private Long contentLength; + + /** + * The object size in bytes. + * @return the value + */ + public Long getContentLength() { + return contentLength; + } + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + */ + private String contentMd5; + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + * @return the value + */ + public String getContentMd5() { + return contentMd5; + } + + /** + * Content-Encoding header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + */ + private String contentEncoding; + + /** + * Content-Encoding header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + * @return the value + */ + public String getContentEncoding() { + return contentEncoding; + } + + /** + * Content-Language header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + */ + private String contentLanguage; + + /** + * Content-Language header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + * @return the value + */ + public String getContentLanguage() { + return contentLanguage; + } + + /** + * Content-Disposition header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + */ + private String contentDisposition; + + /** + * Content-Disposition header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + * @return the value + */ + public String getContentDisposition() { + return contentDisposition; + } + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + */ + private java.util.Date lastModified; + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + * @return the value + */ + public java.util.Date getLastModified() { + return lastModified; + } + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + */ + private String metadata; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + * @return the value + */ + public String getMetadata() { + return metadata; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcClientRequestId", + "contentType", + "contentLength", + "contentMd5", + "contentEncoding", + "contentLanguage", + "contentDisposition", + "lastModified", + "metadata" + }) + private HeadDataFileResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + String opcClientRequestId, + String contentType, + Long contentLength, + String contentMd5, + String contentEncoding, + String contentLanguage, + String contentDisposition, + java.util.Date lastModified, + String metadata) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.opcClientRequestId = opcClientRequestId; + this.contentType = contentType; + this.contentLength = contentLength; + this.contentMd5 = contentMd5; + this.contentEncoding = contentEncoding; + this.contentLanguage = contentLanguage; + this.contentDisposition = contentDisposition; + this.lastModified = lastModified; + this.metadata = metadata; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The client request ID. + */ + private String opcClientRequestId; + + /** + * The client request ID. + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Content-Type header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + */ + private String contentType; + + /** + * Content-Type header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + * @param contentType the value to set + * @return this builder + */ + public Builder contentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * The object size in bytes. + */ + private Long contentLength; + + /** + * The object size in bytes. + * @param contentLength the value to set + * @return this builder + */ + public Builder contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + */ + private String contentMd5; + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + * @param contentMd5 the value to set + * @return this builder + */ + public Builder contentMd5(String contentMd5) { + this.contentMd5 = contentMd5; + return this; + } + + /** + * Content-Encoding header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + */ + private String contentEncoding; + + /** + * Content-Encoding header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + * @param contentEncoding the value to set + * @return this builder + */ + public Builder contentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + return this; + } + + /** + * Content-Language header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + */ + private String contentLanguage; + + /** + * Content-Language header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + * @param contentLanguage the value to set + * @return this builder + */ + public Builder contentLanguage(String contentLanguage) { + this.contentLanguage = contentLanguage; + return this; + } + + /** + * Content-Disposition header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + */ + private String contentDisposition; + + /** + * Content-Disposition header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + * @param contentDisposition the value to set + * @return this builder + */ + public Builder contentDisposition(String contentDisposition) { + this.contentDisposition = contentDisposition; + return this; + } + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + */ + private java.util.Date lastModified; + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + * @param lastModified the value to set + * @return this builder + */ + public Builder lastModified(java.util.Date lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + */ + private String metadata; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or resource. + * Example: + * {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(HeadDataFileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + opcClientRequestId(o.getOpcClientRequestId()); + contentType(o.getContentType()); + contentLength(o.getContentLength()); + contentMd5(o.getContentMd5()); + contentEncoding(o.getContentEncoding()); + contentLanguage(o.getContentLanguage()); + contentDisposition(o.getContentDisposition()); + lastModified(o.getLastModified()); + metadata(o.getMetadata()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public HeadDataFileResponse build() { + return new HeadDataFileResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcClientRequestId, + contentType, + contentLength, + contentMd5, + contentEncoding, + contentLanguage, + contentDisposition, + lastModified, + metadata); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + sb.append(",contentType=").append(String.valueOf(contentType)); + sb.append(",contentLength=").append(String.valueOf(contentLength)); + sb.append(",contentMd5=").append(String.valueOf(contentMd5)); + sb.append(",contentEncoding=").append(String.valueOf(contentEncoding)); + sb.append(",contentLanguage=").append(String.valueOf(contentLanguage)); + sb.append(",contentDisposition=").append(String.valueOf(contentDisposition)); + sb.append(",lastModified=").append(String.valueOf(lastModified)); + sb.append(",metadata=").append(String.valueOf(metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HeadDataFileResponse)) { + return false; + } + + HeadDataFileResponse other = (HeadDataFileResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) + && java.util.Objects.equals(this.contentType, other.contentType) + && java.util.Objects.equals(this.contentLength, other.contentLength) + && java.util.Objects.equals(this.contentMd5, other.contentMd5) + && java.util.Objects.equals(this.contentEncoding, other.contentEncoding) + && java.util.Objects.equals(this.contentLanguage, other.contentLanguage) + && java.util.Objects.equals(this.contentDisposition, other.contentDisposition) + && java.util.Objects.equals(this.lastModified, other.lastModified) + && java.util.Objects.equals(this.metadata, other.metadata); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + result = (result * PRIME) + (this.contentType == null ? 43 : this.contentType.hashCode()); + result = + (result * PRIME) + + (this.contentLength == null ? 43 : this.contentLength.hashCode()); + result = (result * PRIME) + (this.contentMd5 == null ? 43 : this.contentMd5.hashCode()); + result = + (result * PRIME) + + (this.contentEncoding == null ? 43 : this.contentEncoding.hashCode()); + result = + (result * PRIME) + + (this.contentLanguage == null ? 43 : this.contentLanguage.hashCode()); + result = + (result * PRIME) + + (this.contentDisposition == null + ? 43 + : this.contentDisposition.hashCode()); + result = (result * PRIME) + (this.lastModified == null ? 43 : this.lastModified.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/ListDataFilesResponse.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/ListDataFilesResponse.java new file mode 100644 index 00000000000..b14c876d8b2 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/ListDataFilesResponse.java @@ -0,0 +1,269 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.responses; + +import com.oracle.bmc.apmconfig.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class ListDataFilesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The client request ID. + */ + private String opcClientRequestId; + + /** + * The client request ID. + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned DataFileSummaryCollection instance. + */ + private com.oracle.bmc.apmconfig.model.DataFileSummaryCollection dataFileSummaryCollection; + + /** + * The returned DataFileSummaryCollection instance. + * @return the value + */ + public com.oracle.bmc.apmconfig.model.DataFileSummaryCollection getDataFileSummaryCollection() { + return dataFileSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcClientRequestId", + "opcRequestId", + "opcNextPage", + "dataFileSummaryCollection" + }) + private ListDataFilesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcClientRequestId, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.apmconfig.model.DataFileSummaryCollection dataFileSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcClientRequestId = opcClientRequestId; + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.dataFileSummaryCollection = dataFileSummaryCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The client request ID. + */ + private String opcClientRequestId; + + /** + * The client request ID. + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned DataFileSummaryCollection instance. + */ + private com.oracle.bmc.apmconfig.model.DataFileSummaryCollection dataFileSummaryCollection; + + /** + * The returned DataFileSummaryCollection instance. + * @param dataFileSummaryCollection the value to set + * @return this builder + */ + public Builder dataFileSummaryCollection( + com.oracle.bmc.apmconfig.model.DataFileSummaryCollection + dataFileSummaryCollection) { + this.dataFileSummaryCollection = dataFileSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDataFilesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcClientRequestId(o.getOpcClientRequestId()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + dataFileSummaryCollection(o.getDataFileSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDataFilesResponse build() { + return new ListDataFilesResponse( + __httpStatusCode__, + headers, + opcClientRequestId, + opcRequestId, + opcNextPage, + dataFileSummaryCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",dataFileSummaryCollection=").append(String.valueOf(dataFileSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataFilesResponse)) { + return false; + } + + ListDataFilesResponse other = (ListDataFilesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.dataFileSummaryCollection, other.dataFileSummaryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.dataFileSummaryCollection == null + ? 43 + : this.dataFileSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/PutDataFileResponse.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/PutDataFileResponse.java new file mode 100644 index 00000000000..8ce02790901 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/PutDataFileResponse.java @@ -0,0 +1,302 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.apmconfig.responses; + +import com.oracle.bmc.apmconfig.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class PutDataFileResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The client request ID. + */ + private String opcClientRequestId; + + /** + * The client request ID. + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + */ + private String contentMd5; + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + * @return the value + */ + public String getContentMd5() { + return contentMd5; + } + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + */ + private java.util.Date lastModified; + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + * @return the value + */ + public java.util.Date getLastModified() { + return lastModified; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcClientRequestId", + "contentMd5", + "lastModified" + }) + private PutDataFileResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + String opcClientRequestId, + String contentMd5, + java.util.Date lastModified) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.opcClientRequestId = opcClientRequestId; + this.contentMd5 = contentMd5; + this.lastModified = lastModified; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The client request ID. + */ + private String opcClientRequestId; + + /** + * The client request ID. + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + */ + private String contentMd5; + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + * @param contentMd5 the value to set + * @return this builder + */ + public Builder contentMd5(String contentMd5) { + this.contentMd5 = contentMd5; + return this; + } + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + */ + private java.util.Date lastModified; + + /** + * The last time the object was modified, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * Expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: {@code 2020-02-19T22:47:12.613Z} + * + * @param lastModified the value to set + * @return this builder + */ + public Builder lastModified(java.util.Date lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(PutDataFileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + opcClientRequestId(o.getOpcClientRequestId()); + contentMd5(o.getContentMd5()); + lastModified(o.getLastModified()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public PutDataFileResponse build() { + return new PutDataFileResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcClientRequestId, + contentMd5, + lastModified); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + sb.append(",contentMd5=").append(String.valueOf(contentMd5)); + sb.append(",lastModified=").append(String.valueOf(lastModified)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PutDataFileResponse)) { + return false; + } + + PutDataFileResponse other = (PutDataFileResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) + && java.util.Objects.equals(this.contentMd5, other.contentMd5) + && java.util.Objects.equals(this.lastModified, other.lastModified); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + result = (result * PRIME) + (this.contentMd5 == null ? 43 : this.contentMd5.hashCode()); + result = (result * PRIME) + (this.lastModified == null ? 43 : this.lastModified.hashCode()); + return result; + } +} diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index bfca6e84e3e..9f2be02fed2 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomain.java b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomain.java index 708aefccebd..5b390c0e4b4 100644 --- a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomain.java +++ b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomain.java @@ -27,6 +27,7 @@ public final class ApmDomain extends com.oracle.bmc.http.internal.ExplicitlySetB "compartmentId", "lifecycleState", "isFreeTier", + "logGroupId", "timeCreated", "timeUpdated", "freeformTags", @@ -40,6 +41,7 @@ public ApmDomain( String compartmentId, LifecycleStates lifecycleState, Boolean isFreeTier, + String logGroupId, java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, @@ -52,6 +54,7 @@ public ApmDomain( this.compartmentId = compartmentId; this.lifecycleState = lifecycleState; this.isFreeTier = isFreeTier; + this.logGroupId = logGroupId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; @@ -172,6 +175,22 @@ public Builder isFreeTier(Boolean isFreeTier) { this.__explicitlySet__.add("isFreeTier"); return this; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + * @param logGroupId the value to set + * @return this builder + **/ + public Builder logGroupId(String logGroupId) { + this.logGroupId = logGroupId; + this.__explicitlySet__.add("logGroupId"); + return this; + } /** * The time the APM domain was created, expressed in RFC 3339 timestamp format. **/ @@ -259,6 +278,7 @@ public ApmDomain build() { this.compartmentId, this.lifecycleState, this.isFreeTier, + this.logGroupId, this.timeCreated, this.timeUpdated, this.freeformTags, @@ -292,6 +312,9 @@ public Builder copy(ApmDomain model) { if (model.wasPropertyExplicitlySet("isFreeTier")) { this.isFreeTier(model.getIsFreeTier()); } + if (model.wasPropertyExplicitlySet("logGroupId")) { + this.logGroupId(model.getLogGroupId()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -417,6 +440,20 @@ public Boolean getIsFreeTier() { return isFreeTier; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private final String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + * @return the value + **/ + public String getLogGroupId() { + return logGroupId; + } + /** * The time the APM domain was created, expressed in RFC 3339 timestamp format. **/ @@ -502,6 +539,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", isFreeTier=").append(String.valueOf(this.isFreeTier)); + sb.append(", logGroupId=").append(String.valueOf(this.logGroupId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -527,6 +565,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.isFreeTier, other.isFreeTier) + && java.util.Objects.equals(this.logGroupId, other.logGroupId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -553,6 +592,7 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.isFreeTier == null ? 43 : this.isFreeTier.hashCode()); + result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomainSummary.java b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomainSummary.java index 415e3a7b7d0..555bb0292f8 100644 --- a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomainSummary.java +++ b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomainSummary.java @@ -26,6 +26,7 @@ public final class ApmDomainSummary extends com.oracle.bmc.http.internal.Explici "compartmentId", "lifecycleState", "isFreeTier", + "logGroupId", "timeCreated", "timeUpdated", "freeformTags", @@ -38,6 +39,7 @@ public ApmDomainSummary( String compartmentId, LifecycleStates lifecycleState, Boolean isFreeTier, + String logGroupId, java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, @@ -49,6 +51,7 @@ public ApmDomainSummary( this.compartmentId = compartmentId; this.lifecycleState = lifecycleState; this.isFreeTier = isFreeTier; + this.logGroupId = logGroupId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; @@ -153,6 +156,22 @@ public Builder isFreeTier(Boolean isFreeTier) { this.__explicitlySet__.add("isFreeTier"); return this; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + * @param logGroupId the value to set + * @return this builder + **/ + public Builder logGroupId(String logGroupId) { + this.logGroupId = logGroupId; + this.__explicitlySet__.add("logGroupId"); + return this; + } /** * The time the APM domain was created, expressed in RFC 3339 timestamp format. **/ @@ -239,6 +258,7 @@ public ApmDomainSummary build() { this.compartmentId, this.lifecycleState, this.isFreeTier, + this.logGroupId, this.timeCreated, this.timeUpdated, this.freeformTags, @@ -269,6 +289,9 @@ public Builder copy(ApmDomainSummary model) { if (model.wasPropertyExplicitlySet("isFreeTier")) { this.isFreeTier(model.getIsFreeTier()); } + if (model.wasPropertyExplicitlySet("logGroupId")) { + this.logGroupId(model.getLogGroupId()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -380,6 +403,20 @@ public Boolean getIsFreeTier() { return isFreeTier; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private final String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + * @return the value + **/ + public String getLogGroupId() { + return logGroupId; + } + /** * The time the APM domain was created, expressed in RFC 3339 timestamp format. **/ @@ -464,6 +501,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", isFreeTier=").append(String.valueOf(this.isFreeTier)); + sb.append(", logGroupId=").append(String.valueOf(this.logGroupId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -488,6 +526,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.isFreeTier, other.isFreeTier) + && java.util.Objects.equals(this.logGroupId, other.logGroupId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -509,6 +548,7 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.isFreeTier == null ? 43 : this.isFreeTier.hashCode()); + result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/BaseDomainDetails.java b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/BaseDomainDetails.java index d02f3446ceb..f5d8577095f 100644 --- a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/BaseDomainDetails.java +++ b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/BaseDomainDetails.java @@ -28,6 +28,7 @@ public final class BaseDomainDetails extends com.oracle.bmc.http.internal.Explic "compartmentId", "lifecycleState", "isFreeTier", + "logGroupId", "timeCreated", "timeUpdated", "freeformTags", @@ -40,6 +41,7 @@ public BaseDomainDetails( String compartmentId, LifecycleStates lifecycleState, Boolean isFreeTier, + String logGroupId, java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, @@ -51,6 +53,7 @@ public BaseDomainDetails( this.compartmentId = compartmentId; this.lifecycleState = lifecycleState; this.isFreeTier = isFreeTier; + this.logGroupId = logGroupId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; @@ -155,6 +158,22 @@ public Builder isFreeTier(Boolean isFreeTier) { this.__explicitlySet__.add("isFreeTier"); return this; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + * @param logGroupId the value to set + * @return this builder + **/ + public Builder logGroupId(String logGroupId) { + this.logGroupId = logGroupId; + this.__explicitlySet__.add("logGroupId"); + return this; + } /** * The time the APM domain was created, expressed in RFC 3339 timestamp format. **/ @@ -241,6 +260,7 @@ public BaseDomainDetails build() { this.compartmentId, this.lifecycleState, this.isFreeTier, + this.logGroupId, this.timeCreated, this.timeUpdated, this.freeformTags, @@ -271,6 +291,9 @@ public Builder copy(BaseDomainDetails model) { if (model.wasPropertyExplicitlySet("isFreeTier")) { this.isFreeTier(model.getIsFreeTier()); } + if (model.wasPropertyExplicitlySet("logGroupId")) { + this.logGroupId(model.getLogGroupId()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -382,6 +405,20 @@ public Boolean getIsFreeTier() { return isFreeTier; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private final String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + * @return the value + **/ + public String getLogGroupId() { + return logGroupId; + } + /** * The time the APM domain was created, expressed in RFC 3339 timestamp format. **/ @@ -466,6 +503,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", isFreeTier=").append(String.valueOf(this.isFreeTier)); + sb.append(", logGroupId=").append(String.valueOf(this.logGroupId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -490,6 +528,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.isFreeTier, other.isFreeTier) + && java.util.Objects.equals(this.logGroupId, other.logGroupId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -511,6 +550,7 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.isFreeTier == null ? 43 : this.isFreeTier.hashCode()); + result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/CreateApmDomainDetails.java b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/CreateApmDomainDetails.java index 2f10e864c3b..e04f1901653 100644 --- a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/CreateApmDomainDetails.java +++ b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/CreateApmDomainDetails.java @@ -26,6 +26,7 @@ public final class CreateApmDomainDetails "displayName", "description", "compartmentId", + "logGroupId", "freeformTags", "definedTags", "isFreeTier" @@ -34,6 +35,7 @@ public CreateApmDomainDetails( String displayName, String description, String compartmentId, + String logGroupId, java.util.Map freeformTags, java.util.Map> definedTags, Boolean isFreeTier) { @@ -41,6 +43,7 @@ public CreateApmDomainDetails( this.displayName = displayName; this.description = description; this.compartmentId = compartmentId; + this.logGroupId = logGroupId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.isFreeTier = isFreeTier; @@ -96,6 +99,22 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + * @param logGroupId the value to set + * @return this builder + **/ + public Builder logGroupId(String logGroupId) { + this.logGroupId = logGroupId; + this.__explicitlySet__.add("logGroupId"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -163,6 +182,7 @@ public CreateApmDomainDetails build() { this.displayName, this.description, this.compartmentId, + this.logGroupId, this.freeformTags, this.definedTags, this.isFreeTier); @@ -183,6 +203,9 @@ public Builder copy(CreateApmDomainDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("logGroupId")) { + this.logGroupId(model.getLogGroupId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -249,6 +272,20 @@ public String getCompartmentId() { return compartmentId; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private final String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + * @return the value + **/ + public String getLogGroupId() { + return logGroupId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -316,6 +353,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", logGroupId=").append(String.valueOf(this.logGroupId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", isFreeTier=").append(String.valueOf(this.isFreeTier)); @@ -336,6 +374,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.logGroupId, other.logGroupId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.isFreeTier, other.isFreeTier) @@ -351,6 +390,7 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.isFreeTier == null ? 43 : this.isFreeTier.hashCode()); diff --git a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/UpdateApmDomainDetails.java b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/UpdateApmDomainDetails.java index 852bddc98f7..9e720260372 100644 --- a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/UpdateApmDomainDetails.java +++ b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/UpdateApmDomainDetails.java @@ -22,15 +22,23 @@ public final class UpdateApmDomainDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"displayName", "description", "freeformTags", "definedTags"}) + @java.beans.ConstructorProperties({ + "displayName", + "description", + "logGroupId", + "freeformTags", + "definedTags" + }) public UpdateApmDomainDetails( String displayName, String description, + String logGroupId, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; this.description = description; + this.logGroupId = logGroupId; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -69,6 +77,22 @@ public Builder description(String description) { this.__explicitlySet__.add("description"); return this; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + * @param logGroupId the value to set + * @return this builder + **/ + public Builder logGroupId(String logGroupId) { + this.logGroupId = logGroupId; + this.__explicitlySet__.add("logGroupId"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -119,6 +143,7 @@ public UpdateApmDomainDetails build() { new UpdateApmDomainDetails( this.displayName, this.description, + this.logGroupId, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -135,6 +160,9 @@ public Builder copy(UpdateApmDomainDetails model) { if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } + if (model.wasPropertyExplicitlySet("logGroupId")) { + this.logGroupId(model.getLogGroupId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -184,6 +212,20 @@ public String getDescription() { return description; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private final String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be mapped to. + * @return the value + **/ + public String getLogGroupId() { + return logGroupId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -236,6 +278,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", logGroupId=").append(String.valueOf(this.logGroupId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -254,6 +297,7 @@ public boolean equals(Object o) { UpdateApmDomainDetails other = (UpdateApmDomainDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.logGroupId, other.logGroupId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -265,6 +309,7 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index a0968cfc325..cd1db7a3c53 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index ee9d18d5998..e1b9ec9bd55 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-apmtraces @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 8bb3e61deff..4e0a06f110c 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index a59e9c68f8a..71b99a29861 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-artifacts @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 31de47c6c87..ffd4b36c7fa 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index edfe13cf7a4..c37df02d5aa 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-autoscaling @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index d1d511e4f48..d64713217b0 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-bastion @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-batch/pom.xml b/bmc-batch/pom.xml index 87063de3135..7b96b107cbc 100644 --- a/bmc-batch/pom.xml +++ b/bmc-batch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-batch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index b176a466a2f..ccfc8299846 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-bds @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index ce884a2a00d..4870b2199e3 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-blockchain @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index 0c6bb61338f..f4dc1424e0d 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-bom @@ -19,1073 +19,1079 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-audit - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-core - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-database - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-dns - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-email - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-identity - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 2.93.0 + 2.95.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 2.93.0 + 2.95.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 2.93.0 + 2.95.0 com.oracle.oci.sdk oci-java-sdk-addons-graalvm - 2.93.0 + 2.95.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-waas - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-ons - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-budget - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-limits - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-functions - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-events - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-oce - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-oda - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-integration - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-vault - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-bds - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-cims - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-logging - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-sch - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-rover - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-jms - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-devops - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-waf - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-usage - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-adm - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-waa - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-opa - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-queue - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-redis - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-psql - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-zpr - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-dblm - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-mngdmac - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-lustrefilestorage - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-modeldeployment - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-distributeddatabase - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-wlms - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-dbmulticloud - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-apiplatform - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-managedkafka - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-aidataplatform - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-multicloud - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-resourceanalytics - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-jmsutils - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-iot - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-psa - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-dif - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-batch - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-gdp - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-limitsincrease - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-generativeaidata - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-self - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-containerregistry - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-databasetoolsruntime - 2.93.0 + 2.95.0 false com.oracle.oci.sdk oci-java-sdk-costad - 2.93.0 + 2.95.0 + false + + + com.oracle.oci.sdk + oci-java-sdk-datacc + 2.95.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index abf1a3aa08c..98af83a0681 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-budget @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index 51c70929a36..cb0773b3453 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index 36ba6ae4691..af7fd7ded4a 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-certificates @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 6a15fef5277..c8403a8ab1b 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index d2ef4af6ff5..3c1d6d0df31 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-cims @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 9974aaa4790..e853d89ad77 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index bf6094b0873..c4137838aeb 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-cloudbridge @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index df5f95b989d..cf376f0defd 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-cloudguard @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 2b806ce458c..0aa608f2c36 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/CreateMigrationDetails.java b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/CreateMigrationDetails.java index 7a5f1a76202..2639fd4ea75 100644 --- a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/CreateMigrationDetails.java +++ b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/CreateMigrationDetails.java @@ -30,7 +30,8 @@ public final class CreateMigrationDetails "isCompleted", "migrationConfig", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public CreateMigrationDetails( Migration.MigrationType migrationType, @@ -40,7 +41,8 @@ public CreateMigrationDetails( Boolean isCompleted, MigrationConfig migrationConfig, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.migrationType = migrationType; this.displayName = displayName; @@ -50,6 +52,7 @@ public CreateMigrationDetails( this.migrationConfig = migrationConfig; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -184,6 +187,31 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -198,7 +226,8 @@ public CreateMigrationDetails build() { this.isCompleted, this.migrationConfig, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -231,6 +260,9 @@ public Builder copy(CreateMigrationDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -359,6 +391,28 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -381,6 +435,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", migrationConfig=").append(String.valueOf(this.migrationConfig)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -403,6 +458,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.migrationConfig, other.migrationConfig) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -428,6 +484,11 @@ public int hashCode() { + (this.migrationConfig == null ? 43 : this.migrationConfig.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Migration.java b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Migration.java index e782865757c..2b95976f6dc 100644 --- a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Migration.java +++ b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Migration.java @@ -33,7 +33,8 @@ public final class Migration extends com.oracle.bmc.http.internal.ExplicitlySetB "migrationConfig", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "securityAttributes" }) public Migration( String id, @@ -49,7 +50,8 @@ public Migration( MigrationConfig migrationConfig, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.displayName = displayName; @@ -65,6 +67,7 @@ public Migration( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -299,6 +302,31 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -319,7 +347,8 @@ public Migration build() { this.migrationConfig, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -370,6 +399,9 @@ public Builder copy(Migration model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -687,6 +719,28 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -715,6 +769,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -743,6 +798,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -778,6 +834,11 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/MigrationSummary.java b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/MigrationSummary.java index c69ab3c6381..b7dbfec3dc3 100644 --- a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/MigrationSummary.java +++ b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/MigrationSummary.java @@ -33,7 +33,8 @@ public final class MigrationSummary extends com.oracle.bmc.http.internal.Explici "migrationConfig", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "securityAttributes" }) public MigrationSummary( String id, @@ -49,7 +50,8 @@ public MigrationSummary( MigrationConfig migrationConfig, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.displayName = displayName; @@ -65,6 +67,7 @@ public MigrationSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -299,6 +302,31 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -319,7 +347,8 @@ public MigrationSummary build() { this.migrationConfig, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -370,6 +399,9 @@ public Builder copy(MigrationSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -586,6 +618,28 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -614,6 +668,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -642,6 +697,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -677,6 +733,11 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/UpdateMigrationDetails.java b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/UpdateMigrationDetails.java index 3e18f4b8432..4bf3f4bf9d0 100644 --- a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/UpdateMigrationDetails.java +++ b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/UpdateMigrationDetails.java @@ -29,7 +29,8 @@ public final class UpdateMigrationDetails "migrationType", "migrationConfig", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public UpdateMigrationDetails( String displayName, @@ -38,7 +39,8 @@ public UpdateMigrationDetails( Migration.MigrationType migrationType, MigrationConfig migrationConfig, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.replicationScheduleId = replicationScheduleId; @@ -47,6 +49,7 @@ public UpdateMigrationDetails( this.migrationConfig = migrationConfig; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -165,6 +168,31 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -178,7 +206,8 @@ public UpdateMigrationDetails build() { this.migrationType, this.migrationConfig, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -208,6 +237,9 @@ public Builder copy(UpdateMigrationDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -322,6 +354,28 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -343,6 +397,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", migrationConfig=").append(String.valueOf(this.migrationConfig)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -364,6 +419,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.migrationConfig, other.migrationConfig) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -386,6 +442,11 @@ public int hashCode() { + (this.migrationConfig == null ? 43 : this.migrationConfig.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index 1571494752d..10517e2ad48 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 678cb1da36b..48300af9048 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml @@ -92,7 +92,7 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 2.93.0 + 2.95.0 diff --git a/bmc-common/src/main/java/com/oracle/bmc/auth/AbstractFederationClientAuthenticationDetailsProviderBuilder.java b/bmc-common/src/main/java/com/oracle/bmc/auth/AbstractFederationClientAuthenticationDetailsProviderBuilder.java index f1721b073a4..fe6a484180a 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/auth/AbstractFederationClientAuthenticationDetailsProviderBuilder.java +++ b/bmc-common/src/main/java/com/oracle/bmc/auth/AbstractFederationClientAuthenticationDetailsProviderBuilder.java @@ -12,6 +12,7 @@ import com.oracle.bmc.auth.internal.X509FederationClient; import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.http.ClientConfigurator; import com.oracle.bmc.internal.GuavaUtils; import com.oracle.bmc.util.CircuitBreakerUtils; import com.oracle.bmc.util.internal.StringUtils; @@ -104,29 +105,37 @@ public void log(java.util.logging.Level level, String msg) { private static final String OCI_JAVASDK_EXTRA_IMDS_LOGS_ENABLED_PROP_NAME = "oci.javasdk.extra.imds.logs.enabled"; + static final org.glassfish.jersey.logging.LoggingFeature.Verbosity + EXTRA_IMDS_LOGGING_VERBOSITY = + org.glassfish.jersey.logging.LoggingFeature.Verbosity.PAYLOAD_TEXT; static { - String v = System.getProperty(OCI_JAVASDK_EXTRA_IMDS_LOGS_ENABLED_PROP_NAME, "false"); - if (Boolean.parseBoolean(v)) { + registerExtraImdsLoggingIfEnabled( + CLIENT, System.getProperty(OCI_JAVASDK_EXTRA_IMDS_LOGS_ENABLED_PROP_NAME, "false")); + } + + static boolean registerExtraImdsLoggingIfEnabled(Client client, String value) { + if (Boolean.parseBoolean(value)) { LOG.info( "{} was set to {}, adding logging to AbstractFederationClientAuthenticationDetailsProviderBuilder.CLIENT", OCI_JAVASDK_EXTRA_IMDS_LOGS_ENABLED_PROP_NAME, - v); - javax.ws.rs.core.Feature feature = - new org.glassfish.jersey.logging.LoggingFeature( - new JulFacade(), - java.util.logging.Level.INFO, - org.glassfish.jersey.logging.LoggingFeature.Verbosity.PAYLOAD_TEXT, - 8192); - CLIENT.register(feature); + value); + client.register(createExtraImdsLoggingFeature()); + return true; } else { LOG.debug( "{} was set to {}, adding logging to AbstractFederationClientAuthenticationDetailsProviderBuilder.CLIENT", OCI_JAVASDK_EXTRA_IMDS_LOGS_ENABLED_PROP_NAME, - System.getProperty(OCI_JAVASDK_EXTRA_IMDS_LOGS_ENABLED_PROP_NAME)); + value); + return false; } } + static javax.ws.rs.core.Feature createExtraImdsLoggingFeature() { + return new org.glassfish.jersey.logging.LoggingFeature( + new JulFacade(), java.util.logging.Level.INFO, EXTRA_IMDS_LOGGING_VERBOSITY, 8192); + } + /** * Base url of metadata service. */ @@ -142,6 +151,9 @@ public void log(java.util.logging.Level level, String msg) { */ protected X509CertificateSupplier leafCertificateSupplier; + /** Configurator for metadata service clients used to discover region and certificates. */ + protected ClientConfigurator federationClientMetadataConfigurator; + /** * Tenancy OCI, or null if detecting from instance metadata. */ @@ -192,6 +204,18 @@ public B leafCertificateSupplier(X509CertificateSupplier leafCertificateSupplier return (B) this; } + /** + * Configures the ClientConfigurator to set on the metadata service clients used by the + * federation flow to discover region information and fetch certificates, if any. + * + * @param clientConfigurator the metadata service client configurator + * @return this builder + */ + public B federationClientMetadataConfigurator(ClientConfigurator clientConfigurator) { + this.federationClientMetadataConfigurator = clientConfigurator; + return (B) this; + } + /** * Configures the tenancy id to use. * @param tenancyId the tenancy OCID @@ -290,7 +314,7 @@ protected String autoDetectEndpointUsingMetadataUrl() { executeImdsV2EndpointCheck(); String regionStr = - simpleRetry( + simpleRetryWithMetadataClient( base -> { String region = base.path(REGION_PATH_LITERAL) @@ -350,7 +374,8 @@ protected void autoDetectCertificatesUsingMetadataUrl() { new URLBasedX509CertificateSupplier( getMetadataResourceDetails("identity/cert.pem"), getMetadataResourceDetails("identity/key.pem"), - (char[]) null); + (char[]) null, + federationClientMetadataConfigurator); } if (tenancyId == null) { @@ -368,7 +393,8 @@ protected void autoDetectCertificatesUsingMetadataUrl() { new URLBasedX509CertificateSupplier( getMetadataResourceDetails("identity/intermediate.pem"), null, - (char[]) null)); + (char[]) null, + federationClientMetadataConfigurator)); } } catch (MalformedURLException ex) { throw new IllegalArgumentException("The metadata service url is invalid.", ex); @@ -381,7 +407,7 @@ protected void autoDetectCertificatesUsingMetadataUrl() { private void executeImdsV2EndpointCheck() { try { Response response = - simpleRetry( + simpleRetryWithMetadataClient( base -> { Response v2CheckResponse = base.path(REGION_PATH_LITERAL) @@ -539,6 +565,24 @@ public static T simpleRetry( return simpleRetry(GuavaUtils.adaptFromGuava(retryOperation), metadataServiceUrl, endpoint); } + private T simpleRetryWithMetadataClient( + Function retryOperation, + final String metadataServiceUrl, + final String endpoint) { + if (federationClientMetadataConfigurator == null) { + return simpleRetry(retryOperation, metadataServiceUrl, endpoint); + } + ClientBuilder clientBuilder = ClientBuilder.newBuilder(); + federationClientMetadataConfigurator.customizeBuilder(clientBuilder); + Client client = clientBuilder.build(); + federationClientMetadataConfigurator.customizeClient(client); + try { + return simpleRetry(retryOperation, metadataServiceUrl, endpoint, client); + } finally { + client.close(); + } + } + /** * Retry logic to get endpoint from instance metadata service * @@ -551,6 +595,14 @@ public static T simpleRetry( Function retryOperation, final String metadataServiceUrl, final String endpoint) { + return simpleRetry(retryOperation, metadataServiceUrl, endpoint, CLIENT); + } + + private static T simpleRetry( + Function retryOperation, + final String metadataServiceUrl, + final String endpoint, + final Client client) { ExponentialBackoffDelayStrategyWithJitter strategy = new ExponentialBackoffDelayStrategyWithJitter(TimeUnit.SECONDS.toMillis(30)); @@ -561,7 +613,7 @@ public static T simpleRetry( RuntimeException lastException = null; for (int retry = 0; retry < MAX_RETRIES; retry++) { try { - WebTarget base = CLIENT.target(metadataServiceUrl + "instance/"); + WebTarget base = client.target(metadataServiceUrl + "instance/"); return retryOperation.apply(base); } catch (RuntimeException e) { LOG.warn( diff --git a/bmc-common/src/main/java/com/oracle/bmc/auth/URLBasedX509CertificateSupplier.java b/bmc-common/src/main/java/com/oracle/bmc/auth/URLBasedX509CertificateSupplier.java index ed0fcacaa84..67fa19e84bd 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/auth/URLBasedX509CertificateSupplier.java +++ b/bmc-common/src/main/java/com/oracle/bmc/auth/URLBasedX509CertificateSupplier.java @@ -20,10 +20,15 @@ import java.util.concurrent.atomic.AtomicReference; import javax.annotation.Nonnull; import javax.security.auth.Refreshable; +import javax.ws.rs.client.Client; +import javax.ws.rs.client.ClientBuilder; +import javax.ws.rs.client.Invocation; +import javax.ws.rs.core.Response; import org.slf4j.Logger; import com.oracle.bmc.auth.internal.X509CertificateWithOriginalPem; +import com.oracle.bmc.http.ClientConfigurator; import com.oracle.bmc.http.signing.internal.PEMFileRSAPrivateKeySupplier; import com.oracle.bmc.util.StreamUtils; import org.slf4j.Logger; @@ -166,6 +171,9 @@ public String toString() { */ private final char[] privateKeyPassphraseCharacters; + /** Optional configurator for HTTP(S) resource fetches. */ + private final ClientConfigurator clientConfigurator; + /** * Constructor. * @@ -177,9 +185,30 @@ public URLBasedX509CertificateSupplier( ResourceDetails certificateResourceDetails, ResourceDetails privateKeyResourceDetails, char[] privateKeyPassphraseCharacters) { + this( + certificateResourceDetails, + privateKeyResourceDetails, + privateKeyPassphraseCharacters, + null); + } + + /** + * Constructor. + * + * @param certificateResourceDetails The certificate resource details + * @param privateKeyResourceDetails The private key resource details, may be null for intermediate certificates + * @param privateKeyPassphraseCharacters The private key passphrase, may be null for unencrypted private keys + * @param clientConfigurator optional configurator for the underlying HTTP(S) client + */ + public URLBasedX509CertificateSupplier( + ResourceDetails certificateResourceDetails, + ResourceDetails privateKeyResourceDetails, + char[] privateKeyPassphraseCharacters, + ClientConfigurator clientConfigurator) { this.certificateDetails = certificateResourceDetails; this.privateKeyDetails = privateKeyResourceDetails; this.privateKeyPassphraseCharacters = privateKeyPassphraseCharacters; + this.clientConfigurator = clientConfigurator; refresh(); } @@ -193,10 +222,27 @@ public URLBasedX509CertificateSupplier( */ public URLBasedX509CertificateSupplier( URL certificateUrl, URL privateKeyUrl, char[] privateKeyPassphraseCharacters) { + this(certificateUrl, privateKeyUrl, privateKeyPassphraseCharacters, null); + } + + /** + * Constructor. + * + * @param certificateUrl The certificate url + * @param privateKeyUrl The private key url, may be null for intermediate certificates + * @param privateKeyPassphraseCharacters The private key passphrase, may be null for unencrypted private keys + * @param clientConfigurator optional configurator for the underlying HTTP(S) client + */ + public URLBasedX509CertificateSupplier( + URL certificateUrl, + URL privateKeyUrl, + char[] privateKeyPassphraseCharacters, + ClientConfigurator clientConfigurator) { this( ResourceDetails.builder().url(certificateUrl).build(), ResourceDetails.builder().url(privateKeyUrl).build(), - privateKeyPassphraseCharacters); + privateKeyPassphraseCharacters, + clientConfigurator); } /** @@ -213,7 +259,8 @@ public URLBasedX509CertificateSupplier( this( certificateUrl, privateKeyUrl, - privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null); + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null, + null); } /** @@ -233,10 +280,11 @@ public X509Certificate getCertificate() { */ @Override public void refresh() { - String rawCertificate = readRawCertificate(certificateDetails); + String rawCertificate = readRawCertificate(certificateDetails, clientConfigurator); X509Certificate certificate = readCertificate(rawCertificate); RSAPrivateKey privateKey = - readPrivateKey(privateKeyDetails, privateKeyPassphraseCharacters); + readPrivateKey( + privateKeyDetails, privateKeyPassphraseCharacters, clientConfigurator); if (EXPERIMENTAL_SUPPRESS_X509_WORKAROUND) { this.certificateAndKeyPair.set( new CertificateAndPrivateKeyPair(certificate, privateKey)); @@ -274,12 +322,16 @@ private static X509Certificate readCertificate(String certificate) { } } - private static String readRawCertificate(final ResourceDetails certificateResourceDetails) { + private static String readRawCertificate( + final ResourceDetails certificateResourceDetails, + final ClientConfigurator clientConfigurator) { final int MAX_RETRIES = 3; IOException lastException = null; for (int retry = 0; retry < MAX_RETRIES; retry++) { - try (InputStream is = getResourceStream(certificateResourceDetails)) { - return StreamUtils.toString(is, StandardCharsets.UTF_8); + try { + return new String( + readResource(certificateResourceDetails, clientConfigurator), + StandardCharsets.UTF_8); } catch (IOException e) { LOG.info("Attempt {} to open stream of certificate failed.", (retry + 1), e); lastException = e; @@ -298,6 +350,55 @@ private static String readRawCertificate(final ResourceDetails certificateResour throw new IllegalArgumentException("Open stream of certificate failed.", lastException); } + private static byte[] readResource( + @Nonnull final ResourceDetails resourceDetails, + final ClientConfigurator clientConfigurator) + throws IOException { + if (shouldUseJaxRsClient(resourceDetails, clientConfigurator)) { + return getResourceBytesUsingJaxRsClient(resourceDetails, clientConfigurator); + } + try (InputStream is = getResourceStream(resourceDetails)) { + return StreamUtils.toByteArray(is); + } + } + + private static boolean shouldUseJaxRsClient( + @Nonnull final ResourceDetails resourceDetails, + final ClientConfigurator clientConfigurator) { + if (clientConfigurator == null || resourceDetails.getUrl() == null) { + return false; + } + String protocol = resourceDetails.getUrl().getProtocol(); + return "http".equalsIgnoreCase(protocol) || "https".equalsIgnoreCase(protocol); + } + + private static byte[] getResourceBytesUsingJaxRsClient( + @Nonnull final ResourceDetails resourceDetails, + final ClientConfigurator clientConfigurator) + throws IOException { + ClientBuilder clientBuilder = ClientBuilder.newBuilder(); + clientConfigurator.customizeBuilder(clientBuilder); + Client client = clientBuilder.build(); + clientConfigurator.customizeClient(client); + try { + Invocation.Builder request = + client.target(resourceDetails.getUrl().toExternalForm()).request(); + if (resourceDetails.getHeaders() != null) { + resourceDetails.getHeaders().forEach(request::header); + } + try (Response response = request.get()) { + if (response.getStatus() >= 400) { + throw new IOException( + "Open stream of certificate failed with HTTP status " + + response.getStatus()); + } + return response.readEntity(byte[].class); + } + } finally { + client.close(); + } + } + private static InputStream getResourceStream(@Nonnull final ResourceDetails resourceDetails) throws IOException { if (resourceDetails == null) { @@ -320,7 +421,9 @@ private static InputStream getResourceStream(@Nonnull final ResourceDetails reso * @return the private key */ private static RSAPrivateKey readPrivateKey( - final ResourceDetails privateKeyResourceDetails, char[] privateKeyPassphrase) { + final ResourceDetails privateKeyResourceDetails, + char[] privateKeyPassphrase, + final ClientConfigurator clientConfigurator) { if (privateKeyResourceDetails == null || privateKeyResourceDetails.getUrl() == null) { return null; } @@ -328,7 +431,9 @@ private static RSAPrivateKey readPrivateKey( final int MAX_RETRIES = 3; Exception lastException = null; for (int retry = 0; retry < MAX_RETRIES; retry++) { - try (InputStream inputStream = getResourceStream(privateKeyResourceDetails)) { + try (InputStream inputStream = + new ByteArrayInputStream( + readResource(privateKeyResourceDetails, clientConfigurator))) { return new PEMFileRSAPrivateKeySupplier(inputStream, privateKeyPassphrase) .supplyKey(null) .orElse(null); diff --git a/bmc-common/src/main/java/com/oracle/bmc/http/ApacheConnectorPropertiesClientConfigDecorator.java b/bmc-common/src/main/java/com/oracle/bmc/http/ApacheConnectorPropertiesClientConfigDecorator.java index 63e01cdf3c7..46dad4470e9 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/http/ApacheConnectorPropertiesClientConfigDecorator.java +++ b/bmc-common/src/main/java/com/oracle/bmc/http/ApacheConnectorPropertiesClientConfigDecorator.java @@ -150,6 +150,17 @@ else if (!config.isConnectionPooling()) { config.isConnectionManagerShared()); } + /** + * Creates the connection socket factory registry. + * + *

SSL initialization failures are intentionally propagated. This decorator must not + * register a plaintext socket factory for the {@code https} scheme. Applications that require + * plaintext transport must explicitly provide a connection manager through {@link + * ApacheConnectorProperties}. + * + * @return the connection socket factory registry + * @throws SSLInitializationException if the default SSL socket factory cannot be initialized + */ private Registry getRegistry() { final RegistryBuilder registryBuilder = RegistryBuilder.create() @@ -166,19 +177,22 @@ private Registry getRegistry() { registry = registryBuilder.register("https", sslConnectionSocketFactory).build(); } else { registry = - registryBuilder - .register("https", SSLConnectionSocketFactory.getSocketFactory()) - .build(); + registryBuilder.register("https", getSslConnectionSocketFactory()).build(); } } catch (SSLInitializationException e) { - registry = - registryBuilder - .register("https", PlainConnectionSocketFactory.getSocketFactory()) - .build(); + // Fail closed: never fall back to a plaintext socket factory for the "https" scheme. + LOG.info( + "Failed to initialize SSL context for the 'https' scheme; refusing to fall" + + " back to plain text"); + throw e; } return registry; } + SSLConnectionSocketFactory getSslConnectionSocketFactory() { + return SSLConnectionSocketFactory.getSocketFactory(); + } + private SSLContext getSslContext() { JavaRuntimeUtils.JreVersion version = JavaRuntimeUtils.getRuntimeVersion(); if (version == JavaRuntimeUtils.JreVersion.Java_7) { diff --git a/bmc-common/src/main/java/com/oracle/bmc/http/internal/HeaderUtils.java b/bmc-common/src/main/java/com/oracle/bmc/http/internal/HeaderUtils.java index b3312c8d85f..14ca91b426b 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/http/internal/HeaderUtils.java +++ b/bmc-common/src/main/java/com/oracle/bmc/http/internal/HeaderUtils.java @@ -6,10 +6,18 @@ import java.lang.reflect.InvocationTargetException; import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; import java.util.Date; +import java.util.HashSet; +import java.util.LinkedHashMap; import java.util.List; import java.util.Locale; +import java.util.Map; import java.util.Map.Entry; +import java.util.Set; +import java.util.regex.Pattern; import javax.ws.rs.core.MultivaluedMap; @@ -23,6 +31,58 @@ * Utilities to deal with header values. */ public class HeaderUtils { + public static final String REDACTED_VALUE = "REDACTED"; + + /** + * Exact header names that are well-known credential carriers. + */ + private static final Set SENSITIVE_HEADERS = + Collections.unmodifiableSet( + new HashSet<>( + Arrays.asList( + "authorization", + "proxy-authorization", + "opc-obo-token", + "x-api-key", + "cookie", + "set-cookie", + "security-context", + "password", + "passphrase"))); + + private static final String HEADER_DELIMITER = "-"; + private static final String HEADER_NAME_DELIMITER_REGEX = "[-_]+"; + + /** + * Pattern rules for wildcard-style header families and credential-like suffixes. + */ + private static final List SENSITIVE_HEADER_PATTERNS = + Collections.unmodifiableList( + Arrays.asList( + Pattern.compile("^x-token(?:-|$).*"), + Pattern.compile("^x-authorization(?:-|$).*"), + Pattern.compile("^x-key-.*"), + credentialSuffixPattern("access-token"), + credentialSuffixPattern("refresh-token"), + credentialSuffixPattern("id-token"), + credentialSuffixPattern("security-token"), + credentialSuffixPattern("session-token"), + credentialSuffixPattern("delegation-token"), + credentialSuffixPattern("client-secret"), + credentialSuffixPattern("private-key"))); + + /** + * Matches exact credential names and delimited suffixes, for example "access-token" and + * "idcs-access-token", without matching unrelated names like "tokenization-status". + * + * @param normalizedCredentialName + * The normalized credential name. + * @return The credential suffix pattern. + */ + private static Pattern credentialSuffixPattern(String normalizedCredentialName) { + return Pattern.compile("(?:^|.*-)" + Pattern.quote(normalizedCredentialName) + "$"); + } + /** * Returns the header values for the given header key. * @@ -120,4 +180,86 @@ public static T toValue(String headerName, String value, Class clazz) { } throw new IllegalArgumentException("Unknown header type: " + clazz); } + + /** + * Checks whether the given header name should be treated as sensitive. + * + * @param headerName + * The header name. + * @return true if the header is sensitive, false otherwise. + */ + public static boolean isSensitiveHeader(String headerName) { + if (headerName == null) { + return false; + } + String normalizedHeaderName = normalizeHeaderName(headerName); + return isExactSensitiveHeader(normalizedHeaderName) + || matchesSensitiveHeaderPattern(normalizedHeaderName); + } + + /** + * Normalizes common generated-name variants consistently, for example client_secret to + * client-secret. + * + * @param headerName + * The header name. + * @return The normalized header name. + */ + private static String normalizeHeaderName(String headerName) { + return headerName + .toLowerCase(Locale.ROOT) + .replaceAll(HEADER_NAME_DELIMITER_REGEX, HEADER_DELIMITER); + } + + private static boolean isExactSensitiveHeader(String normalizedHeaderName) { + return SENSITIVE_HEADERS.contains(normalizedHeaderName); + } + + private static boolean matchesSensitiveHeaderPattern(String normalizedHeaderName) { + for (Pattern pattern : SENSITIVE_HEADER_PATTERNS) { + if (pattern.matcher(normalizedHeaderName).matches()) { + return true; + } + } + return false; + } + + /** + * Redacts header values when the header name is sensitive. + * + * @param headerName + * The header name. + * @param values + * The header values. + * @return The redacted values if the header is sensitive, otherwise the original values. + */ + public static List sanitizeHeaderValues(String headerName, List values) { + if (!isSensitiveHeader(headerName) || values == null) { + return values; + } + List redactedValues = new ArrayList<>(values.size()); + for (int i = 0; i < values.size(); i++) { + redactedValues.add(REDACTED_VALUE); + } + return redactedValues; + } + + /** + * Redacts sensitive header values in the given header map. + * + * @param headers + * The header map. + * @return A sanitized header map, or null when the input is null. + */ + public static Map> sanitizeHeaders(Map> headers) { + if (headers == null) { + return null; + } + Map> sanitizedHeaders = new LinkedHashMap<>(); + for (Entry> entry : headers.entrySet()) { + sanitizedHeaders.put( + entry.getKey(), sanitizeHeaderValues(entry.getKey(), entry.getValue())); + } + return sanitizedHeaders; + } } diff --git a/bmc-common/src/main/java/com/oracle/bmc/http/internal/LogHeadersFilter.java b/bmc-common/src/main/java/com/oracle/bmc/http/internal/LogHeadersFilter.java index 6697c2afdd1..64fb108aab2 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/http/internal/LogHeadersFilter.java +++ b/bmc-common/src/main/java/com/oracle/bmc/http/internal/LogHeadersFilter.java @@ -7,7 +7,6 @@ import java.io.IOException; import java.util.List; import java.util.Map.Entry; -import java.util.stream.Collectors; import javax.annotation.Priority; import javax.ws.rs.Priorities; import javax.ws.rs.client.ClientRequestContext; @@ -16,8 +15,6 @@ import javax.ws.rs.client.ClientResponseFilter; import javax.ws.rs.core.MultivaluedMap; -import com.oracle.bmc.util.VisibleForTesting; - /** * Filter that logs all of the outbound and inbound headers at debug level. */ @@ -39,7 +36,10 @@ public void filter(ClientRequestContext requestContext, ClientResponseContext re requestContext.getUri()); MultivaluedMap headers = responseContext.getHeaders(); for (Entry> entry : headers.entrySet()) { - LOG.debug("Received header '{}' with value '{}'", entry.getKey(), entry.getValue()); + LOG.debug( + "Received header '{}' with value '{}'", + entry.getKey(), + HeaderUtils.sanitizeHeaderValues(entry.getKey(), entry.getValue())); } } @@ -54,18 +54,10 @@ public void filter(ClientRequestContext requestContext) throws IOException { requestContext.getUri()); MultivaluedMap headers = requestContext.getStringHeaders(); for (Entry> entry : headers.entrySet()) { - List value = entry.getValue(); - if (entry.getKey() != null && entry.getKey().equalsIgnoreCase("authorization")) { - value = maskValue(entry.getValue()); - } - LOG.debug("Sending header '{}' with value '{}'", entry.getKey(), value); + LOG.debug( + "Sending header '{}' with value '{}'", + entry.getKey(), + HeaderUtils.sanitizeHeaderValues(entry.getKey(), entry.getValue())); } } - - @VisibleForTesting - protected List maskValue(List values) { - return values.stream() - .map(e -> e.replaceAll("(?<=keyId=)\"(.*?)\"", "\"REDACTED\"")) - .collect(Collectors.toList()); - } } diff --git a/bmc-common/src/main/java/com/oracle/bmc/http/internal/ResponseHelper.java b/bmc-common/src/main/java/com/oracle/bmc/http/internal/ResponseHelper.java index 5a418beb5bf..6ab13d0a5ef 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/http/internal/ResponseHelper.java +++ b/bmc-common/src/main/java/com/oracle/bmc/http/internal/ResponseHelper.java @@ -39,7 +39,6 @@ public class ResponseHelper { org.slf4j.LoggerFactory.getLogger(ResponseHelper.class); private static final ObjectReader STRING_READER = com.oracle.bmc.http.Serialization.getObjectMapper().readerFor(String.class); - private static final int MAX_RESPONSE_BUFFER_BYTES = 4096; private static final String OPC_REQUEST_ID_HEADER = "opc-request-id"; private static final Map DEFAULT_ERROR_MESSAGES = new HashMap<>(); @@ -91,23 +90,14 @@ public static void throwIfNotSuccessful( // If the response Content-Type is not application/json, then don't bother parsing the response body. if (!typeEqual(MediaType.APPLICATION_JSON_TYPE, response.getMediaType())) { - String responseBody = "Cannot read response body!"; - try { - responseBody = response.readEntity(String.class); - } catch (ProcessingException e) { - // Unable to read the response body. This is non-fatal so swallow the error and proceed. - LOG.warn("Unable to read response body", e); - } - try { throw new BmcException( response.getStatus(), "Unknown", String.format( - "Unexpected Content-Type: %s instead of %s. Response body: %s", + "Unexpected Content-Type: %s instead of %s. Response body omitted.", response.getMediaType(), - MediaType.APPLICATION_JSON_TYPE, - responseBody), + MediaType.APPLICATION_JSON_TYPE), opcRequestId, serviceDetails); } finally { @@ -117,25 +107,7 @@ public static void throwIfNotSuccessful( } } - boolean isBuffered = false; try { - /* - * Try to buffer the response for error logging in case parsing - * fails. Ideally we would be able to specify "first X bytes" (to - * avoid OOMs on large responses) but response buffering in JAX-RS - * seems to be all-or-nothing unless we adopt a bit more complexity - * by handing the parsing ourselves. - */ - if (response.getLength() < MAX_RESPONSE_BUFFER_BYTES) { - try { - isBuffered = response.bufferEntity(); - } catch (IllegalStateException e) { - // bufferEntity will throw ISE if the response is closed already - LOG.info( - "Unable to buffer response entity as the response has already been closed", - e); - } - } final ErrorCodeAndMessage errorCodeAndMessage = response.readEntity(ErrorCodeAndMessage.class); if (errorCodeAndMessage == null) { @@ -162,18 +134,13 @@ public static void throwIfNotSuccessful( } catch (ProcessingException e) { // NOTE: for async paths, this means the first invocation will be the only one that gets // the original message. - String message = - isBuffered - ? "Unable to parse error response: " - + response.readEntity(String.class) - : "Unable to parse error response."; + String message = "Unable to parse error response."; int status = response.getStatus(); - // if there's a processing exception, we cannot assume that the response has been closed, - // so close it now after the response has been read out. - closeResponseSilently(response); - throw new BmcException(status, "Unknown", message, opcRequestId, e, serviceDetails); + } finally { + // Ensure JSON error responses also release their underlying connection. + closeResponseSilently(response); } } } @@ -292,6 +259,9 @@ public static T readEntity(@Nonnull final Response response, Class entity } return entityType.cast(inputStream); + } catch (Exception e) { + closeResponseSilently(response); + throw e; } finally { if (contentType != null) { response.getHeaders().addAll(HttpHeaders.CONTENT_TYPE, contentType); diff --git a/bmc-common/src/main/java/com/oracle/bmc/http/signing/internal/RequestSignerImpl.java b/bmc-common/src/main/java/com/oracle/bmc/http/signing/internal/RequestSignerImpl.java index b1d34c2ec42..f387266cac1 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/http/signing/internal/RequestSignerImpl.java +++ b/bmc-common/src/main/java/com/oracle/bmc/http/signing/internal/RequestSignerImpl.java @@ -32,6 +32,7 @@ import javax.annotation.concurrent.Immutable; import com.fasterxml.jackson.core.JsonProcessingException; +import com.oracle.bmc.http.internal.HeaderUtils; import com.oracle.bmc.util.StreamUtils; import com.oracle.bmc.util.VisibleForTesting; import com.oracle.bmc.http.signing.RequestSigner; @@ -326,7 +327,8 @@ static Map> ignoreCaseHeaders( private static String transformHeadersToJsonString(final Map> headers) { try { - return com.oracle.bmc.http.Serialization.getObjectMapper().writeValueAsString(headers); + return com.oracle.bmc.http.Serialization.getObjectMapper() + .writeValueAsString(HeaderUtils.sanitizeHeaders(headers)); } catch (JsonProcessingException ex) { LOG.debug("Unable to serialize headers to JSON string", ex); return "UNABLE TO SERIALIZE"; diff --git a/bmc-common/src/main/java/com/oracle/bmc/internal/EndpointBuilder.java b/bmc-common/src/main/java/com/oracle/bmc/internal/EndpointBuilder.java index 85e415322a4..a80e86f9482 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/internal/EndpointBuilder.java +++ b/bmc-common/src/main/java/com/oracle/bmc/internal/EndpointBuilder.java @@ -36,6 +36,22 @@ public class EndpointBuilder { private static final Pattern PLACEHOLDER_PATTERN = Pattern.compile("\\{(.*?)\\}"); + /** + * Matches a domain-safe endpoint template parameter. Endpoint parameters with the {@code +Dot} + * suffix are interpolated directly into the hostname, so they must not contain URL syntax that + * could alter the request destination. + * + *

Examples of allowed values: {@code namespace}, {@code namespace1}, {@code namespace_name}, + * {@code namespace.example}, {@code dex-us-phoenix-1}. + * + *

Examples of rejected values: {@code namespace/example}, {@code user@example}, {@code + * namespace?query}, {@code namespace name}, {@code -namespace}, {@code namespace-}. + */ + private static final Pattern DOMAIN_SAFE_PARAMETER_PATTERN = + Pattern.compile( + "[A-Z0-9_](?:[A-Z0-9_-]{0,61}[A-Z0-9_])?(?:\\.[A-Z0-9_](?:[A-Z0-9_-]{0,61}[A-Z0-9_])?)*", + Pattern.CASE_INSENSITIVE); + private static final String ENDPOINT_TEMPLATE_FOR_REGION_WITH_DOT = "https://{endpointServiceName}.{region}"; @@ -357,7 +373,9 @@ protected static String getEndpointWithPopulatedServiceParams( paramName); continue; } - updatedEndpointBuilder.append(paramValue); + String paramValueString = (String) paramValue; + validateDomainSafeParameter(paramName, paramValueString); + updatedEndpointBuilder.append(paramValueString); if (appendDot) { updatedEndpointBuilder.append('.'); } @@ -377,6 +395,22 @@ protected static String getEndpointWithPopulatedServiceParams( return updatedEndpoint; } + /** + * Validates a service endpoint template parameter that will be rendered into a hostname. + * + * @param paramName endpoint template parameter name + * @param paramValue endpoint template parameter value + * @throws IllegalArgumentException if the value is not domain-safe + */ + private static void validateDomainSafeParameter(String paramName, String paramValue) { + if (!DOMAIN_SAFE_PARAMETER_PATTERN.matcher(paramValue).matches()) { + throw new IllegalArgumentException( + "Endpoint parameter " + + paramName + + " contains characters that are not allowed in a domain-safe endpoint parameter"); + } + } + /** * Checks if the given endpoint string contains any placeholders. A placeholder is denoted by * the presence of '{' character. diff --git a/bmc-common/src/test/java/com/oracle/bmc/auth/AbstractFederationClientAuthenticationDetailsProviderBuilderTest.java b/bmc-common/src/test/java/com/oracle/bmc/auth/AbstractFederationClientAuthenticationDetailsProviderBuilderTest.java new file mode 100644 index 00000000000..8432fb1436e --- /dev/null +++ b/bmc-common/src/test/java/com/oracle/bmc/auth/AbstractFederationClientAuthenticationDetailsProviderBuilderTest.java @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.auth; + +import org.glassfish.jersey.logging.LoggingFeature; +import org.junit.Assert; +import org.junit.Test; +import org.mockito.ArgumentCaptor; + +import javax.ws.rs.client.Client; + +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.never; +import static org.mockito.Mockito.verify; + +public class AbstractFederationClientAuthenticationDetailsProviderBuilderTest { + + @Test + public void registerExtraIMDSLoggingIfEnabled_shouldRegisterPayloadLoggingWhenFlagIsEnabled() { + Client client = mock(Client.class); + ArgumentCaptor featureCaptor = ArgumentCaptor.forClass(Object.class); + + Assert.assertTrue( + AbstractFederationClientAuthenticationDetailsProviderBuilder + .registerExtraImdsLoggingIfEnabled(client, "true")); + + verify(client).register(featureCaptor.capture()); + Assert.assertTrue(featureCaptor.getValue() instanceof LoggingFeature); + Assert.assertEquals( + LoggingFeature.Verbosity.PAYLOAD_TEXT, + AbstractFederationClientAuthenticationDetailsProviderBuilder + .EXTRA_IMDS_LOGGING_VERBOSITY); + } + + @Test + public void registerExtraIMDSLoggingIfEnabled_shouldNotRegisterLoggingWhenFlagIsDisabled() { + Client client = mock(Client.class); + + Assert.assertFalse( + AbstractFederationClientAuthenticationDetailsProviderBuilder + .registerExtraImdsLoggingIfEnabled(client, "false")); + + verify(client, never()).register(org.mockito.Matchers.any()); + } +} diff --git a/bmc-common/src/test/java/com/oracle/bmc/auth/TestAbstractFederationClientAuthenticationDetailsProviderBuilder.java b/bmc-common/src/test/java/com/oracle/bmc/auth/TestAbstractFederationClientAuthenticationDetailsProviderBuilder.java new file mode 100644 index 00000000000..80b6810d73b --- /dev/null +++ b/bmc-common/src/test/java/com/oracle/bmc/auth/TestAbstractFederationClientAuthenticationDetailsProviderBuilder.java @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.auth; + +import com.oracle.bmc.Region; +import com.oracle.bmc.http.ClientConfigurator; +import com.sun.net.httpserver.HttpExchange; +import com.sun.net.httpserver.HttpServer; +import java.io.IOException; +import java.net.InetSocketAddress; +import java.nio.charset.StandardCharsets; +import java.util.concurrent.atomic.AtomicInteger; +import javax.ws.rs.client.Client; +import javax.ws.rs.client.ClientBuilder; +import javax.ws.rs.client.ClientRequestFilter; +import org.junit.Test; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; + +public class TestAbstractFederationClientAuthenticationDetailsProviderBuilder { + private static final String CONFIGURED_HEADER = "x-configured"; + + @Test + public void testMetadataClientConfiguratorUsedForRegionLookup() throws Exception { + HttpServer server = HttpServer.create(new InetSocketAddress(0), 0); + AtomicInteger configuredRequests = new AtomicInteger(0); + server.createContext( + "/opc/v2/instance/region", + exchange -> { + if ("true".equals(exchange.getRequestHeaders().getFirst(CONFIGURED_HEADER))) { + configuredRequests.incrementAndGet(); + writeResponse(exchange, 200, "us-ashburn-1"); + } else { + writeResponse(exchange, 500, "missing configured header"); + } + }); + server.start(); + try { + TestBuilder builder = + new TestBuilder() + .metadataBaseUrl( + "http://localhost:" + + server.getAddress().getPort() + + "/opc/v2/") + .federationClientMetadataConfigurator(new HeaderClientConfigurator()); + + assertTrue(builder.detectEndpoint().contains(Region.US_ASHBURN_1.getRegionId())); + assertEquals(Region.US_ASHBURN_1, builder.getRegion()); + assertEquals(2, configuredRequests.get()); + } finally { + server.stop(0); + } + } + + private static void writeResponse(HttpExchange exchange, int status, String body) + throws IOException { + byte[] response = body.getBytes(StandardCharsets.UTF_8); + exchange.sendResponseHeaders(status, response.length); + exchange.getResponseBody().write(response); + exchange.close(); + } + + private static class HeaderClientConfigurator implements ClientConfigurator { + @Override + public void customizeBuilder(ClientBuilder builder) {} + + @Override + public void customizeClient(Client client) { + client.register( + (ClientRequestFilter) + requestContext -> + requestContext.getHeaders().add(CONFIGURED_HEADER, "true")); + } + } + + private static class TestBuilder + extends AbstractFederationClientAuthenticationDetailsProviderBuilder< + TestBuilder, TestProvider> { + String detectEndpoint() { + return autoDetectEndpointUsingMetadataUrl(); + } + + @Override + protected TestProvider buildProvider(SessionKeySupplier sessionKeySupplierToUse) { + return new TestProvider(); + } + } + + private static class TestProvider implements AbstractAuthenticationDetailsProvider {} +} diff --git a/bmc-common/src/test/java/com/oracle/bmc/auth/URLBasedX509CertificateSupplierTest.java b/bmc-common/src/test/java/com/oracle/bmc/auth/URLBasedX509CertificateSupplierTest.java new file mode 100644 index 00000000000..76690b02b56 --- /dev/null +++ b/bmc-common/src/test/java/com/oracle/bmc/auth/URLBasedX509CertificateSupplierTest.java @@ -0,0 +1,98 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.auth; + +import com.oracle.bmc.http.ClientConfigurator; +import com.oracle.bmc.util.StreamUtils; +import com.sun.net.httpserver.HttpExchange; +import com.sun.net.httpserver.HttpServer; +import java.io.IOException; +import java.io.InputStream; +import java.net.InetSocketAddress; +import java.net.URL; +import java.nio.charset.StandardCharsets; +import java.util.concurrent.atomic.AtomicInteger; +import javax.ws.rs.client.Client; +import javax.ws.rs.client.ClientBuilder; +import javax.ws.rs.client.ClientRequestFilter; +import org.junit.Test; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +public class URLBasedX509CertificateSupplierTest { + private static final String CONFIGURED_HEADER = "x-configured"; + + @Test + public void testClientConfiguratorUsedForHttpResourceFetches() throws Exception { + String certificate = readResource("x509_cert.pem"); + String privateKey = readResource("pkcs1_decrypted_private_key.pem"); + HttpServer server = HttpServer.create(new InetSocketAddress(0), 0); + AtomicInteger configuredRequests = new AtomicInteger(0); + server.createContext( + "/cert.pem", + exchange -> writeConfiguredResponse(exchange, certificate, configuredRequests)); + server.createContext( + "/key.pem", + exchange -> writeConfiguredResponse(exchange, privateKey, configuredRequests)); + server.start(); + try { + int port = server.getAddress().getPort(); + URLBasedX509CertificateSupplier supplier = + new URLBasedX509CertificateSupplier( + new URL("http://localhost:" + port + "/cert.pem"), + new URL("http://localhost:" + port + "/key.pem"), + (char[]) null, + new HeaderClientConfigurator()); + + assertNotNull(supplier.getCertificateAndKeyPair().getCertificate()); + assertNotNull(supplier.getCertificateAndKeyPair().getPrivateKey()); + assertEquals(2, configuredRequests.get()); + } finally { + server.stop(0); + } + } + + private static String readResource(String resourceName) throws IOException { + try (InputStream stream = + URLBasedX509CertificateSupplierTest.class + .getClassLoader() + .getResourceAsStream(resourceName)) { + return StreamUtils.toString(stream, StandardCharsets.UTF_8); + } + } + + private static void writeConfiguredResponse( + HttpExchange exchange, String body, AtomicInteger configuredRequests) + throws IOException { + if ("true".equals(exchange.getRequestHeaders().getFirst(CONFIGURED_HEADER))) { + configuredRequests.incrementAndGet(); + writeResponse(exchange, 200, body); + } else { + writeResponse(exchange, 500, "missing configured header"); + } + } + + private static void writeResponse(HttpExchange exchange, int status, String body) + throws IOException { + byte[] response = body.getBytes(StandardCharsets.UTF_8); + exchange.sendResponseHeaders(status, response.length); + exchange.getResponseBody().write(response); + exchange.close(); + } + + private static class HeaderClientConfigurator implements ClientConfigurator { + @Override + public void customizeBuilder(ClientBuilder builder) {} + + @Override + public void customizeClient(Client client) { + client.register( + (ClientRequestFilter) + requestContext -> + requestContext.getHeaders().add(CONFIGURED_HEADER, "true")); + } + } +} diff --git a/bmc-common/src/test/java/com/oracle/bmc/auth/internal/X509FederationClientTest.java b/bmc-common/src/test/java/com/oracle/bmc/auth/internal/X509FederationClientTest.java index 7263dd32197..f47a004bfec 100644 --- a/bmc-common/src/test/java/com/oracle/bmc/auth/internal/X509FederationClientTest.java +++ b/bmc-common/src/test/java/com/oracle/bmc/auth/internal/X509FederationClientTest.java @@ -94,6 +94,17 @@ public void setUp() { mockStatic(Thread.class); } + @Test + public void constructorPassesAdditionalClientConfiguratorsToRestClientUtils() { + PowerMockito.verifyStatic(Mockito.atLeastOnce()); + RestClientUtils.createRestClient( + Mockito.eq("federationEndpoint"), + Mockito.any(), + Mockito.same(mockAddlConfigurators), + Mockito.any(), + Mockito.any()); + } + @Test public void makeCall_shouldReuseWrappedInvocationBuilderReference_whenBmcExceptionIsThrown() throws Exception { diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/ApacheConnectorPropertiesClientConfigDecoratorTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/ApacheConnectorPropertiesClientConfigDecoratorTest.java new file mode 100644 index 00000000000..51a59919ec2 --- /dev/null +++ b/bmc-common/src/test/java/com/oracle/bmc/http/ApacheConnectorPropertiesClientConfigDecoratorTest.java @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.http; + +import org.apache.http.conn.ssl.SSLConnectionSocketFactory; +import org.apache.http.ssl.SSLInitializationException; +import org.glassfish.jersey.apache.connector.ApacheConnectorProvider; +import org.glassfish.jersey.client.ClientConfig; +import org.junit.Test; + +import static org.junit.Assert.assertSame; +import static org.junit.Assert.fail; + +public class ApacheConnectorPropertiesClientConfigDecoratorTest { + @Test + public void sslInitializationExceptionPropagates() { + final SSLInitializationException expected = + new SSLInitializationException("Unable to initialize SSL", null); + final ClientConfig clientConfig = + new ClientConfig().connectorProvider(new ApacheConnectorProvider()); + final ApacheConnectorPropertiesClientConfigDecorator decorator = + new ApacheConnectorPropertiesClientConfigDecorator( + ApacheConnectorProperties.builder().build()) { + @Override + SSLConnectionSocketFactory getSslConnectionSocketFactory() { + throw expected; + } + }; + + try { + decorator.customizeClientConfig(clientConfig); + fail("Expected SSLInitializationException"); + } catch (SSLInitializationException actual) { + assertSame(expected, actual); + } + } +} diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/internal/HeaderUtilsTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/internal/HeaderUtilsTest.java new file mode 100644 index 00000000000..6979ca3883f --- /dev/null +++ b/bmc-common/src/test/java/com/oracle/bmc/http/internal/HeaderUtilsTest.java @@ -0,0 +1,102 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.http.internal; + +import org.junit.Assert; +import org.junit.Test; + +import java.util.Arrays; +import java.util.Collections; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +public class HeaderUtilsTest { + + @Test + public void testSensitiveHeadersAreRedacted() { + List sensitiveHeaders = + Arrays.asList( + "Authorization", + "Proxy-Authorization", + "opc-obo-token", + "security-context", + "delegation-token", + "idcs-access-token", + "X-Api-Key", + "X-Authorization-Token", + "x-token-custom", + "x-key-secret", + "client_secret", + "service_private_key", + "opc_delegation_token", + "private_key"); + + for (String header : sensitiveHeaders) { + Assert.assertEquals( + header, + Collections.singletonList(HeaderUtils.REDACTED_VALUE), + HeaderUtils.sanitizeHeaderValues(header, Collections.singletonList("secret"))); + } + } + + @Test + public void testSafeHeadersAreNotRedacted() { + List safeHeaders = + Arrays.asList( + "date", + "opc-request-id", + "content-type", + "tokenization-status", + "x-key", + "x-keyring-name"); + + for (String header : safeHeaders) { + List values = Collections.singletonList("safe-value"); + Assert.assertEquals(header, values, HeaderUtils.sanitizeHeaderValues(header, values)); + } + } + + @Test + public void testSanitizeHeadersRedactsValuesAndPreservesOrder() { + Map> headers = new LinkedHashMap<>(); + headers.put("date", Collections.singletonList("Fri, 15 May 2026 00:00:00 GMT")); + headers.put("Authorization", Collections.singletonList("secret")); + headers.put("tokenization-status", Collections.singletonList("complete")); + + Map> result = HeaderUtils.sanitizeHeaders(headers); + + Assert.assertEquals( + Arrays.asList("date", "Authorization", "tokenization-status"), + Arrays.asList(result.keySet().toArray(new String[0]))); + Assert.assertEquals( + Collections.singletonList(HeaderUtils.REDACTED_VALUE), result.get("Authorization")); + Assert.assertEquals( + Collections.singletonList("Fri, 15 May 2026 00:00:00 GMT"), result.get("date")); + Assert.assertEquals( + Collections.singletonList("complete"), result.get("tokenization-status")); + } + + @Test + public void testNullAndEmptyInputs() { + List values = Collections.singletonList("value"); + + Assert.assertFalse(HeaderUtils.isSensitiveHeader(null)); + Assert.assertEquals(values, HeaderUtils.sanitizeHeaderValues(null, values)); + Assert.assertNull(HeaderUtils.sanitizeHeaderValues("Authorization", null)); + Assert.assertNull(HeaderUtils.sanitizeHeaders(null)); + Assert.assertTrue(HeaderUtils.sanitizeHeaders(Collections.emptyMap()).isEmpty()); + } + + @Test + public void testMultipleSensitiveValuesAreAllRedacted() { + List result = + HeaderUtils.sanitizeHeaderValues( + "Authorization", Arrays.asList("secret1", "secret2")); + + Assert.assertEquals( + Arrays.asList(HeaderUtils.REDACTED_VALUE, HeaderUtils.REDACTED_VALUE), result); + } +} diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/internal/LogHeadersFilterTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/internal/LogHeadersFilterTest.java deleted file mode 100644 index a1ce693bc2d..00000000000 --- a/bmc-common/src/test/java/com/oracle/bmc/http/internal/LogHeadersFilterTest.java +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.http.internal; - -import org.junit.Assert; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.runners.MockitoJUnitRunner; - -import java.util.ArrayList; -import java.util.List; - -@RunWith(MockitoJUnitRunner.class) -public class LogHeadersFilterTest { - - LogHeadersFilter filterUnderTest = new LogHeadersFilter(); - - @Test - public void testMask() { - List valueList = new ArrayList<>(); - valueList.add( - "Signature headers=\"date (request-target) host\",keyId=\"secretJWTToken\",algorithm=\"rsa-sha256\""); - List result = filterUnderTest.maskValue(valueList); - Assert.assertEquals( - result.get(0), - "Signature headers=\"date (request-target) host\",keyId=\"REDACTED\",algorithm=\"rsa-sha256\""); - } -} diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/internal/ResponseHelperTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/internal/ResponseHelperTest.java index a47e2b54cbd..fdc4e2ccaff 100644 --- a/bmc-common/src/test/java/com/oracle/bmc/http/internal/ResponseHelperTest.java +++ b/bmc-common/src/test/java/com/oracle/bmc/http/internal/ResponseHelperTest.java @@ -14,6 +14,7 @@ import java.util.List; import java.util.Map; import java.util.HashMap; +import javax.ws.rs.ProcessingException; import javax.ws.rs.core.HttpHeaders; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MultivaluedHashMap; @@ -25,6 +26,7 @@ import static org.hamcrest.Matchers.instanceOf; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertSame; import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; @@ -60,6 +62,7 @@ public void test_throwIfNotSuccessful_InvalidHTMLResponse() { "Unknown", "Unexpected Content-Type: " + HTML_MEDIA_TYPE); } + verify(htmlResponse, never()).readEntity(String.class); } @Test @@ -82,6 +85,7 @@ public void test_throwIfNotSuccessful_ValidUTF8JsonResponse() { validateExceptionFields( exception, OPC_REQUEST_ID, BAD_GATEWAY_STATUS, dummyServiceCode, dummyMessage); } + verify(jsonResponse).close(); } @Test @@ -111,6 +115,7 @@ public void test_throwIfNotSuccessful_InvalidJsonResponse() { validateExceptionFields( exception, OPC_REQUEST_ID, BAD_GATEWAY_STATUS, dummyServiceCode, dummyMessage); } + verify(jsonResponse).close(); } @Test @@ -143,6 +148,7 @@ public void test_throwIfNotSuccessful_InValidJsonResponseExtendedForLocalization assertEquals(exception.getOriginalMessageTemplate(), dummyOriginalMessageTemplate); assertEquals(exception.getMessageArguments(), dummyMessageArguments); } + verify(jsonResponse).close(); } @Test @@ -173,6 +179,51 @@ public void test_throwIfNotSuccessful_InValidJsonResponseExtendedForPartialLocal assertNull(exception.getOriginalMessageTemplate()); assertEquals(exception.getMessageArguments(), dummyTemplateArguments); } + verify(jsonResponse).close(); + } + + @Test + public void test_throwIfNotSuccessful_NullJsonErrorResponseClosesResponse() { + final Response jsonResponse = + buildMockResponse(OPC_REQUEST_ID, JSON_MEDIA_TYPE, BAD_GATEWAY_STATUS); + when(jsonResponse.readEntity(ResponseHelper.ErrorCodeAndMessage.class)).thenReturn(null); + + try { + ResponseHelper.throwIfNotSuccessful(jsonResponse); + fail("Should have thrown"); + } catch (BmcException exception) { + validateExceptionFields( + exception, + OPC_REQUEST_ID, + BAD_GATEWAY_STATUS, + "Unknown", + "Detailed exception information not available"); + } + + verify(jsonResponse).close(); + } + + @Test + public void test_throwIfNotSuccessful_UnparseableJsonErrorResponseClosesResponse() { + final Response jsonResponse = + buildMockResponse(OPC_REQUEST_ID, JSON_MEDIA_TYPE, BAD_GATEWAY_STATUS); + ProcessingException failure = new ProcessingException("bad json"); + when(jsonResponse.readEntity(ResponseHelper.ErrorCodeAndMessage.class)).thenThrow(failure); + + try { + ResponseHelper.throwIfNotSuccessful(jsonResponse); + fail("Should have thrown"); + } catch (BmcException exception) { + validateExceptionFields( + exception, + OPC_REQUEST_ID, + BAD_GATEWAY_STATUS, + "Unknown", + "Unable to parse error response."); + assertSame(failure, exception.getCause()); + } + + verify(jsonResponse).close(); } @Test @@ -234,6 +285,35 @@ public void testReadEntity_streamWithContentType() { headers.get(HttpHeaders.CONTENT_TYPE)); } + @Test + public void testReadEntity_streamClosesResponseWhenReadEntityFails() { + Response response = mock(Response.class); + Response.StatusType statusInfo = mock(Response.StatusType.class); + MultivaluedMap headers = new MultivaluedHashMap<>(); + List contentType = Collections.unmodifiableList(Arrays.asList("text")); + ProcessingException failure = new ProcessingException("interrupted"); + + Class entityType = InputStream.class; + + when(response.getStatusInfo()).thenReturn(statusInfo); + when(statusInfo.getFamily()).thenReturn(Response.Status.Family.SUCCESSFUL); + when(response.getHeaders()).thenReturn(headers); + headers.add(HttpHeaders.CONTENT_TYPE, contentType); + when(response.readEntity(entityType)).thenThrow(failure); + + try { + ResponseHelper.readEntity(response, entityType); + fail("Expected readEntity to fail"); + } catch (ProcessingException e) { + assertSame(failure, e); + } + + verify(response).close(); + assertEquals( + Collections.unmodifiableList(Arrays.asList(contentType)), + headers.get(HttpHeaders.CONTENT_TYPE)); + } + @Test public void testReadEntity_streamWithoutContentType() { Response response = mock(Response.class); diff --git a/bmc-common/src/test/java/com/oracle/bmc/internal/EndpointBuilderTest.java b/bmc-common/src/test/java/com/oracle/bmc/internal/EndpointBuilderTest.java index 72841ec865d..b57da8171be 100644 --- a/bmc-common/src/test/java/com/oracle/bmc/internal/EndpointBuilderTest.java +++ b/bmc-common/src/test/java/com/oracle/bmc/internal/EndpointBuilderTest.java @@ -200,6 +200,62 @@ public void testEndpointWithPopulatedServiceParamsWithRequiredParams() { null)); } + @Test + public void testEndpointWithPopulatedServiceParamsAllowsHostLabelParameter() { + String endpointTemplate = + "https://{namespaceName+Dot}objectstorage.us-phoenix-1.example.com"; + Map requiredParametersMap = new HashMap<>(); + requiredParametersMap.put("namespaceName", "Dex_Namespace-1.example"); + + assertEquals( + "https://Dex_Namespace-1.example.objectstorage.us-phoenix-1.example.com", + EndpointBuilder.getEndpointWithPopulatedServiceParams( + endpointTemplate, requiredParametersMap, null)); + } + + @Test(expected = IllegalArgumentException.class) + public void testEndpointWithPopulatedServiceParamsRejectsSlashInHostLabelParameter() { + String endpointTemplate = + "https://{namespaceName+Dot}objectstorage.us-phoenix-1.example.com"; + Map requiredParametersMap = new HashMap<>(); + requiredParametersMap.put("namespaceName", "namespace/objectstorage.evil.example"); + + EndpointBuilder.getEndpointWithPopulatedServiceParams( + endpointTemplate, requiredParametersMap, null); + } + + @Test(expected = IllegalArgumentException.class) + public void testEndpointWithPopulatedServiceParamsRejectsLeadingHyphenInHostLabelParameter() { + String endpointTemplate = + "https://{namespaceName+Dot}objectstorage.us-phoenix-1.example.com"; + Map requiredParametersMap = new HashMap<>(); + requiredParametersMap.put("namespaceName", "-namespace"); + + EndpointBuilder.getEndpointWithPopulatedServiceParams( + endpointTemplate, requiredParametersMap, null); + } + + @Test(expected = IllegalArgumentException.class) + public void testEndpointWithPopulatedServiceParamsRejectsTrailingHyphenInHostLabelParameter() { + String endpointTemplate = + "https://{namespaceName+Dot}objectstorage.us-phoenix-1.example.com"; + Map requiredParametersMap = new HashMap<>(); + requiredParametersMap.put("namespaceName", "namespace-"); + + EndpointBuilder.getEndpointWithPopulatedServiceParams( + endpointTemplate, requiredParametersMap, null); + } + + @Test(expected = IllegalArgumentException.class) + public void testEndpointWithPopulatedServiceParamsRejectsUnsafeNonDotParameter() { + String endpointTemplate = "https://service.{region}.example.com"; + Map requiredParametersMap = new HashMap<>(); + requiredParametersMap.put("region", "us/phoenix/1"); + + EndpointBuilder.getEndpointWithPopulatedServiceParams( + endpointTemplate, requiredParametersMap, null); + } + @Test public void testUpdateEndpointTemplateForOptionsWhenEndpointHasInvalidOption() { Service testService = diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 4bb4b7cb572..5d41b87bacc 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 3bc6d1b5928..4c04ec97542 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index abf7a84b451..3b458f9bda5 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateNodePoolNodeConfigDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateNodePoolNodeConfigDetails.java index 0dd06d0dc14..14f16068a21 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateNodePoolNodeConfigDetails.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateNodePoolNodeConfigDetails.java @@ -27,6 +27,7 @@ public final class CreateNodePoolNodeConfigDetails "nsgIds", "kmsKeyId", "isPvEncryptionInTransitEnabled", + "computeClusterId", "freeformTags", "definedTags", "placementConfigs", @@ -37,6 +38,7 @@ public CreateNodePoolNodeConfigDetails( java.util.List nsgIds, String kmsKeyId, Boolean isPvEncryptionInTransitEnabled, + String computeClusterId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.List placementConfigs, @@ -46,6 +48,7 @@ public CreateNodePoolNodeConfigDetails( this.nsgIds = nsgIds; this.kmsKeyId = kmsKeyId; this.isPvEncryptionInTransitEnabled = isPvEncryptionInTransitEnabled; + this.computeClusterId = computeClusterId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.placementConfigs = placementConfigs; @@ -122,6 +125,22 @@ public Builder isPvEncryptionInTransitEnabled(Boolean isPvEncryptionInTransitEna this.__explicitlySet__.add("isPvEncryptionInTransitEnabled"); return this; } + /** + * The OCID of the Compute Cluster to be associated with the worker node instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeClusterId") + private String computeClusterId; + + /** + * The OCID of the Compute Cluster to be associated with the worker node instance. + * @param computeClusterId the value to set + * @return this builder + **/ + public Builder computeClusterId(String computeClusterId) { + this.computeClusterId = computeClusterId; + this.__explicitlySet__.add("computeClusterId"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -226,6 +245,7 @@ public CreateNodePoolNodeConfigDetails build() { this.nsgIds, this.kmsKeyId, this.isPvEncryptionInTransitEnabled, + this.computeClusterId, this.freeformTags, this.definedTags, this.placementConfigs, @@ -250,6 +270,9 @@ public Builder copy(CreateNodePoolNodeConfigDetails model) { if (model.wasPropertyExplicitlySet("isPvEncryptionInTransitEnabled")) { this.isPvEncryptionInTransitEnabled(model.getIsPvEncryptionInTransitEnabled()); } + if (model.wasPropertyExplicitlySet("computeClusterId")) { + this.computeClusterId(model.getComputeClusterId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -337,6 +360,20 @@ public Boolean getIsPvEncryptionInTransitEnabled() { return isPvEncryptionInTransitEnabled; } + /** + * The OCID of the Compute Cluster to be associated with the worker node instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeClusterId") + private final String computeClusterId; + + /** + * The OCID of the Compute Cluster to be associated with the worker node instance. + * @return the value + **/ + public String getComputeClusterId() { + return computeClusterId; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -438,6 +475,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", isPvEncryptionInTransitEnabled=") .append(String.valueOf(this.isPvEncryptionInTransitEnabled)); + sb.append(", computeClusterId=").append(String.valueOf(this.computeClusterId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", placementConfigs=").append(String.valueOf(this.placementConfigs)); @@ -462,6 +500,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals( this.isPvEncryptionInTransitEnabled, other.isPvEncryptionInTransitEnabled) + && java.util.Objects.equals(this.computeClusterId, other.computeClusterId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.placementConfigs, other.placementConfigs) @@ -482,6 +521,9 @@ public int hashCode() { + (this.isPvEncryptionInTransitEnabled == null ? 43 : this.isPvEncryptionInTransitEnabled.hashCode()); + result = + (result * PRIME) + + (this.computeClusterId == null ? 43 : this.computeClusterId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateVirtualNodePoolDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateVirtualNodePoolDetails.java index 569a2e84c5a..9da676685b3 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateVirtualNodePoolDetails.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateVirtualNodePoolDetails.java @@ -34,7 +34,8 @@ public final class CreateVirtualNodePoolDetails "podConfiguration", "freeformTags", "definedTags", - "virtualNodeTags" + "virtualNodeTags", + "virtualNodePoolCyclingDetails" }) public CreateVirtualNodePoolDetails( String compartmentId, @@ -48,7 +49,8 @@ public CreateVirtualNodePoolDetails( PodConfiguration podConfiguration, java.util.Map freeformTags, java.util.Map> definedTags, - VirtualNodeTags virtualNodeTags) { + VirtualNodeTags virtualNodeTags, + VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails) { super(); this.compartmentId = compartmentId; this.clusterId = clusterId; @@ -62,6 +64,7 @@ public CreateVirtualNodePoolDetails( this.freeformTags = freeformTags; this.definedTags = definedTags; this.virtualNodeTags = virtualNodeTags; + this.virtualNodePoolCyclingDetails = virtualNodePoolCyclingDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -267,6 +270,16 @@ public Builder virtualNodeTags(VirtualNodeTags virtualNodeTags) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("virtualNodePoolCyclingDetails") + private VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails; + + public Builder virtualNodePoolCyclingDetails( + VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails) { + this.virtualNodePoolCyclingDetails = virtualNodePoolCyclingDetails; + this.__explicitlySet__.add("virtualNodePoolCyclingDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -284,7 +297,8 @@ public CreateVirtualNodePoolDetails build() { this.podConfiguration, this.freeformTags, this.definedTags, - this.virtualNodeTags); + this.virtualNodeTags, + this.virtualNodePoolCyclingDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -329,6 +343,9 @@ public Builder copy(CreateVirtualNodePoolDetails model) { if (model.wasPropertyExplicitlySet("virtualNodeTags")) { this.virtualNodeTags(model.getVirtualNodeTags()); } + if (model.wasPropertyExplicitlySet("virtualNodePoolCyclingDetails")) { + this.virtualNodePoolCyclingDetails(model.getVirtualNodePoolCyclingDetails()); + } return this; } } @@ -517,6 +534,13 @@ public VirtualNodeTags getVirtualNodeTags() { return virtualNodeTags; } + @com.fasterxml.jackson.annotation.JsonProperty("virtualNodePoolCyclingDetails") + private final VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails; + + public VirtualNodePoolCyclingDetails getVirtualNodePoolCyclingDetails() { + return virtualNodePoolCyclingDetails; + } + @Override public String toString() { return this.toString(true); @@ -545,6 +569,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", virtualNodeTags=").append(String.valueOf(this.virtualNodeTags)); + sb.append(", virtualNodePoolCyclingDetails=") + .append(String.valueOf(this.virtualNodePoolCyclingDetails)); sb.append(")"); return sb.toString(); } @@ -573,6 +599,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.virtualNodeTags, other.virtualNodeTags) + && java.util.Objects.equals( + this.virtualNodePoolCyclingDetails, other.virtualNodePoolCyclingDetails) && super.equals(other); } @@ -606,6 +634,11 @@ public int hashCode() { result = (result * PRIME) + (this.virtualNodeTags == null ? 43 : this.virtualNodeTags.hashCode()); + result = + (result * PRIME) + + (this.virtualNodePoolCyclingDetails == null + ? 43 + : this.virtualNodePoolCyclingDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolNodeConfigDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolNodeConfigDetails.java index 3e58e4d169e..b0adc7907b3 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolNodeConfigDetails.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolNodeConfigDetails.java @@ -26,6 +26,7 @@ public final class NodePoolNodeConfigDetails "size", "nsgIds", "kmsKeyId", + "computeClusterId", "isPvEncryptionInTransitEnabled", "freeformTags", "definedTags", @@ -36,6 +37,7 @@ public NodePoolNodeConfigDetails( Integer size, java.util.List nsgIds, String kmsKeyId, + String computeClusterId, Boolean isPvEncryptionInTransitEnabled, java.util.Map freeformTags, java.util.Map> definedTags, @@ -45,6 +47,7 @@ public NodePoolNodeConfigDetails( this.size = size; this.nsgIds = nsgIds; this.kmsKeyId = kmsKeyId; + this.computeClusterId = computeClusterId; this.isPvEncryptionInTransitEnabled = isPvEncryptionInTransitEnabled; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -106,6 +109,22 @@ public Builder kmsKeyId(String kmsKeyId) { this.__explicitlySet__.add("kmsKeyId"); return this; } + /** + * The OCID of the Compute Cluster to be associated with the worker node instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeClusterId") + private String computeClusterId; + + /** + * The OCID of the Compute Cluster to be associated with the worker node instance. + * @param computeClusterId the value to set + * @return this builder + **/ + public Builder computeClusterId(String computeClusterId) { + this.computeClusterId = computeClusterId; + this.__explicitlySet__.add("computeClusterId"); + return this; + } /** * Whether to enable in-transit encryption for the data volume's paravirtualized attachment. This field applies to both block volumes and boot volumes. The default value is false. **/ @@ -225,6 +244,7 @@ public NodePoolNodeConfigDetails build() { this.size, this.nsgIds, this.kmsKeyId, + this.computeClusterId, this.isPvEncryptionInTransitEnabled, this.freeformTags, this.definedTags, @@ -247,6 +267,9 @@ public Builder copy(NodePoolNodeConfigDetails model) { if (model.wasPropertyExplicitlySet("kmsKeyId")) { this.kmsKeyId(model.getKmsKeyId()); } + if (model.wasPropertyExplicitlySet("computeClusterId")) { + this.computeClusterId(model.getComputeClusterId()); + } if (model.wasPropertyExplicitlySet("isPvEncryptionInTransitEnabled")) { this.isPvEncryptionInTransitEnabled(model.getIsPvEncryptionInTransitEnabled()); } @@ -323,6 +346,20 @@ public String getKmsKeyId() { return kmsKeyId; } + /** + * The OCID of the Compute Cluster to be associated with the worker node instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeClusterId") + private final String computeClusterId; + + /** + * The OCID of the Compute Cluster to be associated with the worker node instance. + * @return the value + **/ + public String getComputeClusterId() { + return computeClusterId; + } + /** * Whether to enable in-transit encryption for the data volume's paravirtualized attachment. This field applies to both block volumes and boot volumes. The default value is false. **/ @@ -436,6 +473,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("size=").append(String.valueOf(this.size)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", computeClusterId=").append(String.valueOf(this.computeClusterId)); sb.append(", isPvEncryptionInTransitEnabled=") .append(String.valueOf(this.isPvEncryptionInTransitEnabled)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -460,6 +498,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.size, other.size) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.computeClusterId, other.computeClusterId) && java.util.Objects.equals( this.isPvEncryptionInTransitEnabled, other.isPvEncryptionInTransitEnabled) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -477,6 +516,9 @@ public int hashCode() { result = (result * PRIME) + (this.size == null ? 43 : this.size.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.computeClusterId == null ? 43 : this.computeClusterId.hashCode()); result = (result * PRIME) + (this.isPvEncryptionInTransitEnabled == null diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolPlacementConfigDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolPlacementConfigDetails.java index 06cbc1480f9..14c002cb3a5 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolPlacementConfigDetails.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolPlacementConfigDetails.java @@ -26,6 +26,7 @@ public final class NodePoolPlacementConfigDetails "availabilityDomain", "subnetId", "capacityReservationId", + "hostGroupId", "preemptibleNodeConfig", "faultDomains" }) @@ -33,12 +34,14 @@ public NodePoolPlacementConfigDetails( String availabilityDomain, String subnetId, String capacityReservationId, + String hostGroupId, PreemptibleNodeConfigDetails preemptibleNodeConfig, java.util.List faultDomains) { super(); this.availabilityDomain = availabilityDomain; this.subnetId = subnetId; this.capacityReservationId = capacityReservationId; + this.hostGroupId = hostGroupId; this.preemptibleNodeConfig = preemptibleNodeConfig; this.faultDomains = faultDomains; } @@ -97,6 +100,22 @@ public Builder capacityReservationId(String capacityReservationId) { this.__explicitlySet__.add("capacityReservationId"); return this; } + /** + * The OCID of the Host Group to be associated with the worker node instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostGroupId") + private String hostGroupId; + + /** + * The OCID of the Host Group to be associated with the worker node instance. + * @param hostGroupId the value to set + * @return this builder + **/ + public Builder hostGroupId(String hostGroupId) { + this.hostGroupId = hostGroupId; + this.__explicitlySet__.add("hostGroupId"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("preemptibleNodeConfig") private PreemptibleNodeConfigDetails preemptibleNodeConfig; @@ -134,6 +153,7 @@ public NodePoolPlacementConfigDetails build() { this.availabilityDomain, this.subnetId, this.capacityReservationId, + this.hostGroupId, this.preemptibleNodeConfig, this.faultDomains); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -153,6 +173,9 @@ public Builder copy(NodePoolPlacementConfigDetails model) { if (model.wasPropertyExplicitlySet("capacityReservationId")) { this.capacityReservationId(model.getCapacityReservationId()); } + if (model.wasPropertyExplicitlySet("hostGroupId")) { + this.hostGroupId(model.getHostGroupId()); + } if (model.wasPropertyExplicitlySet("preemptibleNodeConfig")) { this.preemptibleNodeConfig(model.getPreemptibleNodeConfig()); } @@ -220,6 +243,20 @@ public String getCapacityReservationId() { return capacityReservationId; } + /** + * The OCID of the Host Group to be associated with the worker node instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostGroupId") + private final String hostGroupId; + + /** + * The OCID of the Host Group to be associated with the worker node instance. + * @return the value + **/ + public String getHostGroupId() { + return hostGroupId; + } + @com.fasterxml.jackson.annotation.JsonProperty("preemptibleNodeConfig") private final PreemptibleNodeConfigDetails preemptibleNodeConfig; @@ -260,6 +297,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", capacityReservationId=").append(String.valueOf(this.capacityReservationId)); + sb.append(", hostGroupId=").append(String.valueOf(this.hostGroupId)); sb.append(", preemptibleNodeConfig=").append(String.valueOf(this.preemptibleNodeConfig)); sb.append(", faultDomains=").append(String.valueOf(this.faultDomains)); sb.append(")"); @@ -279,6 +317,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.capacityReservationId, other.capacityReservationId) + && java.util.Objects.equals(this.hostGroupId, other.hostGroupId) && java.util.Objects.equals(this.preemptibleNodeConfig, other.preemptibleNodeConfig) && java.util.Objects.equals(this.faultDomains, other.faultDomains) && super.equals(other); @@ -299,6 +338,7 @@ public int hashCode() { + (this.capacityReservationId == null ? 43 : this.capacityReservationId.hashCode()); + result = (result * PRIME) + (this.hostGroupId == null ? 43 : this.hostGroupId.hashCode()); result = (result * PRIME) + (this.preemptibleNodeConfig == null diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/UpdateVirtualNodePoolDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/UpdateVirtualNodePoolDetails.java index f6a95a0edaa..02ead0294f7 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/UpdateVirtualNodePoolDetails.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/UpdateVirtualNodePoolDetails.java @@ -32,7 +32,8 @@ public final class UpdateVirtualNodePoolDetails "podConfiguration", "freeformTags", "definedTags", - "virtualNodeTags" + "virtualNodeTags", + "virtualNodePoolCyclingDetails" }) public UpdateVirtualNodePoolDetails( String displayName, @@ -44,7 +45,8 @@ public UpdateVirtualNodePoolDetails( PodConfiguration podConfiguration, java.util.Map freeformTags, java.util.Map> definedTags, - VirtualNodeTags virtualNodeTags) { + VirtualNodeTags virtualNodeTags, + VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails) { super(); this.displayName = displayName; this.initialVirtualNodeLabels = initialVirtualNodeLabels; @@ -56,6 +58,7 @@ public UpdateVirtualNodePoolDetails( this.freeformTags = freeformTags; this.definedTags = definedTags; this.virtualNodeTags = virtualNodeTags; + this.virtualNodePoolCyclingDetails = virtualNodePoolCyclingDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -229,6 +232,16 @@ public Builder virtualNodeTags(VirtualNodeTags virtualNodeTags) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("virtualNodePoolCyclingDetails") + private VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails; + + public Builder virtualNodePoolCyclingDetails( + VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails) { + this.virtualNodePoolCyclingDetails = virtualNodePoolCyclingDetails; + this.__explicitlySet__.add("virtualNodePoolCyclingDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -244,7 +257,8 @@ public UpdateVirtualNodePoolDetails build() { this.podConfiguration, this.freeformTags, this.definedTags, - this.virtualNodeTags); + this.virtualNodeTags, + this.virtualNodePoolCyclingDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -283,6 +297,9 @@ public Builder copy(UpdateVirtualNodePoolDetails model) { if (model.wasPropertyExplicitlySet("virtualNodeTags")) { this.virtualNodeTags(model.getVirtualNodeTags()); } + if (model.wasPropertyExplicitlySet("virtualNodePoolCyclingDetails")) { + this.virtualNodePoolCyclingDetails(model.getVirtualNodePoolCyclingDetails()); + } return this; } } @@ -443,6 +460,13 @@ public VirtualNodeTags getVirtualNodeTags() { return virtualNodeTags; } + @com.fasterxml.jackson.annotation.JsonProperty("virtualNodePoolCyclingDetails") + private final VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails; + + public VirtualNodePoolCyclingDetails getVirtualNodePoolCyclingDetails() { + return virtualNodePoolCyclingDetails; + } + @Override public String toString() { return this.toString(true); @@ -469,6 +493,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", virtualNodeTags=").append(String.valueOf(this.virtualNodeTags)); + sb.append(", virtualNodePoolCyclingDetails=") + .append(String.valueOf(this.virtualNodePoolCyclingDetails)); sb.append(")"); return sb.toString(); } @@ -495,6 +521,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.virtualNodeTags, other.virtualNodeTags) + && java.util.Objects.equals( + this.virtualNodePoolCyclingDetails, other.virtualNodePoolCyclingDetails) && super.equals(other); } @@ -524,6 +552,11 @@ public int hashCode() { result = (result * PRIME) + (this.virtualNodeTags == null ? 43 : this.virtualNodeTags.hashCode()); + result = + (result * PRIME) + + (this.virtualNodePoolCyclingDetails == null + ? 43 + : this.virtualNodePoolCyclingDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/VirtualNodePool.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/VirtualNodePool.java index 05fc952ccc8..7b810394df2 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/VirtualNodePool.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/VirtualNodePool.java @@ -38,7 +38,8 @@ public final class VirtualNodePool extends com.oracle.bmc.http.internal.Explicit "freeformTags", "definedTags", "systemTags", - "virtualNodeTags" + "virtualNodeTags", + "virtualNodePoolCyclingDetails" }) public VirtualNodePool( String id, @@ -59,7 +60,8 @@ public VirtualNodePool( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, - VirtualNodeTags virtualNodeTags) { + VirtualNodeTags virtualNodeTags, + VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails) { super(); this.id = id; this.compartmentId = compartmentId; @@ -80,6 +82,7 @@ public VirtualNodePool( this.definedTags = definedTags; this.systemTags = systemTags; this.virtualNodeTags = virtualNodeTags; + this.virtualNodePoolCyclingDetails = virtualNodePoolCyclingDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -401,6 +404,16 @@ public Builder virtualNodeTags(VirtualNodeTags virtualNodeTags) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("virtualNodePoolCyclingDetails") + private VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails; + + public Builder virtualNodePoolCyclingDetails( + VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails) { + this.virtualNodePoolCyclingDetails = virtualNodePoolCyclingDetails; + this.__explicitlySet__.add("virtualNodePoolCyclingDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -425,7 +438,8 @@ public VirtualNodePool build() { this.freeformTags, this.definedTags, this.systemTags, - this.virtualNodeTags); + this.virtualNodeTags, + this.virtualNodePoolCyclingDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -491,6 +505,9 @@ public Builder copy(VirtualNodePool model) { if (model.wasPropertyExplicitlySet("virtualNodeTags")) { this.virtualNodeTags(model.getVirtualNodeTags()); } + if (model.wasPropertyExplicitlySet("virtualNodePoolCyclingDetails")) { + this.virtualNodePoolCyclingDetails(model.getVirtualNodePoolCyclingDetails()); + } return this; } } @@ -781,6 +798,13 @@ public VirtualNodeTags getVirtualNodeTags() { return virtualNodeTags; } + @com.fasterxml.jackson.annotation.JsonProperty("virtualNodePoolCyclingDetails") + private final VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails; + + public VirtualNodePoolCyclingDetails getVirtualNodePoolCyclingDetails() { + return virtualNodePoolCyclingDetails; + } + @Override public String toString() { return this.toString(true); @@ -816,6 +840,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", virtualNodeTags=").append(String.valueOf(this.virtualNodeTags)); + sb.append(", virtualNodePoolCyclingDetails=") + .append(String.valueOf(this.virtualNodePoolCyclingDetails)); sb.append(")"); return sb.toString(); } @@ -851,6 +877,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.virtualNodeTags, other.virtualNodeTags) + && java.util.Objects.equals( + this.virtualNodePoolCyclingDetails, other.virtualNodePoolCyclingDetails) && super.equals(other); } @@ -897,6 +925,11 @@ public int hashCode() { result = (result * PRIME) + (this.virtualNodeTags == null ? 43 : this.virtualNodeTags.hashCode()); + result = + (result * PRIME) + + (this.virtualNodePoolCyclingDetails == null + ? 43 + : this.virtualNodePoolCyclingDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/VirtualNodePoolCyclingDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/VirtualNodePoolCyclingDetails.java new file mode 100644 index 00000000000..35caac96466 --- /dev/null +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/VirtualNodePoolCyclingDetails.java @@ -0,0 +1,253 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerengine.model; + +/** + * Virtual Node Pool Cycling Details + *
+ * 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: 20180222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VirtualNodePoolCyclingDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VirtualNodePoolCyclingDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "maximumUnavailable", + "maximumSurge", + "isVirtualNodeCyclingEnabled" + }) + public VirtualNodePoolCyclingDetails( + String maximumUnavailable, String maximumSurge, Boolean isVirtualNodeCyclingEnabled) { + super(); + this.maximumUnavailable = maximumUnavailable; + this.maximumSurge = maximumSurge; + this.isVirtualNodeCyclingEnabled = isVirtualNodeCyclingEnabled; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Maximum active virtual nodes that would be terminated from virtual nodepool during the cycling virtual nodepool process. + * OKE supports both integer and percentage input. + * Defaults to 0, Ranges from 0 to Virtual Nodepool size or 0% to 100% + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maximumUnavailable") + private String maximumUnavailable; + + /** + * Maximum active virtual nodes that would be terminated from virtual nodepool during the cycling virtual nodepool process. + * OKE supports both integer and percentage input. + * Defaults to 0, Ranges from 0 to Virtual Nodepool size or 0% to 100% + * + * @param maximumUnavailable the value to set + * @return this builder + **/ + public Builder maximumUnavailable(String maximumUnavailable) { + this.maximumUnavailable = maximumUnavailable; + this.__explicitlySet__.add("maximumUnavailable"); + return this; + } + /** + * Maximum additional new virtual nodes that would be temporarily created and added to virtual nodepool during the cycling virtual nodepool process. + * OKE supports both integer and percentage input. + * Defaults to 1, Ranges from 0 to Virtual Nodepool size or 0% to 100% + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maximumSurge") + private String maximumSurge; + + /** + * Maximum additional new virtual nodes that would be temporarily created and added to virtual nodepool during the cycling virtual nodepool process. + * OKE supports both integer and percentage input. + * Defaults to 1, Ranges from 0 to Virtual Nodepool size or 0% to 100% + * + * @param maximumSurge the value to set + * @return this builder + **/ + public Builder maximumSurge(String maximumSurge) { + this.maximumSurge = maximumSurge; + this.__explicitlySet__.add("maximumSurge"); + return this; + } + /** + * If virtual nodes in the virtual nodepool will be cycled to have new changes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVirtualNodeCyclingEnabled") + private Boolean isVirtualNodeCyclingEnabled; + + /** + * If virtual nodes in the virtual nodepool will be cycled to have new changes. + * @param isVirtualNodeCyclingEnabled the value to set + * @return this builder + **/ + public Builder isVirtualNodeCyclingEnabled(Boolean isVirtualNodeCyclingEnabled) { + this.isVirtualNodeCyclingEnabled = isVirtualNodeCyclingEnabled; + this.__explicitlySet__.add("isVirtualNodeCyclingEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VirtualNodePoolCyclingDetails build() { + VirtualNodePoolCyclingDetails model = + new VirtualNodePoolCyclingDetails( + this.maximumUnavailable, + this.maximumSurge, + this.isVirtualNodeCyclingEnabled); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VirtualNodePoolCyclingDetails model) { + if (model.wasPropertyExplicitlySet("maximumUnavailable")) { + this.maximumUnavailable(model.getMaximumUnavailable()); + } + if (model.wasPropertyExplicitlySet("maximumSurge")) { + this.maximumSurge(model.getMaximumSurge()); + } + if (model.wasPropertyExplicitlySet("isVirtualNodeCyclingEnabled")) { + this.isVirtualNodeCyclingEnabled(model.getIsVirtualNodeCyclingEnabled()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Maximum active virtual nodes that would be terminated from virtual nodepool during the cycling virtual nodepool process. + * OKE supports both integer and percentage input. + * Defaults to 0, Ranges from 0 to Virtual Nodepool size or 0% to 100% + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maximumUnavailable") + private final String maximumUnavailable; + + /** + * Maximum active virtual nodes that would be terminated from virtual nodepool during the cycling virtual nodepool process. + * OKE supports both integer and percentage input. + * Defaults to 0, Ranges from 0 to Virtual Nodepool size or 0% to 100% + * + * @return the value + **/ + public String getMaximumUnavailable() { + return maximumUnavailable; + } + + /** + * Maximum additional new virtual nodes that would be temporarily created and added to virtual nodepool during the cycling virtual nodepool process. + * OKE supports both integer and percentage input. + * Defaults to 1, Ranges from 0 to Virtual Nodepool size or 0% to 100% + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maximumSurge") + private final String maximumSurge; + + /** + * Maximum additional new virtual nodes that would be temporarily created and added to virtual nodepool during the cycling virtual nodepool process. + * OKE supports both integer and percentage input. + * Defaults to 1, Ranges from 0 to Virtual Nodepool size or 0% to 100% + * + * @return the value + **/ + public String getMaximumSurge() { + return maximumSurge; + } + + /** + * If virtual nodes in the virtual nodepool will be cycled to have new changes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVirtualNodeCyclingEnabled") + private final Boolean isVirtualNodeCyclingEnabled; + + /** + * If virtual nodes in the virtual nodepool will be cycled to have new changes. + * @return the value + **/ + public Boolean getIsVirtualNodeCyclingEnabled() { + return isVirtualNodeCyclingEnabled; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VirtualNodePoolCyclingDetails("); + sb.append("super=").append(super.toString()); + sb.append("maximumUnavailable=").append(String.valueOf(this.maximumUnavailable)); + sb.append(", maximumSurge=").append(String.valueOf(this.maximumSurge)); + sb.append(", isVirtualNodeCyclingEnabled=") + .append(String.valueOf(this.isVirtualNodeCyclingEnabled)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VirtualNodePoolCyclingDetails)) { + return false; + } + + VirtualNodePoolCyclingDetails other = (VirtualNodePoolCyclingDetails) o; + return java.util.Objects.equals(this.maximumUnavailable, other.maximumUnavailable) + && java.util.Objects.equals(this.maximumSurge, other.maximumSurge) + && java.util.Objects.equals( + this.isVirtualNodeCyclingEnabled, other.isVirtualNodeCyclingEnabled) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.maximumUnavailable == null + ? 43 + : this.maximumUnavailable.hashCode()); + result = (result * PRIME) + (this.maximumSurge == null ? 43 : this.maximumSurge.hashCode()); + result = + (result * PRIME) + + (this.isVirtualNodeCyclingEnabled == null + ? 43 + : this.isVirtualNodeCyclingEnabled.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/VirtualNodePoolSummary.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/VirtualNodePoolSummary.java index 2e3ce1f1efa..6338cce9c84 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/VirtualNodePoolSummary.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/VirtualNodePoolSummary.java @@ -41,7 +41,8 @@ public final class VirtualNodePoolSummary "freeformTags", "definedTags", "systemTags", - "virtualNodeTags" + "virtualNodeTags", + "virtualNodePoolCyclingDetails" }) public VirtualNodePoolSummary( String id, @@ -62,7 +63,8 @@ public VirtualNodePoolSummary( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, - VirtualNodeTags virtualNodeTags) { + VirtualNodeTags virtualNodeTags, + VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails) { super(); this.id = id; this.compartmentId = compartmentId; @@ -83,6 +85,7 @@ public VirtualNodePoolSummary( this.definedTags = definedTags; this.systemTags = systemTags; this.virtualNodeTags = virtualNodeTags; + this.virtualNodePoolCyclingDetails = virtualNodePoolCyclingDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -404,6 +407,16 @@ public Builder virtualNodeTags(VirtualNodeTags virtualNodeTags) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("virtualNodePoolCyclingDetails") + private VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails; + + public Builder virtualNodePoolCyclingDetails( + VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails) { + this.virtualNodePoolCyclingDetails = virtualNodePoolCyclingDetails; + this.__explicitlySet__.add("virtualNodePoolCyclingDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -428,7 +441,8 @@ public VirtualNodePoolSummary build() { this.freeformTags, this.definedTags, this.systemTags, - this.virtualNodeTags); + this.virtualNodeTags, + this.virtualNodePoolCyclingDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -494,6 +508,9 @@ public Builder copy(VirtualNodePoolSummary model) { if (model.wasPropertyExplicitlySet("virtualNodeTags")) { this.virtualNodeTags(model.getVirtualNodeTags()); } + if (model.wasPropertyExplicitlySet("virtualNodePoolCyclingDetails")) { + this.virtualNodePoolCyclingDetails(model.getVirtualNodePoolCyclingDetails()); + } return this; } } @@ -784,6 +801,13 @@ public VirtualNodeTags getVirtualNodeTags() { return virtualNodeTags; } + @com.fasterxml.jackson.annotation.JsonProperty("virtualNodePoolCyclingDetails") + private final VirtualNodePoolCyclingDetails virtualNodePoolCyclingDetails; + + public VirtualNodePoolCyclingDetails getVirtualNodePoolCyclingDetails() { + return virtualNodePoolCyclingDetails; + } + @Override public String toString() { return this.toString(true); @@ -819,6 +843,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", virtualNodeTags=").append(String.valueOf(this.virtualNodeTags)); + sb.append(", virtualNodePoolCyclingDetails=") + .append(String.valueOf(this.virtualNodePoolCyclingDetails)); sb.append(")"); return sb.toString(); } @@ -854,6 +880,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.virtualNodeTags, other.virtualNodeTags) + && java.util.Objects.equals( + this.virtualNodePoolCyclingDetails, other.virtualNodePoolCyclingDetails) && super.equals(other); } @@ -900,6 +928,11 @@ public int hashCode() { result = (result * PRIME) + (this.virtualNodeTags == null ? 43 : this.virtualNodeTags.hashCode()); + result = + (result * PRIME) + + (this.virtualNodePoolCyclingDetails == null + ? 43 + : this.virtualNodePoolCyclingDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/WorkRequestOperationType.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/WorkRequestOperationType.java index 7a5ea2d9402..546c4bc6f60 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/WorkRequestOperationType.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/WorkRequestOperationType.java @@ -23,6 +23,7 @@ public enum WorkRequestOperationType { VirtualnodepoolUpdate("VIRTUALNODEPOOL_UPDATE"), VirtualnodepoolDelete("VIRTUALNODEPOOL_DELETE"), VirtualnodeDelete("VIRTUALNODE_DELETE"), + VirtualnodepoolCycling("VIRTUALNODEPOOL_CYCLING"), EnableAddon("ENABLE_ADDON"), UpdateAddon("UPDATE_ADDON"), DisableAddon("DISABLE_ADDON"), diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index aa80ea45dac..1b3b5cf77a7 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-containerinstances @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerFsGroupChangePolicyType.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerFsGroupChangePolicyType.java new file mode 100644 index 00000000000..c26733db701 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerFsGroupChangePolicyType.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * Type of a Linux fsGroupChangePolicy. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") +public enum ContainerFsGroupChangePolicyType { + Always("ALWAYS"), + OnRootMismatch("ON_ROOT_MISMATCH"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ContainerFsGroupChangePolicyType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ContainerFsGroupChangePolicyType v : ContainerFsGroupChangePolicyType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ContainerFsGroupChangePolicyType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ContainerFsGroupChangePolicyType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ContainerFsGroupChangePolicyType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstance.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstance.java index 546f56fc713..13145406948 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstance.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstance.java @@ -29,6 +29,7 @@ public final class ContainerInstance extends com.oracle.bmc.http.internal.Explic "id", "displayName", "compartmentId", + "tenantId", "freeformTags", "definedTags", "systemTags", @@ -48,12 +49,14 @@ public final class ContainerInstance extends com.oracle.bmc.http.internal.Explic "dnsConfig", "gracefulShutdownTimeoutInSeconds", "imagePullSecrets", - "containerRestartPolicy" + "containerRestartPolicy", + "securityContext" }) public ContainerInstance( String id, String displayName, String compartmentId, + String tenantId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, @@ -73,11 +76,13 @@ public ContainerInstance( ContainerDnsConfig dnsConfig, Long gracefulShutdownTimeoutInSeconds, java.util.List imagePullSecrets, - ContainerRestartPolicy containerRestartPolicy) { + ContainerRestartPolicy containerRestartPolicy, + ContainerInstanceSecurityContext securityContext) { super(); this.id = id; this.displayName = displayName; this.compartmentId = compartmentId; + this.tenantId = tenantId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -98,6 +103,7 @@ public ContainerInstance( this.gracefulShutdownTimeoutInSeconds = gracefulShutdownTimeoutInSeconds; this.imagePullSecrets = imagePullSecrets; this.containerRestartPolicy = containerRestartPolicy; + this.securityContext = securityContext; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -150,6 +156,22 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } + /** + * TenantId id of the container instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tenantId") + private String tenantId; + + /** + * TenantId id of the container instance. + * @param tenantId the value to set + * @return this builder + **/ + public Builder tenantId(String tenantId) { + this.tenantId = tenantId; + this.__explicitlySet__.add("tenantId"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -478,6 +500,15 @@ public Builder containerRestartPolicy(ContainerRestartPolicy containerRestartPol return this; } + @com.fasterxml.jackson.annotation.JsonProperty("securityContext") + private ContainerInstanceSecurityContext securityContext; + + public Builder securityContext(ContainerInstanceSecurityContext securityContext) { + this.securityContext = securityContext; + this.__explicitlySet__.add("securityContext"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -487,6 +518,7 @@ public ContainerInstance build() { this.id, this.displayName, this.compartmentId, + this.tenantId, this.freeformTags, this.definedTags, this.systemTags, @@ -506,7 +538,8 @@ public ContainerInstance build() { this.dnsConfig, this.gracefulShutdownTimeoutInSeconds, this.imagePullSecrets, - this.containerRestartPolicy); + this.containerRestartPolicy, + this.securityContext); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -524,6 +557,9 @@ public Builder copy(ContainerInstance model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("tenantId")) { + this.tenantId(model.getTenantId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -584,6 +620,9 @@ public Builder copy(ContainerInstance model) { if (model.wasPropertyExplicitlySet("containerRestartPolicy")) { this.containerRestartPolicy(model.getContainerRestartPolicy()); } + if (model.wasPropertyExplicitlySet("securityContext")) { + this.securityContext(model.getSecurityContext()); + } return this; } } @@ -641,6 +680,20 @@ public String getCompartmentId() { return compartmentId; } + /** + * TenantId id of the container instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tenantId") + private final String tenantId; + + /** + * TenantId id of the container instance. + * @return the value + **/ + public String getTenantId() { + return tenantId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -1029,6 +1082,13 @@ public ContainerRestartPolicy getContainerRestartPolicy() { return containerRestartPolicy; } + @com.fasterxml.jackson.annotation.JsonProperty("securityContext") + private final ContainerInstanceSecurityContext securityContext; + + public ContainerInstanceSecurityContext getSecurityContext() { + return securityContext; + } + @Override public String toString() { return this.toString(true); @@ -1046,6 +1106,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", tenantId=").append(String.valueOf(this.tenantId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -1067,6 +1128,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.gracefulShutdownTimeoutInSeconds)); sb.append(", imagePullSecrets=").append(String.valueOf(this.imagePullSecrets)); sb.append(", containerRestartPolicy=").append(String.valueOf(this.containerRestartPolicy)); + sb.append(", securityContext=").append(String.valueOf(this.securityContext)); sb.append(")"); return sb.toString(); } @@ -1084,6 +1146,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.tenantId, other.tenantId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -1107,6 +1170,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.imagePullSecrets, other.imagePullSecrets) && java.util.Objects.equals( this.containerRestartPolicy, other.containerRestartPolicy) + && java.util.Objects.equals(this.securityContext, other.securityContext) && super.equals(other); } @@ -1119,6 +1183,7 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.tenantId == null ? 43 : this.tenantId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); @@ -1159,6 +1224,9 @@ public int hashCode() { + (this.containerRestartPolicy == null ? 43 : this.containerRestartPolicy.hashCode()); + result = + (result * PRIME) + + (this.securityContext == null ? 43 : this.securityContext.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSecurityContext.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSecurityContext.java new file mode 100644 index 00000000000..b7f3dcd0cb3 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSecurityContext.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * Security context for all containers in a container instance. + *
+ * 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: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "securityContextType", + defaultImpl = ContainerInstanceSecurityContext.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = LinuxContainerInstanceSecurityContext.class, + name = "LINUX" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ContainerInstanceSecurityContext + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ContainerInstanceSecurityContext() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ContainerInstanceSecurityContext("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ContainerInstanceSecurityContext)) { + return false; + } + + ContainerInstanceSecurityContext other = (ContainerInstanceSecurityContext) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The type of security context + **/ + public enum SecurityContextType { + Linux("LINUX"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(SecurityContextType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SecurityContextType v : SecurityContextType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SecurityContextType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SecurityContextType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SecurityContextType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSummary.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSummary.java index b04a951dff3..e1aa442045e 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSummary.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerInstanceSummary.java @@ -41,7 +41,8 @@ public final class ContainerInstanceSummary "containerCount", "gracefulShutdownTimeoutInSeconds", "volumeCount", - "containerRestartPolicy" + "containerRestartPolicy", + "securityContext" }) public ContainerInstanceSummary( String id, @@ -61,7 +62,8 @@ public ContainerInstanceSummary( Integer containerCount, Long gracefulShutdownTimeoutInSeconds, Integer volumeCount, - ContainerInstance.ContainerRestartPolicy containerRestartPolicy) { + ContainerInstance.ContainerRestartPolicy containerRestartPolicy, + ContainerInstanceSecurityContext securityContext) { super(); this.id = id; this.displayName = displayName; @@ -81,6 +83,7 @@ public ContainerInstanceSummary( this.gracefulShutdownTimeoutInSeconds = gracefulShutdownTimeoutInSeconds; this.volumeCount = volumeCount; this.containerRestartPolicy = containerRestartPolicy; + this.securityContext = securityContext; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -385,6 +388,15 @@ public Builder containerRestartPolicy( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("securityContext") + private ContainerInstanceSecurityContext securityContext; + + public Builder securityContext(ContainerInstanceSecurityContext securityContext) { + this.securityContext = securityContext; + this.__explicitlySet__.add("securityContext"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -408,7 +420,8 @@ public ContainerInstanceSummary build() { this.containerCount, this.gracefulShutdownTimeoutInSeconds, this.volumeCount, - this.containerRestartPolicy); + this.containerRestartPolicy, + this.securityContext); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -471,6 +484,9 @@ public Builder copy(ContainerInstanceSummary model) { if (model.wasPropertyExplicitlySet("containerRestartPolicy")) { this.containerRestartPolicy(model.getContainerRestartPolicy()); } + if (model.wasPropertyExplicitlySet("securityContext")) { + this.securityContext(model.getSecurityContext()); + } return this; } } @@ -747,6 +763,13 @@ public ContainerInstance.ContainerRestartPolicy getContainerRestartPolicy() { return containerRestartPolicy; } + @com.fasterxml.jackson.annotation.JsonProperty("securityContext") + private final ContainerInstanceSecurityContext securityContext; + + public ContainerInstanceSecurityContext getSecurityContext() { + return securityContext; + } + @Override public String toString() { return this.toString(true); @@ -780,6 +803,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.gracefulShutdownTimeoutInSeconds)); sb.append(", volumeCount=").append(String.valueOf(this.volumeCount)); sb.append(", containerRestartPolicy=").append(String.valueOf(this.containerRestartPolicy)); + sb.append(", securityContext=").append(String.valueOf(this.securityContext)); sb.append(")"); return sb.toString(); } @@ -815,6 +839,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.volumeCount, other.volumeCount) && java.util.Objects.equals( this.containerRestartPolicy, other.containerRestartPolicy) + && java.util.Objects.equals(this.securityContext, other.securityContext) && super.equals(other); } @@ -860,6 +885,9 @@ public int hashCode() { + (this.containerRestartPolicy == null ? 43 : this.containerRestartPolicy.hashCode()); + result = + (result * PRIME) + + (this.securityContext == null ? 43 : this.securityContext.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerOciFssVolume.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerOciFssVolume.java new file mode 100644 index 00000000000..2baee747078 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerOciFssVolume.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * An OCI File Storage Service (FSS) File System that can be mounted to Containers within a Container Instance. + * Check https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/FileSystem for more details. + * + *
+ * 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ContainerOciFssVolume.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "volumeType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ContainerOciFssVolume extends ContainerVolume { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @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("mountTarget") + private OciFssMountTarget mountTarget; + + public Builder mountTarget(OciFssMountTarget mountTarget) { + this.mountTarget = mountTarget; + this.__explicitlySet__.add("mountTarget"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("export") + private OciFssExport export; + + public Builder export(OciFssExport export) { + this.export = export; + this.__explicitlySet__.add("export"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("security") + private OciFssSecurity security; + + public Builder security(OciFssSecurity security) { + this.security = security; + this.__explicitlySet__.add("security"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("mountCommand") + private OciFssMountCommand mountCommand; + + public Builder mountCommand(OciFssMountCommand mountCommand) { + this.mountCommand = mountCommand; + this.__explicitlySet__.add("mountCommand"); + return this; + } + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one subnets. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one subnets. + * + * @param subnetId the value to set + * @return this builder + **/ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ContainerOciFssVolume build() { + ContainerOciFssVolume model = + new ContainerOciFssVolume( + this.name, + this.mountTarget, + this.export, + this.security, + this.mountCommand, + this.subnetId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ContainerOciFssVolume model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("mountTarget")) { + this.mountTarget(model.getMountTarget()); + } + if (model.wasPropertyExplicitlySet("export")) { + this.export(model.getExport()); + } + if (model.wasPropertyExplicitlySet("security")) { + this.security(model.getSecurity()); + } + if (model.wasPropertyExplicitlySet("mountCommand")) { + this.mountCommand(model.getMountCommand()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ContainerOciFssVolume( + String name, + OciFssMountTarget mountTarget, + OciFssExport export, + OciFssSecurity security, + OciFssMountCommand mountCommand, + String subnetId) { + super(name); + this.mountTarget = mountTarget; + this.export = export; + this.security = security; + this.mountCommand = mountCommand; + this.subnetId = subnetId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("mountTarget") + private final OciFssMountTarget mountTarget; + + public OciFssMountTarget getMountTarget() { + return mountTarget; + } + + @com.fasterxml.jackson.annotation.JsonProperty("export") + private final OciFssExport export; + + public OciFssExport getExport() { + return export; + } + + @com.fasterxml.jackson.annotation.JsonProperty("security") + private final OciFssSecurity security; + + public OciFssSecurity getSecurity() { + return security; + } + + @com.fasterxml.jackson.annotation.JsonProperty("mountCommand") + private final OciFssMountCommand mountCommand; + + public OciFssMountCommand getMountCommand() { + return mountCommand; + } + + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one subnets. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one subnets. + * + * @return the value + **/ + public String getSubnetId() { + return subnetId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ContainerOciFssVolume("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", mountTarget=").append(String.valueOf(this.mountTarget)); + sb.append(", export=").append(String.valueOf(this.export)); + sb.append(", security=").append(String.valueOf(this.security)); + sb.append(", mountCommand=").append(String.valueOf(this.mountCommand)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ContainerOciFssVolume)) { + return false; + } + + ContainerOciFssVolume other = (ContainerOciFssVolume) o; + return java.util.Objects.equals(this.mountTarget, other.mountTarget) + && java.util.Objects.equals(this.export, other.export) + && java.util.Objects.equals(this.security, other.security) + && java.util.Objects.equals(this.mountCommand, other.mountCommand) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.mountTarget == null ? 43 : this.mountTarget.hashCode()); + result = (result * PRIME) + (this.export == null ? 43 : this.export.hashCode()); + result = (result * PRIME) + (this.security == null ? 43 : this.security.hashCode()); + result = (result * PRIME) + (this.mountCommand == null ? 43 : this.mountCommand.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolume.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolume.java index cd294b3925b..a8da143bc29 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolume.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolume.java @@ -31,6 +31,10 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ContainerConfigFileVolume.class, name = "CONFIGFILE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ContainerOciFssVolume.class, + name = "OCI_FSS_FILE_SYSTEM" ) }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolumeType.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolumeType.java index 01565c7d892..946d435ea79 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolumeType.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerVolumeType.java @@ -11,6 +11,7 @@ public enum ContainerVolumeType { Emptydir("EMPTYDIR"), Configfile("CONFIGFILE"), + OciFssFileSystem("OCI_FSS_FILE_SYSTEM"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceDetails.java index f0b585dadde..2d7a854a910 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceDetails.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceDetails.java @@ -37,7 +37,8 @@ public final class CreateContainerInstanceDetails "imagePullSecrets", "containerRestartPolicy", "freeformTags", - "definedTags" + "definedTags", + "securityContext" }) public CreateContainerInstanceDetails( String displayName, @@ -54,7 +55,8 @@ public CreateContainerInstanceDetails( java.util.List imagePullSecrets, ContainerInstance.ContainerRestartPolicy containerRestartPolicy, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + CreateContainerInstanceSecurityContextDetails securityContext) { super(); this.displayName = displayName; this.compartmentId = compartmentId; @@ -71,6 +73,7 @@ public CreateContainerInstanceDetails( this.containerRestartPolicy = containerRestartPolicy; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityContext = securityContext; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -325,6 +328,16 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("securityContext") + private CreateContainerInstanceSecurityContextDetails securityContext; + + public Builder securityContext( + CreateContainerInstanceSecurityContextDetails securityContext) { + this.securityContext = securityContext; + this.__explicitlySet__.add("securityContext"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -345,7 +358,8 @@ public CreateContainerInstanceDetails build() { this.imagePullSecrets, this.containerRestartPolicy, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityContext); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -399,6 +413,9 @@ public Builder copy(CreateContainerInstanceDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityContext")) { + this.securityContext(model.getSecurityContext()); + } return this; } } @@ -630,6 +647,13 @@ public java.util.Map> getDefinedTags() { return definedTags; } + @com.fasterxml.jackson.annotation.JsonProperty("securityContext") + private final CreateContainerInstanceSecurityContextDetails securityContext; + + public CreateContainerInstanceSecurityContextDetails getSecurityContext() { + return securityContext; + } + @Override public String toString() { return this.toString(true); @@ -660,6 +684,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", containerRestartPolicy=").append(String.valueOf(this.containerRestartPolicy)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityContext=").append(String.valueOf(this.securityContext)); sb.append(")"); return sb.toString(); } @@ -692,6 +717,7 @@ public boolean equals(Object o) { this.containerRestartPolicy, other.containerRestartPolicy) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityContext, other.securityContext) && super.equals(other); } @@ -730,6 +756,9 @@ public int hashCode() { : this.containerRestartPolicy.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityContext == null ? 43 : this.securityContext.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceSecurityContextDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceSecurityContextDetails.java new file mode 100644 index 00000000000..236a4badfcf --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerInstanceSecurityContextDetails.java @@ -0,0 +1,78 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * Security context for all containers in a container instance. + *
+ * 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: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "securityContextType", + defaultImpl = CreateContainerInstanceSecurityContextDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateLinuxContainerInstanceSecurityContextDetails.class, + name = "LINUX" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateContainerInstanceSecurityContextDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateContainerInstanceSecurityContextDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateContainerInstanceSecurityContextDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateContainerInstanceSecurityContextDetails)) { + return false; + } + + CreateContainerInstanceSecurityContextDetails other = + (CreateContainerInstanceSecurityContextDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerOciFssVolumeDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerOciFssVolumeDetails.java new file mode 100644 index 00000000000..f08c7887493 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerOciFssVolumeDetails.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * An OCI File Storage Service (FSS) File System that can be mounted to Containers within a Container Instance. + * Check https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/FileSystem for more details. + * + *
+ * 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateContainerOciFssVolumeDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "volumeType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateContainerOciFssVolumeDetails extends CreateContainerVolumeDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @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("mountTarget") + private CreateOciFssMountTargetDetails mountTarget; + + public Builder mountTarget(CreateOciFssMountTargetDetails mountTarget) { + this.mountTarget = mountTarget; + this.__explicitlySet__.add("mountTarget"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("export") + private CreateOciFssExportDetails export; + + public Builder export(CreateOciFssExportDetails export) { + this.export = export; + this.__explicitlySet__.add("export"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("security") + private CreateOciFssSecurityDetails security; + + public Builder security(CreateOciFssSecurityDetails security) { + this.security = security; + this.__explicitlySet__.add("security"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("mountCommand") + private CreateOciFssMountCommandDetails mountCommand; + + public Builder mountCommand(CreateOciFssMountCommandDetails mountCommand) { + this.mountCommand = mountCommand; + this.__explicitlySet__.add("mountCommand"); + return this; + } + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one subnets. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one subnets. + * + * @param subnetId the value to set + * @return this builder + **/ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateContainerOciFssVolumeDetails build() { + CreateContainerOciFssVolumeDetails model = + new CreateContainerOciFssVolumeDetails( + this.name, + this.mountTarget, + this.export, + this.security, + this.mountCommand, + this.subnetId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateContainerOciFssVolumeDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("mountTarget")) { + this.mountTarget(model.getMountTarget()); + } + if (model.wasPropertyExplicitlySet("export")) { + this.export(model.getExport()); + } + if (model.wasPropertyExplicitlySet("security")) { + this.security(model.getSecurity()); + } + if (model.wasPropertyExplicitlySet("mountCommand")) { + this.mountCommand(model.getMountCommand()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateContainerOciFssVolumeDetails( + String name, + CreateOciFssMountTargetDetails mountTarget, + CreateOciFssExportDetails export, + CreateOciFssSecurityDetails security, + CreateOciFssMountCommandDetails mountCommand, + String subnetId) { + super(name); + this.mountTarget = mountTarget; + this.export = export; + this.security = security; + this.mountCommand = mountCommand; + this.subnetId = subnetId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("mountTarget") + private final CreateOciFssMountTargetDetails mountTarget; + + public CreateOciFssMountTargetDetails getMountTarget() { + return mountTarget; + } + + @com.fasterxml.jackson.annotation.JsonProperty("export") + private final CreateOciFssExportDetails export; + + public CreateOciFssExportDetails getExport() { + return export; + } + + @com.fasterxml.jackson.annotation.JsonProperty("security") + private final CreateOciFssSecurityDetails security; + + public CreateOciFssSecurityDetails getSecurity() { + return security; + } + + @com.fasterxml.jackson.annotation.JsonProperty("mountCommand") + private final CreateOciFssMountCommandDetails mountCommand; + + public CreateOciFssMountCommandDetails getMountCommand() { + return mountCommand; + } + + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one subnets. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * Specifies the network interface to be used for the OCI File Storage Service (FSS) volume. + * This is a required parameter when a Container Instance is attached to more than one subnets. + * + * @return the value + **/ + public String getSubnetId() { + return subnetId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateContainerOciFssVolumeDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", mountTarget=").append(String.valueOf(this.mountTarget)); + sb.append(", export=").append(String.valueOf(this.export)); + sb.append(", security=").append(String.valueOf(this.security)); + sb.append(", mountCommand=").append(String.valueOf(this.mountCommand)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateContainerOciFssVolumeDetails)) { + return false; + } + + CreateContainerOciFssVolumeDetails other = (CreateContainerOciFssVolumeDetails) o; + return java.util.Objects.equals(this.mountTarget, other.mountTarget) + && java.util.Objects.equals(this.export, other.export) + && java.util.Objects.equals(this.security, other.security) + && java.util.Objects.equals(this.mountCommand, other.mountCommand) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.mountTarget == null ? 43 : this.mountTarget.hashCode()); + result = (result * PRIME) + (this.export == null ? 43 : this.export.hashCode()); + result = (result * PRIME) + (this.security == null ? 43 : this.security.hashCode()); + result = (result * PRIME) + (this.mountCommand == null ? 43 : this.mountCommand.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerVolumeDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerVolumeDetails.java index b2e7deb8297..9404483e20b 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerVolumeDetails.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerVolumeDetails.java @@ -24,6 +24,10 @@ defaultImpl = CreateContainerVolumeDetails.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateContainerOciFssVolumeDetails.class, + name = "OCI_FSS_FILE_SYSTEM" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateContainerConfigFileVolumeDetails.class, name = "CONFIGFILE" diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateLinuxContainerInstanceSecurityContextDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateLinuxContainerInstanceSecurityContextDetails.java new file mode 100644 index 00000000000..c7688c029e0 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateLinuxContainerInstanceSecurityContextDetails.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * Security context for all containers in a Linux container instance. + *
+ * 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateLinuxContainerInstanceSecurityContextDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "securityContextType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateLinuxContainerInstanceSecurityContextDetails + extends CreateContainerInstanceSecurityContextDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A special supplemental group that applies to all containers in the container instance. Some volume types allow the container instance to change ownership of the volume. The owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and the permission bits are OR'd with rw-rw----. If unset, the container instance will not modify the ownership and permissions of volumes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroup") + private Integer fsGroup; + + /** + * A special supplemental group that applies to all containers in the container instance. Some volume types allow the container instance to change ownership of the volume. The owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and the permission bits are OR'd with rw-rw----. If unset, the container instance will not modify the ownership and permissions of volumes. + * + * @param fsGroup the value to set + * @return this builder + **/ + public Builder fsGroup(Integer fsGroup) { + this.fsGroup = fsGroup; + this.__explicitlySet__.add("fsGroup"); + return this; + } + /** + * Defines behavior of changing ownership and permission of the volume before being exposed inside the containers. This only applies to volumes which support fsGroup ownership and permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes permissions and ownership if the permission and ownership of the root directory does not match the expected permissions and ownership of the volume. This can improve container instance start times. ALWAYS changes permission and ownership of the volume when it is mounted. If unset, ALWAYS is used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroupChangePolicy") + private ContainerFsGroupChangePolicyType fsGroupChangePolicy; + + /** + * Defines behavior of changing ownership and permission of the volume before being exposed inside the containers. This only applies to volumes which support fsGroup ownership and permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes permissions and ownership if the permission and ownership of the root directory does not match the expected permissions and ownership of the volume. This can improve container instance start times. ALWAYS changes permission and ownership of the volume when it is mounted. If unset, ALWAYS is used. + * + * @param fsGroupChangePolicy the value to set + * @return this builder + **/ + public Builder fsGroupChangePolicy(ContainerFsGroupChangePolicyType fsGroupChangePolicy) { + this.fsGroupChangePolicy = fsGroupChangePolicy; + this.__explicitlySet__.add("fsGroupChangePolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateLinuxContainerInstanceSecurityContextDetails build() { + CreateLinuxContainerInstanceSecurityContextDetails model = + new CreateLinuxContainerInstanceSecurityContextDetails( + this.fsGroup, this.fsGroupChangePolicy); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateLinuxContainerInstanceSecurityContextDetails model) { + if (model.wasPropertyExplicitlySet("fsGroup")) { + this.fsGroup(model.getFsGroup()); + } + if (model.wasPropertyExplicitlySet("fsGroupChangePolicy")) { + this.fsGroupChangePolicy(model.getFsGroupChangePolicy()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateLinuxContainerInstanceSecurityContextDetails( + Integer fsGroup, ContainerFsGroupChangePolicyType fsGroupChangePolicy) { + super(); + this.fsGroup = fsGroup; + this.fsGroupChangePolicy = fsGroupChangePolicy; + } + + /** + * A special supplemental group that applies to all containers in the container instance. Some volume types allow the container instance to change ownership of the volume. The owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and the permission bits are OR'd with rw-rw----. If unset, the container instance will not modify the ownership and permissions of volumes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroup") + private final Integer fsGroup; + + /** + * A special supplemental group that applies to all containers in the container instance. Some volume types allow the container instance to change ownership of the volume. The owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and the permission bits are OR'd with rw-rw----. If unset, the container instance will not modify the ownership and permissions of volumes. + * + * @return the value + **/ + public Integer getFsGroup() { + return fsGroup; + } + + /** + * Defines behavior of changing ownership and permission of the volume before being exposed inside the containers. This only applies to volumes which support fsGroup ownership and permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes permissions and ownership if the permission and ownership of the root directory does not match the expected permissions and ownership of the volume. This can improve container instance start times. ALWAYS changes permission and ownership of the volume when it is mounted. If unset, ALWAYS is used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroupChangePolicy") + private final ContainerFsGroupChangePolicyType fsGroupChangePolicy; + + /** + * Defines behavior of changing ownership and permission of the volume before being exposed inside the containers. This only applies to volumes which support fsGroup ownership and permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes permissions and ownership if the permission and ownership of the root directory does not match the expected permissions and ownership of the volume. This can improve container instance start times. ALWAYS changes permission and ownership of the volume when it is mounted. If unset, ALWAYS is used. + * + * @return the value + **/ + public ContainerFsGroupChangePolicyType getFsGroupChangePolicy() { + return fsGroupChangePolicy; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateLinuxContainerInstanceSecurityContextDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", fsGroup=").append(String.valueOf(this.fsGroup)); + sb.append(", fsGroupChangePolicy=").append(String.valueOf(this.fsGroupChangePolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateLinuxContainerInstanceSecurityContextDetails)) { + return false; + } + + CreateLinuxContainerInstanceSecurityContextDetails other = + (CreateLinuxContainerInstanceSecurityContextDetails) o; + return java.util.Objects.equals(this.fsGroup, other.fsGroup) + && java.util.Objects.equals(this.fsGroupChangePolicy, other.fsGroupChangePolicy) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.fsGroup == null ? 43 : this.fsGroup.hashCode()); + result = + (result * PRIME) + + (this.fsGroupChangePolicy == null + ? 43 + : this.fsGroupChangePolicy.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssExportDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssExportDetails.java new file mode 100644 index 00000000000..cf06805beec --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssExportDetails.java @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * An OCI File Storage Service (FSS) Export. Check https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/Export/ for more details. + * + *
+ * 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: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssExportType", + defaultImpl = CreateOciFssExportDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOciFssExportIdDetails.class, + name = "OCID" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateOciFssExportDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateOciFssExportDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOciFssExportDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciFssExportDetails)) { + return false; + } + + CreateOciFssExportDetails other = (CreateOciFssExportDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * Determines the mode for supplying the OCI File Storage Service (FSS) Export details. + * The value must be an OCID unless your tenancy is allowed to use PATH as a value. + * + **/ + public enum OciFssExportType { + Ocid("OCID"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OciFssExportType v : OciFssExportType.values()) { + map.put(v.getValue(), v); + } + } + + OciFssExportType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OciFssExportType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid OciFssExportType: " + key); + } + }; +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssExportIdDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssExportIdDetails.java new file mode 100644 index 00000000000..5f3cabe620a --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssExportIdDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * The OCID of the OCI File Storage Service (FSS) Export. The user must have read permission for export-sets. + * + *
+ * 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOciFssExportIdDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssExportType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateOciFssExportIdDetails extends CreateOciFssExportDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the OCI File Storage Service (FSS) Export. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Export. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOciFssExportIdDetails build() { + CreateOciFssExportIdDetails model = new CreateOciFssExportIdDetails(this.id); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOciFssExportIdDetails model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOciFssExportIdDetails(String id) { + super(); + this.id = id; + } + + /** + * The OCID of the OCI File Storage Service (FSS) Export. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Export. + * @return the value + **/ + public String getId() { + return id; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOciFssExportIdDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciFssExportIdDetails)) { + return false; + } + + CreateOciFssExportIdDetails other = (CreateOciFssExportIdDetails) o; + return java.util.Objects.equals(this.id, other.id) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountCommandDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountCommandDetails.java new file mode 100644 index 00000000000..c99f3909e0d --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountCommandDetails.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * Specifications for the mount command to mount the OCI File Storage Service (FSS) File System to Containers. + * + *
+ * 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOciFssMountCommandDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateOciFssMountCommandDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"mountOptions"}) + public CreateOciFssMountCommandDetails( + java.util.List mountOptions) { + super(); + this.mountOptions = mountOptions; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of mount options to be used in the mount command. The order of this array will be maintained while preparing the mount command. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mountOptions") + private java.util.List mountOptions; + + /** + * List of mount options to be used in the mount command. The order of this array will be maintained while preparing the mount command. + * @param mountOptions the value to set + * @return this builder + **/ + public Builder mountOptions(java.util.List mountOptions) { + this.mountOptions = mountOptions; + this.__explicitlySet__.add("mountOptions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOciFssMountCommandDetails build() { + CreateOciFssMountCommandDetails model = + new CreateOciFssMountCommandDetails(this.mountOptions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOciFssMountCommandDetails model) { + if (model.wasPropertyExplicitlySet("mountOptions")) { + this.mountOptions(model.getMountOptions()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of mount options to be used in the mount command. The order of this array will be maintained while preparing the mount command. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mountOptions") + private final java.util.List mountOptions; + + /** + * List of mount options to be used in the mount command. The order of this array will be maintained while preparing the mount command. + * @return the value + **/ + public java.util.List getMountOptions() { + return mountOptions; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOciFssMountCommandDetails("); + sb.append("super=").append(super.toString()); + sb.append("mountOptions=").append(String.valueOf(this.mountOptions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciFssMountCommandDetails)) { + return false; + } + + CreateOciFssMountCommandDetails other = (CreateOciFssMountCommandDetails) o; + return java.util.Objects.equals(this.mountOptions, other.mountOptions) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.mountOptions == null ? 43 : this.mountOptions.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountOptionDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountOptionDetails.java new file mode 100644 index 00000000000..a221db1e97a --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountOptionDetails.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * A mount option to be used in the mount command while mounting the OCI File Storage Service (FSS) File System to Containers. + * The mount option will look like option=value in the mount 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOciFssMountOptionDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateOciFssMountOptionDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"option", "value"}) + public CreateOciFssMountOptionDetails(String option, String value) { + super(); + this.option = option; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("option") + private String option; + + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + * @param option the value to set + * @return this builder + **/ + public Builder option(String option) { + this.option = option; + this.__explicitlySet__.add("option"); + return this; + } + /** + * The value of the mount option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * The value of the mount option. + * @param value the value to set + * @return this builder + **/ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOciFssMountOptionDetails build() { + CreateOciFssMountOptionDetails model = + new CreateOciFssMountOptionDetails(this.option, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOciFssMountOptionDetails model) { + if (model.wasPropertyExplicitlySet("option")) { + this.option(model.getOption()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("option") + private final String option; + + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + * @return the value + **/ + public String getOption() { + return option; + } + + /** + * The value of the mount option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * The value of the mount option. + * @return the value + **/ + public String getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOciFssMountOptionDetails("); + sb.append("super=").append(super.toString()); + sb.append("option=").append(String.valueOf(this.option)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciFssMountOptionDetails)) { + return false; + } + + CreateOciFssMountOptionDetails other = (CreateOciFssMountOptionDetails) o; + return java.util.Objects.equals(this.option, other.option) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.option == null ? 43 : this.option.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountTargetDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountTargetDetails.java new file mode 100644 index 00000000000..5628662c8f2 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountTargetDetails.java @@ -0,0 +1,116 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * An OCI File Storage Service (FSS) Mount Target. + * Check https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/MountTarget for more details. + * + *
+ * 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: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssMountTargetType", + defaultImpl = CreateOciFssMountTargetDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOciFssMountTargetIdDetails.class, + name = "OCID" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateOciFssMountTargetDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateOciFssMountTargetDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOciFssMountTargetDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciFssMountTargetDetails)) { + return false; + } + + CreateOciFssMountTargetDetails other = (CreateOciFssMountTargetDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * Determines the mode for supplying the OCI File Storage Service (FSS) Mount target details. + * The value must be an OCID unless your tenancy is allowed to use HOST as a value. + * + **/ + public enum OciFssMountTargetType { + Ocid("OCID"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OciFssMountTargetType v : OciFssMountTargetType.values()) { + map.put(v.getValue(), v); + } + } + + OciFssMountTargetType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OciFssMountTargetType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid OciFssMountTargetType: " + key); + } + }; +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountTargetIdDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountTargetIdDetails.java new file mode 100644 index 00000000000..841b6268bc9 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssMountTargetIdDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * The OCID of the OCI File Storage Service (FSS) Mount Target. The user must have read permission for mount-targets. + * + *
+ * 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOciFssMountTargetIdDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssMountTargetType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateOciFssMountTargetIdDetails extends CreateOciFssMountTargetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the OCI File Storage Service (FSS) Mount Target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Mount Target. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOciFssMountTargetIdDetails build() { + CreateOciFssMountTargetIdDetails model = new CreateOciFssMountTargetIdDetails(this.id); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOciFssMountTargetIdDetails model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOciFssMountTargetIdDetails(String id) { + super(); + this.id = id; + } + + /** + * The OCID of the OCI File Storage Service (FSS) Mount Target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Mount Target. + * @return the value + **/ + public String getId() { + return id; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOciFssMountTargetIdDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciFssMountTargetIdDetails)) { + return false; + } + + CreateOciFssMountTargetIdDetails other = (CreateOciFssMountTargetIdDetails) o; + return java.util.Objects.equals(this.id, other.id) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssSecurityDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssSecurityDetails.java new file mode 100644 index 00000000000..2f2fa67d70b --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssSecurityDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * Security options for OCI FSS File System. + *
+ * 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: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "auth", + defaultImpl = CreateOciFssSecurityDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOciFssSysSecurityDetails.class, + name = "SYS" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateOciFssSecurityDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEncryptedInTransit"}) + protected CreateOciFssSecurityDetails(Boolean isEncryptedInTransit) { + super(); + this.isEncryptedInTransit = isEncryptedInTransit; + } + + /** + * Determines whether in-transit encryption needs to be enables. + * Check https://docs.oracle.com/en-us/iaas/Content/File/Tasks/intransitencryption.htm#Using_Intransit_Encryption for more details. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEncryptedInTransit") + private final Boolean isEncryptedInTransit; + + /** + * Determines whether in-transit encryption needs to be enables. + * Check https://docs.oracle.com/en-us/iaas/Content/File/Tasks/intransitencryption.htm#Using_Intransit_Encryption for more details. + * + * @return the value + **/ + public Boolean getIsEncryptedInTransit() { + return isEncryptedInTransit; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOciFssSecurityDetails("); + sb.append("super=").append(super.toString()); + sb.append("isEncryptedInTransit=").append(String.valueOf(this.isEncryptedInTransit)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciFssSecurityDetails)) { + return false; + } + + CreateOciFssSecurityDetails other = (CreateOciFssSecurityDetails) o; + return java.util.Objects.equals(this.isEncryptedInTransit, other.isEncryptedInTransit) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isEncryptedInTransit == null + ? 43 + : this.isEncryptedInTransit.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * NFS authentication type to be used. Currently, only auth type SYS is supported. + **/ + public enum Auth { + Sys("SYS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Auth v : Auth.values()) { + map.put(v.getValue(), v); + } + } + + Auth(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Auth create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Auth: " + key); + } + }; +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssSysSecurityDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssSysSecurityDetails.java new file mode 100644 index 00000000000..3a30621d56d --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateOciFssSysSecurityDetails.java @@ -0,0 +1,113 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * SYS security options for OCI FSS File System. + *
+ * 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOciFssSysSecurityDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "auth" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateOciFssSysSecurityDetails extends CreateOciFssSecurityDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("isEncryptedInTransit") + private Boolean isEncryptedInTransit; + + public Builder isEncryptedInTransit(Boolean isEncryptedInTransit) { + this.isEncryptedInTransit = isEncryptedInTransit; + this.__explicitlySet__.add("isEncryptedInTransit"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOciFssSysSecurityDetails build() { + CreateOciFssSysSecurityDetails model = + new CreateOciFssSysSecurityDetails(this.isEncryptedInTransit); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOciFssSysSecurityDetails model) { + if (model.wasPropertyExplicitlySet("isEncryptedInTransit")) { + this.isEncryptedInTransit(model.getIsEncryptedInTransit()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOciFssSysSecurityDetails(Boolean isEncryptedInTransit) { + super(isEncryptedInTransit); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOciFssSysSecurityDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciFssSysSecurityDetails)) { + return false; + } + + CreateOciFssSysSecurityDetails other = (CreateOciFssSysSecurityDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/LinuxContainerInstanceSecurityContext.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/LinuxContainerInstanceSecurityContext.java new file mode 100644 index 00000000000..56252b1994c --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/LinuxContainerInstanceSecurityContext.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * Security context for all containers in a container instance. + *
+ * 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LinuxContainerInstanceSecurityContext.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "securityContextType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class LinuxContainerInstanceSecurityContext extends ContainerInstanceSecurityContext { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A special supplemental group that applies to all containers in the container instance. Some volume types allow the container instance to change ownership of the volume. The owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and the permission bits are OR'd with rw-rw----. If unset, the container instance will not modify the ownership and permissions of volumes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroup") + private Integer fsGroup; + + /** + * A special supplemental group that applies to all containers in the container instance. Some volume types allow the container instance to change ownership of the volume. The owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and the permission bits are OR'd with rw-rw----. If unset, the container instance will not modify the ownership and permissions of volumes. + * + * @param fsGroup the value to set + * @return this builder + **/ + public Builder fsGroup(Integer fsGroup) { + this.fsGroup = fsGroup; + this.__explicitlySet__.add("fsGroup"); + return this; + } + /** + * Defines behavior of changing ownership and permission of the volume before being exposed inside the containers. This only applies to volumes which support fsGroup ownership and permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes permissions and ownership if the permission and ownership of the root directory does not match the expected permissions and ownership of the volume. This can improve container instance start times. ALWAYS changes permission and ownership of the volume when it is mounted. If unset, ALWAYS is used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroupChangePolicy") + private ContainerFsGroupChangePolicyType fsGroupChangePolicy; + + /** + * Defines behavior of changing ownership and permission of the volume before being exposed inside the containers. This only applies to volumes which support fsGroup ownership and permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes permissions and ownership if the permission and ownership of the root directory does not match the expected permissions and ownership of the volume. This can improve container instance start times. ALWAYS changes permission and ownership of the volume when it is mounted. If unset, ALWAYS is used. + * + * @param fsGroupChangePolicy the value to set + * @return this builder + **/ + public Builder fsGroupChangePolicy(ContainerFsGroupChangePolicyType fsGroupChangePolicy) { + this.fsGroupChangePolicy = fsGroupChangePolicy; + this.__explicitlySet__.add("fsGroupChangePolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LinuxContainerInstanceSecurityContext build() { + LinuxContainerInstanceSecurityContext model = + new LinuxContainerInstanceSecurityContext( + this.fsGroup, this.fsGroupChangePolicy); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LinuxContainerInstanceSecurityContext model) { + if (model.wasPropertyExplicitlySet("fsGroup")) { + this.fsGroup(model.getFsGroup()); + } + if (model.wasPropertyExplicitlySet("fsGroupChangePolicy")) { + this.fsGroupChangePolicy(model.getFsGroupChangePolicy()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public LinuxContainerInstanceSecurityContext( + Integer fsGroup, ContainerFsGroupChangePolicyType fsGroupChangePolicy) { + super(); + this.fsGroup = fsGroup; + this.fsGroupChangePolicy = fsGroupChangePolicy; + } + + /** + * A special supplemental group that applies to all containers in the container instance. Some volume types allow the container instance to change ownership of the volume. The owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and the permission bits are OR'd with rw-rw----. If unset, the container instance will not modify the ownership and permissions of volumes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroup") + private final Integer fsGroup; + + /** + * A special supplemental group that applies to all containers in the container instance. Some volume types allow the container instance to change ownership of the volume. The owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and the permission bits are OR'd with rw-rw----. If unset, the container instance will not modify the ownership and permissions of volumes. + * + * @return the value + **/ + public Integer getFsGroup() { + return fsGroup; + } + + /** + * Defines behavior of changing ownership and permission of the volume before being exposed inside the containers. This only applies to volumes which support fsGroup ownership and permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes permissions and ownership if the permission and ownership of the root directory does not match the expected permissions and ownership of the volume. This can improve container instance start times. ALWAYS changes permission and ownership of the volume when it is mounted. If unset, ALWAYS is used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fsGroupChangePolicy") + private final ContainerFsGroupChangePolicyType fsGroupChangePolicy; + + /** + * Defines behavior of changing ownership and permission of the volume before being exposed inside the containers. This only applies to volumes which support fsGroup ownership and permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes permissions and ownership if the permission and ownership of the root directory does not match the expected permissions and ownership of the volume. This can improve container instance start times. ALWAYS changes permission and ownership of the volume when it is mounted. If unset, ALWAYS is used. + * + * @return the value + **/ + public ContainerFsGroupChangePolicyType getFsGroupChangePolicy() { + return fsGroupChangePolicy; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LinuxContainerInstanceSecurityContext("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", fsGroup=").append(String.valueOf(this.fsGroup)); + sb.append(", fsGroupChangePolicy=").append(String.valueOf(this.fsGroupChangePolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LinuxContainerInstanceSecurityContext)) { + return false; + } + + LinuxContainerInstanceSecurityContext other = (LinuxContainerInstanceSecurityContext) o; + return java.util.Objects.equals(this.fsGroup, other.fsGroup) + && java.util.Objects.equals(this.fsGroupChangePolicy, other.fsGroupChangePolicy) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.fsGroup == null ? 43 : this.fsGroup.hashCode()); + result = + (result * PRIME) + + (this.fsGroupChangePolicy == null + ? 43 + : this.fsGroupChangePolicy.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssExport.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssExport.java new file mode 100644 index 00000000000..d96b2516446 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssExport.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * An OCI File Storage Service (FSS) Export. Check https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/Export/ for more details. + * + *
+ * 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: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssExportType", + defaultImpl = OciFssExport.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = OciFssExportId.class, name = "OCID") +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class OciFssExport extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected OciFssExport() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciFssExport("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciFssExport)) { + return false; + } + + OciFssExport other = (OciFssExport) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * Determines the mode for supplying the OCI File Storage Service (FSS) Export details. + * The value must be an OCID unless your tenancy is allowed to use PATH as a value. + * + **/ + public enum OciFssExportType { + Ocid("OCID"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OciFssExportType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OciFssExportType v : OciFssExportType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OciFssExportType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OciFssExportType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OciFssExportType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssExportId.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssExportId.java new file mode 100644 index 00000000000..024cce96e4b --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssExportId.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * The OCID of the OCI File Storage Service (FSS) Export. The user must have read permission for export-sets. + * + *
+ * 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OciFssExportId.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssExportType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OciFssExportId extends OciFssExport { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the OCI File Storage Service (FSS) Export. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Export. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OciFssExportId build() { + OciFssExportId model = new OciFssExportId(this.id); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciFssExportId model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OciFssExportId(String id) { + super(); + this.id = id; + } + + /** + * The OCID of the OCI File Storage Service (FSS) Export. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Export. + * @return the value + **/ + public String getId() { + return id; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciFssExportId("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciFssExportId)) { + return false; + } + + OciFssExportId other = (OciFssExportId) o; + return java.util.Objects.equals(this.id, other.id) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountCommand.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountCommand.java new file mode 100644 index 00000000000..fd9a76ad6a7 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountCommand.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * Specifications for the mount command to mount the OCI File Storage Service (FSS) File System to Containers. + * + *
+ * 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OciFssMountCommand.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OciFssMountCommand extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"mountOptions"}) + public OciFssMountCommand(java.util.List mountOptions) { + super(); + this.mountOptions = mountOptions; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of mount options to be used in the mount command. The order of this array will be maintained while preparing the mount command. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mountOptions") + private java.util.List mountOptions; + + /** + * List of mount options to be used in the mount command. The order of this array will be maintained while preparing the mount command. + * @param mountOptions the value to set + * @return this builder + **/ + public Builder mountOptions(java.util.List mountOptions) { + this.mountOptions = mountOptions; + this.__explicitlySet__.add("mountOptions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OciFssMountCommand build() { + OciFssMountCommand model = new OciFssMountCommand(this.mountOptions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciFssMountCommand model) { + if (model.wasPropertyExplicitlySet("mountOptions")) { + this.mountOptions(model.getMountOptions()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of mount options to be used in the mount command. The order of this array will be maintained while preparing the mount command. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mountOptions") + private final java.util.List mountOptions; + + /** + * List of mount options to be used in the mount command. The order of this array will be maintained while preparing the mount command. + * @return the value + **/ + public java.util.List getMountOptions() { + return mountOptions; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciFssMountCommand("); + sb.append("super=").append(super.toString()); + sb.append("mountOptions=").append(String.valueOf(this.mountOptions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciFssMountCommand)) { + return false; + } + + OciFssMountCommand other = (OciFssMountCommand) o; + return java.util.Objects.equals(this.mountOptions, other.mountOptions) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.mountOptions == null ? 43 : this.mountOptions.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountOption.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountOption.java new file mode 100644 index 00000000000..a3a48bf57a4 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountOption.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * A mount option to be used in the mount command while mounting the OCI File Storage Service (FSS) File System to Containers. + * The mount option will look like option=value in the mount 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OciFssMountOption.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OciFssMountOption extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"option", "value"}) + public OciFssMountOption(String option, String value) { + super(); + this.option = option; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("option") + private String option; + + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + * @param option the value to set + * @return this builder + **/ + public Builder option(String option) { + this.option = option; + this.__explicitlySet__.add("option"); + return this; + } + /** + * The value of the mount option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * The value of the mount option. + * @param value the value to set + * @return this builder + **/ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OciFssMountOption build() { + OciFssMountOption model = new OciFssMountOption(this.option, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciFssMountOption model) { + if (model.wasPropertyExplicitlySet("option")) { + this.option(model.getOption()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("option") + private final String option; + + /** + * A generic (https://man7.org/linux/man-pages/man8/mount.8.html) or nfs (https://man7.org/linux/man-pages/man5/nfs.5.html) mount option. + * @return the value + **/ + public String getOption() { + return option; + } + + /** + * The value of the mount option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * The value of the mount option. + * @return the value + **/ + public String getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciFssMountOption("); + sb.append("super=").append(super.toString()); + sb.append("option=").append(String.valueOf(this.option)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciFssMountOption)) { + return false; + } + + OciFssMountOption other = (OciFssMountOption) o; + return java.util.Objects.equals(this.option, other.option) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.option == null ? 43 : this.option.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountTarget.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountTarget.java new file mode 100644 index 00000000000..0a555f4f53c --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountTarget.java @@ -0,0 +1,128 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * An OCI File Storage Service (FSS) Mount Target. + * Check https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/MountTarget for more details. + * + *
+ * 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: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssMountTargetType", + defaultImpl = OciFssMountTarget.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OciFssMountTargetId.class, + name = "OCID" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class OciFssMountTarget extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected OciFssMountTarget() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciFssMountTarget("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciFssMountTarget)) { + return false; + } + + OciFssMountTarget other = (OciFssMountTarget) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * Determines the mode for supplying the OCI File Storage Service (FSS) Mount target details. + * The value must be an OCID unless your tenancy is allowed to use HOST as a value. + * + **/ + public enum OciFssMountTargetType { + Ocid("OCID"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OciFssMountTargetType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OciFssMountTargetType v : OciFssMountTargetType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OciFssMountTargetType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OciFssMountTargetType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OciFssMountTargetType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountTargetId.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountTargetId.java new file mode 100644 index 00000000000..0ff690709e1 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssMountTargetId.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * The OCID of the OCI File Storage Service (FSS) Mount Target. The user must have read permission for mount-targets. + * + *
+ * 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OciFssMountTargetId.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "ociFssMountTargetType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OciFssMountTargetId extends OciFssMountTarget { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the OCI File Storage Service (FSS) Mount Target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Mount Target. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OciFssMountTargetId build() { + OciFssMountTargetId model = new OciFssMountTargetId(this.id); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciFssMountTargetId model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OciFssMountTargetId(String id) { + super(); + this.id = id; + } + + /** + * The OCID of the OCI File Storage Service (FSS) Mount Target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the OCI File Storage Service (FSS) Mount Target. + * @return the value + **/ + public String getId() { + return id; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciFssMountTargetId("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciFssMountTargetId)) { + return false; + } + + OciFssMountTargetId other = (OciFssMountTargetId) o; + return java.util.Objects.equals(this.id, other.id) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + return result; + } +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssSecurity.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssSecurity.java new file mode 100644 index 00000000000..824daed666d --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssSecurity.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * Security options for OCI FSS File System. + *
+ * 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: 20210415") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "auth", + defaultImpl = OciFssSecurity.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OciFssSysSecurity.class, + name = "SYS" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class OciFssSecurity extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEncryptedInTransit"}) + protected OciFssSecurity(Boolean isEncryptedInTransit) { + super(); + this.isEncryptedInTransit = isEncryptedInTransit; + } + + /** + * Determines whether in-transit encryption needs to be enables. + * Check https://docs.oracle.com/en-us/iaas/Content/File/Tasks/intransitencryption.htm#Using_Intransit_Encryption for more details. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEncryptedInTransit") + private final Boolean isEncryptedInTransit; + + /** + * Determines whether in-transit encryption needs to be enables. + * Check https://docs.oracle.com/en-us/iaas/Content/File/Tasks/intransitencryption.htm#Using_Intransit_Encryption for more details. + * + * @return the value + **/ + public Boolean getIsEncryptedInTransit() { + return isEncryptedInTransit; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciFssSecurity("); + sb.append("super=").append(super.toString()); + sb.append("isEncryptedInTransit=").append(String.valueOf(this.isEncryptedInTransit)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciFssSecurity)) { + return false; + } + + OciFssSecurity other = (OciFssSecurity) o; + return java.util.Objects.equals(this.isEncryptedInTransit, other.isEncryptedInTransit) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isEncryptedInTransit == null + ? 43 + : this.isEncryptedInTransit.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * NFS authentication type to be used. Currently, only auth type SYS is supported. + **/ + public enum Auth { + Sys("SYS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Auth.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Auth v : Auth.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Auth(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Auth create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Auth', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssSysSecurity.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssSysSecurity.java new file mode 100644 index 00000000000..b9db10052c7 --- /dev/null +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/OciFssSysSecurity.java @@ -0,0 +1,112 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.containerinstances.model; + +/** + * SYS security options for OCI FSS File System. + *
+ * 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: 20210415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OciFssSysSecurity.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "auth" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OciFssSysSecurity extends OciFssSecurity { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("isEncryptedInTransit") + private Boolean isEncryptedInTransit; + + public Builder isEncryptedInTransit(Boolean isEncryptedInTransit) { + this.isEncryptedInTransit = isEncryptedInTransit; + this.__explicitlySet__.add("isEncryptedInTransit"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OciFssSysSecurity build() { + OciFssSysSecurity model = new OciFssSysSecurity(this.isEncryptedInTransit); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciFssSysSecurity model) { + if (model.wasPropertyExplicitlySet("isEncryptedInTransit")) { + this.isEncryptedInTransit(model.getIsEncryptedInTransit()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OciFssSysSecurity(Boolean isEncryptedInTransit) { + super(isEncryptedInTransit); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciFssSysSecurity("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciFssSysSecurity)) { + return false; + } + + OciFssSysSecurity other = (OciFssSysSecurity) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-containerregistry/pom.xml b/bmc-containerregistry/pom.xml index b80b30b0c00..3ea9c7e1520 100644 --- a/bmc-containerregistry/pom.xml +++ b/bmc-containerregistry/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-containerregistry @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index b69007c6005..f2a4994f557 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.93.0 + 2.95.0 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageAsyncClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageAsyncClient.java index 63c88266c4f..7f0f8f723fb 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageAsyncClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageAsyncClient.java @@ -32,7 +32,9 @@ public class BlockstorageAsyncClient implements BlockstorageAsync { com.oracle.bmc.Services.serviceBuilder() .serviceName(BlockstorageClient.class.getName()) .serviceEndpointPrefix("iaas") - .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://iaas.{region}.{dualStack?ds.oci.:}{secondLevelDomain}") + .endpointServiceName("iaas") .build(); private static final org.slf4j.Logger LOG = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageClient.java index 6d39a147013..2f906490dc5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageClient.java @@ -20,7 +20,9 @@ public class BlockstorageClient implements Blockstorage { com.oracle.bmc.Services.serviceBuilder() .serviceName(BlockstorageClient.class.getName()) .serviceEndpointPrefix("iaas") - .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://iaas.{region}.{dualStack?ds.oci.:}{secondLevelDomain}") + .endpointServiceName("iaas") .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-core/src/main/java/com/oracle/bmc/core/ComputeAsyncClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsyncClient.java index 758ef00541c..02e32d9ca69 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsyncClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsyncClient.java @@ -32,7 +32,9 @@ public class ComputeAsyncClient implements ComputeAsync { com.oracle.bmc.Services.serviceBuilder() .serviceName(ComputeClient.class.getName()) .serviceEndpointPrefix("iaas") - .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://iaas.{region}.{dualStack?ds.oci.:}{secondLevelDomain}") + .endpointServiceName("iaas") .build(); private static final org.slf4j.Logger LOG = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeClient.java index 5bb675b77e1..7c2578cc2cd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeClient.java @@ -20,7 +20,9 @@ public class ComputeClient implements Compute { com.oracle.bmc.Services.serviceBuilder() .serviceName(ComputeClient.class.getName()) .serviceEndpointPrefix("iaas") - .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://iaas.{region}.{dualStack?ds.oci.:}{secondLevelDomain}") + .endpointServiceName("iaas") .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-core/src/main/java/com/oracle/bmc/core/ComputeManagement.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagement.java index 1b0b56516bf..c60f57290e2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagement.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagement.java @@ -189,7 +189,7 @@ ChangeInstancePoolCompartmentResponse changeInstancePoolCompartment( /** * Creates an instance configuration. An instance configuration is a template that defines the - * settings to use when creating Compute instances. + * settings to use when creating Compute instances or GPU Memory Clusters. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsync.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsync.java index fb1ec807f71..2300b0e707b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsync.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsync.java @@ -214,7 +214,7 @@ java.util.concurrent.Future createClusterNetwork( /** * Creates an instance configuration. An instance configuration is a template that defines the - * settings to use when creating Compute instances. + * settings to use when creating Compute instances or GPU Memory Clusters. * * * @param request The request object containing the details to send diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsyncClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsyncClient.java index 8071bbd4ea0..e39a34bce94 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsyncClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsyncClient.java @@ -32,7 +32,9 @@ public class ComputeManagementAsyncClient implements ComputeManagementAsync { com.oracle.bmc.Services.serviceBuilder() .serviceName(ComputeManagementClient.class.getName()) .serviceEndpointPrefix("iaas") - .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://iaas.{region}.{dualStack?ds.oci.:}{secondLevelDomain}") + .endpointServiceName("iaas") .build(); private static final org.slf4j.Logger LOG = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementClient.java index c9dc6e40438..32f99c4cfcb 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementClient.java @@ -20,7 +20,9 @@ public class ComputeManagementClient implements ComputeManagement { com.oracle.bmc.Services.serviceBuilder() .serviceName(ComputeManagementClient.class.getName()) .serviceEndpointPrefix("iaas") - .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://iaas.{region}.{dualStack?ds.oci.:}{secondLevelDomain}") + .endpointServiceName("iaas") .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-core/src/main/java/com/oracle/bmc/core/ComputeWaiters.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeWaiters.java index cd6e8aabdb2..50b2f26d9f3 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeWaiters.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeWaiters.java @@ -167,6 +167,65 @@ public AttachComputeHostGroupHostResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forAttachVolume( + AttachVolumeRequest request) { + return forAttachVolume( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forAttachVolume( + AttachVolumeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public AttachVolumeResponse call() throws Exception { + final AttachVolumeResponse response = client.attachVolume(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -1248,6 +1307,65 @@ public DetachComputeHostGroupHostResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forDetachVolume( + DetachVolumeRequest request) { + return forDetachVolume( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forDetachVolume( + DetachVolumeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public DetachVolumeResponse call() throws Exception { + final DetachVolumeResponse response = client.detachVolume(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -3274,6 +3392,67 @@ public LaunchInstanceResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forTerminateInstance(TerminateInstanceRequest request) { + return forTerminateInstance( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forTerminateInstance( + TerminateInstanceRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public TerminateInstanceResponse call() throws Exception { + final TerminateInstanceResponse response = + client.terminateInstance(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java index 0fae12dda58..c64f208e832 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java @@ -3362,6 +3362,20 @@ ListNetworkSecurityGroupsResponse listNetworkSecurityGroups( */ ListPrivateIpsResponse listPrivateIps(ListPrivateIpsRequest request); + /** + * The operation lists available OCI's FastConnect MultiCloud Provider/Partner remote region names associated with an OCI region. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListProviderRemoteRegions API. + */ + ListProviderRemoteRegionsResponse listProviderRemoteRegions( + ListProviderRemoteRegionsRequest request); + /** * Lists the public IP pools in the specified compartment. * You can filter the list using query parameters. @@ -3936,6 +3950,19 @@ RemovePublicIpPoolCapacityResponse removePublicIpPoolCapacity( */ UpdateCrossConnectGroupResponse updateCrossConnectGroup(UpdateCrossConnectGroupRequest request); + /** + * Updates the Letter of Authority for the specified cross-connect. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateCrossConnectLetterOfAuthority API. + */ + UpdateCrossConnectLetterOfAuthorityResponse updateCrossConnectLetterOfAuthority( + UpdateCrossConnectLetterOfAuthorityRequest request); + /** * Updates the specified set of DHCP options. You can update the display name or the options * themselves. Avoid entering confidential information. diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java index 7374ba584ce..e17fc64b679 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java @@ -4070,6 +4070,23 @@ java.util.concurrent.Future listPrivateIps( com.oracle.bmc.responses.AsyncHandler handler); + /** + * The operation lists available OCI's FastConnect MultiCloud Provider/Partner remote region names associated with an OCI region. + * + * + * @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 listProviderRemoteRegions( + ListProviderRemoteRegionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListProviderRemoteRegionsRequest, ListProviderRemoteRegionsResponse> + handler); + /** * Lists the public IP pools in the specified compartment. * You can filter the list using query parameters. @@ -4780,6 +4797,24 @@ java.util.concurrent.Future updateCrossConnectG UpdateCrossConnectGroupRequest, UpdateCrossConnectGroupResponse> handler); + /** + * Updates the Letter of Authority for the specified cross-connect. + * + * @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 + updateCrossConnectLetterOfAuthority( + UpdateCrossConnectLetterOfAuthorityRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateCrossConnectLetterOfAuthorityRequest, + UpdateCrossConnectLetterOfAuthorityResponse> + handler); + /** * Updates the specified set of DHCP options. You can update the display name or the options * themselves. Avoid entering confidential information. diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java index 7f24e3a917a..3e349b108f1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java @@ -32,7 +32,9 @@ public class VirtualNetworkAsyncClient implements VirtualNetworkAsync { com.oracle.bmc.Services.serviceBuilder() .serviceName(VirtualNetworkClient.class.getName()) .serviceEndpointPrefix("iaas") - .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://iaas.{region}.{dualStack?ds.oci.:}{secondLevelDomain}") + .endpointServiceName("iaas") .build(); private static final org.slf4j.Logger LOG = @@ -10321,6 +10323,55 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listProviderRemoteRegions( + ListProviderRemoteRegionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListProviderRemoteRegionsRequest, ListProviderRemoteRegionsResponse> + handler) { + LOG.trace("Called async listProviderRemoteRegions"); + final ListProviderRemoteRegionsRequest interceptedRequest = + ListProviderRemoteRegionsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListProviderRemoteRegionsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "VirtualNetwork", + "ListProviderRemoteRegions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ProviderRemoteRegionName/ListProviderRemoteRegions"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListProviderRemoteRegionsResponse> + transformer = + ListProviderRemoteRegionsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListProviderRemoteRegionsRequest, ListProviderRemoteRegionsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListProviderRemoteRegionsRequest, + ListProviderRemoteRegionsResponse>, + 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< + ListProviderRemoteRegionsRequest, ListProviderRemoteRegionsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listPublicIpPools( ListPublicIpPoolsRequest request, @@ -12212,6 +12263,65 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + updateCrossConnectLetterOfAuthority( + UpdateCrossConnectLetterOfAuthorityRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateCrossConnectLetterOfAuthorityRequest, + UpdateCrossConnectLetterOfAuthorityResponse> + handler) { + LOG.trace("Called async updateCrossConnectLetterOfAuthority"); + final UpdateCrossConnectLetterOfAuthorityRequest interceptedRequest = + UpdateCrossConnectLetterOfAuthorityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateCrossConnectLetterOfAuthorityConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "VirtualNetwork", + "UpdateCrossConnectLetterOfAuthority", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LetterOfAuthority/UpdateCrossConnectLetterOfAuthority"); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdateCrossConnectLetterOfAuthorityResponse> + transformer = + UpdateCrossConnectLetterOfAuthorityConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateCrossConnectLetterOfAuthorityRequest, + UpdateCrossConnectLetterOfAuthorityResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateCrossConnectLetterOfAuthorityRequest, + UpdateCrossConnectLetterOfAuthorityResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateCrossConnectLetterOfAuthorityDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateCrossConnectLetterOfAuthorityRequest, + UpdateCrossConnectLetterOfAuthorityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateDhcpOptions( UpdateDhcpOptionsRequest request, diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkClient.java index 3bd1dd47348..c96572077bf 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkClient.java @@ -20,7 +20,9 @@ public class VirtualNetworkClient implements VirtualNetwork { com.oracle.bmc.Services.serviceBuilder() .serviceName(VirtualNetworkClient.class.getName()) .serviceEndpointPrefix("iaas") - .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://iaas.{region}.{dualStack?ds.oci.:}{secondLevelDomain}") + .endpointServiceName("iaas") .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; @@ -8358,6 +8360,44 @@ public ListPrivateIpsResponse listPrivateIps(ListPrivateIpsRequest request) { }); } + @Override + public ListProviderRemoteRegionsResponse listProviderRemoteRegions( + ListProviderRemoteRegionsRequest request) { + LOG.trace("Called listProviderRemoteRegions"); + final ListProviderRemoteRegionsRequest interceptedRequest = + ListProviderRemoteRegionsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListProviderRemoteRegionsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "VirtualNetwork", + "ListProviderRemoteRegions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ProviderRemoteRegionName/ListProviderRemoteRegions"); + java.util.function.Function + transformer = + ListProviderRemoteRegionsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListPublicIpPoolsResponse listPublicIpPools(ListPublicIpPoolsRequest request) { LOG.trace("Called listPublicIpPools"); @@ -9847,6 +9887,51 @@ public UpdateCrossConnectGroupResponse updateCrossConnectGroup( }); } + @Override + public UpdateCrossConnectLetterOfAuthorityResponse updateCrossConnectLetterOfAuthority( + UpdateCrossConnectLetterOfAuthorityRequest request) { + LOG.trace("Called updateCrossConnectLetterOfAuthority"); + final UpdateCrossConnectLetterOfAuthorityRequest interceptedRequest = + UpdateCrossConnectLetterOfAuthorityConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateCrossConnectLetterOfAuthorityConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "VirtualNetwork", + "UpdateCrossConnectLetterOfAuthority", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LetterOfAuthority/UpdateCrossConnectLetterOfAuthority"); + java.util.function.Function< + javax.ws.rs.core.Response, UpdateCrossConnectLetterOfAuthorityResponse> + transformer = + UpdateCrossConnectLetterOfAuthorityConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest + .getUpdateCrossConnectLetterOfAuthorityDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateDhcpOptionsResponse updateDhcpOptions(UpdateDhcpOptionsRequest request) { LOG.trace("Called updateDhcpOptions"); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkPaginators.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkPaginators.java index 42f1c8a6ffb..aa666261e1b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkPaginators.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkPaginators.java @@ -3739,6 +3739,123 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listProviderRemoteRegions 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 listProviderRemoteRegionsResponseIterator( + final ListProviderRemoteRegionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListProviderRemoteRegionsRequest.Builder, ListProviderRemoteRegionsRequest, + ListProviderRemoteRegionsResponse>( + new java.util.function.Supplier() { + @Override + public ListProviderRemoteRegionsRequest.Builder get() { + return ListProviderRemoteRegionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListProviderRemoteRegionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListProviderRemoteRegionsRequest.Builder>, + ListProviderRemoteRegionsRequest>() { + @Override + public ListProviderRemoteRegionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListProviderRemoteRegionsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListProviderRemoteRegionsRequest, ListProviderRemoteRegionsResponse>() { + @Override + public ListProviderRemoteRegionsResponse apply( + ListProviderRemoteRegionsRequest request) { + return client.listProviderRemoteRegions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.core.model.ProviderRemoteRegionName} objects + * contained in responses from the listProviderRemoteRegions 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.core.model.ProviderRemoteRegionName} objects + * contained in responses received from the service. + */ + public Iterable + listProviderRemoteRegionsRecordIterator( + final ListProviderRemoteRegionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListProviderRemoteRegionsRequest.Builder, ListProviderRemoteRegionsRequest, + ListProviderRemoteRegionsResponse, + com.oracle.bmc.core.model.ProviderRemoteRegionName>( + new java.util.function.Supplier() { + @Override + public ListProviderRemoteRegionsRequest.Builder get() { + return ListProviderRemoteRegionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListProviderRemoteRegionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListProviderRemoteRegionsRequest.Builder>, + ListProviderRemoteRegionsRequest>() { + @Override + public ListProviderRemoteRegionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListProviderRemoteRegionsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListProviderRemoteRegionsRequest, ListProviderRemoteRegionsResponse>() { + @Override + public ListProviderRemoteRegionsResponse apply( + ListProviderRemoteRegionsRequest request) { + return client.listProviderRemoteRegions(request); + } + }, + new java.util.function.Function< + ListProviderRemoteRegionsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListProviderRemoteRegionsResponse response) { + return response.getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listPublicIpPools operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AcceptShieldedIntegrityPolicyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AcceptShieldedIntegrityPolicyConverter.java index 5260ffa87b5..937052ce289 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AcceptShieldedIntegrityPolicyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AcceptShieldedIntegrityPolicyConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceId", request.getInstanceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instances") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddDrgRouteDistributionStatementsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddDrgRouteDistributionStatementsConverter.java index 3eea68d0347..2bd2e60a608 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddDrgRouteDistributionStatementsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddDrgRouteDistributionStatementsConverter.java @@ -36,8 +36,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getAddDrgRouteDistributionStatementsDetails(), "addDrgRouteDistributionStatementsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteDistributionId", request.getDrgRouteDistributionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteDistributions") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddDrgRouteRulesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddDrgRouteRulesConverter.java index 8836b41448e..3025c4d074a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddDrgRouteRulesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddDrgRouteRulesConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getAddDrgRouteRulesDetails(), "addDrgRouteRulesDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteTableId", request.getDrgRouteTableId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteTables") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddImageShapeCompatibilityEntryConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddImageShapeCompatibilityEntryConverter.java index 06d8f3f3ca0..8a52a8ee654 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddImageShapeCompatibilityEntryConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddImageShapeCompatibilityEntryConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getImageId(), "imageId must not be blank"); Validate.notBlank(request.getShapeName(), "shapeName must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("imageId", request.getImageId()); + requiredParametersMap.put("shapeName", request.getShapeName()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("images") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddIpv4SubnetCidrConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddIpv4SubnetCidrConverter.java index cedc9ad45d7..ca41e8eeed5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddIpv4SubnetCidrConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddIpv4SubnetCidrConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getAddIpv4SubnetCidrDetails(), "addIpv4SubnetCidrDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("subnetId", request.getSubnetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("subnets") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddIpv6SubnetCidrConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddIpv6SubnetCidrConverter.java index 2a8344fce41..348387701b3 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddIpv6SubnetCidrConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddIpv6SubnetCidrConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getAddSubnetIpv6CidrDetails(), "addSubnetIpv6CidrDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("subnetId", request.getSubnetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("subnets") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddIpv6VcnCidrConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddIpv6VcnCidrConverter.java index 74137a31da9..27744acedec 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddIpv6VcnCidrConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddIpv6VcnCidrConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVcnId(), "vcnId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vcnId", request.getVcnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vcns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddNetworkSecurityGroupSecurityRulesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddNetworkSecurityGroupSecurityRulesConverter.java index 68e6fdbe192..18399e2195c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddNetworkSecurityGroupSecurityRulesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddNetworkSecurityGroupSecurityRulesConverter.java @@ -37,8 +37,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getAddNetworkSecurityGroupSecurityRulesDetails(), "addNetworkSecurityGroupSecurityRulesDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("networkSecurityGroupId", request.getNetworkSecurityGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("networkSecurityGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddPublicIpPoolCapacityConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddPublicIpPoolCapacityConverter.java index 22c9e55b26d..9ca9ca32d87 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddPublicIpPoolCapacityConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddPublicIpPoolCapacityConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getAddPublicIpPoolCapacityDetails(), "addPublicIpPoolCapacityDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("publicIpPoolId", request.getPublicIpPoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("publicIpPools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddVcnCidrConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddVcnCidrConverter.java index e8720017ff6..40ed3568633 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddVcnCidrConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AddVcnCidrConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getVcnId(), "vcnId must not be blank"); Validate.notNull(request.getAddVcnCidrDetails(), "addVcnCidrDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vcnId", request.getVcnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vcns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AdvertiseByoipRangeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AdvertiseByoipRangeConverter.java index 302b1590c38..27204055733 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AdvertiseByoipRangeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AdvertiseByoipRangeConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getByoipRangeId(), "byoipRangeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoipRangeId", request.getByoipRangeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoipRanges") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ApplyHostConfigurationConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ApplyHostConfigurationConverter.java index 6c71f982352..e75b65c63e7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ApplyHostConfigurationConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ApplyHostConfigurationConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getComputeHostId(), "computeHostId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeHostId", request.getComputeHostId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeHosts") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachBootVolumeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachBootVolumeConverter.java index 400b92a1fd2..f7442a01121 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachBootVolumeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachBootVolumeConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getAttachBootVolumeDetails(), "attachBootVolumeDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("bootVolumeAttachments"); + newBaseTarget.path("/20160918").path("bootVolumeAttachments"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachComputeHostGroupHostConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachComputeHostGroupHostConverter.java index 2db6ab688d8..234bf8b9ba3 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachComputeHostGroupHostConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachComputeHostGroupHostConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getAttachComputeHostGroupHostDetails(), "attachComputeHostGroupHostDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeHostId", request.getComputeHostId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeHosts") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachInstancePoolInstanceConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachInstancePoolInstanceConverter.java index 157b913ce2e..74b1e577093 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachInstancePoolInstanceConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachInstancePoolInstanceConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getAttachInstancePoolInstanceDetails(), "attachInstancePoolInstanceDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachLoadBalancerConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachLoadBalancerConverter.java index 1288a57a6b4..9c59a754292 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachLoadBalancerConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachLoadBalancerConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getAttachLoadBalancerDetails(), "attachLoadBalancerDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachServiceIdConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachServiceIdConverter.java index 01482a732dd..7f6a9bcb74c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachServiceIdConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachServiceIdConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getServiceGatewayId(), "serviceGatewayId must not be blank"); Validate.notNull(request.getAttachServiceDetails(), "attachServiceDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("serviceGatewayId", request.getServiceGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("serviceGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachVnicConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachVnicConverter.java index fb353ac73ca..fa0ac979994 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachVnicConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachVnicConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getAttachVnicDetails(), "attachVnicDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("vnicAttachments"); + newBaseTarget.path("/20160918").path("vnicAttachments"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachVolumeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachVolumeConverter.java index dbfa7bef4d4..12d5daab27f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachVolumeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/AttachVolumeConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getAttachVolumeDetails(), "attachVolumeDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumeAttachments"); + newBaseTarget.path("/20160918").path("volumeAttachments"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); @@ -120,6 +125,17 @@ public com.oracle.bmc.core.responses.AttachVolumeResponse apply( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.core.responses.AttachVolumeResponse responseWrapper = builder.build(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkAddVirtualCircuitPublicPrefixesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkAddVirtualCircuitPublicPrefixesConverter.java index 9bccc37ac5f..c0aee6f1530 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkAddVirtualCircuitPublicPrefixesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkAddVirtualCircuitPublicPrefixesConverter.java @@ -36,8 +36,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getBulkAddVirtualCircuitPublicPrefixesDetails(), "bulkAddVirtualCircuitPublicPrefixesDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("virtualCircuitId", request.getVirtualCircuitId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("virtualCircuits") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkCreateIpv6sConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkCreateIpv6sConverter.java index 36db760dd2c..92e60dc21e9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkCreateIpv6sConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkCreateIpv6sConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getBulkCreateIpv6sDetails(), "bulkCreateIpv6sDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipv6") .path("actions") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkCreatePrivateIpsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkCreatePrivateIpsConverter.java index c1d3953d1df..8aab48681b5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkCreatePrivateIpsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkCreatePrivateIpsConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getBulkCreatePrivateIpsDetails(), "bulkCreatePrivateIpsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("privateIps") .path("actions") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDeleteIpv6sConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDeleteIpv6sConverter.java index 49d0d359f41..5feec14eea8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDeleteIpv6sConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDeleteIpv6sConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getBulkDeleteIpv6sDetails(), "bulkDeleteIpv6sDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipv6") .path("actions") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDeletePrivateIpsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDeletePrivateIpsConverter.java index 8f1ee06e9d2..f38017aabee 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDeletePrivateIpsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDeletePrivateIpsConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getBulkDeletePrivateIpsDetails(), "bulkDeletePrivateIpsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("privateIps") .path("actions") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDeleteVirtualCircuitPublicPrefixesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDeleteVirtualCircuitPublicPrefixesConverter.java index 2af8ac4ec93..ec58eff5e2d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDeleteVirtualCircuitPublicPrefixesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDeleteVirtualCircuitPublicPrefixesConverter.java @@ -37,8 +37,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getBulkDeleteVirtualCircuitPublicPrefixesDetails(), "bulkDeleteVirtualCircuitPublicPrefixesDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("virtualCircuitId", request.getVirtualCircuitId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("virtualCircuits") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDetachIpv6sConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDetachIpv6sConverter.java index 3880d1bebb4..563b854d3dc 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDetachIpv6sConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDetachIpv6sConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getBulkDetachIpv6sDetails(), "bulkDetachIpv6sDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipv6") .path("actions") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDetachPrivateIpsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDetachPrivateIpsConverter.java index 50ef6865a21..fd45dca66e1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDetachPrivateIpsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkDetachPrivateIpsConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getBulkDetachPrivateIpsDetails(), "bulkDetachPrivateIpsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("privateIps") .path("actions") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkUpdateIpv6sConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkUpdateIpv6sConverter.java index 25ef5a246be..9b57c2dde06 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkUpdateIpv6sConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkUpdateIpv6sConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getBulkUpdateIpv6sDetails(), "bulkUpdateIpv6sDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipv6") .path("actions") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkUpdatePrivateIpsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkUpdatePrivateIpsConverter.java index 0225a317252..81e6df62e14 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkUpdatePrivateIpsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/BulkUpdatePrivateIpsConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getBulkUpdatePrivateIpsDetails(), "bulkUpdatePrivateIpsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("privateIps") .path("actions") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CaptureConsoleHistoryConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CaptureConsoleHistoryConverter.java index 7ab5a667d8a..797074532f6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CaptureConsoleHistoryConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CaptureConsoleHistoryConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCaptureConsoleHistoryDetails(), "captureConsoleHistoryDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("instanceConsoleHistories"); + newBaseTarget.path("/20160918").path("instanceConsoleHistories"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeBootVolumeBackupCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeBootVolumeBackupCompartmentConverter.java index 270d72c91fa..92bf65a5d30 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeBootVolumeBackupCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeBootVolumeBackupCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeBootVolumeBackupCompartmentDetails(), "changeBootVolumeBackupCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeBackupId", request.getBootVolumeBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumeBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeBootVolumeCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeBootVolumeCompartmentConverter.java index 5dedbdb50bf..e4a15108031 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeBootVolumeCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeBootVolumeCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeBootVolumeCompartmentDetails(), "changeBootVolumeCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeId", request.getBootVolumeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeByoasnCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeByoasnCompartmentConverter.java index bc45744a2e1..c4f39d696b0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeByoasnCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeByoasnCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeByoasnCompartmentDetails(), "changeByoasnCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoasnId", request.getByoasnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoasns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeByoipRangeCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeByoipRangeCompartmentConverter.java index d6da660c018..00807279d45 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeByoipRangeCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeByoipRangeCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeByoipRangeCompartmentDetails(), "changeByoipRangeCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoipRangeId", request.getByoipRangeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoipRanges") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCaptureFilterCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCaptureFilterCompartmentConverter.java index c6a0f217d7f..d2cf02c8d50 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCaptureFilterCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCaptureFilterCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeCaptureFilterCompartmentDetails(), "changeCaptureFilterCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("captureFilterId", request.getCaptureFilterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("captureFilters") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeClusterNetworkCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeClusterNetworkCompartmentConverter.java index 3717c0138b3..930eb24f386 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeClusterNetworkCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeClusterNetworkCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeClusterNetworkCompartmentDetails(), "changeClusterNetworkCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("clusterNetworkId", request.getClusterNetworkId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("clusterNetworks") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeCapacityReservationCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeCapacityReservationCompartmentConverter.java index 35dae897bf9..e4b429bfcd7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeCapacityReservationCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeCapacityReservationCompartmentConverter.java @@ -39,8 +39,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeComputeCapacityReservationCompartmentDetails(), "changeComputeCapacityReservationCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("capacityReservationId", request.getCapacityReservationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeCapacityReservations") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeCapacityTopologyCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeCapacityTopologyCompartmentConverter.java index 735bb21f8b1..33194972f31 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeCapacityTopologyCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeCapacityTopologyCompartmentConverter.java @@ -39,8 +39,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeComputeCapacityTopologyCompartmentDetails(), "changeComputeCapacityTopologyCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeCapacityTopologyId", request.getComputeCapacityTopologyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeCapacityTopologies") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeClusterCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeClusterCompartmentConverter.java index 6d9e1947a47..a2409337769 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeClusterCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeClusterCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeComputeClusterCompartmentDetails(), "changeComputeClusterCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeClusterId", request.getComputeClusterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeClusters") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeGpuMemoryClusterCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeGpuMemoryClusterCompartmentConverter.java index 4afcb2d3424..7c430cc60b1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeGpuMemoryClusterCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeGpuMemoryClusterCompartmentConverter.java @@ -39,8 +39,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeComputeGpuMemoryClusterCompartmentDetails(), "changeComputeGpuMemoryClusterCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeGpuMemoryClusterId", request.getComputeGpuMemoryClusterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeGpuMemoryClusters") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeGpuMemoryFabricCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeGpuMemoryFabricCompartmentConverter.java index 32779bc7aa4..04475c6c470 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeGpuMemoryFabricCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeGpuMemoryFabricCompartmentConverter.java @@ -39,8 +39,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeComputeGpuMemoryFabricCompartmentDetails(), "changeComputeGpuMemoryFabricCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeGpuMemoryFabricId", request.getComputeGpuMemoryFabricId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeGpuMemoryFabrics") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeHostCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeHostCompartmentConverter.java index 84b502e58e2..b4fb285ec37 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeHostCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeHostCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeComputeHostCompartmentDetails(), "changeComputeHostCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeHostId", request.getComputeHostId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeHosts") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeHostGroupCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeHostGroupCompartmentConverter.java index f790a361c3d..efca482f29b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeHostGroupCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeHostGroupCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeComputeHostGroupCompartmentDetails(), "changeComputeHostGroupCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeHostGroupId", request.getComputeHostGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeHostGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeImageCapabilitySchemaCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeImageCapabilitySchemaCompartmentConverter.java index ebb8895091b..c08dfcc55d2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeImageCapabilitySchemaCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeComputeImageCapabilitySchemaCompartmentConverter.java @@ -41,8 +41,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeComputeImageCapabilitySchemaCompartmentDetails(), "changeComputeImageCapabilitySchemaCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeImageCapabilitySchemaId", request.getComputeImageCapabilitySchemaId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeImageCapabilitySchemas") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCpeCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCpeCompartmentConverter.java index ba456944653..f9a96074a90 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCpeCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCpeCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeCpeCompartmentDetails(), "changeCpeCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("cpeId", request.getCpeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("cpes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCrossConnectCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCrossConnectCompartmentConverter.java index 53d7384ed50..ee522207faa 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCrossConnectCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCrossConnectCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeCrossConnectCompartmentDetails(), "changeCrossConnectCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("crossConnectId", request.getCrossConnectId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("crossConnects") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCrossConnectGroupCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCrossConnectGroupCompartmentConverter.java index 8679ceff85a..7929b54e9c9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCrossConnectGroupCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeCrossConnectGroupCompartmentConverter.java @@ -37,8 +37,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeCrossConnectGroupCompartmentDetails(), "changeCrossConnectGroupCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("crossConnectGroupId", request.getCrossConnectGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("crossConnectGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeDedicatedVmHostCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeDedicatedVmHostCompartmentConverter.java index e07249b6590..83e0d85f41b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeDedicatedVmHostCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeDedicatedVmHostCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeDedicatedVmHostCompartmentDetails(), "changeDedicatedVmHostCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("dedicatedVmHostId", request.getDedicatedVmHostId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("dedicatedVmHosts") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeDhcpOptionsCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeDhcpOptionsCompartmentConverter.java index eb1563b52bd..69c3b80380d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeDhcpOptionsCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeDhcpOptionsCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeDhcpOptionsCompartmentDetails(), "changeDhcpOptionsCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("dhcpId", request.getDhcpId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("dhcps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeDrgCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeDrgCompartmentConverter.java index fc1fe4c72bb..b48c2d49552 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeDrgCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeDrgCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeDrgCompartmentDetails(), "changeDrgCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgId", request.getDrgId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgs") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeIPSecConnectionCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeIPSecConnectionCompartmentConverter.java index bf747bc4148..6f9477fba05 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeIPSecConnectionCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeIPSecConnectionCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeIPSecConnectionCompartmentDetails(), "changeIPSecConnectionCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeImageCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeImageCompartmentConverter.java index b726a865e95..e6e3874c1ed 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeImageCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeImageCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeImageCompartmentDetails(), "changeImageCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("imageId", request.getImageId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("images") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInstanceCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInstanceCompartmentConverter.java index 6e9af1c6ce8..b40c7e15158 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInstanceCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInstanceCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeInstanceCompartmentDetails(), "changeInstanceCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceId", request.getInstanceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instances") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInstanceConfigurationCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInstanceConfigurationCompartmentConverter.java index 79edab3c4ea..e6da05336c1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInstanceConfigurationCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInstanceConfigurationCompartmentConverter.java @@ -38,8 +38,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeInstanceConfigurationCompartmentDetails(), "changeInstanceConfigurationCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceConfigurationId", request.getInstanceConfigurationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instanceConfigurations") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInstancePoolCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInstancePoolCompartmentConverter.java index 9947947f727..8cf2724063e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInstancePoolCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInstancePoolCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeInstancePoolCompartmentDetails(), "changeInstancePoolCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInternetGatewayCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInternetGatewayCompartmentConverter.java index e128648e4ea..2d2bb41cd8f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInternetGatewayCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeInternetGatewayCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeInternetGatewayCompartmentDetails(), "changeInternetGatewayCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("igId", request.getIgId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("internetGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeLocalPeeringGatewayCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeLocalPeeringGatewayCompartmentConverter.java index 2541ef840f2..5366773a3b1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeLocalPeeringGatewayCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeLocalPeeringGatewayCompartmentConverter.java @@ -37,8 +37,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeLocalPeeringGatewayCompartmentDetails(), "changeLocalPeeringGatewayCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("localPeeringGatewayId", request.getLocalPeeringGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("localPeeringGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeNatGatewayCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeNatGatewayCompartmentConverter.java index 556e591175a..00818eb9033 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeNatGatewayCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeNatGatewayCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeNatGatewayCompartmentDetails(), "changeNatGatewayCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("natGatewayId", request.getNatGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("natGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeNetworkSecurityGroupCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeNetworkSecurityGroupCompartmentConverter.java index 495d559cc0d..69bdbd2621e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeNetworkSecurityGroupCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeNetworkSecurityGroupCompartmentConverter.java @@ -37,8 +37,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeNetworkSecurityGroupCompartmentDetails(), "changeNetworkSecurityGroupCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("networkSecurityGroupId", request.getNetworkSecurityGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("networkSecurityGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangePublicIpCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangePublicIpCompartmentConverter.java index 8fe3ae78198..72b56081002 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangePublicIpCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangePublicIpCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangePublicIpCompartmentDetails(), "changePublicIpCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("publicIpId", request.getPublicIpId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("publicIps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangePublicIpPoolCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangePublicIpPoolCompartmentConverter.java index 6ac0d5b1663..c5b0a832a64 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangePublicIpPoolCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangePublicIpPoolCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangePublicIpPoolCompartmentDetails(), "changePublicIpPoolCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("publicIpPoolId", request.getPublicIpPoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("publicIpPools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeRemotePeeringConnectionCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeRemotePeeringConnectionCompartmentConverter.java index 078219b4281..08bf8a1088e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeRemotePeeringConnectionCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeRemotePeeringConnectionCompartmentConverter.java @@ -39,8 +39,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeRemotePeeringConnectionCompartmentDetails(), "changeRemotePeeringConnectionCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "remotePeeringConnectionId", request.getRemotePeeringConnectionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("remotePeeringConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeRouteTableCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeRouteTableCompartmentConverter.java index 378a032946b..0cb933e13c5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeRouteTableCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeRouteTableCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeRouteTableCompartmentDetails(), "changeRouteTableCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("rtId", request.getRtId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("routeTables") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeSecurityListCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeSecurityListCompartmentConverter.java index 09677871f2e..b705806357b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeSecurityListCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeSecurityListCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeSecurityListCompartmentDetails(), "changeSecurityListCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("securityListId", request.getSecurityListId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("securityLists") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeServiceGatewayCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeServiceGatewayCompartmentConverter.java index c33e23d1cd7..d6a77a5fb52 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeServiceGatewayCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeServiceGatewayCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeServiceGatewayCompartmentDetails(), "changeServiceGatewayCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("serviceGatewayId", request.getServiceGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("serviceGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeSubnetCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeSubnetCompartmentConverter.java index de7a92c23bd..84fc453e972 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeSubnetCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeSubnetCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeSubnetCompartmentDetails(), "changeSubnetCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("subnetId", request.getSubnetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("subnets") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVcnCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVcnCompartmentConverter.java index ed11600d139..aae49fc2e01 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVcnCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVcnCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeVcnCompartmentDetails(), "changeVcnCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vcnId", request.getVcnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vcns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVirtualCircuitCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVirtualCircuitCompartmentConverter.java index f9355f82663..b5894fa35fe 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVirtualCircuitCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVirtualCircuitCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeVirtualCircuitCompartmentDetails(), "changeVirtualCircuitCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("virtualCircuitId", request.getVirtualCircuitId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("virtualCircuits") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVlanCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVlanCompartmentConverter.java index 07fa294908d..7e60096ec5b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVlanCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVlanCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeVlanCompartmentDetails(), "changeVlanCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vlanId", request.getVlanId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vlans") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeBackupCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeBackupCompartmentConverter.java index b5959092e7c..5c3a8c101cf 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeBackupCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeBackupCompartmentConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeVolumeBackupCompartmentDetails(), "changeVolumeBackupCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeBackupId", request.getVolumeBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeCompartmentConverter.java index 8a1d576714e..4429643f513 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeVolumeCompartmentDetails(), "changeVolumeCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeId", request.getVolumeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeGroupBackupCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeGroupBackupCompartmentConverter.java index fee6e5bcdeb..d253b5941bd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeGroupBackupCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeGroupBackupCompartmentConverter.java @@ -37,8 +37,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeVolumeGroupBackupCompartmentDetails(), "changeVolumeGroupBackupCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeGroupBackupId", request.getVolumeGroupBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeGroupBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeGroupCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeGroupCompartmentConverter.java index c229ce0d671..0e873e786dc 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeGroupCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVolumeGroupCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeVolumeGroupCompartmentDetails(), "changeVolumeGroupCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeGroupId", request.getVolumeGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVtapCompartmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVtapCompartmentConverter.java index 3807ea61717..7934e360f3b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVtapCompartmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ChangeVtapCompartmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChangeVtapCompartmentDetails(), "changeVtapCompartmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vtapId", request.getVtapId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vtaps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CheckHostConfigurationConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CheckHostConfigurationConverter.java index 79ce1b6348b..ae9a4cad79f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CheckHostConfigurationConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CheckHostConfigurationConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getComputeHostId(), "computeHostId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeHostId", request.getComputeHostId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeHosts") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ConnectLocalPeeringGatewaysConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ConnectLocalPeeringGatewaysConverter.java index 25cbe8702fc..1cd0be1a187 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ConnectLocalPeeringGatewaysConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ConnectLocalPeeringGatewaysConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getConnectLocalPeeringGatewaysDetails(), "connectLocalPeeringGatewaysDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("localPeeringGatewayId", request.getLocalPeeringGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("localPeeringGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ConnectRemotePeeringConnectionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ConnectRemotePeeringConnectionsConverter.java index 71868278371..ed5be43725e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ConnectRemotePeeringConnectionsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ConnectRemotePeeringConnectionsConverter.java @@ -37,8 +37,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getConnectRemotePeeringConnectionsDetails(), "connectRemotePeeringConnectionsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "remotePeeringConnectionId", request.getRemotePeeringConnectionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("remotePeeringConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CopyBootVolumeBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CopyBootVolumeBackupConverter.java index cb5c816f228..73d7d016228 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CopyBootVolumeBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CopyBootVolumeBackupConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCopyBootVolumeBackupDetails(), "copyBootVolumeBackupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeBackupId", request.getBootVolumeBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumeBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CopyVolumeBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CopyVolumeBackupConverter.java index a3b727ee969..77cdc2c2b47 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CopyVolumeBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CopyVolumeBackupConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCopyVolumeBackupDetails(), "copyVolumeBackupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeBackupId", request.getVolumeBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CopyVolumeGroupBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CopyVolumeGroupBackupConverter.java index 692427f146f..ce1cf3cf0e0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CopyVolumeGroupBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CopyVolumeGroupBackupConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCopyVolumeGroupBackupDetails(), "copyVolumeGroupBackupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeGroupBackupId", request.getVolumeGroupBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeGroupBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateAppCatalogSubscriptionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateAppCatalogSubscriptionConverter.java index 90af2c0d2fa..11b1215aaa6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateAppCatalogSubscriptionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateAppCatalogSubscriptionConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateAppCatalogSubscriptionDetails(), "createAppCatalogSubscriptionDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("appCatalogSubscriptions"); + newBaseTarget.path("/20160918").path("appCatalogSubscriptions"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateBootVolumeBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateBootVolumeBackupConverter.java index 8f76fecd897..6d578353b2c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateBootVolumeBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateBootVolumeBackupConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateBootVolumeBackupDetails(), "createBootVolumeBackupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("bootVolumeBackups"); + newBaseTarget.path("/20160918").path("bootVolumeBackups"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateBootVolumeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateBootVolumeConverter.java index 917ab892552..20960d9b8cc 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateBootVolumeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateBootVolumeConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateBootVolumeDetails(), "createBootVolumeDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("bootVolumes"); + newBaseTarget.path("/20160918").path("bootVolumes"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateByoasnConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateByoasnConverter.java index ad5fcea14ac..242c1e207fa 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateByoasnConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateByoasnConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateByoasnDetails(), "createByoasnDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("byoasns"); + newBaseTarget.path("/20160918").path("byoasns"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateByoipRangeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateByoipRangeConverter.java index d7ee25514a5..696378a0c2a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateByoipRangeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateByoipRangeConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateByoipRangeDetails(), "createByoipRangeDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("byoipRanges"); + newBaseTarget.path("/20160918").path("byoipRanges"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCaptureFilterConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCaptureFilterConverter.java index b4dd1638d34..33a6593b1e8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCaptureFilterConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCaptureFilterConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateCaptureFilterDetails(), "createCaptureFilterDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("captureFilters"); + newBaseTarget.path("/20160918").path("captureFilters"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateClusterNetworkConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateClusterNetworkConverter.java index de7cc934ac3..9bc57815d17 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateClusterNetworkConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateClusterNetworkConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateClusterNetworkDetails(), "createClusterNetworkDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("clusterNetworks"); + newBaseTarget.path("/20160918").path("clusterNetworks"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeCapacityReportConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeCapacityReportConverter.java index c2e13070992..4cfa13e4516 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeCapacityReportConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeCapacityReportConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateComputeCapacityReportDetails(), "createComputeCapacityReportDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeCapacityReports"); + newBaseTarget.path("/20160918").path("computeCapacityReports"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeCapacityReservationConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeCapacityReservationConverter.java index 8db6823f1ad..a58385922b8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeCapacityReservationConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeCapacityReservationConverter.java @@ -34,8 +34,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateComputeCapacityReservationDetails(), "createComputeCapacityReservationDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeCapacityReservations"); + newBaseTarget.path("/20160918").path("computeCapacityReservations"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeCapacityTopologyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeCapacityTopologyConverter.java index 25e2b75f54f..e11c187d72d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeCapacityTopologyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeCapacityTopologyConverter.java @@ -34,8 +34,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateComputeCapacityTopologyDetails(), "createComputeCapacityTopologyDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeCapacityTopologies"); + newBaseTarget.path("/20160918").path("computeCapacityTopologies"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeClusterConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeClusterConverter.java index 31920dcf427..2dbb0af9866 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeClusterConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeClusterConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateComputeClusterDetails(), "createComputeClusterDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeClusters"); + newBaseTarget.path("/20160918").path("computeClusters"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeGpuMemoryClusterConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeGpuMemoryClusterConverter.java index f59be405cf7..f1fcd004d3c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeGpuMemoryClusterConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeGpuMemoryClusterConverter.java @@ -34,8 +34,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateComputeGpuMemoryClusterDetails(), "createComputeGpuMemoryClusterDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeGpuMemoryClusters"); + newBaseTarget.path("/20160918").path("computeGpuMemoryClusters"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeHostGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeHostGroupConverter.java index d2665963c82..8d6ae9b2ff5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeHostGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeHostGroupConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateComputeHostGroupDetails(), "createComputeHostGroupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeHostGroups"); + newBaseTarget.path("/20160918").path("computeHostGroups"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeImageCapabilitySchemaConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeImageCapabilitySchemaConverter.java index 168cf4d037e..485e4d36529 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeImageCapabilitySchemaConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateComputeImageCapabilitySchemaConverter.java @@ -35,8 +35,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateComputeImageCapabilitySchemaDetails(), "createComputeImageCapabilitySchemaDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeImageCapabilitySchemas"); + newBaseTarget.path("/20160918").path("computeImageCapabilitySchemas"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCpeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCpeConverter.java index e464103c693..fd66b702b68 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCpeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCpeConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateCpeDetails(), "createCpeDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("cpes"); + newBaseTarget.path("/20160918").path("cpes"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCrossConnectConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCrossConnectConverter.java index df8ae46f0a0..6c2176dd5c7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCrossConnectConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCrossConnectConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateCrossConnectDetails(), "createCrossConnectDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("crossConnects"); + newBaseTarget.path("/20160918").path("crossConnects"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCrossConnectGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCrossConnectGroupConverter.java index 331c32c165c..44f89dcd517 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCrossConnectGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateCrossConnectGroupConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateCrossConnectGroupDetails(), "createCrossConnectGroupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("crossConnectGroups"); + newBaseTarget.path("/20160918").path("crossConnectGroups"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDedicatedVmHostConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDedicatedVmHostConverter.java index 19efe752474..383b3e05fba 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDedicatedVmHostConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDedicatedVmHostConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateDedicatedVmHostDetails(), "createDedicatedVmHostDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("dedicatedVmHosts"); + newBaseTarget.path("/20160918").path("dedicatedVmHosts"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDhcpOptionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDhcpOptionsConverter.java index c63662d24cc..3b6f331597e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDhcpOptionsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDhcpOptionsConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateDhcpDetails(), "createDhcpDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("dhcps"); + newBaseTarget.path("/20160918").path("dhcps"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgAttachmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgAttachmentConverter.java index 6a438dd6f64..b9f463d739e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgAttachmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgAttachmentConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateDrgAttachmentDetails(), "createDrgAttachmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("drgAttachments"); + newBaseTarget.path("/20160918").path("drgAttachments"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgConverter.java index 817d1ca2898..1d580e00a03 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateDrgDetails(), "createDrgDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("drgs"); + newBaseTarget.path("/20160918").path("drgs"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgRouteDistributionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgRouteDistributionConverter.java index 7e362f8f466..0d0a6f94ff7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgRouteDistributionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgRouteDistributionConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateDrgRouteDistributionDetails(), "createDrgRouteDistributionDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("drgRouteDistributions"); + newBaseTarget.path("/20160918").path("drgRouteDistributions"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgRouteTableConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgRouteTableConverter.java index fe2b9463718..34cdec894ca 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgRouteTableConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateDrgRouteTableConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateDrgRouteTableDetails(), "createDrgRouteTableDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("drgRouteTables"); + newBaseTarget.path("/20160918").path("drgRouteTables"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateIPSecConnectionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateIPSecConnectionConverter.java index c3eb1112c61..e14047dfd4e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateIPSecConnectionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateIPSecConnectionConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateIPSecConnectionDetails(), "createIPSecConnectionDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("ipsecConnections"); + newBaseTarget.path("/20160918").path("ipsecConnections"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateImageConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateImageConverter.java index 3a030c40866..4d675a928de 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateImageConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateImageConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateImageDetails(), "createImageDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("images"); + newBaseTarget.path("/20160918").path("images"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInstanceConfigurationConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInstanceConfigurationConverter.java index e665df23e78..7a183b7606a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInstanceConfigurationConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInstanceConfigurationConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateInstanceConfiguration(), "createInstanceConfiguration is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("instanceConfigurations"); + newBaseTarget.path("/20160918").path("instanceConfigurations"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInstanceConsoleConnectionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInstanceConsoleConnectionConverter.java index 7849545a09a..4e9d378008a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInstanceConsoleConnectionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInstanceConsoleConnectionConverter.java @@ -34,8 +34,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateInstanceConsoleConnectionDetails(), "createInstanceConsoleConnectionDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("instanceConsoleConnections"); + newBaseTarget.path("/20160918").path("instanceConsoleConnections"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInstancePoolConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInstancePoolConverter.java index 06f87b27f9a..d31438873bb 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInstancePoolConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInstancePoolConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateInstancePoolDetails(), "createInstancePoolDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("instancePools"); + newBaseTarget.path("/20160918").path("instancePools"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInternetGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInternetGatewayConverter.java index d665cf51d1a..259bd83f181 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInternetGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateInternetGatewayConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateInternetGatewayDetails(), "createInternetGatewayDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("internetGateways"); + newBaseTarget.path("/20160918").path("internetGateways"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateIpv6Converter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateIpv6Converter.java index f4dec310a1e..c5f6d21573d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateIpv6Converter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateIpv6Converter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateIpv6Details(), "createIpv6Details is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("ipv6"); + newBaseTarget.path("/20160918").path("ipv6"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateLocalPeeringGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateLocalPeeringGatewayConverter.java index b9031a840df..f2fcf863ac8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateLocalPeeringGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateLocalPeeringGatewayConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateLocalPeeringGatewayDetails(), "createLocalPeeringGatewayDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("localPeeringGateways"); + newBaseTarget.path("/20160918").path("localPeeringGateways"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateNatGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateNatGatewayConverter.java index ef4263be8b1..32e0153bb49 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateNatGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateNatGatewayConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateNatGatewayDetails(), "createNatGatewayDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("natGateways"); + newBaseTarget.path("/20160918").path("natGateways"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateNetworkSecurityGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateNetworkSecurityGroupConverter.java index 7355f071605..06e1ded66ca 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateNetworkSecurityGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateNetworkSecurityGroupConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateNetworkSecurityGroupDetails(), "createNetworkSecurityGroupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("networkSecurityGroups"); + newBaseTarget.path("/20160918").path("networkSecurityGroups"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreatePrivateIpConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreatePrivateIpConverter.java index 02582507e50..b91dd271d97 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreatePrivateIpConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreatePrivateIpConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreatePrivateIpDetails(), "createPrivateIpDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("privateIps"); + newBaseTarget.path("/20160918").path("privateIps"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreatePublicIpConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreatePublicIpConverter.java index ba552553f97..919e81921c6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreatePublicIpConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreatePublicIpConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreatePublicIpDetails(), "createPublicIpDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("publicIps"); + newBaseTarget.path("/20160918").path("publicIps"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreatePublicIpPoolConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreatePublicIpPoolConverter.java index 5b77a07f280..aab5b1951b2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreatePublicIpPoolConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreatePublicIpPoolConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreatePublicIpPoolDetails(), "createPublicIpPoolDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("publicIpPools"); + newBaseTarget.path("/20160918").path("publicIpPools"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateRemotePeeringConnectionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateRemotePeeringConnectionConverter.java index f5c45391aa9..05efeded43b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateRemotePeeringConnectionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateRemotePeeringConnectionConverter.java @@ -34,8 +34,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateRemotePeeringConnectionDetails(), "createRemotePeeringConnectionDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("remotePeeringConnections"); + newBaseTarget.path("/20160918").path("remotePeeringConnections"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateRouteTableConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateRouteTableConverter.java index d7178a9e10a..e398b6241f7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateRouteTableConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateRouteTableConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateRouteTableDetails(), "createRouteTableDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("routeTables"); + newBaseTarget.path("/20160918").path("routeTables"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateSecurityListConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateSecurityListConverter.java index ad363062021..82e1620a17b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateSecurityListConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateSecurityListConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateSecurityListDetails(), "createSecurityListDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("securityLists"); + newBaseTarget.path("/20160918").path("securityLists"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateServiceGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateServiceGatewayConverter.java index 091721f54c1..c28948f1c92 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateServiceGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateServiceGatewayConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateServiceGatewayDetails(), "createServiceGatewayDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("serviceGateways"); + newBaseTarget.path("/20160918").path("serviceGateways"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateSubnetConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateSubnetConverter.java index 45283657cf9..319d8101128 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateSubnetConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateSubnetConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateSubnetDetails(), "createSubnetDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("subnets"); + newBaseTarget.path("/20160918").path("subnets"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVcnConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVcnConverter.java index f89424136ba..638a0c1058c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVcnConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVcnConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateVcnDetails(), "createVcnDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("vcns"); + newBaseTarget.path("/20160918").path("vcns"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVirtualCircuitConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVirtualCircuitConverter.java index 6461dbe7676..7386909bf76 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVirtualCircuitConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVirtualCircuitConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateVirtualCircuitDetails(), "createVirtualCircuitDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("virtualCircuits"); + newBaseTarget.path("/20160918").path("virtualCircuits"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVlanConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVlanConverter.java index 3ca0486735f..6539224ce36 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVlanConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVlanConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateVlanDetails(), "createVlanDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("vlans"); + newBaseTarget.path("/20160918").path("vlans"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeBackupConverter.java index 36479bb1117..d96c2dd10cb 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeBackupConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateVolumeBackupDetails(), "createVolumeBackupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumeBackups"); + newBaseTarget.path("/20160918").path("volumeBackups"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeBackupPolicyAssignmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeBackupPolicyAssignmentConverter.java index 9ca3e270bc5..0a4123fd338 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeBackupPolicyAssignmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeBackupPolicyAssignmentConverter.java @@ -35,8 +35,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateVolumeBackupPolicyAssignmentDetails(), "createVolumeBackupPolicyAssignmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumeBackupPolicyAssignments"); + newBaseTarget.path("/20160918").path("volumeBackupPolicyAssignments"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeBackupPolicyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeBackupPolicyConverter.java index b0679d62a39..d439e7f742e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeBackupPolicyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeBackupPolicyConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateVolumeBackupPolicyDetails(), "createVolumeBackupPolicyDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumeBackupPolicies"); + newBaseTarget.path("/20160918").path("volumeBackupPolicies"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeConverter.java index 062b23e2be1..c108c7a4a3c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateVolumeDetails(), "createVolumeDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumes"); + newBaseTarget.path("/20160918").path("volumes"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeGroupBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeGroupBackupConverter.java index 28caad92611..fd2f215a9ca 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeGroupBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeGroupBackupConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateVolumeGroupBackupDetails(), "createVolumeGroupBackupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumeGroupBackups"); + newBaseTarget.path("/20160918").path("volumeGroupBackups"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeGroupConverter.java index a952a8587ad..970b583c008 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVolumeGroupConverter.java @@ -32,8 +32,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getCreateVolumeGroupDetails(), "createVolumeGroupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumeGroups"); + newBaseTarget.path("/20160918").path("volumeGroups"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVtapConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVtapConverter.java index 5abc56e4176..d129a1508b1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVtapConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/CreateVtapConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCreateVtapDetails(), "createVtapDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("vtaps"); + newBaseTarget.path("/20160918").path("vtaps"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteAppCatalogSubscriptionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteAppCatalogSubscriptionConverter.java index 15108cf29bd..a88b9322ede 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteAppCatalogSubscriptionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteAppCatalogSubscriptionConverter.java @@ -33,8 +33,16 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); Validate.notNull(request.getResourceVersion(), "resourceVersion is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("listingId", request.getListingId()); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + requiredParametersMap.put("resourceVersion", request.getResourceVersion()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("appCatalogSubscriptions"); + newBaseTarget.path("/20160918").path("appCatalogSubscriptions"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteBootVolumeBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteBootVolumeBackupConverter.java index 3583a87de4c..9cdf390ce7f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteBootVolumeBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteBootVolumeBackupConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getBootVolumeBackupId(), "bootVolumeBackupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeBackupId", request.getBootVolumeBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumeBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteBootVolumeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteBootVolumeConverter.java index f7823fa8bef..229776b6ae7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteBootVolumeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteBootVolumeConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getBootVolumeId(), "bootVolumeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeId", request.getBootVolumeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteBootVolumeKmsKeyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteBootVolumeKmsKeyConverter.java index b6de127587c..5f77877a764 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteBootVolumeKmsKeyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteBootVolumeKmsKeyConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getBootVolumeId(), "bootVolumeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeId", request.getBootVolumeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteByoasnConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteByoasnConverter.java index 13ec550ee49..0b998fa7c62 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteByoasnConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteByoasnConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getByoasnId(), "byoasnId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoasnId", request.getByoasnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoasns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteByoipRangeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteByoipRangeConverter.java index 8afa00715d3..04e82ecbf59 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteByoipRangeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteByoipRangeConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getByoipRangeId(), "byoipRangeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoipRangeId", request.getByoipRangeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoipRanges") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCaptureFilterConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCaptureFilterConverter.java index 5df5ce80265..ddf164b9444 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCaptureFilterConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCaptureFilterConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getCaptureFilterId(), "captureFilterId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("captureFilterId", request.getCaptureFilterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("captureFilters") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeCapacityReservationConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeCapacityReservationConverter.java index 532cfb3498b..f74e78b74b7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeCapacityReservationConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeCapacityReservationConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getCapacityReservationId(), "capacityReservationId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("capacityReservationId", request.getCapacityReservationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeCapacityReservations") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeCapacityTopologyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeCapacityTopologyConverter.java index 650f6630897..a058edc2474 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeCapacityTopologyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeCapacityTopologyConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeCapacityTopologyId(), "computeCapacityTopologyId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeCapacityTopologyId", request.getComputeCapacityTopologyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeCapacityTopologies") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeClusterConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeClusterConverter.java index 8c443a443a6..184c628382f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeClusterConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeClusterConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getComputeClusterId(), "computeClusterId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeClusterId", request.getComputeClusterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeClusters") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeGpuMemoryClusterConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeGpuMemoryClusterConverter.java index 95336d0f775..c21d4852312 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeGpuMemoryClusterConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeGpuMemoryClusterConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeGpuMemoryClusterId(), "computeGpuMemoryClusterId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeGpuMemoryClusterId", request.getComputeGpuMemoryClusterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeGpuMemoryClusters") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeHostGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeHostGroupConverter.java index c26be76ce92..903e0023289 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeHostGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeHostGroupConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getComputeHostGroupId(), "computeHostGroupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeHostGroupId", request.getComputeHostGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeHostGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeImageCapabilitySchemaConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeImageCapabilitySchemaConverter.java index e759ef581e7..317a66817fd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeImageCapabilitySchemaConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteComputeImageCapabilitySchemaConverter.java @@ -35,8 +35,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeImageCapabilitySchemaId(), "computeImageCapabilitySchemaId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeImageCapabilitySchemaId", request.getComputeImageCapabilitySchemaId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeImageCapabilitySchemas") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteConsoleHistoryConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteConsoleHistoryConverter.java index 71cdc02bf69..876ca8d9c8f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteConsoleHistoryConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteConsoleHistoryConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getInstanceConsoleHistoryId(), "instanceConsoleHistoryId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "instanceConsoleHistoryId", request.getInstanceConsoleHistoryId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instanceConsoleHistories") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCpeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCpeConverter.java index 493f7dbe116..6d0890f9bcf 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCpeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCpeConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getCpeId(), "cpeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("cpeId", request.getCpeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("cpes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCrossConnectConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCrossConnectConverter.java index a8c51159161..3616cc49344 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCrossConnectConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCrossConnectConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getCrossConnectId(), "crossConnectId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("crossConnectId", request.getCrossConnectId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("crossConnects") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCrossConnectGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCrossConnectGroupConverter.java index 37fe923285c..365e6fad8f6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCrossConnectGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteCrossConnectGroupConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getCrossConnectGroupId(), "crossConnectGroupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("crossConnectGroupId", request.getCrossConnectGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("crossConnectGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDedicatedVmHostConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDedicatedVmHostConverter.java index 24cfad20301..495f30891e0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDedicatedVmHostConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDedicatedVmHostConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDedicatedVmHostId(), "dedicatedVmHostId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("dedicatedVmHostId", request.getDedicatedVmHostId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("dedicatedVmHosts") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDhcpOptionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDhcpOptionsConverter.java index a1c94d317f7..09d05657fdd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDhcpOptionsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDhcpOptionsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDhcpId(), "dhcpId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("dhcpId", request.getDhcpId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("dhcps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgAttachmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgAttachmentConverter.java index f1dcc561fac..d34366481da 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgAttachmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgAttachmentConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDrgAttachmentId(), "drgAttachmentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgAttachmentId", request.getDrgAttachmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgAttachments") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgConverter.java index b31b8217b17..be60e8373d3 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDrgId(), "drgId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgId", request.getDrgId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgs") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgRouteDistributionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgRouteDistributionConverter.java index c89d9570b0e..ab269f8a80e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgRouteDistributionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgRouteDistributionConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getDrgRouteDistributionId(), "drgRouteDistributionId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteDistributionId", request.getDrgRouteDistributionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteDistributions") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgRouteTableConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgRouteTableConverter.java index 3f9cc78ffa4..96df1f2aee2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgRouteTableConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteDrgRouteTableConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDrgRouteTableId(), "drgRouteTableId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteTableId", request.getDrgRouteTableId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteTables") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteIPSecConnectionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteIPSecConnectionConverter.java index 612fc21af5f..bd2133be44f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteIPSecConnectionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteIPSecConnectionConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getIpscId(), "ipscId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteImageConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteImageConverter.java index 1d6776a545d..e6460c3e69a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteImageConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteImageConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getImageId(), "imageId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("imageId", request.getImageId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("images") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteInstanceConfigurationConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteInstanceConfigurationConverter.java index 80401c738b1..75d8eca9bb5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteInstanceConfigurationConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteInstanceConfigurationConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getInstanceConfigurationId(), "instanceConfigurationId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceConfigurationId", request.getInstanceConfigurationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instanceConfigurations") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteInstanceConsoleConnectionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteInstanceConsoleConnectionConverter.java index 85267b5d574..2b133ffb91c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteInstanceConsoleConnectionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteInstanceConsoleConnectionConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getInstanceConsoleConnectionId(), "instanceConsoleConnectionId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "instanceConsoleConnectionId", request.getInstanceConsoleConnectionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instanceConsoleConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteInternetGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteInternetGatewayConverter.java index 5dd4ae17b4e..77ff22f6460 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteInternetGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteInternetGatewayConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getIgId(), "igId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("igId", request.getIgId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("internetGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteIpv6Converter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteIpv6Converter.java index c3c33fad44e..16a08456823 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteIpv6Converter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteIpv6Converter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getIpv6Id(), "ipv6Id must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipv6Id", request.getIpv6Id()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipv6") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteLocalPeeringGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteLocalPeeringGatewayConverter.java index 9382b3ce45c..5674c51d4e7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteLocalPeeringGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteLocalPeeringGatewayConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getLocalPeeringGatewayId(), "localPeeringGatewayId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("localPeeringGatewayId", request.getLocalPeeringGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("localPeeringGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteNatGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteNatGatewayConverter.java index 2a225cb63a8..36a95ee6ef5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteNatGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteNatGatewayConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getNatGatewayId(), "natGatewayId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("natGatewayId", request.getNatGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("natGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteNetworkSecurityGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteNetworkSecurityGroupConverter.java index 013a846b6e9..564f3348cb9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteNetworkSecurityGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteNetworkSecurityGroupConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getNetworkSecurityGroupId(), "networkSecurityGroupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("networkSecurityGroupId", request.getNetworkSecurityGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("networkSecurityGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeletePrivateIpConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeletePrivateIpConverter.java index 9a0a23512fb..ef61a121b8b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeletePrivateIpConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeletePrivateIpConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getPrivateIpId(), "privateIpId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("privateIpId", request.getPrivateIpId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("privateIps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeletePublicIpConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeletePublicIpConverter.java index 48db6d5cc3f..84b3455e88e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeletePublicIpConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeletePublicIpConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getPublicIpId(), "publicIpId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("publicIpId", request.getPublicIpId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("publicIps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeletePublicIpPoolConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeletePublicIpPoolConverter.java index 551e4fa0529..43b301ac535 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeletePublicIpPoolConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeletePublicIpPoolConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getPublicIpPoolId(), "publicIpPoolId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("publicIpPoolId", request.getPublicIpPoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("publicIpPools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteRemotePeeringConnectionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteRemotePeeringConnectionConverter.java index e0d7f1d8159..2ecd034871e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteRemotePeeringConnectionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteRemotePeeringConnectionConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRemotePeeringConnectionId(), "remotePeeringConnectionId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "remotePeeringConnectionId", request.getRemotePeeringConnectionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("remotePeeringConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteRouteTableConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteRouteTableConverter.java index 65e267c1da6..60af3302c3d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteRouteTableConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteRouteTableConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getRtId(), "rtId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("rtId", request.getRtId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("routeTables") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteSecurityListConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteSecurityListConverter.java index 978dfd0fb9c..a4bca9a5d24 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteSecurityListConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteSecurityListConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getSecurityListId(), "securityListId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("securityListId", request.getSecurityListId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("securityLists") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteServiceGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteServiceGatewayConverter.java index 20524c16e32..177a7aa7e77 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteServiceGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteServiceGatewayConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getServiceGatewayId(), "serviceGatewayId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("serviceGatewayId", request.getServiceGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("serviceGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteSubnetConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteSubnetConverter.java index becd1bf3750..708a0bb60ea 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteSubnetConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteSubnetConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getSubnetId(), "subnetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("subnetId", request.getSubnetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("subnets") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVcnConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVcnConverter.java index f31b13eec33..25d8dd18507 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVcnConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVcnConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVcnId(), "vcnId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vcnId", request.getVcnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vcns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVirtualCircuitConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVirtualCircuitConverter.java index cd09bae24f2..1e072ac29d8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVirtualCircuitConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVirtualCircuitConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVirtualCircuitId(), "virtualCircuitId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("virtualCircuitId", request.getVirtualCircuitId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("virtualCircuits") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVlanConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVlanConverter.java index d4c7e2f4f58..197ed4997bf 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVlanConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVlanConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVlanId(), "vlanId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vlanId", request.getVlanId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vlans") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeBackupConverter.java index 54e92ed1928..c1f85b5f6af 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeBackupConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVolumeBackupId(), "volumeBackupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeBackupId", request.getVolumeBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeBackupPolicyAssignmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeBackupPolicyAssignmentConverter.java index ae817558390..78abb1038b7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeBackupPolicyAssignmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeBackupPolicyAssignmentConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getPolicyAssignmentId(), "policyAssignmentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("policyAssignmentId", request.getPolicyAssignmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeBackupPolicyAssignments") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeBackupPolicyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeBackupPolicyConverter.java index d306fe5cb72..1c7acc16d8d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeBackupPolicyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeBackupPolicyConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getPolicyId(), "policyId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("policyId", request.getPolicyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeBackupPolicies") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeConverter.java index 2736e53c142..5103fdbeb4a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVolumeId(), "volumeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeId", request.getVolumeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeGroupBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeGroupBackupConverter.java index dd5d8c62395..f01e6ed8ea7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeGroupBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeGroupBackupConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getVolumeGroupBackupId(), "volumeGroupBackupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeGroupBackupId", request.getVolumeGroupBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeGroupBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeGroupConverter.java index 213cc839db4..ef3b436f9ee 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeGroupConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVolumeGroupId(), "volumeGroupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeGroupId", request.getVolumeGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeKmsKeyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeKmsKeyConverter.java index 113f140c2ab..06eab30cd49 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeKmsKeyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVolumeKmsKeyConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVolumeId(), "volumeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeId", request.getVolumeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVtapConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVtapConverter.java index 3e7c3231b6f..2ad9d47f29a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVtapConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DeleteVtapConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVtapId(), "vtapId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vtapId", request.getVtapId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vtaps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachBootVolumeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachBootVolumeConverter.java index 6f632b469ec..5c45b98b185 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachBootVolumeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachBootVolumeConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getBootVolumeAttachmentId(), "bootVolumeAttachmentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeAttachmentId", request.getBootVolumeAttachmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumeAttachments") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachComputeHostGroupHostConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachComputeHostGroupHostConverter.java index c0e3bbdc276..3bf667250e4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachComputeHostGroupHostConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachComputeHostGroupHostConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getDetachComputeHostGroupHostDetails(), "detachComputeHostGroupHostDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeHostId", request.getComputeHostId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeHosts") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachInstancePoolInstanceConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachInstancePoolInstanceConverter.java index 4d4cbe7031a..6d04cbe3836 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachInstancePoolInstanceConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachInstancePoolInstanceConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getDetachInstancePoolInstanceDetails(), "detachInstancePoolInstanceDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachLoadBalancerConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachLoadBalancerConverter.java index 50939d291db..c1cedadefe7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachLoadBalancerConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachLoadBalancerConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getDetachLoadBalancerDetails(), "detachLoadBalancerDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachServiceIdConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachServiceIdConverter.java index 125314501b7..00324dabafd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachServiceIdConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachServiceIdConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getServiceGatewayId(), "serviceGatewayId must not be blank"); Validate.notNull(request.getDetachServiceDetails(), "detachServiceDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("serviceGatewayId", request.getServiceGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("serviceGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachVnicConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachVnicConverter.java index 50635efc422..a1469aac36a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachVnicConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachVnicConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVnicAttachmentId(), "vnicAttachmentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vnicAttachmentId", request.getVnicAttachmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vnicAttachments") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachVolumeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachVolumeConverter.java index 0bc1ae8b23d..0c72eb6011b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachVolumeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/DetachVolumeConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVolumeAttachmentId(), "volumeAttachmentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeAttachmentId", request.getVolumeAttachmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeAttachments") .path( @@ -107,6 +113,17 @@ public com.oracle.bmc.core.responses.DetachVolumeResponse apply( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.core.responses.DetachVolumeResponse responseWrapper = builder.build(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ExportImageConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ExportImageConverter.java index 9e917162663..3e179a4e734 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ExportImageConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ExportImageConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getImageId(), "imageId must not be blank"); Validate.notNull(request.getExportImageDetails(), "exportImageDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("imageId", request.getImageId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("images") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAllDrgAttachmentsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAllDrgAttachmentsConverter.java index 4053fa52257..51a542e04b0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAllDrgAttachmentsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAllDrgAttachmentsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDrgId(), "drgId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgId", request.getDrgId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgs") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAllowedIkeIPSecParametersConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAllowedIkeIPSecParametersConverter.java index 1885a2440d6..e2cc7e2e837 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAllowedIkeIPSecParametersConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAllowedIkeIPSecParametersConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.GetAllowedIkeIPSecParametersRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("ipsecAlgorithms"); + newBaseTarget.path("/20160918").path("ipsecAlgorithms"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAppCatalogListingAgreementsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAppCatalogListingAgreementsConverter.java index ef16db4d852..3cf12e0cd84 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAppCatalogListingAgreementsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAppCatalogListingAgreementsConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getListingId(), "listingId must not be blank"); Validate.notBlank(request.getResourceVersion(), "resourceVersion must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("listingId", request.getListingId()); + requiredParametersMap.put("resourceVersion", request.getResourceVersion()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("appCatalogListings") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAppCatalogListingConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAppCatalogListingConverter.java index c2b29b434c6..6db41d21ac4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAppCatalogListingConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAppCatalogListingConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getListingId(), "listingId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("listingId", request.getListingId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("appCatalogListings") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAppCatalogListingResourceVersionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAppCatalogListingResourceVersionConverter.java index a7f45572624..974d0066dd2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAppCatalogListingResourceVersionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetAppCatalogListingResourceVersionConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getListingId(), "listingId must not be blank"); Validate.notBlank(request.getResourceVersion(), "resourceVersion must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("listingId", request.getListingId()); + requiredParametersMap.put("resourceVersion", request.getResourceVersion()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("appCatalogListings") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBlockVolumeReplicaConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBlockVolumeReplicaConverter.java index 56cc77e4bdc..b3c870c1a19 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBlockVolumeReplicaConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBlockVolumeReplicaConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getBlockVolumeReplicaId(), "blockVolumeReplicaId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("blockVolumeReplicaId", request.getBlockVolumeReplicaId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("blockVolumeReplicas") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeAttachmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeAttachmentConverter.java index 1431e846ed9..75c98dad1ee 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeAttachmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeAttachmentConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getBootVolumeAttachmentId(), "bootVolumeAttachmentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeAttachmentId", request.getBootVolumeAttachmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumeAttachments") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeBackupConverter.java index 60c07f8cfe2..b598c3d09b5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeBackupConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getBootVolumeBackupId(), "bootVolumeBackupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeBackupId", request.getBootVolumeBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumeBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeConverter.java index a6fb34c2837..ca19e238cec 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getBootVolumeId(), "bootVolumeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeId", request.getBootVolumeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeKmsKeyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeKmsKeyConverter.java index 68d149802e5..dbbb9849535 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeKmsKeyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeKmsKeyConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getBootVolumeId(), "bootVolumeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeId", request.getBootVolumeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeReplicaConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeReplicaConverter.java index a842b8544d4..06129efdcda 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeReplicaConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetBootVolumeReplicaConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getBootVolumeReplicaId(), "bootVolumeReplicaId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeReplicaId", request.getBootVolumeReplicaId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumeReplicas") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetByoasnConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetByoasnConverter.java index 6d5c5cce7d4..4335681a742 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetByoasnConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetByoasnConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getByoasnId(), "byoasnId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoasnId", request.getByoasnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoasns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetByoipRangeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetByoipRangeConverter.java index 63d40b6ecc2..da1e72b43a2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetByoipRangeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetByoipRangeConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getByoipRangeId(), "byoipRangeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoipRangeId", request.getByoipRangeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoipRanges") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCaptureFilterConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCaptureFilterConverter.java index 4d3f8ea08d2..eb6d18fb1d4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCaptureFilterConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCaptureFilterConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getCaptureFilterId(), "captureFilterId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("captureFilterId", request.getCaptureFilterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("captureFilters") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetClusterNetworkConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetClusterNetworkConverter.java index ba082ef9d7f..47e05d1b946 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetClusterNetworkConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetClusterNetworkConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getClusterNetworkId(), "clusterNetworkId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("clusterNetworkId", request.getClusterNetworkId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("clusterNetworks") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeCapacityReservationConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeCapacityReservationConverter.java index faea3e068e4..1d0f58cb902 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeCapacityReservationConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeCapacityReservationConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getCapacityReservationId(), "capacityReservationId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("capacityReservationId", request.getCapacityReservationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeCapacityReservations") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeCapacityTopologyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeCapacityTopologyConverter.java index 391a124749f..b8f10901a53 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeCapacityTopologyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeCapacityTopologyConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeCapacityTopologyId(), "computeCapacityTopologyId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeCapacityTopologyId", request.getComputeCapacityTopologyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeCapacityTopologies") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeClusterConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeClusterConverter.java index 8eda4038c21..7045a2f9d7a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeClusterConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeClusterConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getComputeClusterId(), "computeClusterId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeClusterId", request.getComputeClusterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeClusters") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGlobalImageCapabilitySchemaConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGlobalImageCapabilitySchemaConverter.java index 27ee2871535..eeb0f78db3e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGlobalImageCapabilitySchemaConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGlobalImageCapabilitySchemaConverter.java @@ -35,8 +35,16 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeGlobalImageCapabilitySchemaId(), "computeGlobalImageCapabilitySchemaId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeGlobalImageCapabilitySchemaId", + request.getComputeGlobalImageCapabilitySchemaId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeGlobalImageCapabilitySchemas") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGlobalImageCapabilitySchemaVersionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGlobalImageCapabilitySchemaVersionConverter.java index 02dac405568..c08c252f50d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGlobalImageCapabilitySchemaVersionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGlobalImageCapabilitySchemaVersionConverter.java @@ -40,8 +40,19 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeGlobalImageCapabilitySchemaVersionName(), "computeGlobalImageCapabilitySchemaVersionName must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeGlobalImageCapabilitySchemaId", + request.getComputeGlobalImageCapabilitySchemaId()); + requiredParametersMap.put( + "computeGlobalImageCapabilitySchemaVersionName", + request.getComputeGlobalImageCapabilitySchemaVersionName()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeGlobalImageCapabilitySchemas") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGpuMemoryClusterConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGpuMemoryClusterConverter.java index dee94f8b46f..f3c7279536e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGpuMemoryClusterConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGpuMemoryClusterConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeGpuMemoryClusterId(), "computeGpuMemoryClusterId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeGpuMemoryClusterId", request.getComputeGpuMemoryClusterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeGpuMemoryClusters") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGpuMemoryFabricConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGpuMemoryFabricConverter.java index 28755661c17..0b013d02cbd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGpuMemoryFabricConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeGpuMemoryFabricConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeGpuMemoryFabricId(), "computeGpuMemoryFabricId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeGpuMemoryFabricId", request.getComputeGpuMemoryFabricId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeGpuMemoryFabrics") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeHostConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeHostConverter.java index b906d083ffe..bacb97e40fe 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeHostConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeHostConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getComputeHostId(), "computeHostId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeHostId", request.getComputeHostId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeHosts") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeHostGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeHostGroupConverter.java index 82eae475753..0ad77e9430c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeHostGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeHostGroupConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getComputeHostGroupId(), "computeHostGroupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeHostGroupId", request.getComputeHostGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeHostGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeImageCapabilitySchemaConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeImageCapabilitySchemaConverter.java index 8076541171d..fdc84b46284 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeImageCapabilitySchemaConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetComputeImageCapabilitySchemaConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeImageCapabilitySchemaId(), "computeImageCapabilitySchemaId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeImageCapabilitySchemaId", request.getComputeImageCapabilitySchemaId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeImageCapabilitySchemas") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetConsoleHistoryContentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetConsoleHistoryContentConverter.java index 7c29b5a0b7b..c0499953379 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetConsoleHistoryContentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetConsoleHistoryContentConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getInstanceConsoleHistoryId(), "instanceConsoleHistoryId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "instanceConsoleHistoryId", request.getInstanceConsoleHistoryId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instanceConsoleHistories") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetConsoleHistoryConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetConsoleHistoryConverter.java index ebe2b44a841..28dc9b40b73 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetConsoleHistoryConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetConsoleHistoryConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getInstanceConsoleHistoryId(), "instanceConsoleHistoryId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "instanceConsoleHistoryId", request.getInstanceConsoleHistoryId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instanceConsoleHistories") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCpeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCpeConverter.java index d518a3ca0c4..a839f9c0fd6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCpeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCpeConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getCpeId(), "cpeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("cpeId", request.getCpeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("cpes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCpeDeviceConfigContentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCpeDeviceConfigContentConverter.java index fe8098aaed9..f8d899e198b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCpeDeviceConfigContentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCpeDeviceConfigContentConverter.java @@ -30,8 +30,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getCpeId(), "cpeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("cpeId", request.getCpeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("cpes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCpeDeviceShapeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCpeDeviceShapeConverter.java index 512c4f92629..34af1011c52 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCpeDeviceShapeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCpeDeviceShapeConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getCpeDeviceShapeId(), "cpeDeviceShapeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("cpeDeviceShapeId", request.getCpeDeviceShapeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("cpeDeviceShapes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectConverter.java index 7a65e6cd637..739b9bd0fc1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getCrossConnectId(), "crossConnectId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("crossConnectId", request.getCrossConnectId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("crossConnects") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectGroupConverter.java index 524f5612db0..ac9cacb168b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectGroupConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getCrossConnectGroupId(), "crossConnectGroupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("crossConnectGroupId", request.getCrossConnectGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("crossConnectGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectLetterOfAuthorityConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectLetterOfAuthorityConverter.java index 60a605ac0ae..c96f361f5d2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectLetterOfAuthorityConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectLetterOfAuthorityConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getCrossConnectId(), "crossConnectId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("crossConnectId", request.getCrossConnectId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("crossConnects") .path( @@ -45,6 +51,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + if (client.getClientConfigurator() != null) { client.getClientConfigurator().customizeRequest(request, ib); } @@ -112,6 +122,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( builder.letterOfAuthority(response.getItem()); + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "opc-request-id"); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectStatusConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectStatusConverter.java index 72b25e8809a..d6d9d8d0421 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectStatusConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetCrossConnectStatusConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getCrossConnectId(), "crossConnectId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("crossConnectId", request.getCrossConnectId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("crossConnects") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDedicatedVmHostConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDedicatedVmHostConverter.java index df80ed47a1b..e71d43b88dd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDedicatedVmHostConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDedicatedVmHostConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDedicatedVmHostId(), "dedicatedVmHostId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("dedicatedVmHostId", request.getDedicatedVmHostId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("dedicatedVmHosts") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDhcpOptionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDhcpOptionsConverter.java index 4d7ac51dceb..2935ae935d0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDhcpOptionsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDhcpOptionsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDhcpId(), "dhcpId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("dhcpId", request.getDhcpId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("dhcps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgAttachmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgAttachmentConverter.java index 1f5871e5b5c..abae97861de 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgAttachmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgAttachmentConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDrgAttachmentId(), "drgAttachmentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgAttachmentId", request.getDrgAttachmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgAttachments") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgConverter.java index f89f4626643..d4bbf1537d4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDrgId(), "drgId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgId", request.getDrgId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgs") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgRedundancyStatusConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgRedundancyStatusConverter.java index f832d6b495d..0638333c860 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgRedundancyStatusConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgRedundancyStatusConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDrgId(), "drgId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgId", request.getDrgId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgs") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgRouteDistributionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgRouteDistributionConverter.java index ed9b2241a91..9face5e3230 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgRouteDistributionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgRouteDistributionConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getDrgRouteDistributionId(), "drgRouteDistributionId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteDistributionId", request.getDrgRouteDistributionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteDistributions") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgRouteTableConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgRouteTableConverter.java index 50782848207..e027d299bc7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgRouteTableConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetDrgRouteTableConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDrgRouteTableId(), "drgRouteTableId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteTableId", request.getDrgRouteTableId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteTables") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetFastConnectProviderServiceConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetFastConnectProviderServiceConverter.java index d57224368e0..57db52db5eb 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetFastConnectProviderServiceConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetFastConnectProviderServiceConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getProviderServiceId(), "providerServiceId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("providerServiceId", request.getProviderServiceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("fastConnectProviderServices") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetFastConnectProviderServiceKeyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetFastConnectProviderServiceKeyConverter.java index cba6d74ce7c..31462356237 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetFastConnectProviderServiceKeyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetFastConnectProviderServiceKeyConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getProviderServiceKeyName(), "providerServiceKeyName must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("providerServiceId", request.getProviderServiceId()); + requiredParametersMap.put("providerServiceKeyName", request.getProviderServiceKeyName()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("fastConnectProviderServices") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetFirmwareBundleConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetFirmwareBundleConverter.java index 7e0e21e3f42..6f9a8990478 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetFirmwareBundleConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetFirmwareBundleConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getFirmwareBundleId(), "firmwareBundleId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("firmwareBundleId", request.getFirmwareBundleId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("firmwareBundles") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionConverter.java index 16873adb64f..61c6f5e012e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getIpscId(), "ipscId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionDeviceConfigConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionDeviceConfigConverter.java index 5ded1fbca43..65abf61633e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionDeviceConfigConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionDeviceConfigConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getIpscId(), "ipscId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionDeviceStatusConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionDeviceStatusConverter.java index db9885148b4..bb20b65a000 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionDeviceStatusConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionDeviceStatusConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getIpscId(), "ipscId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionTunnelConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionTunnelConverter.java index 345e64af90c..e61271a1c5a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionTunnelConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionTunnelConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getIpscId(), "ipscId must not be blank"); Validate.notBlank(request.getTunnelId(), "tunnelId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + requiredParametersMap.put("tunnelId", request.getTunnelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionTunnelErrorConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionTunnelErrorConverter.java index 2aea249816a..a9d7a849d82 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionTunnelErrorConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionTunnelErrorConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getIpscId(), "ipscId must not be blank"); Validate.notBlank(request.getTunnelId(), "tunnelId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + requiredParametersMap.put("tunnelId", request.getTunnelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionTunnelSharedSecretConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionTunnelSharedSecretConverter.java index 16f018af8be..0162227fa8d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionTunnelSharedSecretConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIPSecConnectionTunnelSharedSecretConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getIpscId(), "ipscId must not be blank"); Validate.notBlank(request.getTunnelId(), "tunnelId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + requiredParametersMap.put("tunnelId", request.getTunnelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetImageConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetImageConverter.java index 354003556eb..b74ee2af962 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetImageConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetImageConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getImageId(), "imageId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("imageId", request.getImageId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("images") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetImageShapeCompatibilityEntryConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetImageShapeCompatibilityEntryConverter.java index 83a492724ee..92545f2008e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetImageShapeCompatibilityEntryConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetImageShapeCompatibilityEntryConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getImageId(), "imageId must not be blank"); Validate.notBlank(request.getShapeName(), "shapeName must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("imageId", request.getImageId()); + requiredParametersMap.put("shapeName", request.getShapeName()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("images") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceConfigurationConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceConfigurationConverter.java index 0bc36c9e399..f1912214b35 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceConfigurationConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceConfigurationConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getInstanceConfigurationId(), "instanceConfigurationId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceConfigurationId", request.getInstanceConfigurationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instanceConfigurations") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceConsoleConnectionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceConsoleConnectionConverter.java index 670ff86dbce..071eb29d303 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceConsoleConnectionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceConsoleConnectionConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getInstanceConsoleConnectionId(), "instanceConsoleConnectionId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "instanceConsoleConnectionId", request.getInstanceConsoleConnectionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instanceConsoleConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceConverter.java index d04ac92acaf..92bea86fb13 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceId", request.getInstanceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instances") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceMaintenanceEventConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceMaintenanceEventConverter.java index 26f193beb43..30485086abd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceMaintenanceEventConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceMaintenanceEventConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getInstanceMaintenanceEventId(), "instanceMaintenanceEventId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "instanceMaintenanceEventId", request.getInstanceMaintenanceEventId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instanceMaintenanceEvents") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceMaintenanceRebootConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceMaintenanceRebootConverter.java index c3fab72d0a5..02b585e0107 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceMaintenanceRebootConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstanceMaintenanceRebootConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceId", request.getInstanceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instances") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstancePoolConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstancePoolConverter.java index bcef5fc59fe..d9e97303e0c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstancePoolConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstancePoolConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getInstancePoolId(), "instancePoolId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstancePoolInstanceConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstancePoolInstanceConverter.java index 3a4dac7c3f8..93d74cb6bb1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstancePoolInstanceConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstancePoolInstanceConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getInstancePoolId(), "instancePoolId must not be blank"); Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + requiredParametersMap.put("instanceId", request.getInstanceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstancePoolLoadBalancerAttachmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstancePoolLoadBalancerAttachmentConverter.java index 7e2013db1a6..50bb07bc872 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstancePoolLoadBalancerAttachmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInstancePoolLoadBalancerAttachmentConverter.java @@ -36,8 +36,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getInstancePoolLoadBalancerAttachmentId(), "instancePoolLoadBalancerAttachmentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + requiredParametersMap.put( + "instancePoolLoadBalancerAttachmentId", + request.getInstancePoolLoadBalancerAttachmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInternetGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInternetGatewayConverter.java index e8062a40a33..e774224871e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInternetGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetInternetGatewayConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getIgId(), "igId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("igId", request.getIgId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("internetGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIpsecCpeDeviceConfigContentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIpsecCpeDeviceConfigContentConverter.java index efa39081269..eaec6e4202a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIpsecCpeDeviceConfigContentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIpsecCpeDeviceConfigContentConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getIpscId(), "ipscId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIpv6Converter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIpv6Converter.java index a5ebf304c4b..5c1bc60c3d1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIpv6Converter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetIpv6Converter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getIpv6Id(), "ipv6Id must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipv6Id", request.getIpv6Id()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipv6") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetLocalPeeringGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetLocalPeeringGatewayConverter.java index 763761240d8..8e31648ff80 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetLocalPeeringGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetLocalPeeringGatewayConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getLocalPeeringGatewayId(), "localPeeringGatewayId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("localPeeringGatewayId", request.getLocalPeeringGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("localPeeringGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetMeasuredBootReportConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetMeasuredBootReportConverter.java index 7f911d3f04b..2b7730db51d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetMeasuredBootReportConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetMeasuredBootReportConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceId", request.getInstanceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instances") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetNatGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetNatGatewayConverter.java index 1b8842e9a90..e35dfa397d1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetNatGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetNatGatewayConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getNatGatewayId(), "natGatewayId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("natGatewayId", request.getNatGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("natGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetNetworkSecurityGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetNetworkSecurityGroupConverter.java index 98d29ef6a30..914574b3bb6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetNetworkSecurityGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetNetworkSecurityGroupConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getNetworkSecurityGroupId(), "networkSecurityGroupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("networkSecurityGroupId", request.getNetworkSecurityGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("networkSecurityGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetNetworkingTopologyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetNetworkingTopologyConverter.java index 1f13eb08e11..36e0a443594 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetNetworkingTopologyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetNetworkingTopologyConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("networkingTopology"); + newBaseTarget.path("/20160918").path("networkingTopology"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPrivateIpConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPrivateIpConverter.java index 9a0342153a5..d8bbc12af34 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPrivateIpConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPrivateIpConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getPrivateIpId(), "privateIpId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("privateIpId", request.getPrivateIpId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("privateIps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpByIpAddressConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpByIpAddressConverter.java index 38f976fe6bf..1c4aed3e68a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpByIpAddressConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpByIpAddressConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getGetPublicIpByIpAddressDetails(), "getPublicIpByIpAddressDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("publicIps") .path("actions") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpByPrivateIpIdConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpByPrivateIpIdConverter.java index e559241577f..ff65c73f845 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpByPrivateIpIdConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpByPrivateIpIdConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getGetPublicIpByPrivateIpIdDetails(), "getPublicIpByPrivateIpIdDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("publicIps") .path("actions") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpConverter.java index 3c94565bca0..ceeac739201 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getPublicIpId(), "publicIpId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("publicIpId", request.getPublicIpId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("publicIps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpPoolConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpPoolConverter.java index 60bbdaf8f92..b5d0b42dcfd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpPoolConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetPublicIpPoolConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getPublicIpPoolId(), "publicIpPoolId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("publicIpPoolId", request.getPublicIpPoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("publicIpPools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetRemotePeeringConnectionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetRemotePeeringConnectionConverter.java index 83486ffa9fb..3e60585d0ef 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetRemotePeeringConnectionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetRemotePeeringConnectionConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRemotePeeringConnectionId(), "remotePeeringConnectionId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "remotePeeringConnectionId", request.getRemotePeeringConnectionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("remotePeeringConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetResourceIpInventoryConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetResourceIpInventoryConverter.java index 6c1e4b96e54..570be55db1f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetResourceIpInventoryConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetResourceIpInventoryConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDataRequestId(), "dataRequestId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("dataRequestId", request.getDataRequestId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipinventory") .path("DataRequestId") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetRouteTableConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetRouteTableConverter.java index 6c66a1cf883..ff495a4a929 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetRouteTableConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetRouteTableConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getRtId(), "rtId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("rtId", request.getRtId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("routeTables") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSecurityListConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSecurityListConverter.java index 916260fb0f3..84419a8a647 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSecurityListConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSecurityListConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getSecurityListId(), "securityListId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("securityListId", request.getSecurityListId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("securityLists") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetServiceConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetServiceConverter.java index 2e66647d683..0a31495cd5e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetServiceConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetServiceConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getServiceId(), "serviceId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("serviceId", request.getServiceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("services") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetServiceGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetServiceGatewayConverter.java index 79e9c37504c..b0262762559 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetServiceGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetServiceGatewayConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getServiceGatewayId(), "serviceGatewayId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("serviceGatewayId", request.getServiceGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("serviceGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetCidrUtilizationConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetCidrUtilizationConverter.java index 50ba66be9bc..9561816ec9e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetCidrUtilizationConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetCidrUtilizationConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getSubnetId(), "subnetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("subnetId", request.getSubnetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipInventory") .path("subnets") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetConverter.java index f02fb9177f1..3098473ed0b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getSubnetId(), "subnetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("subnetId", request.getSubnetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("subnets") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetIpInventoryConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetIpInventoryConverter.java index b016d72a9ec..ba605ff178d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetIpInventoryConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetIpInventoryConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getSubnetId(), "subnetId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("subnetId", request.getSubnetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipInventory") .path("subnets") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetTopologyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetTopologyConverter.java index 132bdeef334..70e4025e10b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetTopologyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetSubnetTopologyConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); Validate.notNull(request.getSubnetId(), "subnetId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + requiredParametersMap.put("subnetId", request.getSubnetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("subnetTopology"); + newBaseTarget.path("/20160918").path("subnetTopology"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetTunnelCpeDeviceConfigContentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetTunnelCpeDeviceConfigContentConverter.java index 239063fa31b..06a3c2990de 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetTunnelCpeDeviceConfigContentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetTunnelCpeDeviceConfigContentConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getIpscId(), "ipscId must not be blank"); Validate.notBlank(request.getTunnelId(), "tunnelId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + requiredParametersMap.put("tunnelId", request.getTunnelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetTunnelCpeDeviceConfigConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetTunnelCpeDeviceConfigConverter.java index ca81fa139c7..98afbe812d0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetTunnelCpeDeviceConfigConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetTunnelCpeDeviceConfigConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getIpscId(), "ipscId must not be blank"); Validate.notBlank(request.getTunnelId(), "tunnelId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + requiredParametersMap.put("tunnelId", request.getTunnelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetUpgradeStatusConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetUpgradeStatusConverter.java index 2a05350908d..3029ffea87d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetUpgradeStatusConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetUpgradeStatusConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDrgId(), "drgId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgId", request.getDrgId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgs") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnConverter.java index a7771641987..366d71388a2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVcnId(), "vcnId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vcnId", request.getVcnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vcns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnDnsResolverAssociationConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnDnsResolverAssociationConverter.java index ce14e6a1704..3cd6717f55d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnDnsResolverAssociationConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnDnsResolverAssociationConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVcnId(), "vcnId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vcnId", request.getVcnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vcns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnOverlapConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnOverlapConverter.java index 7eef45f8e4c..670660b4c9e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnOverlapConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnOverlapConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getVcnId(), "vcnId must not be blank"); Validate.notNull(request.getGetVcnOverlapDetails(), "getVcnOverlapDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vcnId", request.getVcnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipInventory") .path("vcns") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnTopologyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnTopologyConverter.java index 73cbacfaf7d..0bef9c5c0be 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnTopologyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVcnTopologyConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); Validate.notNull(request.getVcnId(), "vcnId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + requiredParametersMap.put("vcnId", request.getVcnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("vcnTopology"); + newBaseTarget.path("/20160918").path("vcnTopology"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVirtualCircuitConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVirtualCircuitConverter.java index e9fff561137..eb111d44805 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVirtualCircuitConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVirtualCircuitConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVirtualCircuitId(), "virtualCircuitId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("virtualCircuitId", request.getVirtualCircuitId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("virtualCircuits") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVlanConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVlanConverter.java index fff0f8c8fa1..c85ae48655b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVlanConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVlanConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVlanId(), "vlanId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vlanId", request.getVlanId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vlans") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVnicAttachmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVnicAttachmentConverter.java index 415a3d9f5fc..14c06e384e8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVnicAttachmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVnicAttachmentConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVnicAttachmentId(), "vnicAttachmentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vnicAttachmentId", request.getVnicAttachmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vnicAttachments") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVnicConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVnicConverter.java index 55d67289eba..d6a3e47fd30 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVnicConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVnicConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVnicId(), "vnicId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vnicId", request.getVnicId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vnics") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeAttachmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeAttachmentConverter.java index 82283c4475c..49b8e720f8f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeAttachmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeAttachmentConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVolumeAttachmentId(), "volumeAttachmentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeAttachmentId", request.getVolumeAttachmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeAttachments") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupConverter.java index 5024471733f..8c92cf3e87d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVolumeBackupId(), "volumeBackupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeBackupId", request.getVolumeBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupPolicyAssetAssignmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupPolicyAssetAssignmentConverter.java index 053c6ca0ea8..2f0b4014ee4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupPolicyAssetAssignmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupPolicyAssetAssignmentConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getAssetId(), "assetId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("assetId", request.getAssetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumeBackupPolicyAssignments"); + newBaseTarget.path("/20160918").path("volumeBackupPolicyAssignments"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupPolicyAssignmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupPolicyAssignmentConverter.java index 0330b891605..5886c3daec3 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupPolicyAssignmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupPolicyAssignmentConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getPolicyAssignmentId(), "policyAssignmentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("policyAssignmentId", request.getPolicyAssignmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeBackupPolicyAssignments") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupPolicyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupPolicyConverter.java index c2c7c1c5379..2534adab3c6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupPolicyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeBackupPolicyConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getPolicyId(), "policyId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("policyId", request.getPolicyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeBackupPolicies") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeConverter.java index ead8a281e2a..f4c44974217 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVolumeId(), "volumeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeId", request.getVolumeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeGroupBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeGroupBackupConverter.java index cc612e50948..9c8b253e52e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeGroupBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeGroupBackupConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getVolumeGroupBackupId(), "volumeGroupBackupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeGroupBackupId", request.getVolumeGroupBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeGroupBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeGroupConverter.java index 328427b0cb6..4b49e6908a3 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeGroupConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVolumeGroupId(), "volumeGroupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeGroupId", request.getVolumeGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeGroupReplicaConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeGroupReplicaConverter.java index 99688abc58b..297e912f82e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeGroupReplicaConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeGroupReplicaConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getVolumeGroupReplicaId(), "volumeGroupReplicaId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeGroupReplicaId", request.getVolumeGroupReplicaId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeGroupReplicas") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeKmsKeyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeKmsKeyConverter.java index c22a8ce9e96..dcbf093f7eb 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeKmsKeyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVolumeKmsKeyConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVolumeId(), "volumeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeId", request.getVolumeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVtapConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVtapConverter.java index af56405e2fe..a796df5abcf 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVtapConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetVtapConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVtapId(), "vtapId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vtapId", request.getVtapId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vtaps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetWindowsInstanceInitialCredentialsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetWindowsInstanceInitialCredentialsConverter.java index e38ab26f473..8530d134f79 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetWindowsInstanceInitialCredentialsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/GetWindowsInstanceInitialCredentialsConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceId", request.getInstanceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instances") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/InstanceActionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/InstanceActionConverter.java index 64fb6db3fac..db9d86ff753 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/InstanceActionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/InstanceActionConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); Validate.notNull(request.getAction(), "action is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceId", request.getInstanceId()); + requiredParametersMap.put("action", request.getAction()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instances") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/Ipv6VnicDetachConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/Ipv6VnicDetachConverter.java index 0055b0f7477..923f33b579c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/Ipv6VnicDetachConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/Ipv6VnicDetachConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getIpv6Id(), "ipv6Id must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipv6Id", request.getIpv6Id()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipv6") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/LaunchInstanceConfigurationConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/LaunchInstanceConfigurationConverter.java index 3d4b2310c08..2706e1b9877 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/LaunchInstanceConfigurationConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/LaunchInstanceConfigurationConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getInstanceConfigurationId(), "instanceConfigurationId must not be blank"); Validate.notNull(request.getInstanceConfiguration(), "instanceConfiguration is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceConfigurationId", request.getInstanceConfigurationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instanceConfigurations") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/LaunchInstanceConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/LaunchInstanceConverter.java index 149d5e7ede5..865c275d0e0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/LaunchInstanceConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/LaunchInstanceConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getLaunchInstanceDetails(), "launchInstanceDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("instances"); + newBaseTarget.path("/20160918").path("instances"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAllowedPeerRegionsForRemotePeeringConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAllowedPeerRegionsForRemotePeeringConverter.java index 64adcc56527..8e17a12b218 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAllowedPeerRegionsForRemotePeeringConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAllowedPeerRegionsForRemotePeeringConverter.java @@ -33,8 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.ListAllowedPeerRegionsForRemotePeeringRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("allowedPeerRegionsForRemotePeering"); + newBaseTarget.path("/20160918").path("allowedPeerRegionsForRemotePeering"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogListingResourceVersionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogListingResourceVersionsConverter.java index 046c670c5a9..cd88f5863f1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogListingResourceVersionsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogListingResourceVersionsConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getListingId(), "listingId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("listingId", request.getListingId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("appCatalogListings") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogListingsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogListingsConverter.java index c23733d6234..10713380767 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogListingsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogListingsConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.ListAppCatalogListingsRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("appCatalogListings"); + newBaseTarget.path("/20160918").path("appCatalogListings"); if (request.getLimit() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogSubscriptionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogSubscriptionsConverter.java index 1235baf346c..e6482c501e9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogSubscriptionsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogSubscriptionsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("appCatalogSubscriptions"); + newBaseTarget.path("/20160918").path("appCatalogSubscriptions"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBlockVolumeReplicasConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBlockVolumeReplicasConverter.java index 76df6925456..a5a05d8e4fc 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBlockVolumeReplicasConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBlockVolumeReplicasConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.ListBlockVolumeReplicasRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("blockVolumeReplicas"); + newBaseTarget.path("/20160918").path("blockVolumeReplicas"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumeAttachmentsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumeAttachmentsConverter.java index b45f6b02d14..9ee10cdb768 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumeAttachmentsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumeAttachmentsConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getAvailabilityDomain(), "availabilityDomain is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("availabilityDomain", request.getAvailabilityDomain()); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("bootVolumeAttachments"); + newBaseTarget.path("/20160918").path("bootVolumeAttachments"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumeBackupsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumeBackupsConverter.java index 79adbb739db..bcb60aeab72 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumeBackupsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumeBackupsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("bootVolumeBackups"); + newBaseTarget.path("/20160918").path("bootVolumeBackups"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumeReplicasConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumeReplicasConverter.java index 8749a136f0b..2e6894df0cb 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumeReplicasConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumeReplicasConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.ListBootVolumeReplicasRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("bootVolumeReplicas"); + newBaseTarget.path("/20160918").path("bootVolumeReplicas"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumesConverter.java index e4163c0823e..79d181c95eb 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListBootVolumesConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.ListBootVolumesRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("bootVolumes"); + newBaseTarget.path("/20160918").path("bootVolumes"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListByoasnsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListByoasnsConverter.java index 04cc7298273..37ff7284ae2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListByoasnsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListByoasnsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("byoasns"); + newBaseTarget.path("/20160918").path("byoasns"); if (request.getLimit() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListByoipAllocatedRangesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListByoipAllocatedRangesConverter.java index 45805a39742..01bceacff85 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListByoipAllocatedRangesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListByoipAllocatedRangesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getByoipRangeId(), "byoipRangeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoipRangeId", request.getByoipRangeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoipRanges") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListByoipRangesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListByoipRangesConverter.java index 401daa8ab51..0dfb529b7b6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListByoipRangesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListByoipRangesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("byoipRanges"); + newBaseTarget.path("/20160918").path("byoipRanges"); if (request.getLimit() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCaptureFiltersConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCaptureFiltersConverter.java index 867528c346a..e6a1c86053c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCaptureFiltersConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCaptureFiltersConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("captureFilters"); + newBaseTarget.path("/20160918").path("captureFilters"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListClusterNetworkInstancesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListClusterNetworkInstancesConverter.java index 524d167e3af..66264c3e99e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListClusterNetworkInstancesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListClusterNetworkInstancesConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); Validate.notBlank(request.getClusterNetworkId(), "clusterNetworkId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + requiredParametersMap.put("clusterNetworkId", request.getClusterNetworkId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("clusterNetworks") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListClusterNetworksConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListClusterNetworksConverter.java index 3f34a247914..90bf624779b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListClusterNetworksConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListClusterNetworksConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("clusterNetworks"); + newBaseTarget.path("/20160918").path("clusterNetworks"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityReservationInstanceShapesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityReservationInstanceShapesConverter.java index d9a5e5c452b..4ab29bf3176 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityReservationInstanceShapesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityReservationInstanceShapesConverter.java @@ -35,10 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20160918") - .path("computeCapacityReservationInstanceShapes"); + newBaseTarget.path("/20160918").path("computeCapacityReservationInstanceShapes"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityReservationInstancesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityReservationInstancesConverter.java index 91cc0f09fad..a2b07aa3aae 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityReservationInstancesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityReservationInstancesConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getCapacityReservationId(), "capacityReservationId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("capacityReservationId", request.getCapacityReservationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeCapacityReservations") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityReservationsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityReservationsConverter.java index 3f6461c53d7..5c2e73171ce 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityReservationsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityReservationsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeCapacityReservations"); + newBaseTarget.path("/20160918").path("computeCapacityReservations"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologiesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologiesConverter.java index 581c6472ef5..62feb7ef307 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologiesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologiesConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeCapacityTopologies"); + newBaseTarget.path("/20160918").path("computeCapacityTopologies"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologyComputeBareMetalHostsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologyComputeBareMetalHostsConverter.java index 1fbef3beb24..eb09f7c72c9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologyComputeBareMetalHostsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologyComputeBareMetalHostsConverter.java @@ -39,8 +39,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeCapacityTopologyId(), "computeCapacityTopologyId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeCapacityTopologyId", request.getComputeCapacityTopologyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeCapacityTopologies") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologyComputeHpcIslandsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologyComputeHpcIslandsConverter.java index 65eec312bbc..d9004d6fbf8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologyComputeHpcIslandsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologyComputeHpcIslandsConverter.java @@ -37,8 +37,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeCapacityTopologyId(), "computeCapacityTopologyId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeCapacityTopologyId", request.getComputeCapacityTopologyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeCapacityTopologies") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologyComputeNetworkBlocksConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologyComputeNetworkBlocksConverter.java index 645bfab03d6..2ac3faf086f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologyComputeNetworkBlocksConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeCapacityTopologyComputeNetworkBlocksConverter.java @@ -39,8 +39,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeCapacityTopologyId(), "computeCapacityTopologyId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeCapacityTopologyId", request.getComputeCapacityTopologyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeCapacityTopologies") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeClustersConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeClustersConverter.java index 464fae228f9..743484eccfe 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeClustersConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeClustersConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeClusters"); + newBaseTarget.path("/20160918").path("computeClusters"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGlobalImageCapabilitySchemaVersionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGlobalImageCapabilitySchemaVersionsConverter.java index f79f735f03c..2f28e72bbdd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGlobalImageCapabilitySchemaVersionsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGlobalImageCapabilitySchemaVersionsConverter.java @@ -38,8 +38,16 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeGlobalImageCapabilitySchemaId(), "computeGlobalImageCapabilitySchemaId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeGlobalImageCapabilitySchemaId", + request.getComputeGlobalImageCapabilitySchemaId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeGlobalImageCapabilitySchemas") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGlobalImageCapabilitySchemasConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGlobalImageCapabilitySchemasConverter.java index 4d65758a191..41cd5b1a7a4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGlobalImageCapabilitySchemasConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGlobalImageCapabilitySchemasConverter.java @@ -33,10 +33,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.ListComputeGlobalImageCapabilitySchemasRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20160918") - .path("computeGlobalImageCapabilitySchemas"); + newBaseTarget.path("/20160918").path("computeGlobalImageCapabilitySchemas"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGpuMemoryClusterInstancesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGpuMemoryClusterInstancesConverter.java index 1f1f7a7b371..6fa2f2caef6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGpuMemoryClusterInstancesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGpuMemoryClusterInstancesConverter.java @@ -35,8 +35,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeGpuMemoryClusterId(), "computeGpuMemoryClusterId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeGpuMemoryClusterId", request.getComputeGpuMemoryClusterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeGpuMemoryClusters") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGpuMemoryClustersConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGpuMemoryClustersConverter.java index 89ebea9891c..c7f52d656a9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGpuMemoryClustersConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGpuMemoryClustersConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeGpuMemoryClusters"); + newBaseTarget.path("/20160918").path("computeGpuMemoryClusters"); if (request.getComputeGpuMemoryClusterId() != null) { target = @@ -42,6 +48,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getComputeGpuMemoryClusterId())); } + if (request.getComputeGpuMemoryFabricId() != null) { + target = + target.queryParam( + "computeGpuMemoryFabricId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getComputeGpuMemoryFabricId())); + } + if (request.getAvailabilityDomain() != null) { target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGpuMemoryFabricsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGpuMemoryFabricsConverter.java index 5e511978f3d..ca34d659a8d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGpuMemoryFabricsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeGpuMemoryFabricsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeGpuMemoryFabrics"); + newBaseTarget.path("/20160918").path("computeGpuMemoryFabrics"); if (request.getComputeGpuMemoryFabricId() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeHostGroupsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeHostGroupsConverter.java index 22495d17efd..b1bcd46f55b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeHostGroupsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeHostGroupsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeHostGroups"); + newBaseTarget.path("/20160918").path("computeHostGroups"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeHostsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeHostsConverter.java index af43d36adaf..8d520c82d63 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeHostsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeHostsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeHosts"); + newBaseTarget.path("/20160918").path("computeHosts"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeImageCapabilitySchemasConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeImageCapabilitySchemasConverter.java index c8ee07f59f7..4cd4100acb8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeImageCapabilitySchemasConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListComputeImageCapabilitySchemasConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.ListComputeImageCapabilitySchemasRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("computeImageCapabilitySchemas"); + newBaseTarget.path("/20160918").path("computeImageCapabilitySchemas"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListConsoleHistoriesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListConsoleHistoriesConverter.java index 64ab363cd42..cf9fe2a44d3 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListConsoleHistoriesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListConsoleHistoriesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("instanceConsoleHistories"); + newBaseTarget.path("/20160918").path("instanceConsoleHistories"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCpeDeviceShapesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCpeDeviceShapesConverter.java index 11e11985bcb..637de5bc342 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCpeDeviceShapesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCpeDeviceShapesConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.ListCpeDeviceShapesRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("cpeDeviceShapes"); + newBaseTarget.path("/20160918").path("cpeDeviceShapes"); if (request.getLimit() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCpesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCpesConverter.java index da1086a8f71..09fe287bea5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCpesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCpesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("cpes"); + newBaseTarget.path("/20160918").path("cpes"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectGroupsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectGroupsConverter.java index 04eee71b8eb..b00fcd0652b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectGroupsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectGroupsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("crossConnectGroups"); + newBaseTarget.path("/20160918").path("crossConnectGroups"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectLocationsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectLocationsConverter.java index 5884657fe4e..ed53ddb57f4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectLocationsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectLocationsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("crossConnectLocations"); + newBaseTarget.path("/20160918").path("crossConnectLocations"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectMappingsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectMappingsConverter.java index 10cf8e6d2e5..830b1f7db65 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectMappingsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectMappingsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVirtualCircuitId(), "virtualCircuitId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("virtualCircuitId", request.getVirtualCircuitId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("virtualCircuits") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectsConverter.java index aebde5a8c99..fb81978cf88 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossConnectsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("crossConnects"); + newBaseTarget.path("/20160918").path("crossConnects"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossconnectPortSpeedShapesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossconnectPortSpeedShapesConverter.java index 43428316db9..891a57548f8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossconnectPortSpeedShapesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListCrossconnectPortSpeedShapesConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("crossConnectPortSpeedShapes"); + newBaseTarget.path("/20160918").path("crossConnectPortSpeedShapes"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostInstanceShapesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostInstanceShapesConverter.java index 2acd9a515f0..4087afb7bff 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostInstanceShapesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostInstanceShapesConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("dedicatedVmHostInstanceShapes"); + newBaseTarget.path("/20160918").path("dedicatedVmHostInstanceShapes"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostInstancesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostInstancesConverter.java index d76ac7c8dc4..74fd9901334 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostInstancesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostInstancesConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); Validate.notBlank(request.getDedicatedVmHostId(), "dedicatedVmHostId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + requiredParametersMap.put("dedicatedVmHostId", request.getDedicatedVmHostId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("dedicatedVmHosts") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostShapesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostShapesConverter.java index 4679823f5dd..5011bb05f6f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostShapesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostShapesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("dedicatedVmHostShapes"); + newBaseTarget.path("/20160918").path("dedicatedVmHostShapes"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostsConverter.java index 952280d049b..a3d6efa4b86 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDedicatedVmHostsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("dedicatedVmHosts"); + newBaseTarget.path("/20160918").path("dedicatedVmHosts"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDhcpOptionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDhcpOptionsConverter.java index bf8dd71d880..57a600f30b9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDhcpOptionsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDhcpOptionsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("dhcps"); + newBaseTarget.path("/20160918").path("dhcps"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgAttachmentsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgAttachmentsConverter.java index dee0a965bfc..8700f9d52dd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgAttachmentsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgAttachmentsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("drgAttachments"); + newBaseTarget.path("/20160918").path("drgAttachments"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteDistributionStatementsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteDistributionStatementsConverter.java index 02521f8c61f..b59b5ba53f1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteDistributionStatementsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteDistributionStatementsConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getDrgRouteDistributionId(), "drgRouteDistributionId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteDistributionId", request.getDrgRouteDistributionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteDistributions") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteDistributionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteDistributionsConverter.java index 412bd8f2ea0..01aab855def 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteDistributionsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteDistributionsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getDrgId(), "drgId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgId", request.getDrgId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("drgRouteDistributions"); + newBaseTarget.path("/20160918").path("drgRouteDistributions"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteRulesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteRulesConverter.java index 4eaa3fe083e..8fcbe37fdb0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteRulesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteRulesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDrgRouteTableId(), "drgRouteTableId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteTableId", request.getDrgRouteTableId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteTables") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteTablesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteTablesConverter.java index 0a37a5244e9..7e2d850c4a1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteTablesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgRouteTablesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getDrgId(), "drgId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgId", request.getDrgId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("drgRouteTables"); + newBaseTarget.path("/20160918").path("drgRouteTables"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgsConverter.java index e1691ddf71a..6e9db6ba405 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListDrgsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("drgs"); + newBaseTarget.path("/20160918").path("drgs"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListFastConnectProviderServicesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListFastConnectProviderServicesConverter.java index 1343c0ef775..02a6b310dc8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListFastConnectProviderServicesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListFastConnectProviderServicesConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("fastConnectProviderServices"); + newBaseTarget.path("/20160918").path("fastConnectProviderServices"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListFastConnectProviderVirtualCircuitBandwidthShapesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListFastConnectProviderVirtualCircuitBandwidthShapesConverter.java index 88c03f7043f..499be30bbde 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListFastConnectProviderVirtualCircuitBandwidthShapesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListFastConnectProviderVirtualCircuitBandwidthShapesConverter.java @@ -37,8 +37,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getProviderServiceId(), "providerServiceId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("providerServiceId", request.getProviderServiceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("fastConnectProviderServices") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListFirmwareBundlesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListFirmwareBundlesConverter.java index 36291d239f6..205cfa19c4e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListFirmwareBundlesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListFirmwareBundlesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getPlatform(), "platform is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("platform", request.getPlatform()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("firmwareBundles"); + newBaseTarget.path("/20160918").path("firmwareBundles"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionTunnelRoutesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionTunnelRoutesConverter.java index 0f3b50a2d46..10dd49d5e4e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionTunnelRoutesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionTunnelRoutesConverter.java @@ -33,8 +33,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getIpscId(), "ipscId must not be blank"); Validate.notBlank(request.getTunnelId(), "tunnelId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + requiredParametersMap.put("tunnelId", request.getTunnelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionTunnelSecurityAssociationsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionTunnelSecurityAssociationsConverter.java index 0df610e491a..6c8f5ce7d73 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionTunnelSecurityAssociationsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionTunnelSecurityAssociationsConverter.java @@ -37,8 +37,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getIpscId(), "ipscId must not be blank"); Validate.notBlank(request.getTunnelId(), "tunnelId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + requiredParametersMap.put("tunnelId", request.getTunnelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionTunnelsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionTunnelsConverter.java index 573f1a91e7e..bfcf5a820f9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionTunnelsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionTunnelsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getIpscId(), "ipscId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionsConverter.java index 970780ff2f0..f04aa71b6e8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIPSecConnectionsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("ipsecConnections"); + newBaseTarget.path("/20160918").path("ipsecConnections"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListImageShapeCompatibilityEntriesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListImageShapeCompatibilityEntriesConverter.java index dd1ae18db1a..fb2bef2322d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListImageShapeCompatibilityEntriesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListImageShapeCompatibilityEntriesConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getImageId(), "imageId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("imageId", request.getImageId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("images") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListImagesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListImagesConverter.java index fe5cf7fd84d..bdf7d2cf7e5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListImagesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListImagesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("images"); + newBaseTarget.path("/20160918").path("images"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceConfigurationsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceConfigurationsConverter.java index f3375c9489e..2b851ecad3a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceConfigurationsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceConfigurationsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("instanceConfigurations"); + newBaseTarget.path("/20160918").path("instanceConfigurations"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceConsoleConnectionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceConsoleConnectionsConverter.java index e890d9307aa..9b7ccada4af 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceConsoleConnectionsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceConsoleConnectionsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("instanceConsoleConnections"); + newBaseTarget.path("/20160918").path("instanceConsoleConnections"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceDevicesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceDevicesConverter.java index af05bd2e9d4..e734e5b93ee 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceDevicesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceDevicesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceId", request.getInstanceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instances") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceMaintenanceEventsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceMaintenanceEventsConverter.java index 1549e2120f7..3f86d69a424 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceMaintenanceEventsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstanceMaintenanceEventsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("instanceMaintenanceEvents"); + newBaseTarget.path("/20160918").path("instanceMaintenanceEvents"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstancePoolInstancesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstancePoolInstancesConverter.java index eba6dfd494f..a88d79cc8b5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstancePoolInstancesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstancePoolInstancesConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); Validate.notBlank(request.getInstancePoolId(), "instancePoolId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstancePoolsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstancePoolsConverter.java index 001d0f69c2b..e6fe33e2741 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstancePoolsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstancePoolsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("instancePools"); + newBaseTarget.path("/20160918").path("instancePools"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstancesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstancesConverter.java index 69e13e7054e..9ac80c3b342 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstancesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInstancesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("instances"); + newBaseTarget.path("/20160918").path("instances"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInternetGatewaysConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInternetGatewaysConverter.java index e0fdbf4c571..52e3a0f0fe2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInternetGatewaysConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListInternetGatewaysConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("internetGateways"); + newBaseTarget.path("/20160918").path("internetGateways"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIpInventoryConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIpInventoryConverter.java index edb34c680c4..bd35f25bdbe 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIpInventoryConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIpInventoryConverter.java @@ -31,8 +31,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getListIpInventoryDetails(), "listIpInventoryDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("ipInventory"); + newBaseTarget.path("/20160918").path("ipInventory"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIpv6sConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIpv6sConverter.java index 8541989b9f4..51734f76299 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIpv6sConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListIpv6sConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.ListIpv6sRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("ipv6"); + newBaseTarget.path("/20160918").path("ipv6"); if (request.getLimit() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListLocalPeeringGatewaysConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListLocalPeeringGatewaysConverter.java index 64e9466fc12..4f47ac48e9a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListLocalPeeringGatewaysConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListLocalPeeringGatewaysConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("localPeeringGateways"); + newBaseTarget.path("/20160918").path("localPeeringGateways"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNatGatewaysConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNatGatewaysConverter.java index 6266351aff0..7940322337f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNatGatewaysConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNatGatewaysConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("natGateways"); + newBaseTarget.path("/20160918").path("natGateways"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNetworkSecurityGroupSecurityRulesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNetworkSecurityGroupSecurityRulesConverter.java index d5c533abc78..9c6000c24d8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNetworkSecurityGroupSecurityRulesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNetworkSecurityGroupSecurityRulesConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getNetworkSecurityGroupId(), "networkSecurityGroupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("networkSecurityGroupId", request.getNetworkSecurityGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("networkSecurityGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNetworkSecurityGroupVnicsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNetworkSecurityGroupVnicsConverter.java index 68f29990c47..a846e41c312 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNetworkSecurityGroupVnicsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNetworkSecurityGroupVnicsConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getNetworkSecurityGroupId(), "networkSecurityGroupId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("networkSecurityGroupId", request.getNetworkSecurityGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("networkSecurityGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNetworkSecurityGroupsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNetworkSecurityGroupsConverter.java index 1a9c13ba396..80cc88568ac 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNetworkSecurityGroupsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListNetworkSecurityGroupsConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.ListNetworkSecurityGroupsRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("networkSecurityGroups"); + newBaseTarget.path("/20160918").path("networkSecurityGroups"); if (request.getCompartmentId() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListPrivateIpsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListPrivateIpsConverter.java index 7fa04f50b07..2aa51bac1e6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListPrivateIpsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListPrivateIpsConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.ListPrivateIpsRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("privateIps"); + newBaseTarget.path("/20160918").path("privateIps"); if (request.getLimit() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListProviderRemoteRegionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListProviderRemoteRegionsConverter.java new file mode 100644 index 00000000000..bbb6edd2697 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListProviderRemoteRegionsConverter.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.core.model.*; +import com.oracle.bmc.core.requests.*; +import com.oracle.bmc.core.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListProviderRemoteRegionsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListProviderRemoteRegionsConverter.class); + + public static com.oracle.bmc.core.requests.ListProviderRemoteRegionsRequest interceptRequest( + com.oracle.bmc.core.requests.ListProviderRemoteRegionsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.core.requests.ListProviderRemoteRegionsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getProviderServiceId(), "providerServiceId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("providerServiceId", request.getProviderServiceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget + .path("/20160918") + .path("fastConnectProviderServices") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getProviderServiceId())) + .path("providerRemoteRegions"); + + 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())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.core.responses.ListProviderRemoteRegionsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.core.responses.ListProviderRemoteRegionsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.core.responses.ListProviderRemoteRegionsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.core.responses.ListProviderRemoteRegionsResponse>() { + @Override + public com.oracle.bmc.core.responses.ListProviderRemoteRegionsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.core.responses.ListProviderRemoteRegionsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + com.oracle.bmc.core.model + .ProviderRemoteRegionName>>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + com.oracle.bmc.core.model + .ProviderRemoteRegionName>>() {}, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + com.oracle.bmc.core.model + .ProviderRemoteRegionName>>() {}); + } + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + com.oracle.bmc.core.model + .ProviderRemoteRegionName>> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.core.responses.ListProviderRemoteRegionsResponse + .Builder + builder = + com.oracle.bmc.core.responses + .ListProviderRemoteRegionsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.items(response.getItem()); + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.core.responses.ListProviderRemoteRegionsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListPublicIpPoolsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListPublicIpPoolsConverter.java index d57bfa98a99..b59eeaeaf92 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListPublicIpPoolsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListPublicIpPoolsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("publicIpPools"); + newBaseTarget.path("/20160918").path("publicIpPools"); if (request.getLimit() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListPublicIpsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListPublicIpsConverter.java index d8ab80b750b..9ea0ebe90d7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListPublicIpsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListPublicIpsConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getScope(), "scope is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("scope", request.getScope()); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("publicIps"); + newBaseTarget.path("/20160918").path("publicIps"); if (request.getLimit() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListRemotePeeringConnectionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListRemotePeeringConnectionsConverter.java index 094169de270..f2c541cca82 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListRemotePeeringConnectionsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListRemotePeeringConnectionsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("remotePeeringConnections"); + newBaseTarget.path("/20160918").path("remotePeeringConnections"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListRouteTablesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListRouteTablesConverter.java index 6d0d2ccb4d7..7b7614210b1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListRouteTablesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListRouteTablesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("routeTables"); + newBaseTarget.path("/20160918").path("routeTables"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListSecurityListsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListSecurityListsConverter.java index 53f989881a1..90f4e8068f9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListSecurityListsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListSecurityListsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("securityLists"); + newBaseTarget.path("/20160918").path("securityLists"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListServiceGatewaysConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListServiceGatewaysConverter.java index 4bd7fe2a7b0..73b7fd1f06e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListServiceGatewaysConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListServiceGatewaysConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("serviceGateways"); + newBaseTarget.path("/20160918").path("serviceGateways"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListServicesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListServicesConverter.java index 498dfd65829..8a29a0301ff 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListServicesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListServicesConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.ListServicesRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("services"); + newBaseTarget.path("/20160918").path("services"); if (request.getLimit() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListShapesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListShapesConverter.java index 848008fd323..dccb4e9ff13 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListShapesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListShapesConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("shapes"); + newBaseTarget.path("/20160918").path("shapes"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListSubnetsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListSubnetsConverter.java index 370a5bb7ef4..069d303c1d1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListSubnetsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListSubnetsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("subnets"); + newBaseTarget.path("/20160918").path("subnets"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVcnsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVcnsConverter.java index e62bbbc9f4f..35de1452c21 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVcnsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVcnsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("vcns"); + newBaseTarget.path("/20160918").path("vcns"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitAssociatedTunnelsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitAssociatedTunnelsConverter.java index 6fff76d135e..fce1ad6c8f3 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitAssociatedTunnelsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitAssociatedTunnelsConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVirtualCircuitId(), "virtualCircuitId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("virtualCircuitId", request.getVirtualCircuitId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("virtualCircuits") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitBandwidthShapesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitBandwidthShapesConverter.java index fcdcac44267..2f9011b281d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitBandwidthShapesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitBandwidthShapesConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("virtualCircuitBandwidthShapes"); + newBaseTarget.path("/20160918").path("virtualCircuitBandwidthShapes"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitPublicPrefixesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitPublicPrefixesConverter.java index 085afe937c9..a0af7a3c69f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitPublicPrefixesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitPublicPrefixesConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVirtualCircuitId(), "virtualCircuitId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("virtualCircuitId", request.getVirtualCircuitId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("virtualCircuits") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitsConverter.java index ebd4b39e8ad..57bba21befa 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVirtualCircuitsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("virtualCircuits"); + newBaseTarget.path("/20160918").path("virtualCircuits"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVlansConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVlansConverter.java index 6121ddd07ca..0052bd95075 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVlansConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVlansConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("vlans"); + newBaseTarget.path("/20160918").path("vlans"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVnicAttachmentsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVnicAttachmentsConverter.java index c94d79732c3..0f83a3ac894 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVnicAttachmentsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVnicAttachmentsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("vnicAttachments"); + newBaseTarget.path("/20160918").path("vnicAttachments"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeAttachmentsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeAttachmentsConverter.java index 3d7d9022f3c..b69b6412daf 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeAttachmentsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeAttachmentsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumeAttachments"); + newBaseTarget.path("/20160918").path("volumeAttachments"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeBackupPoliciesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeBackupPoliciesConverter.java index 11b71d66242..6f71cec1a43 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeBackupPoliciesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeBackupPoliciesConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.ListVolumeBackupPoliciesRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumeBackupPolicies"); + newBaseTarget.path("/20160918").path("volumeBackupPolicies"); if (request.getLimit() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeBackupsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeBackupsConverter.java index b4d8958156e..a9f79ae0549 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeBackupsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeBackupsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumeBackups"); + newBaseTarget.path("/20160918").path("volumeBackups"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeGroupBackupsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeGroupBackupsConverter.java index 804642a9b7b..e27fb1c43d4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeGroupBackupsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeGroupBackupsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumeGroupBackups"); + newBaseTarget.path("/20160918").path("volumeGroupBackups"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeGroupReplicasConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeGroupReplicasConverter.java index 514cc8a61d1..4845abcea4a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeGroupReplicasConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeGroupReplicasConverter.java @@ -32,8 +32,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getAvailabilityDomain(), "availabilityDomain is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("availabilityDomain", request.getAvailabilityDomain()); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumeGroupReplicas"); + newBaseTarget.path("/20160918").path("volumeGroupReplicas"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeGroupsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeGroupsConverter.java index f9e909251f0..be833e37da4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeGroupsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumeGroupsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumeGroups"); + newBaseTarget.path("/20160918").path("volumeGroups"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumesConverter.java index d37ce1d8061..247ce9dd5cb 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVolumesConverter.java @@ -30,8 +30,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.core.requests.ListVolumesRequest request) { Validate.notNull(request, "request instance is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("volumes"); + newBaseTarget.path("/20160918").path("volumes"); if (request.getAvailabilityDomain() != null) { target = diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVtapsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVtapsConverter.java index 668a4da6f46..acb33ffd877 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVtapsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListVtapsConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20160918").path("vtaps"); + newBaseTarget.path("/20160918").path("vtaps"); target = target.queryParam( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ModifyIpv4SubnetCidrConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ModifyIpv4SubnetCidrConverter.java index 9cd9528daa4..8ddeccc6a4d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ModifyIpv4SubnetCidrConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ModifyIpv4SubnetCidrConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getModifyIpv4SubnetCidrDetails(), "modifyIpv4SubnetCidrDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("subnetId", request.getSubnetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("subnets") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ModifyVcnCidrConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ModifyVcnCidrConverter.java index 649f32a416c..d55bcc48f3e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ModifyVcnCidrConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ModifyVcnCidrConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getVcnId(), "vcnId must not be blank"); Validate.notNull(request.getModifyVcnCidrDetails(), "modifyVcnCidrDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vcnId", request.getVcnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vcns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PatchSubnetConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PatchSubnetConverter.java index 6ee921d867c..f4137f55b5d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PatchSubnetConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PatchSubnetConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getSubnetId(), "subnetId must not be blank"); Validate.notNull(request.getPatchSubnetDetails(), "patchSubnetDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("subnetId", request.getSubnetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("subnets") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PatchVcnConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PatchVcnConverter.java index e8ead350068..a49707c5709 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PatchVcnConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PatchVcnConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getVcnId(), "vcnId must not be blank"); Validate.notNull(request.getPatchVcnDetails(), "patchVcnDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vcnId", request.getVcnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vcns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PrivateIpVnicDetachConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PrivateIpVnicDetachConverter.java index 2d181648dd1..b9948480e88 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PrivateIpVnicDetachConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/PrivateIpVnicDetachConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getPrivateIpId(), "privateIpId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("privateIpId", request.getPrivateIpId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("privateIps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveDrgRouteDistributionStatementsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveDrgRouteDistributionStatementsConverter.java index 332c595e45f..66dcad7d003 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveDrgRouteDistributionStatementsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveDrgRouteDistributionStatementsConverter.java @@ -37,8 +37,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRemoveDrgRouteDistributionStatementsDetails(), "removeDrgRouteDistributionStatementsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteDistributionId", request.getDrgRouteDistributionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteDistributions") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveDrgRouteRulesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveDrgRouteRulesConverter.java index d64fd8b98d6..c74e5edde60 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveDrgRouteRulesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveDrgRouteRulesConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getRemoveDrgRouteRulesDetails(), "removeDrgRouteRulesDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteTableId", request.getDrgRouteTableId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteTables") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveExportDrgRouteDistributionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveExportDrgRouteDistributionConverter.java index 8dd0bf3a06d..236c2ed7ab9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveExportDrgRouteDistributionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveExportDrgRouteDistributionConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDrgAttachmentId(), "drgAttachmentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgAttachmentId", request.getDrgAttachmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgAttachments") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveImageShapeCompatibilityEntryConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveImageShapeCompatibilityEntryConverter.java index 3f98156e5f8..9f39cb8f66d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveImageShapeCompatibilityEntryConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveImageShapeCompatibilityEntryConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getImageId(), "imageId must not be blank"); Validate.notBlank(request.getShapeName(), "shapeName must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("imageId", request.getImageId()); + requiredParametersMap.put("shapeName", request.getShapeName()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("images") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveImportDrgRouteDistributionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveImportDrgRouteDistributionConverter.java index 170ede3877b..fa9d86330bd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveImportDrgRouteDistributionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveImportDrgRouteDistributionConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDrgRouteTableId(), "drgRouteTableId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteTableId", request.getDrgRouteTableId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteTables") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveIpv4SubnetCidrConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveIpv4SubnetCidrConverter.java index c39f76562c1..cada18eeaab 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveIpv4SubnetCidrConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveIpv4SubnetCidrConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRemoveIpv4SubnetCidrDetails(), "removeIpv4SubnetCidrDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("subnetId", request.getSubnetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("subnets") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveIpv6SubnetCidrConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveIpv6SubnetCidrConverter.java index 02bb40f3432..32554387071 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveIpv6SubnetCidrConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveIpv6SubnetCidrConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRemoveSubnetIpv6CidrDetails(), "removeSubnetIpv6CidrDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("subnetId", request.getSubnetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("subnets") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveIpv6VcnCidrConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveIpv6VcnCidrConverter.java index 74b7f2f9447..268fa432960 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveIpv6VcnCidrConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveIpv6VcnCidrConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVcnId(), "vcnId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vcnId", request.getVcnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vcns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveNetworkSecurityGroupSecurityRulesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveNetworkSecurityGroupSecurityRulesConverter.java index ccb2d62984f..b562ec33835 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveNetworkSecurityGroupSecurityRulesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveNetworkSecurityGroupSecurityRulesConverter.java @@ -38,8 +38,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRemoveNetworkSecurityGroupSecurityRulesDetails(), "removeNetworkSecurityGroupSecurityRulesDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("networkSecurityGroupId", request.getNetworkSecurityGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("networkSecurityGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemovePublicIpPoolCapacityConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemovePublicIpPoolCapacityConverter.java index 9457b431b6a..b9c27368557 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemovePublicIpPoolCapacityConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemovePublicIpPoolCapacityConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRemovePublicIpPoolCapacityDetails(), "removePublicIpPoolCapacityDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("publicIpPoolId", request.getPublicIpPoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("publicIpPools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveVcnCidrConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveVcnCidrConverter.java index 679737e4a09..a4aa5702541 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveVcnCidrConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/RemoveVcnCidrConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getVcnId(), "vcnId must not be blank"); Validate.notNull(request.getRemoveVcnCidrDetails(), "removeVcnCidrDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vcnId", request.getVcnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vcns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ResetInstancePoolConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ResetInstancePoolConverter.java index dbc4776138d..5194d776b01 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ResetInstancePoolConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ResetInstancePoolConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getInstancePoolId(), "instancePoolId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SetOriginAsnConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SetOriginAsnConverter.java index 20841ae7fde..1b391cdc99d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SetOriginAsnConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SetOriginAsnConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getByoipRangeId(), "byoipRangeId must not be blank"); Validate.notNull(request.getSetOriginAsnDetails(), "setOriginAsnDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoipRangeId", request.getByoipRangeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoipRanges") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SetOriginAsnToOracleConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SetOriginAsnToOracleConverter.java index 146259d40a4..bd0c5bec5e1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SetOriginAsnToOracleConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SetOriginAsnToOracleConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getByoipRangeId(), "byoipRangeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoipRangeId", request.getByoipRangeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoipRanges") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SoftresetInstancePoolConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SoftresetInstancePoolConverter.java index c6b1888da6c..1e9fe9feee3 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SoftresetInstancePoolConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SoftresetInstancePoolConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getInstancePoolId(), "instancePoolId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SoftstopInstancePoolConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SoftstopInstancePoolConverter.java index 7a862ade695..ec8702eea92 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SoftstopInstancePoolConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/SoftstopInstancePoolConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getInstancePoolId(), "instancePoolId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/StartInstancePoolConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/StartInstancePoolConverter.java index 51b28a3f26e..97fbad53a2e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/StartInstancePoolConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/StartInstancePoolConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getInstancePoolId(), "instancePoolId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/StopInstancePoolConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/StopInstancePoolConverter.java index baa4edc5199..806b9edf62c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/StopInstancePoolConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/StopInstancePoolConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getInstancePoolId(), "instancePoolId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminateClusterNetworkConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminateClusterNetworkConverter.java index 88b0d9d788c..8a91e705858 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminateClusterNetworkConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminateClusterNetworkConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getClusterNetworkId(), "clusterNetworkId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("clusterNetworkId", request.getClusterNetworkId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("clusterNetworks") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminateInstanceConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminateInstanceConverter.java index e2677bad5cb..7fb348e988f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminateInstanceConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminateInstanceConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceId", request.getInstanceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instances") .path( @@ -135,6 +141,17 @@ public com.oracle.bmc.core.responses.TerminateInstanceResponse apply( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.core.responses.TerminateInstanceResponse responseWrapper = builder.build(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminateInstancePoolConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminateInstancePoolConverter.java index 3b27c8f6b4d..5e392b2f3ce 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminateInstancePoolConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminateInstancePoolConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getInstancePoolId(), "instancePoolId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminationProceedInstancePoolInstanceConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminationProceedInstancePoolInstanceConverter.java index 5556f3cf45b..7cc7ff63d1d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminationProceedInstancePoolInstanceConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/TerminationProceedInstancePoolInstanceConverter.java @@ -37,8 +37,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getTerminationProceedInstancePoolInstanceDetails(), "terminationProceedInstancePoolInstanceDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateBootVolumeBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateBootVolumeBackupConverter.java index 0617f7c5b84..1d73119b2b8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateBootVolumeBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateBootVolumeBackupConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateBootVolumeBackupDetails(), "updateBootVolumeBackupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeBackupId", request.getBootVolumeBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumeBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateBootVolumeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateBootVolumeConverter.java index 6e016edd78d..503a5891fd3 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateBootVolumeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateBootVolumeConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateBootVolumeDetails(), "updateBootVolumeDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeId", request.getBootVolumeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateBootVolumeKmsKeyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateBootVolumeKmsKeyConverter.java index 59d42b6f94f..0f16724a54b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateBootVolumeKmsKeyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateBootVolumeKmsKeyConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateBootVolumeKmsKeyDetails(), "updateBootVolumeKmsKeyDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("bootVolumeId", request.getBootVolumeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("bootVolumes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateByoasnConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateByoasnConverter.java index b579c4d42a4..7eae813ff3b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateByoasnConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateByoasnConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getByoasnId(), "byoasnId must not be blank"); Validate.notNull(request.getUpdateByoasnDetails(), "updateByoasnDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoasnId", request.getByoasnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoasns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateByoipRangeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateByoipRangeConverter.java index 03527a99407..8524a61bf5c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateByoipRangeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateByoipRangeConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateByoipRangeDetails(), "updateByoipRangeDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoipRangeId", request.getByoipRangeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoipRanges") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCaptureFilterConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCaptureFilterConverter.java index 046ca5d642f..293102f8d2c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCaptureFilterConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCaptureFilterConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateCaptureFilterDetails(), "updateCaptureFilterDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("captureFilterId", request.getCaptureFilterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("captureFilters") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateClusterNetworkConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateClusterNetworkConverter.java index 37f058233f8..825f32086a8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateClusterNetworkConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateClusterNetworkConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateClusterNetworkDetails(), "updateClusterNetworkDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("clusterNetworkId", request.getClusterNetworkId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("clusterNetworks") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeCapacityReservationConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeCapacityReservationConverter.java index 64045be8e7b..ce83b11119c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeCapacityReservationConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeCapacityReservationConverter.java @@ -36,8 +36,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateComputeCapacityReservationDetails(), "updateComputeCapacityReservationDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("capacityReservationId", request.getCapacityReservationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeCapacityReservations") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeCapacityTopologyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeCapacityTopologyConverter.java index 1f7ceffd3ed..19dc8c8ac53 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeCapacityTopologyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeCapacityTopologyConverter.java @@ -37,8 +37,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateComputeCapacityTopologyDetails(), "updateComputeCapacityTopologyDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeCapacityTopologyId", request.getComputeCapacityTopologyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeCapacityTopologies") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeClusterConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeClusterConverter.java index aaff17d0bd5..7f87cb4231e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeClusterConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeClusterConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateComputeClusterDetails(), "updateComputeClusterDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeClusterId", request.getComputeClusterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeClusters") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeGpuMemoryClusterConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeGpuMemoryClusterConverter.java index ab7eca76a91..1c3e5d4df79 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeGpuMemoryClusterConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeGpuMemoryClusterConverter.java @@ -37,8 +37,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateComputeGpuMemoryClusterDetails(), "updateComputeGpuMemoryClusterDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeGpuMemoryClusterId", request.getComputeGpuMemoryClusterId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeGpuMemoryClusters") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeGpuMemoryFabricConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeGpuMemoryFabricConverter.java index 09b389d3734..74fbf511816 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeGpuMemoryFabricConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeGpuMemoryFabricConverter.java @@ -36,8 +36,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateComputeGpuMemoryFabricDetails(), "updateComputeGpuMemoryFabricDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeGpuMemoryFabricId", request.getComputeGpuMemoryFabricId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeGpuMemoryFabrics") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeHostConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeHostConverter.java index f91db9f995e..f7fb3d9dae7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeHostConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeHostConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateComputeHostDetails(), "updateComputeHostDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeHostId", request.getComputeHostId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeHosts") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeHostGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeHostGroupConverter.java index 0566d873e75..290248e0daa 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeHostGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeHostGroupConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateComputeHostGroupDetails(), "updateComputeHostGroupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("computeHostGroupId", request.getComputeHostGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeHostGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeImageCapabilitySchemaConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeImageCapabilitySchemaConverter.java index bc6cdecdfd2..7ca12e67197 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeImageCapabilitySchemaConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateComputeImageCapabilitySchemaConverter.java @@ -38,8 +38,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateComputeImageCapabilitySchemaDetails(), "updateComputeImageCapabilitySchemaDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "computeImageCapabilitySchemaId", request.getComputeImageCapabilitySchemaId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("computeImageCapabilitySchemas") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateConsoleHistoryConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateConsoleHistoryConverter.java index 5f320118e78..2924395e3b2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateConsoleHistoryConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateConsoleHistoryConverter.java @@ -36,8 +36,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateConsoleHistoryDetails(), "updateConsoleHistoryDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "instanceConsoleHistoryId", request.getInstanceConsoleHistoryId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instanceConsoleHistories") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCpeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCpeConverter.java index 009bd543a77..7560ce066d6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCpeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCpeConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getCpeId(), "cpeId must not be blank"); Validate.notNull(request.getUpdateCpeDetails(), "updateCpeDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("cpeId", request.getCpeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("cpes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCrossConnectConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCrossConnectConverter.java index 67f9d78e45e..9cb190fa106 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCrossConnectConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCrossConnectConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateCrossConnectDetails(), "updateCrossConnectDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("crossConnectId", request.getCrossConnectId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("crossConnects") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCrossConnectGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCrossConnectGroupConverter.java index 77475f79b10..a93fc4e4771 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCrossConnectGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCrossConnectGroupConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateCrossConnectGroupDetails(), "updateCrossConnectGroupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("crossConnectGroupId", request.getCrossConnectGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("crossConnectGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCrossConnectLetterOfAuthorityConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCrossConnectLetterOfAuthorityConverter.java new file mode 100644 index 00000000000..ed9481496ab --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateCrossConnectLetterOfAuthorityConverter.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.core.model.*; +import com.oracle.bmc.core.requests.*; +import com.oracle.bmc.core.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateCrossConnectLetterOfAuthorityConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateCrossConnectLetterOfAuthorityConverter.class); + + public static com.oracle.bmc.core.requests.UpdateCrossConnectLetterOfAuthorityRequest + interceptRequest( + com.oracle.bmc.core.requests.UpdateCrossConnectLetterOfAuthorityRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.core.requests.UpdateCrossConnectLetterOfAuthorityRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCrossConnectId(), "crossConnectId must not be blank"); + Validate.notNull( + request.getUpdateCrossConnectLetterOfAuthorityDetails(), + "updateCrossConnectLetterOfAuthorityDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("crossConnectId", request.getCrossConnectId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget + .path("/20160918") + .path("crossConnects") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCrossConnectId())) + .path("letterOfAuthority"); + + 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()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.core.responses.UpdateCrossConnectLetterOfAuthorityResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.core.responses.UpdateCrossConnectLetterOfAuthorityResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.core.responses.UpdateCrossConnectLetterOfAuthorityResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.core.responses + .UpdateCrossConnectLetterOfAuthorityResponse>() { + @Override + public com.oracle.bmc.core.responses + .UpdateCrossConnectLetterOfAuthorityResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.core.responses.UpdateCrossConnectLetterOfAuthorityResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.core.model + .LetterOfAuthority>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.core.model.LetterOfAuthority + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.core.model.LetterOfAuthority + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.core.model.LetterOfAuthority> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.core.responses + .UpdateCrossConnectLetterOfAuthorityResponse.Builder + builder = + com.oracle.bmc.core.responses + .UpdateCrossConnectLetterOfAuthorityResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.letterOfAuthority(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.core.responses + .UpdateCrossConnectLetterOfAuthorityResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDedicatedVmHostConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDedicatedVmHostConverter.java index 3ea5a6bd352..14acadf93f8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDedicatedVmHostConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDedicatedVmHostConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateDedicatedVmHostDetails(), "updateDedicatedVmHostDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("dedicatedVmHostId", request.getDedicatedVmHostId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("dedicatedVmHosts") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDhcpOptionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDhcpOptionsConverter.java index e31b56fd4db..c0c28235a38 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDhcpOptionsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDhcpOptionsConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getDhcpId(), "dhcpId must not be blank"); Validate.notNull(request.getUpdateDhcpDetails(), "updateDhcpDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("dhcpId", request.getDhcpId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("dhcps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgAttachmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgAttachmentConverter.java index 0d5489a3229..ccf134b092e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgAttachmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgAttachmentConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateDrgAttachmentDetails(), "updateDrgAttachmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgAttachmentId", request.getDrgAttachmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgAttachments") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgConverter.java index f1f83ddbb19..a779ce88e5a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getDrgId(), "drgId must not be blank"); Validate.notNull(request.getUpdateDrgDetails(), "updateDrgDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgId", request.getDrgId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgs") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteDistributionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteDistributionConverter.java index 3aff43db0a1..770ecf4e9a4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteDistributionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteDistributionConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateDrgRouteDistributionDetails(), "updateDrgRouteDistributionDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteDistributionId", request.getDrgRouteDistributionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteDistributions") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteDistributionStatementsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteDistributionStatementsConverter.java index 9abddcb9470..702984e1006 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteDistributionStatementsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteDistributionStatementsConverter.java @@ -37,8 +37,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateDrgRouteDistributionStatementsDetails(), "updateDrgRouteDistributionStatementsDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteDistributionId", request.getDrgRouteDistributionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteDistributions") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteRulesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteRulesConverter.java index 15b7da82400..b3be409aed4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteRulesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteRulesConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateDrgRouteRulesDetails(), "updateDrgRouteRulesDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteTableId", request.getDrgRouteTableId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteTables") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteTableConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteTableConverter.java index 242f8547d41..3b52ba197ae 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteTableConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateDrgRouteTableConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateDrgRouteTableDetails(), "updateDrgRouteTableDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgRouteTableId", request.getDrgRouteTableId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgRouteTables") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIPSecConnectionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIPSecConnectionConverter.java index 8f55f2e2399..98ec88a95b8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIPSecConnectionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIPSecConnectionConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateIPSecConnectionDetails(), "updateIPSecConnectionDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIPSecConnectionTunnelConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIPSecConnectionTunnelConverter.java index f3647e5709c..10bcfb1254b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIPSecConnectionTunnelConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIPSecConnectionTunnelConverter.java @@ -35,8 +35,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateIPSecConnectionTunnelDetails(), "updateIPSecConnectionTunnelDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + requiredParametersMap.put("tunnelId", request.getTunnelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIPSecConnectionTunnelSharedSecretConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIPSecConnectionTunnelSharedSecretConverter.java index 3d7d8e45523..6f27e606e31 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIPSecConnectionTunnelSharedSecretConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIPSecConnectionTunnelSharedSecretConverter.java @@ -38,8 +38,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateIPSecConnectionTunnelSharedSecretDetails(), "updateIPSecConnectionTunnelSharedSecretDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + requiredParametersMap.put("tunnelId", request.getTunnelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateImageConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateImageConverter.java index 6c7badb2404..471f8ccd0f9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateImageConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateImageConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getImageId(), "imageId must not be blank"); Validate.notNull(request.getUpdateImageDetails(), "updateImageDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("imageId", request.getImageId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("images") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceConfigurationConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceConfigurationConverter.java index efa7296d52a..dde6043eca2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceConfigurationConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceConfigurationConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateInstanceConfigurationDetails(), "updateInstanceConfigurationDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceConfigurationId", request.getInstanceConfigurationId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instanceConfigurations") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceConsoleConnectionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceConsoleConnectionConverter.java index 2f42437846c..7219b97073d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceConsoleConnectionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceConsoleConnectionConverter.java @@ -37,8 +37,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateInstanceConsoleConnectionDetails(), "updateInstanceConsoleConnectionDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "instanceConsoleConnectionId", request.getInstanceConsoleConnectionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instanceConsoleConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceConverter.java index 9f73d16ae4d..faf80ee5346 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getInstanceId(), "instanceId must not be blank"); Validate.notNull(request.getUpdateInstanceDetails(), "updateInstanceDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceId", request.getInstanceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instances") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceMaintenanceEventConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceMaintenanceEventConverter.java index bd1f418e7cf..c8a5b3c1256 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceMaintenanceEventConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstanceMaintenanceEventConverter.java @@ -37,8 +37,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateInstanceMaintenanceEventDetails(), "updateInstanceMaintenanceEventDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "instanceMaintenanceEventId", request.getInstanceMaintenanceEventId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instanceMaintenanceEvents") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstancePoolConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstancePoolConverter.java index 1cd38400d80..8363fddaad6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstancePoolConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInstancePoolConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateInstancePoolDetails(), "updateInstancePoolDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instancePoolId", request.getInstancePoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("instancePools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInternetGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInternetGatewayConverter.java index 2e68f52b597..db18ccf3592 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInternetGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateInternetGatewayConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateInternetGatewayDetails(), "updateInternetGatewayDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("igId", request.getIgId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("internetGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIpv6Converter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIpv6Converter.java index e2e04bff668..75f94359771 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIpv6Converter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateIpv6Converter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getIpv6Id(), "ipv6Id must not be blank"); Validate.notNull(request.getUpdateIpv6Details(), "updateIpv6Details is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipv6Id", request.getIpv6Id()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipv6") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateLocalPeeringGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateLocalPeeringGatewayConverter.java index d3287ab4047..f22ebe8796a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateLocalPeeringGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateLocalPeeringGatewayConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateLocalPeeringGatewayDetails(), "updateLocalPeeringGatewayDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("localPeeringGatewayId", request.getLocalPeeringGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("localPeeringGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateNatGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateNatGatewayConverter.java index c274d416607..f0af817d847 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateNatGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateNatGatewayConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateNatGatewayDetails(), "updateNatGatewayDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("natGatewayId", request.getNatGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("natGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateNetworkSecurityGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateNetworkSecurityGroupConverter.java index ba23c270a4c..cd5139bef5b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateNetworkSecurityGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateNetworkSecurityGroupConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateNetworkSecurityGroupDetails(), "updateNetworkSecurityGroupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("networkSecurityGroupId", request.getNetworkSecurityGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("networkSecurityGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateNetworkSecurityGroupSecurityRulesConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateNetworkSecurityGroupSecurityRulesConverter.java index a8cc7a6996b..3fad7c0c706 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateNetworkSecurityGroupSecurityRulesConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateNetworkSecurityGroupSecurityRulesConverter.java @@ -38,8 +38,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateNetworkSecurityGroupSecurityRulesDetails(), "updateNetworkSecurityGroupSecurityRulesDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("networkSecurityGroupId", request.getNetworkSecurityGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("networkSecurityGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdatePrivateIpConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdatePrivateIpConverter.java index 670d76225f1..f0791082f8d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdatePrivateIpConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdatePrivateIpConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getPrivateIpId(), "privateIpId must not be blank"); Validate.notNull(request.getUpdatePrivateIpDetails(), "updatePrivateIpDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("privateIpId", request.getPrivateIpId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("privateIps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdatePublicIpConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdatePublicIpConverter.java index 591c7d74b1e..1ef87933472 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdatePublicIpConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdatePublicIpConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getPublicIpId(), "publicIpId must not be blank"); Validate.notNull(request.getUpdatePublicIpDetails(), "updatePublicIpDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("publicIpId", request.getPublicIpId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("publicIps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdatePublicIpPoolConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdatePublicIpPoolConverter.java index 252355076ea..2257fb3b28c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdatePublicIpPoolConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdatePublicIpPoolConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdatePublicIpPoolDetails(), "updatePublicIpPoolDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("publicIpPoolId", request.getPublicIpPoolId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("publicIpPools") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateRemotePeeringConnectionConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateRemotePeeringConnectionConverter.java index 563fdd26a2d..992fea5eaee 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateRemotePeeringConnectionConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateRemotePeeringConnectionConverter.java @@ -37,8 +37,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateRemotePeeringConnectionDetails(), "updateRemotePeeringConnectionDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put( + "remotePeeringConnectionId", request.getRemotePeeringConnectionId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("remotePeeringConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateRouteTableConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateRouteTableConverter.java index 0d24be302f2..e7300d85e87 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateRouteTableConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateRouteTableConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateRouteTableDetails(), "updateRouteTableDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("rtId", request.getRtId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("routeTables") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateSecurityListConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateSecurityListConverter.java index 492aa203d21..0de8830ec81 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateSecurityListConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateSecurityListConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateSecurityListDetails(), "updateSecurityListDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("securityListId", request.getSecurityListId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("securityLists") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateServiceGatewayConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateServiceGatewayConverter.java index c6f45d1e0c0..aac10ec5681 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateServiceGatewayConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateServiceGatewayConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateServiceGatewayDetails(), "updateServiceGatewayDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("serviceGatewayId", request.getServiceGatewayId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("serviceGateways") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateSubnetConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateSubnetConverter.java index 0f9ecdd14ef..82a6963d945 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateSubnetConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateSubnetConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getSubnetId(), "subnetId must not be blank"); Validate.notNull(request.getUpdateSubnetDetails(), "updateSubnetDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("subnetId", request.getSubnetId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("subnets") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateTunnelCpeDeviceConfigConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateTunnelCpeDeviceConfigConverter.java index e285f479f40..4925b639328 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateTunnelCpeDeviceConfigConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateTunnelCpeDeviceConfigConverter.java @@ -35,8 +35,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateTunnelCpeDeviceConfigDetails(), "updateTunnelCpeDeviceConfigDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("ipscId", request.getIpscId()); + requiredParametersMap.put("tunnelId", request.getTunnelId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("ipsecConnections") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVcnConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVcnConverter.java index 0e71e46da9d..4736cc00cd4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVcnConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVcnConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getVcnId(), "vcnId must not be blank"); Validate.notNull(request.getUpdateVcnDetails(), "updateVcnDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vcnId", request.getVcnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vcns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVirtualCircuitConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVirtualCircuitConverter.java index 0bcc45cc08e..1fcab64ea75 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVirtualCircuitConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVirtualCircuitConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateVirtualCircuitDetails(), "updateVirtualCircuitDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("virtualCircuitId", request.getVirtualCircuitId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("virtualCircuits") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVlanConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVlanConverter.java index be02c81b444..09f66a592d5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVlanConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVlanConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getVlanId(), "vlanId must not be blank"); Validate.notNull(request.getUpdateVlanDetails(), "updateVlanDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vlanId", request.getVlanId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vlans") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVnicConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVnicConverter.java index 3a13f341938..34f5441ef84 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVnicConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVnicConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getVnicId(), "vnicId must not be blank"); Validate.notNull(request.getUpdateVnicDetails(), "updateVnicDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vnicId", request.getVnicId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vnics") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeAttachmentConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeAttachmentConverter.java index bd2a6338340..7c82000d291 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeAttachmentConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeAttachmentConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateVolumeAttachmentDetails(), "updateVolumeAttachmentDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeAttachmentId", request.getVolumeAttachmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeAttachments") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeBackupConverter.java index 8eea54bd598..6996802b42c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeBackupConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateVolumeBackupDetails(), "updateVolumeBackupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeBackupId", request.getVolumeBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeBackupPolicyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeBackupPolicyConverter.java index 28c9a3a52cf..c8286552e1b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeBackupPolicyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeBackupPolicyConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateVolumeBackupPolicyDetails(), "updateVolumeBackupPolicyDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("policyId", request.getPolicyId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeBackupPolicies") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeConverter.java index 88fd338adf2..45d2b29eac7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getVolumeId(), "volumeId must not be blank"); Validate.notNull(request.getUpdateVolumeDetails(), "updateVolumeDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeId", request.getVolumeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeGroupBackupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeGroupBackupConverter.java index 09e15304376..7a1ed8c99fc 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeGroupBackupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeGroupBackupConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getUpdateVolumeGroupBackupDetails(), "updateVolumeGroupBackupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeGroupBackupId", request.getVolumeGroupBackupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeGroupBackups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeGroupConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeGroupConverter.java index 632c021cbba..d358dead605 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeGroupConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeGroupConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateVolumeGroupDetails(), "updateVolumeGroupDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeGroupId", request.getVolumeGroupId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumeGroups") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeKmsKeyConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeKmsKeyConverter.java index d2bb25e36d0..8b9a3135008 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeKmsKeyConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVolumeKmsKeyConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull( request.getUpdateVolumeKmsKeyDetails(), "updateVolumeKmsKeyDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("volumeId", request.getVolumeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("volumes") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVtapConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVtapConverter.java index 5ab182c4f02..6f0c7f725df 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVtapConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpdateVtapConverter.java @@ -32,8 +32,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank(request.getVtapId(), "vtapId must not be blank"); Validate.notNull(request.getUpdateVtapDetails(), "updateVtapDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("vtapId", request.getVtapId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("vtaps") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpgradeDrgConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpgradeDrgConverter.java index abc66a2c29e..a7331cf81e9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpgradeDrgConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/UpgradeDrgConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getDrgId(), "drgId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("drgId", request.getDrgId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("drgs") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ValidateByoasnConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ValidateByoasnConverter.java index ed6536081ed..5bff14093fc 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ValidateByoasnConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ValidateByoasnConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getByoasnId(), "byoasnId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoasnId", request.getByoasnId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoasns") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ValidateByoipRangeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ValidateByoipRangeConverter.java index b1a16a1bdc4..e1f1202d521 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ValidateByoipRangeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ValidateByoipRangeConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getByoipRangeId(), "byoipRangeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoipRangeId", request.getByoipRangeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoipRanges") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/WithdrawByoipRangeConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/WithdrawByoipRangeConverter.java index c061bf3a803..bd734f7a67b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/WithdrawByoipRangeConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/WithdrawByoipRangeConverter.java @@ -31,8 +31,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getByoipRangeId(), "byoipRangeId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("byoipRangeId", request.getByoipRangeId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20160918") .path("byoipRanges") .path( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolumeBackup.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolumeBackup.java index 286d5fcaeb3..f55cc59bf87 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolumeBackup.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolumeBackup.java @@ -47,7 +47,13 @@ public final class BootVolumeBackup extends com.oracle.bmc.http.internal.Explici "timeCreated", "timeRequestReceived", "type", - "uniqueSizeInGBs" + "uniqueSizeInGBs", + "timeRetentionExpiresAt", + "retentionPeriod", + "isPreventDeletionEnabled", + "isRetentionLockEnabled", + "isIndefiniteRetentionEnabled", + "volumeGroupBackupId" }) public BootVolumeBackup( String bootVolumeId, @@ -67,7 +73,13 @@ public BootVolumeBackup( java.util.Date timeCreated, java.util.Date timeRequestReceived, Type type, - Long uniqueSizeInGBs) { + Long uniqueSizeInGBs, + java.util.Date timeRetentionExpiresAt, + RetentionDuration retentionPeriod, + Boolean isPreventDeletionEnabled, + Boolean isRetentionLockEnabled, + Boolean isIndefiniteRetentionEnabled, + String volumeGroupBackupId) { super(); this.bootVolumeId = bootVolumeId; this.compartmentId = compartmentId; @@ -87,6 +99,12 @@ public BootVolumeBackup( this.timeRequestReceived = timeRequestReceived; this.type = type; this.uniqueSizeInGBs = uniqueSizeInGBs; + this.timeRetentionExpiresAt = timeRetentionExpiresAt; + this.retentionPeriod = retentionPeriod; + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; + this.volumeGroupBackupId = volumeGroupBackupId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -438,6 +456,95 @@ public Builder uniqueSizeInGBs(Long uniqueSizeInGBs) { this.__explicitlySet__.add("uniqueSizeInGBs"); return this; } + /** + * The date and time when a backup\u2019s retention period ends and it is set to expire. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRetentionExpiresAt") + private java.util.Date timeRetentionExpiresAt; + + /** + * The date and time when a backup\u2019s retention period ends and it is set to expire. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups. + * @param timeRetentionExpiresAt the value to set + * @return this builder + **/ + public Builder timeRetentionExpiresAt(java.util.Date timeRetentionExpiresAt) { + this.timeRetentionExpiresAt = timeRetentionExpiresAt; + this.__explicitlySet__.add("timeRetentionExpiresAt"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private RetentionDuration retentionPeriod; + + public Builder retentionPeriod(RetentionDuration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @param isPreventDeletionEnabled the value to set + * @return this builder + **/ + public Builder isPreventDeletionEnabled(Boolean isPreventDeletionEnabled) { + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.__explicitlySet__.add("isPreventDeletionEnabled"); + return this; + } + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @param isRetentionLockEnabled the value to set + * @return this builder + **/ + public Builder isRetentionLockEnabled(Boolean isRetentionLockEnabled) { + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.__explicitlySet__.add("isRetentionLockEnabled"); + return this; + } + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @param isIndefiniteRetentionEnabled the value to set + * @return this builder + **/ + public Builder isIndefiniteRetentionEnabled(Boolean isIndefiniteRetentionEnabled) { + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; + this.__explicitlySet__.add("isIndefiniteRetentionEnabled"); + return this; + } + /** + * The OCID of the volume group backup associated with the backup. This is an optional field. If it is not present in the response, the backup does not belong to a volume group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("volumeGroupBackupId") + private String volumeGroupBackupId; + + /** + * The OCID of the volume group backup associated with the backup. This is an optional field. If it is not present in the response, the backup does not belong to a volume group. + * @param volumeGroupBackupId the value to set + * @return this builder + **/ + public Builder volumeGroupBackupId(String volumeGroupBackupId) { + this.volumeGroupBackupId = volumeGroupBackupId; + this.__explicitlySet__.add("volumeGroupBackupId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -462,7 +569,13 @@ public BootVolumeBackup build() { this.timeCreated, this.timeRequestReceived, this.type, - this.uniqueSizeInGBs); + this.uniqueSizeInGBs, + this.timeRetentionExpiresAt, + this.retentionPeriod, + this.isPreventDeletionEnabled, + this.isRetentionLockEnabled, + this.isIndefiniteRetentionEnabled, + this.volumeGroupBackupId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -525,6 +638,24 @@ public Builder copy(BootVolumeBackup model) { if (model.wasPropertyExplicitlySet("uniqueSizeInGBs")) { this.uniqueSizeInGBs(model.getUniqueSizeInGBs()); } + if (model.wasPropertyExplicitlySet("timeRetentionExpiresAt")) { + this.timeRetentionExpiresAt(model.getTimeRetentionExpiresAt()); + } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("isPreventDeletionEnabled")) { + this.isPreventDeletionEnabled(model.getIsPreventDeletionEnabled()); + } + if (model.wasPropertyExplicitlySet("isRetentionLockEnabled")) { + this.isRetentionLockEnabled(model.getIsRetentionLockEnabled()); + } + if (model.wasPropertyExplicitlySet("isIndefiniteRetentionEnabled")) { + this.isIndefiniteRetentionEnabled(model.getIsIndefiniteRetentionEnabled()); + } + if (model.wasPropertyExplicitlySet("volumeGroupBackupId")) { + this.volumeGroupBackupId(model.getVolumeGroupBackupId()); + } return this; } } @@ -997,6 +1128,83 @@ public Long getUniqueSizeInGBs() { return uniqueSizeInGBs; } + /** + * The date and time when a backup\u2019s retention period ends and it is set to expire. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRetentionExpiresAt") + private final java.util.Date timeRetentionExpiresAt; + + /** + * The date and time when a backup\u2019s retention period ends and it is set to expire. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups. + * @return the value + **/ + public java.util.Date getTimeRetentionExpiresAt() { + return timeRetentionExpiresAt; + } + + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final RetentionDuration retentionPeriod; + + public RetentionDuration getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private final Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @return the value + **/ + public Boolean getIsPreventDeletionEnabled() { + return isPreventDeletionEnabled; + } + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private final Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @return the value + **/ + public Boolean getIsRetentionLockEnabled() { + return isRetentionLockEnabled; + } + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private final Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @return the value + **/ + public Boolean getIsIndefiniteRetentionEnabled() { + return isIndefiniteRetentionEnabled; + } + + /** + * The OCID of the volume group backup associated with the backup. This is an optional field. If it is not present in the response, the backup does not belong to a volume group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("volumeGroupBackupId") + private final String volumeGroupBackupId; + + /** + * The OCID of the volume group backup associated with the backup. This is an optional field. If it is not present in the response, the backup does not belong to a volume group. + * @return the value + **/ + public String getVolumeGroupBackupId() { + return volumeGroupBackupId; + } + @Override public String toString() { return this.toString(true); @@ -1030,6 +1238,14 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeRequestReceived=").append(String.valueOf(this.timeRequestReceived)); sb.append(", type=").append(String.valueOf(this.type)); sb.append(", uniqueSizeInGBs=").append(String.valueOf(this.uniqueSizeInGBs)); + sb.append(", timeRetentionExpiresAt=").append(String.valueOf(this.timeRetentionExpiresAt)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", isPreventDeletionEnabled=") + .append(String.valueOf(this.isPreventDeletionEnabled)); + sb.append(", isRetentionLockEnabled=").append(String.valueOf(this.isRetentionLockEnabled)); + sb.append(", isIndefiniteRetentionEnabled=") + .append(String.valueOf(this.isIndefiniteRetentionEnabled)); + sb.append(", volumeGroupBackupId=").append(String.valueOf(this.volumeGroupBackupId)); sb.append(")"); return sb.toString(); } @@ -1063,6 +1279,16 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeRequestReceived, other.timeRequestReceived) && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.uniqueSizeInGBs, other.uniqueSizeInGBs) + && java.util.Objects.equals( + this.timeRetentionExpiresAt, other.timeRetentionExpiresAt) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals( + this.isPreventDeletionEnabled, other.isPreventDeletionEnabled) + && java.util.Objects.equals( + this.isRetentionLockEnabled, other.isRetentionLockEnabled) + && java.util.Objects.equals( + this.isIndefiniteRetentionEnabled, other.isIndefiniteRetentionEnabled) + && java.util.Objects.equals(this.volumeGroupBackupId, other.volumeGroupBackupId) && super.equals(other); } @@ -1104,6 +1330,34 @@ public int hashCode() { result = (result * PRIME) + (this.uniqueSizeInGBs == null ? 43 : this.uniqueSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.timeRetentionExpiresAt == null + ? 43 + : this.timeRetentionExpiresAt.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = + (result * PRIME) + + (this.isPreventDeletionEnabled == null + ? 43 + : this.isPreventDeletionEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRetentionLockEnabled == null + ? 43 + : this.isRetentionLockEnabled.hashCode()); + result = + (result * PRIME) + + (this.isIndefiniteRetentionEnabled == null + ? 43 + : this.isIndefiniteRetentionEnabled.hashCode()); + result = + (result * PRIME) + + (this.volumeGroupBackupId == null + ? 43 + : this.volumeGroupBackupId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreateIpv6sItem.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreateIpv6sItem.java index 98a1c08bafc..b18b37c71e4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreateIpv6sItem.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkCreateIpv6sItem.java @@ -29,6 +29,7 @@ public final class BulkCreateIpv6sItem extends com.oracle.bmc.http.internal.Expl "lifetime", "routeTableId", "ipv6SubnetCidr", + "hostname", "cidrPrefixLength" }) public BulkCreateIpv6sItem( @@ -39,6 +40,7 @@ public BulkCreateIpv6sItem( Lifetime lifetime, String routeTableId, String ipv6SubnetCidr, + String hostname, Integer cidrPrefixLength) { super(); this.definedTags = definedTags; @@ -48,6 +50,7 @@ public BulkCreateIpv6sItem( this.lifetime = lifetime; this.routeTableId = routeTableId; this.ipv6SubnetCidr = ipv6SubnetCidr; + this.hostname = hostname; this.cidrPrefixLength = cidrPrefixLength; } @@ -212,6 +215,24 @@ public Builder ipv6SubnetCidr(String ipv6SubnetCidr) { this.__explicitlySet__.add("ipv6SubnetCidr"); return this; } + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private String hostname; + + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + * @param hostname the value to set + * @return this builder + **/ + public Builder hostname(String hostname) { + this.hostname = hostname; + this.__explicitlySet__.add("hostname"); + return this; + } /** * Length of the CIDR range. Optional field to specify a flexible CIDR. **/ @@ -242,6 +263,7 @@ public BulkCreateIpv6sItem build() { this.lifetime, this.routeTableId, this.ipv6SubnetCidr, + this.hostname, this.cidrPrefixLength); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -272,6 +294,9 @@ public Builder copy(BulkCreateIpv6sItem model) { if (model.wasPropertyExplicitlySet("ipv6SubnetCidr")) { this.ipv6SubnetCidr(model.getIpv6SubnetCidr()); } + if (model.wasPropertyExplicitlySet("hostname")) { + this.hostname(model.getHostname()); + } if (model.wasPropertyExplicitlySet("cidrPrefixLength")) { this.cidrPrefixLength(model.getCidrPrefixLength()); } @@ -473,6 +498,22 @@ public String getIpv6SubnetCidr() { return ipv6SubnetCidr; } + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private final String hostname; + + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + * @return the value + **/ + public String getHostname() { + return hostname; + } + /** * Length of the CIDR range. Optional field to specify a flexible CIDR. **/ @@ -508,6 +549,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifetime=").append(String.valueOf(this.lifetime)); sb.append(", routeTableId=").append(String.valueOf(this.routeTableId)); sb.append(", ipv6SubnetCidr=").append(String.valueOf(this.ipv6SubnetCidr)); + sb.append(", hostname=").append(String.valueOf(this.hostname)); sb.append(", cidrPrefixLength=").append(String.valueOf(this.cidrPrefixLength)); sb.append(")"); return sb.toString(); @@ -530,6 +572,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifetime, other.lifetime) && java.util.Objects.equals(this.routeTableId, other.routeTableId) && java.util.Objects.equals(this.ipv6SubnetCidr, other.ipv6SubnetCidr) + && java.util.Objects.equals(this.hostname, other.hostname) && java.util.Objects.equals(this.cidrPrefixLength, other.cidrPrefixLength) && super.equals(other); } @@ -547,6 +590,7 @@ public int hashCode() { result = (result * PRIME) + (this.ipv6SubnetCidr == null ? 43 : this.ipv6SubnetCidr.hashCode()); + result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); result = (result * PRIME) + (this.cidrPrefixLength == null ? 43 : this.cidrPrefixLength.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdateIpv6sItem.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdateIpv6sItem.java index 14ecd7c5c4f..dff9132044d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdateIpv6sItem.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkUpdateIpv6sItem.java @@ -27,7 +27,8 @@ public final class BulkUpdateIpv6sItem extends com.oracle.bmc.http.internal.Expl "freeformTags", "ipv6Id", "lifetime", - "routeTableId" + "routeTableId", + "hostname" }) public BulkUpdateIpv6sItem( java.util.Map> definedTags, @@ -35,7 +36,8 @@ public BulkUpdateIpv6sItem( java.util.Map freeformTags, String ipv6Id, Lifetime lifetime, - String routeTableId) { + String routeTableId, + String hostname) { super(); this.definedTags = definedTags; this.displayName = displayName; @@ -43,6 +45,7 @@ public BulkUpdateIpv6sItem( this.ipv6Id = ipv6Id; this.lifetime = lifetime; this.routeTableId = routeTableId; + this.hostname = hostname; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -178,6 +181,24 @@ public Builder routeTableId(String routeTableId) { this.__explicitlySet__.add("routeTableId"); return this; } + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private String hostname; + + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + * @param hostname the value to set + * @return this builder + **/ + public Builder hostname(String hostname) { + this.hostname = hostname; + this.__explicitlySet__.add("hostname"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -190,7 +211,8 @@ public BulkUpdateIpv6sItem build() { this.freeformTags, this.ipv6Id, this.lifetime, - this.routeTableId); + this.routeTableId, + this.hostname); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -217,6 +239,9 @@ public Builder copy(BulkUpdateIpv6sItem model) { if (model.wasPropertyExplicitlySet("routeTableId")) { this.routeTableId(model.getRouteTableId()); } + if (model.wasPropertyExplicitlySet("hostname")) { + this.hostname(model.getHostname()); + } return this; } } @@ -389,6 +414,22 @@ public String getRouteTableId() { return routeTableId; } + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private final String hostname; + + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + * @return the value + **/ + public String getHostname() { + return hostname; + } + @Override public String toString() { return this.toString(true); @@ -409,6 +450,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", ipv6Id=").append(String.valueOf(this.ipv6Id)); sb.append(", lifetime=").append(String.valueOf(this.lifetime)); sb.append(", routeTableId=").append(String.valueOf(this.routeTableId)); + sb.append(", hostname=").append(String.valueOf(this.hostname)); sb.append(")"); return sb.toString(); } @@ -429,6 +471,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.ipv6Id, other.ipv6Id) && java.util.Objects.equals(this.lifetime, other.lifetime) && java.util.Objects.equals(this.routeTableId, other.routeTableId) + && java.util.Objects.equals(this.hostname, other.hostname) && super.equals(other); } @@ -442,6 +485,7 @@ public int hashCode() { result = (result * PRIME) + (this.ipv6Id == null ? 43 : this.ipv6Id.hashCode()); result = (result * PRIME) + (this.lifetime == null ? 43 : this.lifetime.hashCode()); result = (result * PRIME) + (this.routeTableId == null ? 43 : this.routeTableId.hashCode()); + result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeCluster.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeCluster.java index 604c286ebed..50854569a5d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeCluster.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeCluster.java @@ -5,17 +5,13 @@ package com.oracle.bmc.core.model; /** - * The data for creating a [compute cluster](https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). A compute cluster - * is an empty remote direct memory access (RDMA) network group + * The data for creating a [compute cluster](https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). *

- * After the compute cluster is created, you can use the compute cluster's OCID with the - * {@link #launchInstance(LaunchInstanceRequest) launchInstance} operation to create instances in the compute cluster. - * The instances must be created in the same compartment and availability domain as the cluster. + * After the compute cluster is created, you can use the compute cluster's OCID to create Instance, GPU Memory + * Cluster or Instance Pool resources within the compute cluster. These resources must be created in the same + * compartment and availability domain as the cluster. *

- * Use compute clusters when you want to manage instances in the cluster individually in the RDMA network group. - *

- * For details about creating a cluster network that uses instance pools to manage groups of identical instances, - * see {@link #createClusterNetworkDetails(CreateClusterNetworkDetailsRequest) createClusterNetworkDetails}. + * Use {@code COMPUTE_CLUSTER} type when using placementConstraintDetails. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -36,9 +32,11 @@ public final class ComputeCluster extends com.oracle.bmc.http.internal.Explicitl "displayName", "definedTags", "freeformTags", + "placementConstraintDetails", "id", "lifecycleState", - "timeCreated" + "timeCreated", + "timeUpdated" }) public ComputeCluster( String availabilityDomain, @@ -46,18 +44,22 @@ public ComputeCluster( String displayName, java.util.Map> definedTags, java.util.Map freeformTags, + PlacementConstraintDetails placementConstraintDetails, String id, LifecycleState lifecycleState, - java.util.Date timeCreated) { + java.util.Date timeCreated, + java.util.Date timeUpdated) { super(); this.availabilityDomain = availabilityDomain; this.compartmentId = compartmentId; this.displayName = displayName; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.placementConstraintDetails = placementConstraintDetails; this.id = id; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -169,6 +171,16 @@ public Builder freeformTags(java.util.Map freeformTags) { this.__explicitlySet__.add("freeformTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("placementConstraintDetails") + private PlacementConstraintDetails placementConstraintDetails; + + public Builder placementConstraintDetails( + PlacementConstraintDetails placementConstraintDetails) { + this.placementConstraintDetails = placementConstraintDetails; + this.__explicitlySet__.add("placementConstraintDetails"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. **/ @@ -225,6 +237,30 @@ public Builder timeCreated(java.util.Date timeCreated) { this.__explicitlySet__.add("timeCreated"); return this; } + /** + * The date and time the compute cluster was updated, + * in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the compute cluster was updated, + * in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -237,9 +273,11 @@ public ComputeCluster build() { this.displayName, this.definedTags, this.freeformTags, + this.placementConstraintDetails, this.id, this.lifecycleState, - this.timeCreated); + this.timeCreated, + this.timeUpdated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -263,6 +301,9 @@ public Builder copy(ComputeCluster model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("placementConstraintDetails")) { + this.placementConstraintDetails(model.getPlacementConstraintDetails()); + } if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } @@ -272,6 +313,9 @@ public Builder copy(ComputeCluster model) { if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } return this; } } @@ -383,6 +427,13 @@ public java.util.Map getFreeformTags() { return freeformTags; } + @com.fasterxml.jackson.annotation.JsonProperty("placementConstraintDetails") + private final PlacementConstraintDetails placementConstraintDetails; + + public PlacementConstraintDetails getPlacementConstraintDetails() { + return placementConstraintDetails; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. **/ @@ -481,6 +532,28 @@ public java.util.Date getTimeCreated() { return timeCreated; } + /** + * The date and time the compute cluster was updated, + * in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the compute cluster was updated, + * in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + @Override public String toString() { return this.toString(true); @@ -500,9 +573,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", placementConstraintDetails=") + .append(String.valueOf(this.placementConstraintDetails)); sb.append(", id=").append(String.valueOf(this.id)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(")"); return sb.toString(); } @@ -522,9 +598,12 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals( + this.placementConstraintDetails, other.placementConstraintDetails) && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && super.equals(other); } @@ -543,11 +622,17 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.placementConstraintDetails == null + ? 43 + : this.placementConstraintDetails.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeClusterLogicalPlacementConstraint.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeClusterLogicalPlacementConstraint.java new file mode 100644 index 00000000000..2acda5bace7 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeClusterLogicalPlacementConstraint.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.model; + +/** + * The logical placement strategy to apply for compute cluster placement. + * Allowed values are {@code SINGLE_TIER}, {@code SINGLE_BLOCK}, and {@code PACKED_DISTRIBUTION_MULTI_BLOCK}. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public enum ComputeClusterLogicalPlacementConstraint { + SingleTier("SINGLE_TIER"), + SingleBlock("SINGLE_BLOCK"), + PackedDistributionMultiBlock("PACKED_DISTRIBUTION_MULTI_BLOCK"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ComputeClusterLogicalPlacementConstraint.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComputeClusterLogicalPlacementConstraint v : + ComputeClusterLogicalPlacementConstraint.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComputeClusterLogicalPlacementConstraint(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComputeClusterLogicalPlacementConstraint create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComputeClusterLogicalPlacementConstraint', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeClusterPlacementConstraintDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeClusterPlacementConstraintDetails.java new file mode 100644 index 00000000000..64a4ac50c0e --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeClusterPlacementConstraintDetails.java @@ -0,0 +1,343 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.model; + +/** + * The details for providing placement constraints for a compute cluster. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ComputeClusterPlacementConstraintDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ComputeClusterPlacementConstraintDetails extends PlacementConstraintDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HPC island for the compute cluster. + *

+ * This field cannot be updated after creation of the compute cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hpcIslandId") + private String hpcIslandId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HPC island for the compute cluster. + *

+ * This field cannot be updated after creation of the compute cluster. + * + * @param hpcIslandId the value to set + * @return this builder + **/ + public Builder hpcIslandId(String hpcIslandId) { + this.hpcIslandId = hpcIslandId; + this.__explicitlySet__.add("hpcIslandId"); + return this; + } + /** + * The list of target network block OCIDs to constrain placement. + *

+ * If {@code targetNetworkBlockIds} is provided, the {@code hpcIslandId} must be set on the compute cluster, + * and the provided network blocks must belong to that same HPC island. + *

+ * The ordering of the array will be preserved. Ensure that all items in the array are unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetNetworkBlockIds") + private java.util.List targetNetworkBlockIds; + + /** + * The list of target network block OCIDs to constrain placement. + *

+ * If {@code targetNetworkBlockIds} is provided, the {@code hpcIslandId} must be set on the compute cluster, + * and the provided network blocks must belong to that same HPC island. + *

+ * The ordering of the array will be preserved. Ensure that all items in the array are unique. + * + * @param targetNetworkBlockIds the value to set + * @return this builder + **/ + public Builder targetNetworkBlockIds(java.util.List targetNetworkBlockIds) { + this.targetNetworkBlockIds = targetNetworkBlockIds; + this.__explicitlySet__.add("targetNetworkBlockIds"); + return this; + } + /** + * The list of target GPU memory fabric OCIDs to constrain placement. + *

+ * If GMFs are passed in, the {@code hpcIslandId} must be set on the compute cluster, and + * the provided GMFs must belong to that same HPC island. + *

+ * The ordering of the array will be preserved. Ensure that all items in the array are unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetMemoryFabricIds") + private java.util.List targetMemoryFabricIds; + + /** + * The list of target GPU memory fabric OCIDs to constrain placement. + *

+ * If GMFs are passed in, the {@code hpcIslandId} must be set on the compute cluster, and + * the provided GMFs must belong to that same HPC island. + *

+ * The ordering of the array will be preserved. Ensure that all items in the array are unique. + * + * @param targetMemoryFabricIds the value to set + * @return this builder + **/ + public Builder targetMemoryFabricIds(java.util.List targetMemoryFabricIds) { + this.targetMemoryFabricIds = targetMemoryFabricIds; + this.__explicitlySet__.add("targetMemoryFabricIds"); + return this; + } + /** + * The logical placement strategy to apply. + * Allowed values are {@code SINGLE_TIER}, {@code SINGLE_BLOCK}, and {@code PACKED_DISTRIBUTION_MULTI_BLOCK}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logicalPlacementConstraint") + private ComputeClusterLogicalPlacementConstraint logicalPlacementConstraint; + + /** + * The logical placement strategy to apply. + * Allowed values are {@code SINGLE_TIER}, {@code SINGLE_BLOCK}, and {@code PACKED_DISTRIBUTION_MULTI_BLOCK}. + * + * @param logicalPlacementConstraint the value to set + * @return this builder + **/ + public Builder logicalPlacementConstraint( + ComputeClusterLogicalPlacementConstraint logicalPlacementConstraint) { + this.logicalPlacementConstraint = logicalPlacementConstraint; + this.__explicitlySet__.add("logicalPlacementConstraint"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComputeClusterPlacementConstraintDetails build() { + ComputeClusterPlacementConstraintDetails model = + new ComputeClusterPlacementConstraintDetails( + this.hpcIslandId, + this.targetNetworkBlockIds, + this.targetMemoryFabricIds, + this.logicalPlacementConstraint); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComputeClusterPlacementConstraintDetails model) { + if (model.wasPropertyExplicitlySet("hpcIslandId")) { + this.hpcIslandId(model.getHpcIslandId()); + } + if (model.wasPropertyExplicitlySet("targetNetworkBlockIds")) { + this.targetNetworkBlockIds(model.getTargetNetworkBlockIds()); + } + if (model.wasPropertyExplicitlySet("targetMemoryFabricIds")) { + this.targetMemoryFabricIds(model.getTargetMemoryFabricIds()); + } + if (model.wasPropertyExplicitlySet("logicalPlacementConstraint")) { + this.logicalPlacementConstraint(model.getLogicalPlacementConstraint()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ComputeClusterPlacementConstraintDetails( + String hpcIslandId, + java.util.List targetNetworkBlockIds, + java.util.List targetMemoryFabricIds, + ComputeClusterLogicalPlacementConstraint logicalPlacementConstraint) { + super(); + this.hpcIslandId = hpcIslandId; + this.targetNetworkBlockIds = targetNetworkBlockIds; + this.targetMemoryFabricIds = targetMemoryFabricIds; + this.logicalPlacementConstraint = logicalPlacementConstraint; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HPC island for the compute cluster. + *

+ * This field cannot be updated after creation of the compute cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hpcIslandId") + private final String hpcIslandId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HPC island for the compute cluster. + *

+ * This field cannot be updated after creation of the compute cluster. + * + * @return the value + **/ + public String getHpcIslandId() { + return hpcIslandId; + } + + /** + * The list of target network block OCIDs to constrain placement. + *

+ * If {@code targetNetworkBlockIds} is provided, the {@code hpcIslandId} must be set on the compute cluster, + * and the provided network blocks must belong to that same HPC island. + *

+ * The ordering of the array will be preserved. Ensure that all items in the array are unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetNetworkBlockIds") + private final java.util.List targetNetworkBlockIds; + + /** + * The list of target network block OCIDs to constrain placement. + *

+ * If {@code targetNetworkBlockIds} is provided, the {@code hpcIslandId} must be set on the compute cluster, + * and the provided network blocks must belong to that same HPC island. + *

+ * The ordering of the array will be preserved. Ensure that all items in the array are unique. + * + * @return the value + **/ + public java.util.List getTargetNetworkBlockIds() { + return targetNetworkBlockIds; + } + + /** + * The list of target GPU memory fabric OCIDs to constrain placement. + *

+ * If GMFs are passed in, the {@code hpcIslandId} must be set on the compute cluster, and + * the provided GMFs must belong to that same HPC island. + *

+ * The ordering of the array will be preserved. Ensure that all items in the array are unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetMemoryFabricIds") + private final java.util.List targetMemoryFabricIds; + + /** + * The list of target GPU memory fabric OCIDs to constrain placement. + *

+ * If GMFs are passed in, the {@code hpcIslandId} must be set on the compute cluster, and + * the provided GMFs must belong to that same HPC island. + *

+ * The ordering of the array will be preserved. Ensure that all items in the array are unique. + * + * @return the value + **/ + public java.util.List getTargetMemoryFabricIds() { + return targetMemoryFabricIds; + } + + /** + * The logical placement strategy to apply. + * Allowed values are {@code SINGLE_TIER}, {@code SINGLE_BLOCK}, and {@code PACKED_DISTRIBUTION_MULTI_BLOCK}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logicalPlacementConstraint") + private final ComputeClusterLogicalPlacementConstraint logicalPlacementConstraint; + + /** + * The logical placement strategy to apply. + * Allowed values are {@code SINGLE_TIER}, {@code SINGLE_BLOCK}, and {@code PACKED_DISTRIBUTION_MULTI_BLOCK}. + * + * @return the value + **/ + public ComputeClusterLogicalPlacementConstraint getLogicalPlacementConstraint() { + return logicalPlacementConstraint; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComputeClusterPlacementConstraintDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", hpcIslandId=").append(String.valueOf(this.hpcIslandId)); + sb.append(", targetNetworkBlockIds=").append(String.valueOf(this.targetNetworkBlockIds)); + sb.append(", targetMemoryFabricIds=").append(String.valueOf(this.targetMemoryFabricIds)); + sb.append(", logicalPlacementConstraint=") + .append(String.valueOf(this.logicalPlacementConstraint)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComputeClusterPlacementConstraintDetails)) { + return false; + } + + ComputeClusterPlacementConstraintDetails other = + (ComputeClusterPlacementConstraintDetails) o; + return java.util.Objects.equals(this.hpcIslandId, other.hpcIslandId) + && java.util.Objects.equals(this.targetNetworkBlockIds, other.targetNetworkBlockIds) + && java.util.Objects.equals(this.targetMemoryFabricIds, other.targetMemoryFabricIds) + && java.util.Objects.equals( + this.logicalPlacementConstraint, other.logicalPlacementConstraint) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.hpcIslandId == null ? 43 : this.hpcIslandId.hashCode()); + result = + (result * PRIME) + + (this.targetNetworkBlockIds == null + ? 43 + : this.targetNetworkBlockIds.hashCode()); + result = + (result * PRIME) + + (this.targetMemoryFabricIds == null + ? 43 + : this.targetMemoryFabricIds.hashCode()); + result = + (result * PRIME) + + (this.logicalPlacementConstraint == null + ? 43 + : this.logicalPlacementConstraint.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterSummary.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterSummary.java index 52187ae4c76..44c5025b1ff 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterSummary.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryClusterSummary.java @@ -26,6 +26,8 @@ public final class ComputeGpuMemoryClusterSummary "id", "compartmentId", "availabilityDomain", + "gpuMemoryFabricId", + "size", "lifecycleState", "timeCreated", "definedTags", @@ -37,6 +39,8 @@ public ComputeGpuMemoryClusterSummary( String id, String compartmentId, String availabilityDomain, + String gpuMemoryFabricId, + Long size, ComputeGpuMemoryCluster.LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Map> definedTags, @@ -47,6 +51,8 @@ public ComputeGpuMemoryClusterSummary( this.id = id; this.compartmentId = compartmentId; this.availabilityDomain = availabilityDomain; + this.gpuMemoryFabricId = gpuMemoryFabricId; + this.size = size; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; this.definedTags = definedTags; @@ -117,6 +123,42 @@ public Builder availabilityDomain(String availabilityDomain) { this.__explicitlySet__.add("availabilityDomain"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the GPU memory fabric. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gpuMemoryFabricId") + private String gpuMemoryFabricId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the GPU memory fabric. + * + * @param gpuMemoryFabricId the value to set + * @return this builder + **/ + public Builder gpuMemoryFabricId(String gpuMemoryFabricId) { + this.gpuMemoryFabricId = gpuMemoryFabricId; + this.__explicitlySet__.add("gpuMemoryFabricId"); + return this; + } + /** + * The size represents the total number of instances in the GPU Memory Cluster, including both running instances and those still in the process of launching. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("size") + private Long size; + + /** + * The size represents the total number of instances in the GPU Memory Cluster, including both running instances and those still in the process of launching. + * + * @param size the value to set + * @return this builder + **/ + public Builder size(Long size) { + this.size = size; + this.__explicitlySet__.add("size"); + return this; + } /** * The current state of the compute GPU Memory Cluster. **/ @@ -254,6 +296,8 @@ public ComputeGpuMemoryClusterSummary build() { this.id, this.compartmentId, this.availabilityDomain, + this.gpuMemoryFabricId, + this.size, this.lifecycleState, this.timeCreated, this.definedTags, @@ -277,6 +321,12 @@ public Builder copy(ComputeGpuMemoryClusterSummary model) { if (model.wasPropertyExplicitlySet("availabilityDomain")) { this.availabilityDomain(model.getAvailabilityDomain()); } + if (model.wasPropertyExplicitlySet("gpuMemoryFabricId")) { + this.gpuMemoryFabricId(model.getGpuMemoryFabricId()); + } + if (model.wasPropertyExplicitlySet("size")) { + this.size(model.getSize()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -364,6 +414,38 @@ public String getAvailabilityDomain() { return availabilityDomain; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the GPU memory fabric. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gpuMemoryFabricId") + private final String gpuMemoryFabricId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the GPU memory fabric. + * + * @return the value + **/ + public String getGpuMemoryFabricId() { + return gpuMemoryFabricId; + } + + /** + * The size represents the total number of instances in the GPU Memory Cluster, including both running instances and those still in the process of launching. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("size") + private final Long size; + + /** + * The size represents the total number of instances in the GPU Memory Cluster, including both running instances and those still in the process of launching. + * + * @return the value + **/ + public Long getSize() { + return size; + } + /** * The current state of the compute GPU Memory Cluster. **/ @@ -495,6 +577,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", gpuMemoryFabricId=").append(String.valueOf(this.gpuMemoryFabricId)); + sb.append(", size=").append(String.valueOf(this.size)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -518,6 +602,8 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.gpuMemoryFabricId, other.gpuMemoryFabricId) + && java.util.Objects.equals(this.size, other.size) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -540,6 +626,10 @@ public int hashCode() { + (this.availabilityDomain == null ? 43 : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.gpuMemoryFabricId == null ? 43 : this.gpuMemoryFabricId.hashCode()); + result = (result * PRIME) + (this.size == null ? 43 : this.size.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryFabric.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryFabric.java index 0fa5755604e..c56027bcb1a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryFabric.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeGpuMemoryFabric.java @@ -31,6 +31,7 @@ public final class ComputeGpuMemoryFabric "computeLocalBlockId", "lifecycleState", "fabricHealth", + "computeGpuMemoryClusters", "additionalData", "healthyHostCount", "availableHostCount", @@ -56,6 +57,7 @@ public ComputeGpuMemoryFabric( String computeLocalBlockId, LifecycleState lifecycleState, FabricHealth fabricHealth, + java.util.List computeGpuMemoryClusters, java.util.Map additionalData, Long healthyHostCount, Long availableHostCount, @@ -80,6 +82,7 @@ public ComputeGpuMemoryFabric( this.computeLocalBlockId = computeLocalBlockId; this.lifecycleState = lifecycleState; this.fabricHealth = fabricHealth; + this.computeGpuMemoryClusters = computeGpuMemoryClusters; this.additionalData = additionalData; this.healthyHostCount = healthyHostCount; this.availableHostCount = availableHostCount; @@ -228,6 +231,22 @@ public Builder fabricHealth(FabricHealth fabricHealth) { this.__explicitlySet__.add("fabricHealth"); return this; } + /** + * List of GPU memory clusters within this GPU memory fabric. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeGpuMemoryClusters") + private java.util.List computeGpuMemoryClusters; + + /** + * List of GPU memory clusters within this GPU memory fabric. + * @param computeGpuMemoryClusters the value to set + * @return this builder + **/ + public Builder computeGpuMemoryClusters(java.util.List computeGpuMemoryClusters) { + this.computeGpuMemoryClusters = computeGpuMemoryClusters; + this.__explicitlySet__.add("computeGpuMemoryClusters"); + return this; + } /** * Additional data that can be exposed to the customer. Right now it will include the switch tray ids. * @@ -539,6 +558,7 @@ public ComputeGpuMemoryFabric build() { this.computeLocalBlockId, this.lifecycleState, this.fabricHealth, + this.computeGpuMemoryClusters, this.additionalData, this.healthyHostCount, this.availableHostCount, @@ -584,6 +604,9 @@ public Builder copy(ComputeGpuMemoryFabric model) { if (model.wasPropertyExplicitlySet("fabricHealth")) { this.fabricHealth(model.getFabricHealth()); } + if (model.wasPropertyExplicitlySet("computeGpuMemoryClusters")) { + this.computeGpuMemoryClusters(model.getComputeGpuMemoryClusters()); + } if (model.wasPropertyExplicitlySet("additionalData")) { this.additionalData(model.getAdditionalData()); } @@ -862,6 +885,20 @@ public FabricHealth getFabricHealth() { return fabricHealth; } + /** + * List of GPU memory clusters within this GPU memory fabric. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeGpuMemoryClusters") + private final java.util.List computeGpuMemoryClusters; + + /** + * List of GPU memory clusters within this GPU memory fabric. + * @return the value + **/ + public java.util.List getComputeGpuMemoryClusters() { + return computeGpuMemoryClusters; + } + /** * Additional data that can be exposed to the customer. Right now it will include the switch tray ids. * @@ -1196,6 +1233,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", computeLocalBlockId=").append(String.valueOf(this.computeLocalBlockId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", fabricHealth=").append(String.valueOf(this.fabricHealth)); + sb.append(", computeGpuMemoryClusters=") + .append(String.valueOf(this.computeGpuMemoryClusters)); sb.append(", additionalData=").append(String.valueOf(this.additionalData)); sb.append(", healthyHostCount=").append(String.valueOf(this.healthyHostCount)); sb.append(", availableHostCount=").append(String.valueOf(this.availableHostCount)); @@ -1235,6 +1274,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.computeLocalBlockId, other.computeLocalBlockId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.fabricHealth, other.fabricHealth) + && java.util.Objects.equals( + this.computeGpuMemoryClusters, other.computeGpuMemoryClusters) && java.util.Objects.equals(this.additionalData, other.additionalData) && java.util.Objects.equals(this.healthyHostCount, other.healthyHostCount) && java.util.Objects.equals(this.availableHostCount, other.availableHostCount) @@ -1284,6 +1325,11 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.fabricHealth == null ? 43 : this.fabricHealth.hashCode()); + result = + (result * PRIME) + + (this.computeGpuMemoryClusters == null + ? 43 + : this.computeGpuMemoryClusters.hashCode()); result = (result * PRIME) + (this.additionalData == null ? 43 : this.additionalData.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateBootVolumeBackupDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateBootVolumeBackupDetails.java index 604c2fe3926..cdcf5f19597 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateBootVolumeBackupDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateBootVolumeBackupDetails.java @@ -28,7 +28,11 @@ public final class CreateBootVolumeBackupDetails "displayName", "freeformTags", "type", - "kmsKeyId" + "kmsKeyId", + "retentionPeriod", + "isPreventDeletionEnabled", + "isRetentionLockEnabled", + "isIndefiniteRetentionEnabled" }) public CreateBootVolumeBackupDetails( String bootVolumeId, @@ -36,7 +40,11 @@ public CreateBootVolumeBackupDetails( String displayName, java.util.Map freeformTags, Type type, - String kmsKeyId) { + String kmsKeyId, + RetentionDuration retentionPeriod, + Boolean isPreventDeletionEnabled, + Boolean isRetentionLockEnabled, + Boolean isIndefiniteRetentionEnabled) { super(); this.bootVolumeId = bootVolumeId; this.definedTags = definedTags; @@ -44,6 +52,10 @@ public CreateBootVolumeBackupDetails( this.freeformTags = freeformTags; this.type = type; this.kmsKeyId = kmsKeyId; + this.retentionPeriod = retentionPeriod; + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -174,6 +186,63 @@ public Builder kmsKeyId(String kmsKeyId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private RetentionDuration retentionPeriod; + + public Builder retentionPeriod(RetentionDuration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @param isPreventDeletionEnabled the value to set + * @return this builder + **/ + public Builder isPreventDeletionEnabled(Boolean isPreventDeletionEnabled) { + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.__explicitlySet__.add("isPreventDeletionEnabled"); + return this; + } + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @param isRetentionLockEnabled the value to set + * @return this builder + **/ + public Builder isRetentionLockEnabled(Boolean isRetentionLockEnabled) { + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.__explicitlySet__.add("isRetentionLockEnabled"); + return this; + } + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @param isIndefiniteRetentionEnabled the value to set + * @return this builder + **/ + public Builder isIndefiniteRetentionEnabled(Boolean isIndefiniteRetentionEnabled) { + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; + this.__explicitlySet__.add("isIndefiniteRetentionEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -185,7 +254,11 @@ public CreateBootVolumeBackupDetails build() { this.displayName, this.freeformTags, this.type, - this.kmsKeyId); + this.kmsKeyId, + this.retentionPeriod, + this.isPreventDeletionEnabled, + this.isRetentionLockEnabled, + this.isIndefiniteRetentionEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -212,6 +285,18 @@ public Builder copy(CreateBootVolumeBackupDetails model) { if (model.wasPropertyExplicitlySet("kmsKeyId")) { this.kmsKeyId(model.getKmsKeyId()); } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("isPreventDeletionEnabled")) { + this.isPreventDeletionEnabled(model.getIsPreventDeletionEnabled()); + } + if (model.wasPropertyExplicitlySet("isRetentionLockEnabled")) { + this.isRetentionLockEnabled(model.getIsRetentionLockEnabled()); + } + if (model.wasPropertyExplicitlySet("isIndefiniteRetentionEnabled")) { + this.isIndefiniteRetentionEnabled(model.getIsIndefiniteRetentionEnabled()); + } return this; } } @@ -374,6 +459,55 @@ public String getKmsKeyId() { return kmsKeyId; } + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final RetentionDuration retentionPeriod; + + public RetentionDuration getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private final Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @return the value + **/ + public Boolean getIsPreventDeletionEnabled() { + return isPreventDeletionEnabled; + } + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private final Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @return the value + **/ + public Boolean getIsRetentionLockEnabled() { + return isRetentionLockEnabled; + } + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private final Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @return the value + **/ + public Boolean getIsIndefiniteRetentionEnabled() { + return isIndefiniteRetentionEnabled; + } + @Override public String toString() { return this.toString(true); @@ -394,6 +528,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", type=").append(String.valueOf(this.type)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", isPreventDeletionEnabled=") + .append(String.valueOf(this.isPreventDeletionEnabled)); + sb.append(", isRetentionLockEnabled=").append(String.valueOf(this.isRetentionLockEnabled)); + sb.append(", isIndefiniteRetentionEnabled=") + .append(String.valueOf(this.isIndefiniteRetentionEnabled)); sb.append(")"); return sb.toString(); } @@ -414,6 +554,13 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals( + this.isPreventDeletionEnabled, other.isPreventDeletionEnabled) + && java.util.Objects.equals( + this.isRetentionLockEnabled, other.isRetentionLockEnabled) + && java.util.Objects.equals( + this.isIndefiniteRetentionEnabled, other.isIndefiniteRetentionEnabled) && super.equals(other); } @@ -427,6 +574,24 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = + (result * PRIME) + + (this.isPreventDeletionEnabled == null + ? 43 + : this.isPreventDeletionEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRetentionLockEnabled == null + ? 43 + : this.isRetentionLockEnabled.hashCode()); + result = + (result * PRIME) + + (this.isIndefiniteRetentionEnabled == null + ? 43 + : this.isIndefiniteRetentionEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeClusterDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeClusterDetails.java index 3e3934b2fc1..5441ba701c6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeClusterDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateComputeClusterDetails.java @@ -5,17 +5,13 @@ package com.oracle.bmc.core.model; /** - * The data for creating a [compute cluster](https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). A compute cluster - * is an empty remote direct memory access (RDMA) network group + * The data for creating a [compute cluster](https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). *

- * After the compute cluster is created, you can use the compute cluster's OCID with the - * {@link #launchInstance(LaunchInstanceRequest) launchInstance} operation to create instances in the compute cluster. - * The instances must be created in the same compartment and availability domain as the cluster. + * After the compute cluster is created, you can use the compute cluster's OCID to create Instance, GPU Memory + * Cluster or Instance Pool resources within the compute cluster. These resources must be created in the same + * compartment and availability domain as the cluster. *

- * Use compute clusters when you want to manage instances in the cluster individually in the RDMA network group. - *

- * For details about creating a cluster network that uses instance pools to manage groups of identical instances, - * see {@link #createClusterNetworkDetails(CreateClusterNetworkDetailsRequest) createClusterNetworkDetails}. + * Use {@code COMPUTE_CLUSTER} type when using placementConstraintDetails. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -38,20 +34,23 @@ public final class CreateComputeClusterDetails "compartmentId", "displayName", "definedTags", - "freeformTags" + "freeformTags", + "placementConstraintDetails" }) public CreateComputeClusterDetails( String availabilityDomain, String compartmentId, String displayName, java.util.Map> definedTags, - java.util.Map freeformTags) { + java.util.Map freeformTags, + PlacementConstraintDetails placementConstraintDetails) { super(); this.availabilityDomain = availabilityDomain; this.compartmentId = compartmentId; this.displayName = displayName; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.placementConstraintDetails = placementConstraintDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -164,6 +163,16 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("placementConstraintDetails") + private PlacementConstraintDetails placementConstraintDetails; + + public Builder placementConstraintDetails( + PlacementConstraintDetails placementConstraintDetails) { + this.placementConstraintDetails = placementConstraintDetails; + this.__explicitlySet__.add("placementConstraintDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -174,7 +183,8 @@ public CreateComputeClusterDetails build() { this.compartmentId, this.displayName, this.definedTags, - this.freeformTags); + this.freeformTags, + this.placementConstraintDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -198,6 +208,9 @@ public Builder copy(CreateComputeClusterDetails model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("placementConstraintDetails")) { + this.placementConstraintDetails(model.getPlacementConstraintDetails()); + } return this; } } @@ -309,6 +322,13 @@ public java.util.Map getFreeformTags() { return freeformTags; } + @com.fasterxml.jackson.annotation.JsonProperty("placementConstraintDetails") + private final PlacementConstraintDetails placementConstraintDetails; + + public PlacementConstraintDetails getPlacementConstraintDetails() { + return placementConstraintDetails; + } + @Override public String toString() { return this.toString(true); @@ -328,6 +348,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", placementConstraintDetails=") + .append(String.valueOf(this.placementConstraintDetails)); sb.append(")"); return sb.toString(); } @@ -347,6 +369,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals( + this.placementConstraintDetails, other.placementConstraintDetails) && super.equals(other); } @@ -365,6 +389,11 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.placementConstraintDetails == null + ? 43 + : this.placementConstraintDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCrossConnectDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCrossConnectDetails.java index 1351f3feee2..9345b6ea731 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCrossConnectDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCrossConnectDetails.java @@ -34,6 +34,9 @@ public final class CreateCrossConnectDetails "portSpeedShapeName", "customerReferenceName", "macsecProperties", + "isInterfaceHoldTimerEnabled", + "interfaceDownTimerValueInMilliseconds", + "isQosEnabled", "ociPhysicalDeviceName", "interfaceName" }) @@ -49,6 +52,9 @@ public CreateCrossConnectDetails( String portSpeedShapeName, String customerReferenceName, CreateMacsecProperties macsecProperties, + Boolean isInterfaceHoldTimerEnabled, + Integer interfaceDownTimerValueInMilliseconds, + Boolean isQosEnabled, String ociPhysicalDeviceName, String interfaceName) { super(); @@ -63,6 +69,9 @@ public CreateCrossConnectDetails( this.portSpeedShapeName = portSpeedShapeName; this.customerReferenceName = customerReferenceName; this.macsecProperties = macsecProperties; + this.isInterfaceHoldTimerEnabled = isInterfaceHoldTimerEnabled; + this.interfaceDownTimerValueInMilliseconds = interfaceDownTimerValueInMilliseconds; + this.isQosEnabled = isQosEnabled; this.ociPhysicalDeviceName = ociPhysicalDeviceName; this.interfaceName = interfaceName; } @@ -299,6 +308,61 @@ public Builder macsecProperties(CreateMacsecProperties macsecProperties) { this.__explicitlySet__.add("macsecProperties"); return this; } + /** + * The flag to enable or disable the down timer for the interface. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInterfaceHoldTimerEnabled") + private Boolean isInterfaceHoldTimerEnabled; + + /** + * The flag to enable or disable the down timer for the interface. + * @param isInterfaceHoldTimerEnabled the value to set + * @return this builder + **/ + public Builder isInterfaceHoldTimerEnabled(Boolean isInterfaceHoldTimerEnabled) { + this.isInterfaceHoldTimerEnabled = isInterfaceHoldTimerEnabled; + this.__explicitlySet__.add("isInterfaceHoldTimerEnabled"); + return this; + } + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("interfaceDownTimerValueInMilliseconds") + private Integer interfaceDownTimerValueInMilliseconds; + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + * @param interfaceDownTimerValueInMilliseconds the value to set + * @return this builder + **/ + public Builder interfaceDownTimerValueInMilliseconds( + Integer interfaceDownTimerValueInMilliseconds) { + this.interfaceDownTimerValueInMilliseconds = interfaceDownTimerValueInMilliseconds; + this.__explicitlySet__.add("interfaceDownTimerValueInMilliseconds"); + return this; + } + /** + * When true, restricts placement so cross-connects lands only on QoS-capable devices. + * When false (default), placement may use any supported device. If no QoS-capable devices are available + * in the selected location, the request fails. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isQosEnabled") + private Boolean isQosEnabled; + + /** + * When true, restricts placement so cross-connects lands only on QoS-capable devices. + * When false (default), placement may use any supported device. If no QoS-capable devices are available + * in the selected location, the request fails. + * + * @param isQosEnabled the value to set + * @return this builder + **/ + public Builder isQosEnabled(Boolean isQosEnabled) { + this.isQosEnabled = isQosEnabled; + this.__explicitlySet__.add("isQosEnabled"); + return this; + } /** * The name of the FastConnect device where this cross-connect is installed. * @@ -353,6 +417,9 @@ public CreateCrossConnectDetails build() { this.portSpeedShapeName, this.customerReferenceName, this.macsecProperties, + this.isInterfaceHoldTimerEnabled, + this.interfaceDownTimerValueInMilliseconds, + this.isQosEnabled, this.ociPhysicalDeviceName, this.interfaceName); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -398,6 +465,16 @@ public Builder copy(CreateCrossConnectDetails model) { if (model.wasPropertyExplicitlySet("macsecProperties")) { this.macsecProperties(model.getMacsecProperties()); } + if (model.wasPropertyExplicitlySet("isInterfaceHoldTimerEnabled")) { + this.isInterfaceHoldTimerEnabled(model.getIsInterfaceHoldTimerEnabled()); + } + if (model.wasPropertyExplicitlySet("interfaceDownTimerValueInMilliseconds")) { + this.interfaceDownTimerValueInMilliseconds( + model.getInterfaceDownTimerValueInMilliseconds()); + } + if (model.wasPropertyExplicitlySet("isQosEnabled")) { + this.isQosEnabled(model.getIsQosEnabled()); + } if (model.wasPropertyExplicitlySet("ociPhysicalDeviceName")) { this.ociPhysicalDeviceName(model.getOciPhysicalDeviceName()); } @@ -624,6 +701,54 @@ public CreateMacsecProperties getMacsecProperties() { return macsecProperties; } + /** + * The flag to enable or disable the down timer for the interface. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInterfaceHoldTimerEnabled") + private final Boolean isInterfaceHoldTimerEnabled; + + /** + * The flag to enable or disable the down timer for the interface. + * @return the value + **/ + public Boolean getIsInterfaceHoldTimerEnabled() { + return isInterfaceHoldTimerEnabled; + } + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("interfaceDownTimerValueInMilliseconds") + private final Integer interfaceDownTimerValueInMilliseconds; + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + * @return the value + **/ + public Integer getInterfaceDownTimerValueInMilliseconds() { + return interfaceDownTimerValueInMilliseconds; + } + + /** + * When true, restricts placement so cross-connects lands only on QoS-capable devices. + * When false (default), placement may use any supported device. If no QoS-capable devices are available + * in the selected location, the request fails. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isQosEnabled") + private final Boolean isQosEnabled; + + /** + * When true, restricts placement so cross-connects lands only on QoS-capable devices. + * When false (default), placement may use any supported device. If no QoS-capable devices are available + * in the selected location, the request fails. + * + * @return the value + **/ + public Boolean getIsQosEnabled() { + return isQosEnabled; + } + /** * The name of the FastConnect device where this cross-connect is installed. * @@ -683,6 +808,11 @@ public String toString(boolean includeByteArrayContents) { sb.append(", portSpeedShapeName=").append(String.valueOf(this.portSpeedShapeName)); sb.append(", customerReferenceName=").append(String.valueOf(this.customerReferenceName)); sb.append(", macsecProperties=").append(String.valueOf(this.macsecProperties)); + sb.append(", isInterfaceHoldTimerEnabled=") + .append(String.valueOf(this.isInterfaceHoldTimerEnabled)); + sb.append(", interfaceDownTimerValueInMilliseconds=") + .append(String.valueOf(this.interfaceDownTimerValueInMilliseconds)); + sb.append(", isQosEnabled=").append(String.valueOf(this.isQosEnabled)); sb.append(", ociPhysicalDeviceName=").append(String.valueOf(this.ociPhysicalDeviceName)); sb.append(", interfaceName=").append(String.valueOf(this.interfaceName)); sb.append(")"); @@ -714,6 +844,12 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.portSpeedShapeName, other.portSpeedShapeName) && java.util.Objects.equals(this.customerReferenceName, other.customerReferenceName) && java.util.Objects.equals(this.macsecProperties, other.macsecProperties) + && java.util.Objects.equals( + this.isInterfaceHoldTimerEnabled, other.isInterfaceHoldTimerEnabled) + && java.util.Objects.equals( + this.interfaceDownTimerValueInMilliseconds, + other.interfaceDownTimerValueInMilliseconds) + && java.util.Objects.equals(this.isQosEnabled, other.isQosEnabled) && java.util.Objects.equals(this.ociPhysicalDeviceName, other.ociPhysicalDeviceName) && java.util.Objects.equals(this.interfaceName, other.interfaceName) && super.equals(other); @@ -758,6 +894,17 @@ public int hashCode() { result = (result * PRIME) + (this.macsecProperties == null ? 43 : this.macsecProperties.hashCode()); + result = + (result * PRIME) + + (this.isInterfaceHoldTimerEnabled == null + ? 43 + : this.isInterfaceHoldTimerEnabled.hashCode()); + result = + (result * PRIME) + + (this.interfaceDownTimerValueInMilliseconds == null + ? 43 + : this.interfaceDownTimerValueInMilliseconds.hashCode()); + result = (result * PRIME) + (this.isQosEnabled == null ? 43 : this.isQosEnabled.hashCode()); result = (result * PRIME) + (this.ociPhysicalDeviceName == null diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCrossConnectGroupDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCrossConnectGroupDetails.java index d78679933c8..8782c91292d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCrossConnectGroupDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCrossConnectGroupDetails.java @@ -28,7 +28,11 @@ public final class CreateCrossConnectGroupDetails "displayName", "customerReferenceName", "freeformTags", - "macsecProperties" + "macsecProperties", + "minimumLinks", + "isInterfaceHoldTimerEnabled", + "interfaceDownTimerValueInMilliseconds", + "isQosEnabled" }) public CreateCrossConnectGroupDetails( String compartmentId, @@ -36,7 +40,11 @@ public CreateCrossConnectGroupDetails( String displayName, String customerReferenceName, java.util.Map freeformTags, - CreateMacsecProperties macsecProperties) { + CreateMacsecProperties macsecProperties, + Integer minimumLinks, + Boolean isInterfaceHoldTimerEnabled, + Integer interfaceDownTimerValueInMilliseconds, + Boolean isQosEnabled) { super(); this.compartmentId = compartmentId; this.definedTags = definedTags; @@ -44,6 +52,10 @@ public CreateCrossConnectGroupDetails( this.customerReferenceName = customerReferenceName; this.freeformTags = freeformTags; this.macsecProperties = macsecProperties; + this.minimumLinks = minimumLinks; + this.isInterfaceHoldTimerEnabled = isInterfaceHoldTimerEnabled; + this.interfaceDownTimerValueInMilliseconds = interfaceDownTimerValueInMilliseconds; + this.isQosEnabled = isQosEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -162,6 +174,85 @@ public Builder macsecProperties(CreateMacsecProperties macsecProperties) { this.__explicitlySet__.add("macsecProperties"); return this; } + /** + * (Optional) Minimum number of active cross-connects required for the cross-connect group to be considered + * operational. During create cross-connect-group operation this value can only be set to 1 (If not specified, + * this value defaults to 1) and can be edited using the update cross-connect group operation. Value must not + * exceed the total number of cross-connects in the cross-connect group. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minimumLinks") + private Integer minimumLinks; + + /** + * (Optional) Minimum number of active cross-connects required for the cross-connect group to be considered + * operational. During create cross-connect-group operation this value can only be set to 1 (If not specified, + * this value defaults to 1) and can be edited using the update cross-connect group operation. Value must not + * exceed the total number of cross-connects in the cross-connect group. + * + * @param minimumLinks the value to set + * @return this builder + **/ + public Builder minimumLinks(Integer minimumLinks) { + this.minimumLinks = minimumLinks; + this.__explicitlySet__.add("minimumLinks"); + return this; + } + /** + * The flag to enable or disable the down timer for the interface. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInterfaceHoldTimerEnabled") + private Boolean isInterfaceHoldTimerEnabled; + + /** + * The flag to enable or disable the down timer for the interface. + * @param isInterfaceHoldTimerEnabled the value to set + * @return this builder + **/ + public Builder isInterfaceHoldTimerEnabled(Boolean isInterfaceHoldTimerEnabled) { + this.isInterfaceHoldTimerEnabled = isInterfaceHoldTimerEnabled; + this.__explicitlySet__.add("isInterfaceHoldTimerEnabled"); + return this; + } + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("interfaceDownTimerValueInMilliseconds") + private Integer interfaceDownTimerValueInMilliseconds; + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + * @param interfaceDownTimerValueInMilliseconds the value to set + * @return this builder + **/ + public Builder interfaceDownTimerValueInMilliseconds( + Integer interfaceDownTimerValueInMilliseconds) { + this.interfaceDownTimerValueInMilliseconds = interfaceDownTimerValueInMilliseconds; + this.__explicitlySet__.add("interfaceDownTimerValueInMilliseconds"); + return this; + } + /** + * (Optional) When true, restricts placement so cross-connects lands only on QoS-capable devices. + * When false (default), placement may use any supported device. If no QoS-capable devices are available + * in the selected location, the request fails. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isQosEnabled") + private Boolean isQosEnabled; + + /** + * (Optional) When true, restricts placement so cross-connects lands only on QoS-capable devices. + * When false (default), placement may use any supported device. If no QoS-capable devices are available + * in the selected location, the request fails. + * + * @param isQosEnabled the value to set + * @return this builder + **/ + public Builder isQosEnabled(Boolean isQosEnabled) { + this.isQosEnabled = isQosEnabled; + this.__explicitlySet__.add("isQosEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -174,7 +265,11 @@ public CreateCrossConnectGroupDetails build() { this.displayName, this.customerReferenceName, this.freeformTags, - this.macsecProperties); + this.macsecProperties, + this.minimumLinks, + this.isInterfaceHoldTimerEnabled, + this.interfaceDownTimerValueInMilliseconds, + this.isQosEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -201,6 +296,19 @@ public Builder copy(CreateCrossConnectGroupDetails model) { if (model.wasPropertyExplicitlySet("macsecProperties")) { this.macsecProperties(model.getMacsecProperties()); } + if (model.wasPropertyExplicitlySet("minimumLinks")) { + this.minimumLinks(model.getMinimumLinks()); + } + if (model.wasPropertyExplicitlySet("isInterfaceHoldTimerEnabled")) { + this.isInterfaceHoldTimerEnabled(model.getIsInterfaceHoldTimerEnabled()); + } + if (model.wasPropertyExplicitlySet("interfaceDownTimerValueInMilliseconds")) { + this.interfaceDownTimerValueInMilliseconds( + model.getInterfaceDownTimerValueInMilliseconds()); + } + if (model.wasPropertyExplicitlySet("isQosEnabled")) { + this.isQosEnabled(model.getIsQosEnabled()); + } return this; } } @@ -317,6 +425,76 @@ public CreateMacsecProperties getMacsecProperties() { return macsecProperties; } + /** + * (Optional) Minimum number of active cross-connects required for the cross-connect group to be considered + * operational. During create cross-connect-group operation this value can only be set to 1 (If not specified, + * this value defaults to 1) and can be edited using the update cross-connect group operation. Value must not + * exceed the total number of cross-connects in the cross-connect group. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minimumLinks") + private final Integer minimumLinks; + + /** + * (Optional) Minimum number of active cross-connects required for the cross-connect group to be considered + * operational. During create cross-connect-group operation this value can only be set to 1 (If not specified, + * this value defaults to 1) and can be edited using the update cross-connect group operation. Value must not + * exceed the total number of cross-connects in the cross-connect group. + * + * @return the value + **/ + public Integer getMinimumLinks() { + return minimumLinks; + } + + /** + * The flag to enable or disable the down timer for the interface. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInterfaceHoldTimerEnabled") + private final Boolean isInterfaceHoldTimerEnabled; + + /** + * The flag to enable or disable the down timer for the interface. + * @return the value + **/ + public Boolean getIsInterfaceHoldTimerEnabled() { + return isInterfaceHoldTimerEnabled; + } + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("interfaceDownTimerValueInMilliseconds") + private final Integer interfaceDownTimerValueInMilliseconds; + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + * @return the value + **/ + public Integer getInterfaceDownTimerValueInMilliseconds() { + return interfaceDownTimerValueInMilliseconds; + } + + /** + * (Optional) When true, restricts placement so cross-connects lands only on QoS-capable devices. + * When false (default), placement may use any supported device. If no QoS-capable devices are available + * in the selected location, the request fails. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isQosEnabled") + private final Boolean isQosEnabled; + + /** + * (Optional) When true, restricts placement so cross-connects lands only on QoS-capable devices. + * When false (default), placement may use any supported device. If no QoS-capable devices are available + * in the selected location, the request fails. + * + * @return the value + **/ + public Boolean getIsQosEnabled() { + return isQosEnabled; + } + @Override public String toString() { return this.toString(true); @@ -337,6 +515,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", customerReferenceName=").append(String.valueOf(this.customerReferenceName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", macsecProperties=").append(String.valueOf(this.macsecProperties)); + sb.append(", minimumLinks=").append(String.valueOf(this.minimumLinks)); + sb.append(", isInterfaceHoldTimerEnabled=") + .append(String.valueOf(this.isInterfaceHoldTimerEnabled)); + sb.append(", interfaceDownTimerValueInMilliseconds=") + .append(String.valueOf(this.interfaceDownTimerValueInMilliseconds)); + sb.append(", isQosEnabled=").append(String.valueOf(this.isQosEnabled)); sb.append(")"); return sb.toString(); } @@ -357,6 +541,13 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.customerReferenceName, other.customerReferenceName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.macsecProperties, other.macsecProperties) + && java.util.Objects.equals(this.minimumLinks, other.minimumLinks) + && java.util.Objects.equals( + this.isInterfaceHoldTimerEnabled, other.isInterfaceHoldTimerEnabled) + && java.util.Objects.equals( + this.interfaceDownTimerValueInMilliseconds, + other.interfaceDownTimerValueInMilliseconds) + && java.util.Objects.equals(this.isQosEnabled, other.isQosEnabled) && super.equals(other); } @@ -378,6 +569,18 @@ public int hashCode() { result = (result * PRIME) + (this.macsecProperties == null ? 43 : this.macsecProperties.hashCode()); + result = (result * PRIME) + (this.minimumLinks == null ? 43 : this.minimumLinks.hashCode()); + result = + (result * PRIME) + + (this.isInterfaceHoldTimerEnabled == null + ? 43 + : this.isInterfaceHoldTimerEnabled.hashCode()); + result = + (result * PRIME) + + (this.interfaceDownTimerValueInMilliseconds == null + ? 43 + : this.interfaceDownTimerValueInMilliseconds.hashCode()); + result = (result * PRIME) + (this.isQosEnabled == null ? 43 : this.isQosEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDedicatedVmHostDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDedicatedVmHostDetails.java index 3ac775539b3..f1551722cc8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDedicatedVmHostDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDedicatedVmHostDetails.java @@ -33,7 +33,8 @@ public final class CreateDedicatedVmHostDetails "freeformTags", "placementConstraintDetails", "capacityConfig", - "isMemoryEncryptionEnabled" + "isMemoryEncryptionEnabled", + "isBurstable" }) public CreateDedicatedVmHostDetails( String availabilityDomain, @@ -45,7 +46,8 @@ public CreateDedicatedVmHostDetails( java.util.Map freeformTags, PlacementConstraintDetails placementConstraintDetails, String capacityConfig, - Boolean isMemoryEncryptionEnabled) { + Boolean isMemoryEncryptionEnabled, + Boolean isBurstable) { super(); this.availabilityDomain = availabilityDomain; this.compartmentId = compartmentId; @@ -57,6 +59,7 @@ public CreateDedicatedVmHostDetails( this.placementConstraintDetails = placementConstraintDetails; this.capacityConfig = capacityConfig; this.isMemoryEncryptionEnabled = isMemoryEncryptionEnabled; + this.isBurstable = isBurstable; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -270,6 +273,24 @@ public Builder isMemoryEncryptionEnabled(Boolean isMemoryEncryptionEnabled) { this.__explicitlySet__.add("isMemoryEncryptionEnabled"); return this; } + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is restricted to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBurstable") + private Boolean isBurstable; + + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is restricted to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + * @param isBurstable the value to set + * @return this builder + **/ + public Builder isBurstable(Boolean isBurstable) { + this.isBurstable = isBurstable; + this.__explicitlySet__.add("isBurstable"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -286,7 +307,8 @@ public CreateDedicatedVmHostDetails build() { this.freeformTags, this.placementConstraintDetails, this.capacityConfig, - this.isMemoryEncryptionEnabled); + this.isMemoryEncryptionEnabled, + this.isBurstable); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -325,6 +347,9 @@ public Builder copy(CreateDedicatedVmHostDetails model) { if (model.wasPropertyExplicitlySet("isMemoryEncryptionEnabled")) { this.isMemoryEncryptionEnabled(model.getIsMemoryEncryptionEnabled()); } + if (model.wasPropertyExplicitlySet("isBurstable")) { + this.isBurstable(model.getIsBurstable()); + } return this; } } @@ -527,6 +552,22 @@ public Boolean getIsMemoryEncryptionEnabled() { return isMemoryEncryptionEnabled; } + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is restricted to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBurstable") + private final Boolean isBurstable; + + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is restricted to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + * @return the value + **/ + public Boolean getIsBurstable() { + return isBurstable; + } + @Override public String toString() { return this.toString(true); @@ -553,6 +594,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", capacityConfig=").append(String.valueOf(this.capacityConfig)); sb.append(", isMemoryEncryptionEnabled=") .append(String.valueOf(this.isMemoryEncryptionEnabled)); + sb.append(", isBurstable=").append(String.valueOf(this.isBurstable)); sb.append(")"); return sb.toString(); } @@ -579,6 +621,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.capacityConfig, other.capacityConfig) && java.util.Objects.equals( this.isMemoryEncryptionEnabled, other.isMemoryEncryptionEnabled) + && java.util.Objects.equals(this.isBurstable, other.isBurstable) && super.equals(other); } @@ -616,6 +659,7 @@ public int hashCode() { + (this.isMemoryEncryptionEnabled == null ? 43 : this.isMemoryEncryptionEnabled.hashCode()); + result = (result * PRIME) + (this.isBurstable == null ? 43 : this.isBurstable.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateGmcConfigurationDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateGmcConfigurationDetails.java new file mode 100644 index 00000000000..6e7b4f98edf --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateGmcConfigurationDetails.java @@ -0,0 +1,197 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.model; + +/** + * Details for creating an instance configuration for GPU Memory Cluster. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateGmcConfigurationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateGmcConfigurationDetails extends CreateInstanceConfigurationBase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + 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("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("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; + } + /** + * The GPU Memory Cluster configuration entries for. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gmcConfigs") + private java.util.List gmcConfigs; + + /** + * The GPU Memory Cluster configuration entries for. + * @param gmcConfigs the value to set + * @return this builder + **/ + public Builder gmcConfigs(java.util.List gmcConfigs) { + this.gmcConfigs = gmcConfigs; + this.__explicitlySet__.add("gmcConfigs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateGmcConfigurationDetails build() { + CreateGmcConfigurationDetails model = + new CreateGmcConfigurationDetails( + this.compartmentId, + this.definedTags, + this.displayName, + this.freeformTags, + this.gmcConfigs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateGmcConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("gmcConfigs")) { + this.gmcConfigs(model.getGmcConfigs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateGmcConfigurationDetails( + String compartmentId, + java.util.Map> definedTags, + String displayName, + java.util.Map freeformTags, + java.util.List gmcConfigs) { + super(compartmentId, definedTags, displayName, freeformTags); + this.gmcConfigs = gmcConfigs; + } + + /** + * The GPU Memory Cluster configuration entries for. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gmcConfigs") + private final java.util.List gmcConfigs; + + /** + * The GPU Memory Cluster configuration entries for. + * @return the value + **/ + public java.util.List getGmcConfigs() { + return gmcConfigs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateGmcConfigurationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", gmcConfigs=").append(String.valueOf(this.gmcConfigs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateGmcConfigurationDetails)) { + return false; + } + + CreateGmcConfigurationDetails other = (CreateGmcConfigurationDetails) o; + return java.util.Objects.equals(this.gmcConfigs, other.gmcConfigs) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.gmcConfigs == null ? 43 : this.gmcConfigs.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstanceConfigurationBase.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstanceConfigurationBase.java index 97ebfa1dd34..6af4e5d054b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstanceConfigurationBase.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstanceConfigurationBase.java @@ -23,6 +23,10 @@ defaultImpl = CreateInstanceConfigurationBase.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateGmcConfigurationDetails.class, + name = "GMC" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateInstanceConfigurationDetails.class, name = "NONE" @@ -214,11 +218,13 @@ public int hashCode() { *

* {@code NONE}: Creates an instance configuration using the list of settings that you specify. * * {@code INSTANCE}: Creates an instance configuration using an existing instance as a template. + * * {@code GMC}: Creates an instance configuration which can be used to create GMC backed pools. * **/ public enum Source { None("NONE"), Instance("INSTANCE"), + Gmc("GMC"), ; private final String value; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstancePoolDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstancePoolDetails.java index 188d145a2d9..86f8cdbd684 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstancePoolDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstancePoolDetails.java @@ -6,6 +6,9 @@ /** * The data to create an instance pool. + * For a GMC-enabled resource pool, the referenced instance configuration must be a GMC configuration and + * the placement configuration must identify the availability domain and compute cluster for the pool. + * *
* 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 @@ -205,12 +208,16 @@ public Builder placementConfigurations( } /** * The number of instances that should be in the instance pool. + * For a GMC-enabled resource pool, this is the number of GMC resources that should be in the pool. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("size") private Integer size; /** * The number of instances that should be in the instance pool. + * For a GMC-enabled resource pool, this is the number of GMC resources that should be in the pool. + * * @param size the value to set * @return this builder **/ @@ -489,12 +496,16 @@ public String getInstanceConfigurationId() { /** * The number of instances that should be in the instance pool. + * For a GMC-enabled resource pool, this is the number of GMC resources that should be in the pool. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("size") private final Integer size; /** * The number of instances that should be in the instance pool. + * For a GMC-enabled resource pool, this is the number of GMC resources that should be in the pool. + * * @return the value **/ public Integer getSize() { diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIpv6Details.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIpv6Details.java index 450ec8cf349..cd144dfa159 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIpv6Details.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIpv6Details.java @@ -31,7 +31,8 @@ public final class CreateIpv6Details extends com.oracle.bmc.http.internal.Explic "subnetId", "lifetime", "routeTableId", - "ipv6SubnetCidr" + "ipv6SubnetCidr", + "hostname" }) public CreateIpv6Details( java.util.Map> definedTags, @@ -43,7 +44,8 @@ public CreateIpv6Details( String subnetId, Lifetime lifetime, String routeTableId, - String ipv6SubnetCidr) { + String ipv6SubnetCidr, + String hostname) { super(); this.definedTags = definedTags; this.displayName = displayName; @@ -55,6 +57,7 @@ public CreateIpv6Details( this.lifetime = lifetime; this.routeTableId = routeTableId; this.ipv6SubnetCidr = ipv6SubnetCidr; + this.hostname = hostname; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -274,6 +277,24 @@ public Builder ipv6SubnetCidr(String ipv6SubnetCidr) { this.__explicitlySet__.add("ipv6SubnetCidr"); return this; } + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private String hostname; + + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + * @param hostname the value to set + * @return this builder + **/ + public Builder hostname(String hostname) { + this.hostname = hostname; + this.__explicitlySet__.add("hostname"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -290,7 +311,8 @@ public CreateIpv6Details build() { this.subnetId, this.lifetime, this.routeTableId, - this.ipv6SubnetCidr); + this.ipv6SubnetCidr, + this.hostname); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -329,6 +351,9 @@ public Builder copy(CreateIpv6Details model) { if (model.wasPropertyExplicitlySet("ipv6SubnetCidr")) { this.ipv6SubnetCidr(model.getIpv6SubnetCidr()); } + if (model.wasPropertyExplicitlySet("hostname")) { + this.hostname(model.getHostname()); + } return this; } } @@ -577,6 +602,22 @@ public String getIpv6SubnetCidr() { return ipv6SubnetCidr; } + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private final String hostname; + + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + * @return the value + **/ + public String getHostname() { + return hostname; + } + @Override public String toString() { return this.toString(true); @@ -601,6 +642,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifetime=").append(String.valueOf(this.lifetime)); sb.append(", routeTableId=").append(String.valueOf(this.routeTableId)); sb.append(", ipv6SubnetCidr=").append(String.valueOf(this.ipv6SubnetCidr)); + sb.append(", hostname=").append(String.valueOf(this.hostname)); sb.append(")"); return sb.toString(); } @@ -625,6 +667,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifetime, other.lifetime) && java.util.Objects.equals(this.routeTableId, other.routeTableId) && java.util.Objects.equals(this.ipv6SubnetCidr, other.ipv6SubnetCidr) + && java.util.Objects.equals(this.hostname, other.hostname) && super.equals(other); } @@ -646,6 +689,7 @@ public int hashCode() { result = (result * PRIME) + (this.ipv6SubnetCidr == null ? 43 : this.ipv6SubnetCidr.hashCode()); + result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVirtualCircuitDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVirtualCircuitDetails.java index 3383407094c..d302547ff05 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVirtualCircuitDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVirtualCircuitDetails.java @@ -43,7 +43,10 @@ public final class CreateVirtualCircuitDetails "publicPrefixes", "region", "type", - "ipMtu" + "ipMtu", + "providerRemoteRegion", + "remoteAccountId", + "trafficMode" }) public CreateVirtualCircuitDetails( String bandwidthShapeName, @@ -66,7 +69,10 @@ public CreateVirtualCircuitDetails( java.util.List publicPrefixes, String region, Type type, - VirtualCircuitIpMtu ipMtu) { + VirtualCircuitIpMtu ipMtu, + String providerRemoteRegion, + String remoteAccountId, + TrafficMode trafficMode) { super(); this.bandwidthShapeName = bandwidthShapeName; this.compartmentId = compartmentId; @@ -89,6 +95,9 @@ public CreateVirtualCircuitDetails( this.region = region; this.type = type; this.ipMtu = ipMtu; + this.providerRemoteRegion = providerRemoteRegion; + this.remoteAccountId = remoteAccountId; + this.trafficMode = trafficMode; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -538,6 +547,62 @@ public Builder ipMtu(VirtualCircuitIpMtu ipMtu) { this.__explicitlySet__.add("ipMtu"); return this; } + /** + * The OCI's FastConnect MultiCloud Provider/Partner remote region name associated with the OCI region. + * To get the list of associated provider remote region use the ListProviderRemoteRegions operation + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerRemoteRegion") + private String providerRemoteRegion; + + /** + * The OCI's FastConnect MultiCloud Provider/Partner remote region name associated with the OCI region. + * To get the list of associated provider remote region use the ListProviderRemoteRegions operation + * + * @param providerRemoteRegion the value to set + * @return this builder + **/ + public Builder providerRemoteRegion(String providerRemoteRegion) { + this.providerRemoteRegion = providerRemoteRegion; + this.__explicitlySet__.add("providerRemoteRegion"); + return this; + } + /** + * Customer's account on Provider/Partner cloud (AWS, GCP or any other) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("remoteAccountId") + private String remoteAccountId; + + /** + * Customer's account on Provider/Partner cloud (AWS, GCP or any other) + * @param remoteAccountId the value to set + * @return this builder + **/ + public Builder remoteAccountId(String remoteAccountId) { + this.remoteAccountId = remoteAccountId; + this.__explicitlySet__.add("remoteAccountId"); + return this; + } + /** + * The traffic mode to be set with this Virtual Circuit. This controls whether the traffic is to be drained + * for the associated Virtual Circuit or not. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("trafficMode") + private TrafficMode trafficMode; + + /** + * The traffic mode to be set with this Virtual Circuit. This controls whether the traffic is to be drained + * for the associated Virtual Circuit or not. + * + * @param trafficMode the value to set + * @return this builder + **/ + public Builder trafficMode(TrafficMode trafficMode) { + this.trafficMode = trafficMode; + this.__explicitlySet__.add("trafficMode"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -565,7 +630,10 @@ public CreateVirtualCircuitDetails build() { this.publicPrefixes, this.region, this.type, - this.ipMtu); + this.ipMtu, + this.providerRemoteRegion, + this.remoteAccountId, + this.trafficMode); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -637,6 +705,15 @@ public Builder copy(CreateVirtualCircuitDetails model) { if (model.wasPropertyExplicitlySet("ipMtu")) { this.ipMtu(model.getIpMtu()); } + if (model.wasPropertyExplicitlySet("providerRemoteRegion")) { + this.providerRemoteRegion(model.getProviderRemoteRegion()); + } + if (model.wasPropertyExplicitlySet("remoteAccountId")) { + this.remoteAccountId(model.getRemoteAccountId()); + } + if (model.wasPropertyExplicitlySet("trafficMode")) { + this.trafficMode(model.getTrafficMode()); + } return this; } } @@ -1162,6 +1239,93 @@ public VirtualCircuitIpMtu getIpMtu() { return ipMtu; } + /** + * The OCI's FastConnect MultiCloud Provider/Partner remote region name associated with the OCI region. + * To get the list of associated provider remote region use the ListProviderRemoteRegions operation + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerRemoteRegion") + private final String providerRemoteRegion; + + /** + * The OCI's FastConnect MultiCloud Provider/Partner remote region name associated with the OCI region. + * To get the list of associated provider remote region use the ListProviderRemoteRegions operation + * + * @return the value + **/ + public String getProviderRemoteRegion() { + return providerRemoteRegion; + } + + /** + * Customer's account on Provider/Partner cloud (AWS, GCP or any other) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("remoteAccountId") + private final String remoteAccountId; + + /** + * Customer's account on Provider/Partner cloud (AWS, GCP or any other) + * @return the value + **/ + public String getRemoteAccountId() { + return remoteAccountId; + } + + /** + * The traffic mode to be set with this Virtual Circuit. This controls whether the traffic is to be drained + * for the associated Virtual Circuit or not. + * + **/ + public enum TrafficMode { + Normal("NORMAL"), + Drain("DRAIN"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TrafficMode v : TrafficMode.values()) { + map.put(v.getValue(), v); + } + } + + TrafficMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TrafficMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid TrafficMode: " + key); + } + }; + /** + * The traffic mode to be set with this Virtual Circuit. This controls whether the traffic is to be drained + * for the associated Virtual Circuit or not. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("trafficMode") + private final TrafficMode trafficMode; + + /** + * The traffic mode to be set with this Virtual Circuit. This controls whether the traffic is to be drained + * for the associated Virtual Circuit or not. + * + * @return the value + **/ + public TrafficMode getTrafficMode() { + return trafficMode; + } + @Override public String toString() { return this.toString(true); @@ -1197,6 +1361,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", region=").append(String.valueOf(this.region)); sb.append(", type=").append(String.valueOf(this.type)); sb.append(", ipMtu=").append(String.valueOf(this.ipMtu)); + sb.append(", providerRemoteRegion=").append(String.valueOf(this.providerRemoteRegion)); + sb.append(", remoteAccountId=").append(String.valueOf(this.remoteAccountId)); + sb.append(", trafficMode=").append(String.valueOf(this.trafficMode)); sb.append(")"); return sb.toString(); } @@ -1233,6 +1400,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.region, other.region) && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.ipMtu, other.ipMtu) + && java.util.Objects.equals(this.providerRemoteRegion, other.providerRemoteRegion) + && java.util.Objects.equals(this.remoteAccountId, other.remoteAccountId) + && java.util.Objects.equals(this.trafficMode, other.trafficMode) && super.equals(other); } @@ -1291,6 +1461,15 @@ public int hashCode() { result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + (this.ipMtu == null ? 43 : this.ipMtu.hashCode()); + result = + (result * PRIME) + + (this.providerRemoteRegion == null + ? 43 + : this.providerRemoteRegion.hashCode()); + result = + (result * PRIME) + + (this.remoteAccountId == null ? 43 : this.remoteAccountId.hashCode()); + result = (result * PRIME) + (this.trafficMode == null ? 43 : this.trafficMode.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeBackupDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeBackupDetails.java index 00123eb7d29..a5ee031c734 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeBackupDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeBackupDetails.java @@ -28,7 +28,11 @@ public final class CreateVolumeBackupDetails "displayName", "freeformTags", "type", - "volumeId" + "volumeId", + "retentionPeriod", + "isPreventDeletionEnabled", + "isRetentionLockEnabled", + "isIndefiniteRetentionEnabled" }) public CreateVolumeBackupDetails( String kmsKeyId, @@ -36,7 +40,11 @@ public CreateVolumeBackupDetails( String displayName, java.util.Map freeformTags, Type type, - String volumeId) { + String volumeId, + RetentionDuration retentionPeriod, + Boolean isPreventDeletionEnabled, + Boolean isRetentionLockEnabled, + Boolean isIndefiniteRetentionEnabled) { super(); this.kmsKeyId = kmsKeyId; this.definedTags = definedTags; @@ -44,6 +52,10 @@ public CreateVolumeBackupDetails( this.freeformTags = freeformTags; this.type = type; this.volumeId = volumeId; + this.retentionPeriod = retentionPeriod; + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -174,6 +186,63 @@ public Builder volumeId(String volumeId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private RetentionDuration retentionPeriod; + + public Builder retentionPeriod(RetentionDuration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @param isPreventDeletionEnabled the value to set + * @return this builder + **/ + public Builder isPreventDeletionEnabled(Boolean isPreventDeletionEnabled) { + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.__explicitlySet__.add("isPreventDeletionEnabled"); + return this; + } + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @param isRetentionLockEnabled the value to set + * @return this builder + **/ + public Builder isRetentionLockEnabled(Boolean isRetentionLockEnabled) { + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.__explicitlySet__.add("isRetentionLockEnabled"); + return this; + } + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @param isIndefiniteRetentionEnabled the value to set + * @return this builder + **/ + public Builder isIndefiniteRetentionEnabled(Boolean isIndefiniteRetentionEnabled) { + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; + this.__explicitlySet__.add("isIndefiniteRetentionEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -185,7 +254,11 @@ public CreateVolumeBackupDetails build() { this.displayName, this.freeformTags, this.type, - this.volumeId); + this.volumeId, + this.retentionPeriod, + this.isPreventDeletionEnabled, + this.isRetentionLockEnabled, + this.isIndefiniteRetentionEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -212,6 +285,18 @@ public Builder copy(CreateVolumeBackupDetails model) { if (model.wasPropertyExplicitlySet("volumeId")) { this.volumeId(model.getVolumeId()); } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("isPreventDeletionEnabled")) { + this.isPreventDeletionEnabled(model.getIsPreventDeletionEnabled()); + } + if (model.wasPropertyExplicitlySet("isRetentionLockEnabled")) { + this.isRetentionLockEnabled(model.getIsRetentionLockEnabled()); + } + if (model.wasPropertyExplicitlySet("isIndefiniteRetentionEnabled")) { + this.isIndefiniteRetentionEnabled(model.getIsIndefiniteRetentionEnabled()); + } return this; } } @@ -374,6 +459,55 @@ public String getVolumeId() { return volumeId; } + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final RetentionDuration retentionPeriod; + + public RetentionDuration getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private final Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @return the value + **/ + public Boolean getIsPreventDeletionEnabled() { + return isPreventDeletionEnabled; + } + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private final Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @return the value + **/ + public Boolean getIsRetentionLockEnabled() { + return isRetentionLockEnabled; + } + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private final Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @return the value + **/ + public Boolean getIsIndefiniteRetentionEnabled() { + return isIndefiniteRetentionEnabled; + } + @Override public String toString() { return this.toString(true); @@ -394,6 +528,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", type=").append(String.valueOf(this.type)); sb.append(", volumeId=").append(String.valueOf(this.volumeId)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", isPreventDeletionEnabled=") + .append(String.valueOf(this.isPreventDeletionEnabled)); + sb.append(", isRetentionLockEnabled=").append(String.valueOf(this.isRetentionLockEnabled)); + sb.append(", isIndefiniteRetentionEnabled=") + .append(String.valueOf(this.isIndefiniteRetentionEnabled)); sb.append(")"); return sb.toString(); } @@ -414,6 +554,13 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.volumeId, other.volumeId) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals( + this.isPreventDeletionEnabled, other.isPreventDeletionEnabled) + && java.util.Objects.equals( + this.isRetentionLockEnabled, other.isRetentionLockEnabled) + && java.util.Objects.equals( + this.isIndefiniteRetentionEnabled, other.isIndefiniteRetentionEnabled) && super.equals(other); } @@ -427,6 +574,24 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + (this.volumeId == null ? 43 : this.volumeId.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = + (result * PRIME) + + (this.isPreventDeletionEnabled == null + ? 43 + : this.isPreventDeletionEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRetentionLockEnabled == null + ? 43 + : this.isRetentionLockEnabled.hashCode()); + result = + (result * PRIME) + + (this.isIndefiniteRetentionEnabled == null + ? 43 + : this.isIndefiniteRetentionEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeGroupBackupDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeGroupBackupDetails.java index f15e254d69b..e9681c4db4c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeGroupBackupDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeGroupBackupDetails.java @@ -28,7 +28,11 @@ public final class CreateVolumeGroupBackupDetails "displayName", "freeformTags", "type", - "volumeGroupId" + "volumeGroupId", + "retentionPeriod", + "isPreventDeletionEnabled", + "isRetentionLockEnabled", + "isIndefiniteRetentionEnabled" }) public CreateVolumeGroupBackupDetails( String compartmentId, @@ -36,7 +40,11 @@ public CreateVolumeGroupBackupDetails( String displayName, java.util.Map freeformTags, Type type, - String volumeGroupId) { + String volumeGroupId, + RetentionDuration retentionPeriod, + Boolean isPreventDeletionEnabled, + Boolean isRetentionLockEnabled, + Boolean isIndefiniteRetentionEnabled) { super(); this.compartmentId = compartmentId; this.definedTags = definedTags; @@ -44,6 +52,10 @@ public CreateVolumeGroupBackupDetails( this.freeformTags = freeformTags; this.type = type; this.volumeGroupId = volumeGroupId; + this.retentionPeriod = retentionPeriod; + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -172,6 +184,63 @@ public Builder volumeGroupId(String volumeGroupId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private RetentionDuration retentionPeriod; + + public Builder retentionPeriod(RetentionDuration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @param isPreventDeletionEnabled the value to set + * @return this builder + **/ + public Builder isPreventDeletionEnabled(Boolean isPreventDeletionEnabled) { + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.__explicitlySet__.add("isPreventDeletionEnabled"); + return this; + } + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @param isRetentionLockEnabled the value to set + * @return this builder + **/ + public Builder isRetentionLockEnabled(Boolean isRetentionLockEnabled) { + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.__explicitlySet__.add("isRetentionLockEnabled"); + return this; + } + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @param isIndefiniteRetentionEnabled the value to set + * @return this builder + **/ + public Builder isIndefiniteRetentionEnabled(Boolean isIndefiniteRetentionEnabled) { + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; + this.__explicitlySet__.add("isIndefiniteRetentionEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -183,7 +252,11 @@ public CreateVolumeGroupBackupDetails build() { this.displayName, this.freeformTags, this.type, - this.volumeGroupId); + this.volumeGroupId, + this.retentionPeriod, + this.isPreventDeletionEnabled, + this.isRetentionLockEnabled, + this.isIndefiniteRetentionEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -210,6 +283,18 @@ public Builder copy(CreateVolumeGroupBackupDetails model) { if (model.wasPropertyExplicitlySet("volumeGroupId")) { this.volumeGroupId(model.getVolumeGroupId()); } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("isPreventDeletionEnabled")) { + this.isPreventDeletionEnabled(model.getIsPreventDeletionEnabled()); + } + if (model.wasPropertyExplicitlySet("isRetentionLockEnabled")) { + this.isRetentionLockEnabled(model.getIsRetentionLockEnabled()); + } + if (model.wasPropertyExplicitlySet("isIndefiniteRetentionEnabled")) { + this.isIndefiniteRetentionEnabled(model.getIsIndefiniteRetentionEnabled()); + } return this; } } @@ -370,6 +455,55 @@ public String getVolumeGroupId() { return volumeGroupId; } + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final RetentionDuration retentionPeriod; + + public RetentionDuration getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private final Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @return the value + **/ + public Boolean getIsPreventDeletionEnabled() { + return isPreventDeletionEnabled; + } + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private final Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @return the value + **/ + public Boolean getIsRetentionLockEnabled() { + return isRetentionLockEnabled; + } + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private final Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @return the value + **/ + public Boolean getIsIndefiniteRetentionEnabled() { + return isIndefiniteRetentionEnabled; + } + @Override public String toString() { return this.toString(true); @@ -390,6 +524,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", type=").append(String.valueOf(this.type)); sb.append(", volumeGroupId=").append(String.valueOf(this.volumeGroupId)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", isPreventDeletionEnabled=") + .append(String.valueOf(this.isPreventDeletionEnabled)); + sb.append(", isRetentionLockEnabled=").append(String.valueOf(this.isRetentionLockEnabled)); + sb.append(", isIndefiniteRetentionEnabled=") + .append(String.valueOf(this.isIndefiniteRetentionEnabled)); sb.append(")"); return sb.toString(); } @@ -410,6 +550,13 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.volumeGroupId, other.volumeGroupId) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals( + this.isPreventDeletionEnabled, other.isPreventDeletionEnabled) + && java.util.Objects.equals( + this.isRetentionLockEnabled, other.isRetentionLockEnabled) + && java.util.Objects.equals( + this.isIndefiniteRetentionEnabled, other.isIndefiniteRetentionEnabled) && super.equals(other); } @@ -427,6 +574,24 @@ public int hashCode() { result = (result * PRIME) + (this.volumeGroupId == null ? 43 : this.volumeGroupId.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = + (result * PRIME) + + (this.isPreventDeletionEnabled == null + ? 43 + : this.isPreventDeletionEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRetentionLockEnabled == null + ? 43 + : this.isRetentionLockEnabled.hashCode()); + result = + (result * PRIME) + + (this.isIndefiniteRetentionEnabled == null + ? 43 + : this.isIndefiniteRetentionEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnect.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnect.java index bc72b9e146c..14d393f948b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnect.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnect.java @@ -51,6 +51,9 @@ public final class CrossConnect extends com.oracle.bmc.http.internal.ExplicitlyS "macsecProperties", "ociPhysicalDeviceName", "ociLogicalDeviceName", + "isInterfaceHoldTimerEnabled", + "interfaceDownTimerValueInMilliseconds", + "isQosEnabled", "interfaceName" }) public CrossConnect( @@ -69,6 +72,9 @@ public CrossConnect( MacsecProperties macsecProperties, String ociPhysicalDeviceName, String ociLogicalDeviceName, + Boolean isInterfaceHoldTimerEnabled, + Integer interfaceDownTimerValueInMilliseconds, + Boolean isQosEnabled, String interfaceName) { super(); this.compartmentId = compartmentId; @@ -86,6 +92,9 @@ public CrossConnect( this.macsecProperties = macsecProperties; this.ociPhysicalDeviceName = ociPhysicalDeviceName; this.ociLogicalDeviceName = ociLogicalDeviceName; + this.isInterfaceHoldTimerEnabled = isInterfaceHoldTimerEnabled; + this.interfaceDownTimerValueInMilliseconds = interfaceDownTimerValueInMilliseconds; + this.isQosEnabled = isQosEnabled; this.interfaceName = interfaceName; } @@ -371,6 +380,55 @@ public Builder ociLogicalDeviceName(String ociLogicalDeviceName) { this.__explicitlySet__.add("ociLogicalDeviceName"); return this; } + /** + * The flag to enable or disable the down timer for the interface. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInterfaceHoldTimerEnabled") + private Boolean isInterfaceHoldTimerEnabled; + + /** + * The flag to enable or disable the down timer for the interface. + * @param isInterfaceHoldTimerEnabled the value to set + * @return this builder + **/ + public Builder isInterfaceHoldTimerEnabled(Boolean isInterfaceHoldTimerEnabled) { + this.isInterfaceHoldTimerEnabled = isInterfaceHoldTimerEnabled; + this.__explicitlySet__.add("isInterfaceHoldTimerEnabled"); + return this; + } + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("interfaceDownTimerValueInMilliseconds") + private Integer interfaceDownTimerValueInMilliseconds; + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + * @param interfaceDownTimerValueInMilliseconds the value to set + * @return this builder + **/ + public Builder interfaceDownTimerValueInMilliseconds( + Integer interfaceDownTimerValueInMilliseconds) { + this.interfaceDownTimerValueInMilliseconds = interfaceDownTimerValueInMilliseconds; + this.__explicitlySet__.add("interfaceDownTimerValueInMilliseconds"); + return this; + } + /** + * The flag to enable or disable the Qos for the cross-connect. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isQosEnabled") + private Boolean isQosEnabled; + + /** + * The flag to enable or disable the Qos for the cross-connect. + * @param isQosEnabled the value to set + * @return this builder + **/ + public Builder isQosEnabled(Boolean isQosEnabled) { + this.isQosEnabled = isQosEnabled; + this.__explicitlySet__.add("isQosEnabled"); + return this; + } /** * The name of the FastConnect interface where this cross-connect is installed. * @@ -411,6 +469,9 @@ public CrossConnect build() { this.macsecProperties, this.ociPhysicalDeviceName, this.ociLogicalDeviceName, + this.isInterfaceHoldTimerEnabled, + this.interfaceDownTimerValueInMilliseconds, + this.isQosEnabled, this.interfaceName); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -465,6 +526,16 @@ public Builder copy(CrossConnect model) { if (model.wasPropertyExplicitlySet("ociLogicalDeviceName")) { this.ociLogicalDeviceName(model.getOciLogicalDeviceName()); } + if (model.wasPropertyExplicitlySet("isInterfaceHoldTimerEnabled")) { + this.isInterfaceHoldTimerEnabled(model.getIsInterfaceHoldTimerEnabled()); + } + if (model.wasPropertyExplicitlySet("interfaceDownTimerValueInMilliseconds")) { + this.interfaceDownTimerValueInMilliseconds( + model.getInterfaceDownTimerValueInMilliseconds()); + } + if (model.wasPropertyExplicitlySet("isQosEnabled")) { + this.isQosEnabled(model.getIsQosEnabled()); + } if (model.wasPropertyExplicitlySet("interfaceName")) { this.interfaceName(model.getInterfaceName()); } @@ -784,6 +855,48 @@ public String getOciLogicalDeviceName() { return ociLogicalDeviceName; } + /** + * The flag to enable or disable the down timer for the interface. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInterfaceHoldTimerEnabled") + private final Boolean isInterfaceHoldTimerEnabled; + + /** + * The flag to enable or disable the down timer for the interface. + * @return the value + **/ + public Boolean getIsInterfaceHoldTimerEnabled() { + return isInterfaceHoldTimerEnabled; + } + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("interfaceDownTimerValueInMilliseconds") + private final Integer interfaceDownTimerValueInMilliseconds; + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + * @return the value + **/ + public Integer getInterfaceDownTimerValueInMilliseconds() { + return interfaceDownTimerValueInMilliseconds; + } + + /** + * The flag to enable or disable the Qos for the cross-connect. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isQosEnabled") + private final Boolean isQosEnabled; + + /** + * The flag to enable or disable the Qos for the cross-connect. + * @return the value + **/ + public Boolean getIsQosEnabled() { + return isQosEnabled; + } + /** * The name of the FastConnect interface where this cross-connect is installed. * @@ -829,6 +942,11 @@ public String toString(boolean includeByteArrayContents) { sb.append(", macsecProperties=").append(String.valueOf(this.macsecProperties)); sb.append(", ociPhysicalDeviceName=").append(String.valueOf(this.ociPhysicalDeviceName)); sb.append(", ociLogicalDeviceName=").append(String.valueOf(this.ociLogicalDeviceName)); + sb.append(", isInterfaceHoldTimerEnabled=") + .append(String.valueOf(this.isInterfaceHoldTimerEnabled)); + sb.append(", interfaceDownTimerValueInMilliseconds=") + .append(String.valueOf(this.interfaceDownTimerValueInMilliseconds)); + sb.append(", isQosEnabled=").append(String.valueOf(this.isQosEnabled)); sb.append(", interfaceName=").append(String.valueOf(this.interfaceName)); sb.append(")"); return sb.toString(); @@ -859,6 +977,12 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.macsecProperties, other.macsecProperties) && java.util.Objects.equals(this.ociPhysicalDeviceName, other.ociPhysicalDeviceName) && java.util.Objects.equals(this.ociLogicalDeviceName, other.ociLogicalDeviceName) + && java.util.Objects.equals( + this.isInterfaceHoldTimerEnabled, other.isInterfaceHoldTimerEnabled) + && java.util.Objects.equals( + this.interfaceDownTimerValueInMilliseconds, + other.interfaceDownTimerValueInMilliseconds) + && java.util.Objects.equals(this.isQosEnabled, other.isQosEnabled) && java.util.Objects.equals(this.interfaceName, other.interfaceName) && super.equals(other); } @@ -908,6 +1032,17 @@ public int hashCode() { + (this.ociLogicalDeviceName == null ? 43 : this.ociLogicalDeviceName.hashCode()); + result = + (result * PRIME) + + (this.isInterfaceHoldTimerEnabled == null + ? 43 + : this.isInterfaceHoldTimerEnabled.hashCode()); + result = + (result * PRIME) + + (this.interfaceDownTimerValueInMilliseconds == null + ? 43 + : this.interfaceDownTimerValueInMilliseconds.hashCode()); + result = (result * PRIME) + (this.isQosEnabled == null ? 43 : this.isQosEnabled.hashCode()); result = (result * PRIME) + (this.interfaceName == null ? 43 : this.interfaceName.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectGroup.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectGroup.java index c9b65ba163c..3e7a9e427aa 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectGroup.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectGroup.java @@ -46,7 +46,11 @@ public final class CrossConnectGroup extends com.oracle.bmc.http.internal.Explic "timeCreated", "macsecProperties", "ociPhysicalDeviceName", - "ociLogicalDeviceName" + "ociLogicalDeviceName", + "minimumLinks", + "isInterfaceHoldTimerEnabled", + "interfaceDownTimerValueInMilliseconds", + "isQosEnabled" }) public CrossConnectGroup( String compartmentId, @@ -60,7 +64,11 @@ public CrossConnectGroup( java.util.Date timeCreated, MacsecProperties macsecProperties, String ociPhysicalDeviceName, - String ociLogicalDeviceName) { + String ociLogicalDeviceName, + Integer minimumLinks, + Boolean isInterfaceHoldTimerEnabled, + Integer interfaceDownTimerValueInMilliseconds, + Boolean isQosEnabled) { super(); this.compartmentId = compartmentId; this.definedTags = definedTags; @@ -74,6 +82,10 @@ public CrossConnectGroup( this.macsecProperties = macsecProperties; this.ociPhysicalDeviceName = ociPhysicalDeviceName; this.ociLogicalDeviceName = ociLogicalDeviceName; + this.minimumLinks = minimumLinks; + this.isInterfaceHoldTimerEnabled = isInterfaceHoldTimerEnabled; + this.interfaceDownTimerValueInMilliseconds = interfaceDownTimerValueInMilliseconds; + this.isQosEnabled = isQosEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -304,6 +316,77 @@ public Builder ociLogicalDeviceName(String ociLogicalDeviceName) { this.__explicitlySet__.add("ociLogicalDeviceName"); return this; } + /** + * Minimum number of active cross-connects required for the cross-connect group to be considered operational. + * If the number of active cross-connects falls below this value, the group is not considered operational. + * If this value was not explicitly set when the group was created or updated, it defaults to 1. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minimumLinks") + private Integer minimumLinks; + + /** + * Minimum number of active cross-connects required for the cross-connect group to be considered operational. + * If the number of active cross-connects falls below this value, the group is not considered operational. + * If this value was not explicitly set when the group was created or updated, it defaults to 1. + * + * @param minimumLinks the value to set + * @return this builder + **/ + public Builder minimumLinks(Integer minimumLinks) { + this.minimumLinks = minimumLinks; + this.__explicitlySet__.add("minimumLinks"); + return this; + } + /** + * The flag to enable or disable the down timer for the interface. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInterfaceHoldTimerEnabled") + private Boolean isInterfaceHoldTimerEnabled; + + /** + * The flag to enable or disable the down timer for the interface. + * @param isInterfaceHoldTimerEnabled the value to set + * @return this builder + **/ + public Builder isInterfaceHoldTimerEnabled(Boolean isInterfaceHoldTimerEnabled) { + this.isInterfaceHoldTimerEnabled = isInterfaceHoldTimerEnabled; + this.__explicitlySet__.add("isInterfaceHoldTimerEnabled"); + return this; + } + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("interfaceDownTimerValueInMilliseconds") + private Integer interfaceDownTimerValueInMilliseconds; + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + * @param interfaceDownTimerValueInMilliseconds the value to set + * @return this builder + **/ + public Builder interfaceDownTimerValueInMilliseconds( + Integer interfaceDownTimerValueInMilliseconds) { + this.interfaceDownTimerValueInMilliseconds = interfaceDownTimerValueInMilliseconds; + this.__explicitlySet__.add("interfaceDownTimerValueInMilliseconds"); + return this; + } + /** + * The flag to enable or disable the Qos for the cross-connect-group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isQosEnabled") + private Boolean isQosEnabled; + + /** + * The flag to enable or disable the Qos for the cross-connect-group. + * @param isQosEnabled the value to set + * @return this builder + **/ + public Builder isQosEnabled(Boolean isQosEnabled) { + this.isQosEnabled = isQosEnabled; + this.__explicitlySet__.add("isQosEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -322,7 +405,11 @@ public CrossConnectGroup build() { this.timeCreated, this.macsecProperties, this.ociPhysicalDeviceName, - this.ociLogicalDeviceName); + this.ociLogicalDeviceName, + this.minimumLinks, + this.isInterfaceHoldTimerEnabled, + this.interfaceDownTimerValueInMilliseconds, + this.isQosEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -367,6 +454,19 @@ public Builder copy(CrossConnectGroup model) { if (model.wasPropertyExplicitlySet("ociLogicalDeviceName")) { this.ociLogicalDeviceName(model.getOciLogicalDeviceName()); } + if (model.wasPropertyExplicitlySet("minimumLinks")) { + this.minimumLinks(model.getMinimumLinks()); + } + if (model.wasPropertyExplicitlySet("isInterfaceHoldTimerEnabled")) { + this.isInterfaceHoldTimerEnabled(model.getIsInterfaceHoldTimerEnabled()); + } + if (model.wasPropertyExplicitlySet("interfaceDownTimerValueInMilliseconds")) { + this.interfaceDownTimerValueInMilliseconds( + model.getInterfaceDownTimerValueInMilliseconds()); + } + if (model.wasPropertyExplicitlySet("isQosEnabled")) { + this.isQosEnabled(model.getIsQosEnabled()); + } return this; } } @@ -634,6 +734,68 @@ public String getOciLogicalDeviceName() { return ociLogicalDeviceName; } + /** + * Minimum number of active cross-connects required for the cross-connect group to be considered operational. + * If the number of active cross-connects falls below this value, the group is not considered operational. + * If this value was not explicitly set when the group was created or updated, it defaults to 1. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minimumLinks") + private final Integer minimumLinks; + + /** + * Minimum number of active cross-connects required for the cross-connect group to be considered operational. + * If the number of active cross-connects falls below this value, the group is not considered operational. + * If this value was not explicitly set when the group was created or updated, it defaults to 1. + * + * @return the value + **/ + public Integer getMinimumLinks() { + return minimumLinks; + } + + /** + * The flag to enable or disable the down timer for the interface. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInterfaceHoldTimerEnabled") + private final Boolean isInterfaceHoldTimerEnabled; + + /** + * The flag to enable or disable the down timer for the interface. + * @return the value + **/ + public Boolean getIsInterfaceHoldTimerEnabled() { + return isInterfaceHoldTimerEnabled; + } + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("interfaceDownTimerValueInMilliseconds") + private final Integer interfaceDownTimerValueInMilliseconds; + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + * @return the value + **/ + public Integer getInterfaceDownTimerValueInMilliseconds() { + return interfaceDownTimerValueInMilliseconds; + } + + /** + * The flag to enable or disable the Qos for the cross-connect-group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isQosEnabled") + private final Boolean isQosEnabled; + + /** + * The flag to enable or disable the Qos for the cross-connect-group. + * @return the value + **/ + public Boolean getIsQosEnabled() { + return isQosEnabled; + } + @Override public String toString() { return this.toString(true); @@ -660,6 +822,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", macsecProperties=").append(String.valueOf(this.macsecProperties)); sb.append(", ociPhysicalDeviceName=").append(String.valueOf(this.ociPhysicalDeviceName)); sb.append(", ociLogicalDeviceName=").append(String.valueOf(this.ociLogicalDeviceName)); + sb.append(", minimumLinks=").append(String.valueOf(this.minimumLinks)); + sb.append(", isInterfaceHoldTimerEnabled=") + .append(String.valueOf(this.isInterfaceHoldTimerEnabled)); + sb.append(", interfaceDownTimerValueInMilliseconds=") + .append(String.valueOf(this.interfaceDownTimerValueInMilliseconds)); + sb.append(", isQosEnabled=").append(String.valueOf(this.isQosEnabled)); sb.append(")"); return sb.toString(); } @@ -686,6 +854,13 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.macsecProperties, other.macsecProperties) && java.util.Objects.equals(this.ociPhysicalDeviceName, other.ociPhysicalDeviceName) && java.util.Objects.equals(this.ociLogicalDeviceName, other.ociLogicalDeviceName) + && java.util.Objects.equals(this.minimumLinks, other.minimumLinks) + && java.util.Objects.equals( + this.isInterfaceHoldTimerEnabled, other.isInterfaceHoldTimerEnabled) + && java.util.Objects.equals( + this.interfaceDownTimerValueInMilliseconds, + other.interfaceDownTimerValueInMilliseconds) + && java.util.Objects.equals(this.isQosEnabled, other.isQosEnabled) && super.equals(other); } @@ -723,6 +898,18 @@ public int hashCode() { + (this.ociLogicalDeviceName == null ? 43 : this.ociLogicalDeviceName.hashCode()); + result = (result * PRIME) + (this.minimumLinks == null ? 43 : this.minimumLinks.hashCode()); + result = + (result * PRIME) + + (this.isInterfaceHoldTimerEnabled == null + ? 43 + : this.isInterfaceHoldTimerEnabled.hashCode()); + result = + (result * PRIME) + + (this.interfaceDownTimerValueInMilliseconds == null + ? 43 + : this.interfaceDownTimerValueInMilliseconds.hashCode()); + result = (result * PRIME) + (this.isQosEnabled == null ? 43 : this.isQosEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHost.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHost.java index 98dd66c7a89..f70d0852074 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHost.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHost.java @@ -33,6 +33,7 @@ public final class DedicatedVmHost extends com.oracle.bmc.http.internal.Explicit "id", "capacityConfig", "isMemoryEncryptionEnabled", + "isBurstable", "lifecycleState", "timeCreated", "totalOcpus", @@ -56,6 +57,7 @@ public DedicatedVmHost( String id, String capacityConfig, Boolean isMemoryEncryptionEnabled, + Boolean isBurstable, LifecycleState lifecycleState, java.util.Date timeCreated, Float totalOcpus, @@ -78,6 +80,7 @@ public DedicatedVmHost( this.id = id; this.capacityConfig = capacityConfig; this.isMemoryEncryptionEnabled = isMemoryEncryptionEnabled; + this.isBurstable = isBurstable; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; this.totalOcpus = totalOcpus; @@ -317,6 +320,24 @@ public Builder isMemoryEncryptionEnabled(Boolean isMemoryEncryptionEnabled) { this.__explicitlySet__.add("isMemoryEncryptionEnabled"); return this; } + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBurstable") + private Boolean isBurstable; + + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + * @param isBurstable the value to set + * @return this builder + **/ + public Builder isBurstable(Boolean isBurstable) { + this.isBurstable = isBurstable; + this.__explicitlySet__.add("isBurstable"); + return this; + } /** * The current state of the dedicated VM host. * @@ -519,6 +540,7 @@ public DedicatedVmHost build() { this.id, this.capacityConfig, this.isMemoryEncryptionEnabled, + this.isBurstable, this.lifecycleState, this.timeCreated, this.totalOcpus, @@ -570,6 +592,9 @@ public Builder copy(DedicatedVmHost model) { if (model.wasPropertyExplicitlySet("isMemoryEncryptionEnabled")) { this.isMemoryEncryptionEnabled(model.getIsMemoryEncryptionEnabled()); } + if (model.wasPropertyExplicitlySet("isBurstable")) { + this.isBurstable(model.getIsBurstable()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -816,6 +841,22 @@ public Boolean getIsMemoryEncryptionEnabled() { return isMemoryEncryptionEnabled; } + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBurstable") + private final Boolean isBurstable; + + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + * @return the value + **/ + public Boolean getIsBurstable() { + return isBurstable; + } + /** * The current state of the dedicated VM host. * @@ -1060,6 +1101,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", capacityConfig=").append(String.valueOf(this.capacityConfig)); sb.append(", isMemoryEncryptionEnabled=") .append(String.valueOf(this.isMemoryEncryptionEnabled)); + sb.append(", isBurstable=").append(String.valueOf(this.isBurstable)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", totalOcpus=").append(String.valueOf(this.totalOcpus)); @@ -1098,6 +1140,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.capacityConfig, other.capacityConfig) && java.util.Objects.equals( this.isMemoryEncryptionEnabled, other.isMemoryEncryptionEnabled) + && java.util.Objects.equals(this.isBurstable, other.isBurstable) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.totalOcpus, other.totalOcpus) @@ -1148,6 +1191,7 @@ public int hashCode() { + (this.isMemoryEncryptionEnabled == null ? 43 : this.isMemoryEncryptionEnabled.hashCode()); + result = (result * PRIME) + (this.isBurstable == null ? 43 : this.isBurstable.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHostInstanceSummary.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHostInstanceSummary.java index 8d975ab5075..f761fa8ac2f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHostInstanceSummary.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHostInstanceSummary.java @@ -28,6 +28,7 @@ public final class DedicatedVmHostInstanceSummary "compartmentId", "instanceId", "isMemoryEncryptionEnabled", + "isBurstable", "shape", "timeCreated" }) @@ -36,6 +37,7 @@ public DedicatedVmHostInstanceSummary( String compartmentId, String instanceId, Boolean isMemoryEncryptionEnabled, + Boolean isBurstable, String shape, java.util.Date timeCreated) { super(); @@ -43,6 +45,7 @@ public DedicatedVmHostInstanceSummary( this.compartmentId = compartmentId; this.instanceId = instanceId; this.isMemoryEncryptionEnabled = isMemoryEncryptionEnabled; + this.isBurstable = isBurstable; this.shape = shape; this.timeCreated = timeCreated; } @@ -125,6 +128,24 @@ public Builder isMemoryEncryptionEnabled(Boolean isMemoryEncryptionEnabled) { this.__explicitlySet__.add("isMemoryEncryptionEnabled"); return this; } + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBurstable") + private Boolean isBurstable; + + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + * @param isBurstable the value to set + * @return this builder + **/ + public Builder isBurstable(Boolean isBurstable) { + this.isBurstable = isBurstable; + this.__explicitlySet__.add("isBurstable"); + return this; + } /** * The shape of the VM instance. * @@ -176,6 +197,7 @@ public DedicatedVmHostInstanceSummary build() { this.compartmentId, this.instanceId, this.isMemoryEncryptionEnabled, + this.isBurstable, this.shape, this.timeCreated); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -198,6 +220,9 @@ public Builder copy(DedicatedVmHostInstanceSummary model) { if (model.wasPropertyExplicitlySet("isMemoryEncryptionEnabled")) { this.isMemoryEncryptionEnabled(model.getIsMemoryEncryptionEnabled()); } + if (model.wasPropertyExplicitlySet("isBurstable")) { + this.isBurstable(model.getIsBurstable()); + } if (model.wasPropertyExplicitlySet("shape")) { this.shape(model.getShape()); } @@ -287,6 +312,22 @@ public Boolean getIsMemoryEncryptionEnabled() { return isMemoryEncryptionEnabled; } + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBurstable") + private final Boolean isBurstable; + + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + * @return the value + **/ + public Boolean getIsBurstable() { + return isBurstable; + } + /** * The shape of the VM instance. * @@ -342,6 +383,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", instanceId=").append(String.valueOf(this.instanceId)); sb.append(", isMemoryEncryptionEnabled=") .append(String.valueOf(this.isMemoryEncryptionEnabled)); + sb.append(", isBurstable=").append(String.valueOf(this.isBurstable)); sb.append(", shape=").append(String.valueOf(this.shape)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(")"); @@ -363,6 +405,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.instanceId, other.instanceId) && java.util.Objects.equals( this.isMemoryEncryptionEnabled, other.isMemoryEncryptionEnabled) + && java.util.Objects.equals(this.isBurstable, other.isBurstable) && java.util.Objects.equals(this.shape, other.shape) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && super.equals(other); @@ -386,6 +429,7 @@ public int hashCode() { + (this.isMemoryEncryptionEnabled == null ? 43 : this.isMemoryEncryptionEnabled.hashCode()); + result = (result * PRIME) + (this.isBurstable == null ? 43 : this.isBurstable.hashCode()); result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHostSummary.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHostSummary.java index 6a59c6b28ea..3e189e97a9b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHostSummary.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/DedicatedVmHostSummary.java @@ -31,6 +31,7 @@ public final class DedicatedVmHostSummary "faultDomain", "id", "isMemoryEncryptionEnabled", + "isBurstable", "lifecycleState", "timeCreated", "remainingOcpus", @@ -48,6 +49,7 @@ public DedicatedVmHostSummary( String faultDomain, String id, Boolean isMemoryEncryptionEnabled, + Boolean isBurstable, LifecycleState lifecycleState, java.util.Date timeCreated, Float remainingOcpus, @@ -64,6 +66,7 @@ public DedicatedVmHostSummary( this.faultDomain = faultDomain; this.id = id; this.isMemoryEncryptionEnabled = isMemoryEncryptionEnabled; + this.isBurstable = isBurstable; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; this.remainingOcpus = remainingOcpus; @@ -224,6 +227,24 @@ public Builder isMemoryEncryptionEnabled(Boolean isMemoryEncryptionEnabled) { this.__explicitlySet__.add("isMemoryEncryptionEnabled"); return this; } + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBurstable") + private Boolean isBurstable; + + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + * @param isBurstable the value to set + * @return this builder + **/ + public Builder isBurstable(Boolean isBurstable) { + this.isBurstable = isBurstable; + this.__explicitlySet__.add("isBurstable"); + return this; + } /** * The current state of the dedicated VM host. * @@ -386,6 +407,7 @@ public DedicatedVmHostSummary build() { this.faultDomain, this.id, this.isMemoryEncryptionEnabled, + this.isBurstable, this.lifecycleState, this.timeCreated, this.remainingOcpus, @@ -423,6 +445,9 @@ public Builder copy(DedicatedVmHostSummary model) { if (model.wasPropertyExplicitlySet("isMemoryEncryptionEnabled")) { this.isMemoryEncryptionEnabled(model.getIsMemoryEncryptionEnabled()); } + if (model.wasPropertyExplicitlySet("isBurstable")) { + this.isBurstable(model.getIsBurstable()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -596,6 +621,22 @@ public Boolean getIsMemoryEncryptionEnabled() { return isMemoryEncryptionEnabled; } + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBurstable") + private final Boolean isBurstable; + + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + * @return the value + **/ + public Boolean getIsBurstable() { + return isBurstable; + } + /** * The current state of the dedicated VM host. * @@ -803,6 +844,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", id=").append(String.valueOf(this.id)); sb.append(", isMemoryEncryptionEnabled=") .append(String.valueOf(this.isMemoryEncryptionEnabled)); + sb.append(", isBurstable=").append(String.valueOf(this.isBurstable)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", remainingOcpus=").append(String.valueOf(this.remainingOcpus)); @@ -834,6 +876,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals( this.isMemoryEncryptionEnabled, other.isMemoryEncryptionEnabled) + && java.util.Objects.equals(this.isBurstable, other.isBurstable) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.remainingOcpus, other.remainingOcpus) @@ -871,6 +914,7 @@ public int hashCode() { + (this.isMemoryEncryptionEnabled == null ? 43 : this.isMemoryEncryptionEnabled.hashCode()); + result = (result * PRIME) + (this.isBurstable == null ? 43 : this.isBurstable.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfiguration.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfiguration.java index 0d776449e0b..3a3a31ae7a8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfiguration.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfiguration.java @@ -6,6 +6,8 @@ /** * An instance configuration is a template that defines the settings to use when creating Compute instances. + * An instance configuration is a template that defines the settings to use when creating Compute instances + * or GPU Memory Clusters. * For more information about instance configurations, see * [Managing Compute Instances](https://docs.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm). * @@ -32,6 +34,8 @@ public final class InstanceConfiguration "freeformTags", "id", "instanceDetails", + "gmcConfigs", + "source", "deferredFields", "timeCreated" }) @@ -42,6 +46,8 @@ public InstanceConfiguration( java.util.Map freeformTags, String id, InstanceConfigurationInstanceDetails instanceDetails, + java.util.List gmcConfigs, + Source source, java.util.List deferredFields, java.util.Date timeCreated) { super(); @@ -51,6 +57,8 @@ public InstanceConfiguration( this.freeformTags = freeformTags; this.id = id; this.instanceDetails = instanceDetails; + this.gmcConfigs = gmcConfigs; + this.source = source; this.deferredFields = deferredFields; this.timeCreated = timeCreated; } @@ -171,6 +179,46 @@ public Builder instanceDetails(InstanceConfigurationInstanceDetails instanceDeta this.__explicitlySet__.add("instanceDetails"); return this; } + /** + * The GPU Memory Cluster configuration entries for. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gmcConfigs") + private java.util.List gmcConfigs; + + /** + * The GPU Memory Cluster configuration entries for. + * @param gmcConfigs the value to set + * @return this builder + **/ + public Builder gmcConfigs(java.util.List gmcConfigs) { + this.gmcConfigs = gmcConfigs; + this.__explicitlySet__.add("gmcConfigs"); + return this; + } + /** + * Differentiator for instance configuration. + * Following values are supported: + * * INSTANCE : All details related to instance will be passed within instanceDetails. + * * GMC : All details related to gpu memory cluster will be passed within gmcConfigs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("source") + private Source source; + + /** + * Differentiator for instance configuration. + * Following values are supported: + * * INSTANCE : All details related to instance will be passed within instanceDetails. + * * GMC : All details related to gpu memory cluster will be passed within gmcConfigs. + * + * @param source the value to set + * @return this builder + **/ + public Builder source(Source source) { + this.source = source; + this.__explicitlySet__.add("source"); + return this; + } /** * Parameters that were not specified when the instance configuration was created, but that * are required to launch an instance from the instance configuration. See the @@ -228,6 +276,8 @@ public InstanceConfiguration build() { this.freeformTags, this.id, this.instanceDetails, + this.gmcConfigs, + this.source, this.deferredFields, this.timeCreated); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -256,6 +306,12 @@ public Builder copy(InstanceConfiguration model) { if (model.wasPropertyExplicitlySet("instanceDetails")) { this.instanceDetails(model.getInstanceDetails()); } + if (model.wasPropertyExplicitlySet("gmcConfigs")) { + this.gmcConfigs(model.getGmcConfigs()); + } + if (model.wasPropertyExplicitlySet("source")) { + this.source(model.getSource()); + } if (model.wasPropertyExplicitlySet("deferredFields")) { this.deferredFields(model.getDeferredFields()); } @@ -378,6 +434,93 @@ public InstanceConfigurationInstanceDetails getInstanceDetails() { return instanceDetails; } + /** + * The GPU Memory Cluster configuration entries for. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gmcConfigs") + private final java.util.List gmcConfigs; + + /** + * The GPU Memory Cluster configuration entries for. + * @return the value + **/ + public java.util.List getGmcConfigs() { + return gmcConfigs; + } + + /** + * Differentiator for instance configuration. + * Following values are supported: + * * INSTANCE : All details related to instance will be passed within instanceDetails. + * * GMC : All details related to gpu memory cluster will be passed within gmcConfigs. + * + **/ + public enum Source { + Instance("INSTANCE"), + Gmc("GMC"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Source.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Source v : Source.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Source(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Source create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Source', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Differentiator for instance configuration. + * Following values are supported: + * * INSTANCE : All details related to instance will be passed within instanceDetails. + * * GMC : All details related to gpu memory cluster will be passed within gmcConfigs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("source") + private final Source source; + + /** + * Differentiator for instance configuration. + * Following values are supported: + * * INSTANCE : All details related to instance will be passed within instanceDetails. + * * GMC : All details related to gpu memory cluster will be passed within gmcConfigs. + * + * @return the value + **/ + public Source getSource() { + return source; + } + /** * Parameters that were not specified when the instance configuration was created, but that * are required to launch an instance from the instance configuration. See the @@ -438,6 +581,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", id=").append(String.valueOf(this.id)); sb.append(", instanceDetails=").append(String.valueOf(this.instanceDetails)); + sb.append(", gmcConfigs=").append(String.valueOf(this.gmcConfigs)); + sb.append(", source=").append(String.valueOf(this.source)); sb.append(", deferredFields=").append(String.valueOf(this.deferredFields)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(")"); @@ -460,6 +605,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.instanceDetails, other.instanceDetails) + && java.util.Objects.equals(this.gmcConfigs, other.gmcConfigs) + && java.util.Objects.equals(this.source, other.source) && java.util.Objects.equals(this.deferredFields, other.deferredFields) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && super.equals(other); @@ -479,6 +626,8 @@ public int hashCode() { result = (result * PRIME) + (this.instanceDetails == null ? 43 : this.instanceDetails.hashCode()); + result = (result * PRIME) + (this.gmcConfigs == null ? 43 : this.gmcConfigs.hashCode()); + result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); result = (result * PRIME) + (this.deferredFields == null ? 43 : this.deferredFields.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationGmcConfigDetail.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationGmcConfigDetail.java new file mode 100644 index 00000000000..1266f8c527f --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationGmcConfigDetail.java @@ -0,0 +1,489 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.model; + +/** + * Configuration detail for a GPU Memory Cluster entry within an instance configuration. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InstanceConfigurationGmcConfigDetail.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InstanceConfigurationGmcConfigDetail + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "instanceConfigurationId", + "availabilityDomain", + "compartmentId", + "size", + "gpuMemoryClusterScaleConfig", + "displayName", + "definedTags", + "freeformTags" + }) + public InstanceConfigurationGmcConfigDetail( + String instanceConfigurationId, + String availabilityDomain, + String compartmentId, + Long size, + InstanceConfigurationGpuMemoryClusterScaleConfig gpuMemoryClusterScaleConfig, + String displayName, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.instanceConfigurationId = instanceConfigurationId; + this.availabilityDomain = availabilityDomain; + this.compartmentId = compartmentId; + this.size = size; + this.gpuMemoryClusterScaleConfig = gpuMemoryClusterScaleConfig; + this.displayName = displayName; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the base compute instance configuration + * associated with this GMC configuration entry. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceConfigurationId") + private String instanceConfigurationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the base compute instance configuration + * associated with this GMC configuration entry. + * + * @param instanceConfigurationId the value to set + * @return this builder + **/ + public Builder instanceConfigurationId(String instanceConfigurationId) { + this.instanceConfigurationId = instanceConfigurationId; + this.__explicitlySet__.add("instanceConfigurationId"); + return this; + } + /** + * The availability domain for this GMC configuration entry. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The availability domain for this GMC configuration entry. + * + * @param availabilityDomain the value to set + * @return this builder + **/ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment associated with this GMC + * configuration entry. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment associated with this GMC + * configuration entry. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The desired number of instances for this GMC configuration entry. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("size") + private Long size; + + /** + * The desired number of instances for this GMC configuration entry. + * + * @param size the value to set + * @return this builder + **/ + public Builder size(Long size) { + this.size = size; + this.__explicitlySet__.add("size"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gpuMemoryClusterScaleConfig") + private InstanceConfigurationGpuMemoryClusterScaleConfig gpuMemoryClusterScaleConfig; + + public Builder gpuMemoryClusterScaleConfig( + InstanceConfigurationGpuMemoryClusterScaleConfig gpuMemoryClusterScaleConfig) { + this.gpuMemoryClusterScaleConfig = gpuMemoryClusterScaleConfig; + this.__explicitlySet__.add("gpuMemoryClusterScaleConfig"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InstanceConfigurationGmcConfigDetail build() { + InstanceConfigurationGmcConfigDetail model = + new InstanceConfigurationGmcConfigDetail( + this.instanceConfigurationId, + this.availabilityDomain, + this.compartmentId, + this.size, + this.gpuMemoryClusterScaleConfig, + this.displayName, + this.definedTags, + this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InstanceConfigurationGmcConfigDetail model) { + if (model.wasPropertyExplicitlySet("instanceConfigurationId")) { + this.instanceConfigurationId(model.getInstanceConfigurationId()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("size")) { + this.size(model.getSize()); + } + if (model.wasPropertyExplicitlySet("gpuMemoryClusterScaleConfig")) { + this.gpuMemoryClusterScaleConfig(model.getGpuMemoryClusterScaleConfig()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the base compute instance configuration + * associated with this GMC configuration entry. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceConfigurationId") + private final String instanceConfigurationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the base compute instance configuration + * associated with this GMC configuration entry. + * + * @return the value + **/ + public String getInstanceConfigurationId() { + return instanceConfigurationId; + } + + /** + * The availability domain for this GMC configuration entry. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The availability domain for this GMC configuration entry. + * + * @return the value + **/ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment associated with this GMC + * configuration entry. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment associated with this GMC + * configuration entry. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The desired number of instances for this GMC configuration entry. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("size") + private final Long size; + + /** + * The desired number of instances for this GMC configuration entry. + * + * @return the value + **/ + public Long getSize() { + return size; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gpuMemoryClusterScaleConfig") + private final InstanceConfigurationGpuMemoryClusterScaleConfig gpuMemoryClusterScaleConfig; + + public InstanceConfigurationGpuMemoryClusterScaleConfig getGpuMemoryClusterScaleConfig() { + return gpuMemoryClusterScaleConfig; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InstanceConfigurationGmcConfigDetail("); + sb.append("super=").append(super.toString()); + sb.append("instanceConfigurationId=").append(String.valueOf(this.instanceConfigurationId)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", size=").append(String.valueOf(this.size)); + sb.append(", gpuMemoryClusterScaleConfig=") + .append(String.valueOf(this.gpuMemoryClusterScaleConfig)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstanceConfigurationGmcConfigDetail)) { + return false; + } + + InstanceConfigurationGmcConfigDetail other = (InstanceConfigurationGmcConfigDetail) o; + return java.util.Objects.equals(this.instanceConfigurationId, other.instanceConfigurationId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.size, other.size) + && java.util.Objects.equals( + this.gpuMemoryClusterScaleConfig, other.gpuMemoryClusterScaleConfig) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.instanceConfigurationId == null + ? 43 + : this.instanceConfigurationId.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.size == null ? 43 : this.size.hashCode()); + result = + (result * PRIME) + + (this.gpuMemoryClusterScaleConfig == null + ? 43 + : this.gpuMemoryClusterScaleConfig.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationGpuMemoryClusterScaleConfig.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationGpuMemoryClusterScaleConfig.java new file mode 100644 index 00000000000..6ae97540211 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationGpuMemoryClusterScaleConfig.java @@ -0,0 +1,231 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.model; + +/** + * Configuration settings for GPU Memory Cluster scaling. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InstanceConfigurationGpuMemoryClusterScaleConfig.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InstanceConfigurationGpuMemoryClusterScaleConfig + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isUpsizeEnabled", "isDownsizeEnabled", "targetSize"}) + public InstanceConfigurationGpuMemoryClusterScaleConfig( + Boolean isUpsizeEnabled, Boolean isDownsizeEnabled, Long targetSize) { + super(); + this.isUpsizeEnabled = isUpsizeEnabled; + this.isDownsizeEnabled = isDownsizeEnabled; + this.targetSize = targetSize; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Enables upsizing towards the target size. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUpsizeEnabled") + private Boolean isUpsizeEnabled; + + /** + * Enables upsizing towards the target size. + * + * @param isUpsizeEnabled the value to set + * @return this builder + **/ + public Builder isUpsizeEnabled(Boolean isUpsizeEnabled) { + this.isUpsizeEnabled = isUpsizeEnabled; + this.__explicitlySet__.add("isUpsizeEnabled"); + return this; + } + /** + * Enables downsizing towards the target size. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDownsizeEnabled") + private Boolean isDownsizeEnabled; + + /** + * Enables downsizing towards the target size. + * + * @param isDownsizeEnabled the value to set + * @return this builder + **/ + public Builder isDownsizeEnabled(Boolean isDownsizeEnabled) { + this.isDownsizeEnabled = isDownsizeEnabled; + this.__explicitlySet__.add("isDownsizeEnabled"); + return this; + } + /** + * The configured target size for the GPU Memory Cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetSize") + private Long targetSize; + + /** + * The configured target size for the GPU Memory Cluster. + * + * @param targetSize the value to set + * @return this builder + **/ + public Builder targetSize(Long targetSize) { + this.targetSize = targetSize; + this.__explicitlySet__.add("targetSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InstanceConfigurationGpuMemoryClusterScaleConfig build() { + InstanceConfigurationGpuMemoryClusterScaleConfig model = + new InstanceConfigurationGpuMemoryClusterScaleConfig( + this.isUpsizeEnabled, this.isDownsizeEnabled, this.targetSize); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InstanceConfigurationGpuMemoryClusterScaleConfig model) { + if (model.wasPropertyExplicitlySet("isUpsizeEnabled")) { + this.isUpsizeEnabled(model.getIsUpsizeEnabled()); + } + if (model.wasPropertyExplicitlySet("isDownsizeEnabled")) { + this.isDownsizeEnabled(model.getIsDownsizeEnabled()); + } + if (model.wasPropertyExplicitlySet("targetSize")) { + this.targetSize(model.getTargetSize()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Enables upsizing towards the target size. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUpsizeEnabled") + private final Boolean isUpsizeEnabled; + + /** + * Enables upsizing towards the target size. + * + * @return the value + **/ + public Boolean getIsUpsizeEnabled() { + return isUpsizeEnabled; + } + + /** + * Enables downsizing towards the target size. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDownsizeEnabled") + private final Boolean isDownsizeEnabled; + + /** + * Enables downsizing towards the target size. + * + * @return the value + **/ + public Boolean getIsDownsizeEnabled() { + return isDownsizeEnabled; + } + + /** + * The configured target size for the GPU Memory Cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetSize") + private final Long targetSize; + + /** + * The configured target size for the GPU Memory Cluster. + * + * @return the value + **/ + public Long getTargetSize() { + return targetSize; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InstanceConfigurationGpuMemoryClusterScaleConfig("); + sb.append("super=").append(super.toString()); + sb.append("isUpsizeEnabled=").append(String.valueOf(this.isUpsizeEnabled)); + sb.append(", isDownsizeEnabled=").append(String.valueOf(this.isDownsizeEnabled)); + sb.append(", targetSize=").append(String.valueOf(this.targetSize)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstanceConfigurationGpuMemoryClusterScaleConfig)) { + return false; + } + + InstanceConfigurationGpuMemoryClusterScaleConfig other = + (InstanceConfigurationGpuMemoryClusterScaleConfig) o; + return java.util.Objects.equals(this.isUpsizeEnabled, other.isUpsizeEnabled) + && java.util.Objects.equals(this.isDownsizeEnabled, other.isDownsizeEnabled) + && java.util.Objects.equals(this.targetSize, other.targetSize) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isUpsizeEnabled == null ? 43 : this.isUpsizeEnabled.hashCode()); + result = + (result * PRIME) + + (this.isDownsizeEnabled == null ? 43 : this.isDownsizeEnabled.hashCode()); + result = (result * PRIME) + (this.targetSize == null ? 43 : this.targetSize.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePool.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePool.java index 4e49b6fe784..7480e559a55 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePool.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePool.java @@ -29,6 +29,7 @@ public final class InstancePool extends com.oracle.bmc.http.internal.ExplicitlyS "displayName", "freeformTags", "instanceConfigurationId", + "poolType", "lifecycleState", "placementConfigurations", "size", @@ -46,6 +47,7 @@ public InstancePool( String displayName, java.util.Map freeformTags, String instanceConfigurationId, + PoolType poolType, LifecycleState lifecycleState, java.util.List placementConfigurations, Integer size, @@ -62,6 +64,7 @@ public InstancePool( this.displayName = displayName; this.freeformTags = freeformTags; this.instanceConfigurationId = instanceConfigurationId; + this.poolType = poolType; this.lifecycleState = lifecycleState; this.placementConfigurations = placementConfigurations; this.size = size; @@ -200,6 +203,24 @@ public Builder instanceConfigurationId(String instanceConfigurationId) { this.__explicitlySet__.add("instanceConfigurationId"); return this; } + /** + * The type of resources managed by the pool. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("poolType") + private PoolType poolType; + + /** + * The type of resources managed by the pool. + * + * @param poolType the value to set + * @return this builder + **/ + public Builder poolType(PoolType poolType) { + this.poolType = poolType; + this.__explicitlySet__.add("poolType"); + return this; + } /** * The current state of the instance pool. **/ @@ -367,6 +388,7 @@ public InstancePool build() { this.displayName, this.freeformTags, this.instanceConfigurationId, + this.poolType, this.lifecycleState, this.placementConfigurations, this.size, @@ -402,6 +424,9 @@ public Builder copy(InstancePool model) { if (model.wasPropertyExplicitlySet("instanceConfigurationId")) { this.instanceConfigurationId(model.getInstanceConfigurationId()); } + if (model.wasPropertyExplicitlySet("poolType")) { + this.poolType(model.getPoolType()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -556,6 +581,71 @@ public String getInstanceConfigurationId() { return instanceConfigurationId; } + /** + * The type of resources managed by the pool. + * + **/ + public enum PoolType { + Instance("INSTANCE"), + Gmc("GMC"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PoolType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PoolType v : PoolType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PoolType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PoolType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PoolType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The type of resources managed by the pool. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("poolType") + private final PoolType poolType; + + /** + * The type of resources managed by the pool. + * + * @return the value + **/ + public PoolType getPoolType() { + return poolType; + } + /** * The current state of the instance pool. **/ @@ -764,6 +854,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", instanceConfigurationId=") .append(String.valueOf(this.instanceConfigurationId)); + sb.append(", poolType=").append(String.valueOf(this.poolType)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", placementConfigurations=") .append(String.valueOf(this.placementConfigurations)); @@ -797,6 +888,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals( this.instanceConfigurationId, other.instanceConfigurationId) + && java.util.Objects.equals(this.poolType, other.poolType) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals( this.placementConfigurations, other.placementConfigurations) @@ -828,6 +920,7 @@ public int hashCode() { + (this.instanceConfigurationId == null ? 43 : this.instanceConfigurationId.hashCode()); + result = (result * PRIME) + (this.poolType == null ? 43 : this.poolType.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java index 1bd28a2e8f4..2c5737b2e64 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java @@ -26,6 +26,7 @@ public final class InstancePoolSummary extends com.oracle.bmc.http.internal.Expl "compartmentId", "displayName", "instanceConfigurationId", + "poolType", "lifecycleState", "availabilityDomains", "size", @@ -39,6 +40,7 @@ public InstancePoolSummary( String compartmentId, String displayName, String instanceConfigurationId, + InstancePool.PoolType poolType, LifecycleState lifecycleState, java.util.List availabilityDomains, Integer size, @@ -51,6 +53,7 @@ public InstancePoolSummary( this.compartmentId = compartmentId; this.displayName = displayName; this.instanceConfigurationId = instanceConfigurationId; + this.poolType = poolType; this.lifecycleState = lifecycleState; this.availabilityDomains = availabilityDomains; this.size = size; @@ -130,6 +133,24 @@ public Builder instanceConfigurationId(String instanceConfigurationId) { this.__explicitlySet__.add("instanceConfigurationId"); return this; } + /** + * The type of resources managed by the pool. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("poolType") + private InstancePool.PoolType poolType; + + /** + * The type of resources managed by the pool. + * + * @param poolType the value to set + * @return this builder + **/ + public Builder poolType(InstancePool.PoolType poolType) { + this.poolType = poolType; + this.__explicitlySet__.add("poolType"); + return this; + } /** * The current state of the instance pool. **/ @@ -274,6 +295,7 @@ public InstancePoolSummary build() { this.compartmentId, this.displayName, this.instanceConfigurationId, + this.poolType, this.lifecycleState, this.availabilityDomains, this.size, @@ -301,6 +323,9 @@ public Builder copy(InstancePoolSummary model) { if (model.wasPropertyExplicitlySet("instanceConfigurationId")) { this.instanceConfigurationId(model.getInstanceConfigurationId()); } + if (model.wasPropertyExplicitlySet("poolType")) { + this.poolType(model.getPoolType()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -397,6 +422,22 @@ public String getInstanceConfigurationId() { return instanceConfigurationId; } + /** + * The type of resources managed by the pool. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("poolType") + private final InstancePool.PoolType poolType; + + /** + * The type of resources managed by the pool. + * + * @return the value + **/ + public InstancePool.PoolType getPoolType() { + return poolType; + } + /** * The current state of the instance pool. **/ @@ -588,6 +629,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", instanceConfigurationId=") .append(String.valueOf(this.instanceConfigurationId)); + sb.append(", poolType=").append(String.valueOf(this.poolType)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", availabilityDomains=").append(String.valueOf(this.availabilityDomains)); sb.append(", size=").append(String.valueOf(this.size)); @@ -614,6 +656,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals( this.instanceConfigurationId, other.instanceConfigurationId) + && java.util.Objects.equals(this.poolType, other.poolType) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.availabilityDomains, other.availabilityDomains) && java.util.Objects.equals(this.size, other.size) @@ -638,6 +681,7 @@ public int hashCode() { + (this.instanceConfigurationId == null ? 43 : this.instanceConfigurationId.hashCode()); + result = (result * PRIME) + (this.poolType == null ? 43 : this.poolType.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Instances.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Instances.java new file mode 100644 index 00000000000..298849bc5cb --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Instances.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.model; + +/** + * SPLAT authorization alias for Compute instance operations that use the downstream instances resource kind. + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Instances.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class Instances extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + public Instances() { + super(); + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Instances build() { + Instances model = new Instances(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Instances model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Instances("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Instances)) { + return false; + } + + Instances other = (Instances) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Ipv6.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Ipv6.java index a76a91bf807..873818fb3ca 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Ipv6.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Ipv6.java @@ -41,7 +41,8 @@ public final class Ipv6 extends com.oracle.bmc.http.internal.ExplicitlySetBmcMod "vnicId", "ipState", "lifetime", - "routeTableId" + "routeTableId", + "hostname" }) public Ipv6( String compartmentId, @@ -57,7 +58,8 @@ public Ipv6( String vnicId, IpState ipState, Lifetime lifetime, - String routeTableId) { + String routeTableId, + String hostname) { super(); this.compartmentId = compartmentId; this.definedTags = definedTags; @@ -73,6 +75,7 @@ public Ipv6( this.ipState = ipState; this.lifetime = lifetime; this.routeTableId = routeTableId; + this.hostname = hostname; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -358,6 +361,24 @@ public Builder routeTableId(String routeTableId) { this.__explicitlySet__.add("routeTableId"); return this; } + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private String hostname; + + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + * @param hostname the value to set + * @return this builder + **/ + public Builder hostname(String hostname) { + this.hostname = hostname; + this.__explicitlySet__.add("hostname"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -378,7 +399,8 @@ public Ipv6 build() { this.vnicId, this.ipState, this.lifetime, - this.routeTableId); + this.routeTableId, + this.hostname); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -429,6 +451,9 @@ public Builder copy(Ipv6 model) { if (model.wasPropertyExplicitlySet("routeTableId")) { this.routeTableId(model.getRouteTableId()); } + if (model.wasPropertyExplicitlySet("hostname")) { + this.hostname(model.getHostname()); + } return this; } } @@ -847,6 +872,22 @@ public String getRouteTableId() { return routeTableId; } + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private final String hostname; + + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + * @return the value + **/ + public String getHostname() { + return hostname; + } + @Override public String toString() { return this.toString(true); @@ -875,6 +916,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", ipState=").append(String.valueOf(this.ipState)); sb.append(", lifetime=").append(String.valueOf(this.lifetime)); sb.append(", routeTableId=").append(String.valueOf(this.routeTableId)); + sb.append(", hostname=").append(String.valueOf(this.hostname)); sb.append(")"); return sb.toString(); } @@ -903,6 +945,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.ipState, other.ipState) && java.util.Objects.equals(this.lifetime, other.lifetime) && java.util.Objects.equals(this.routeTableId, other.routeTableId) + && java.util.Objects.equals(this.hostname, other.hostname) && super.equals(other); } @@ -930,6 +973,7 @@ public int hashCode() { result = (result * PRIME) + (this.ipState == null ? 43 : this.ipState.hashCode()); result = (result * PRIME) + (this.lifetime == null ? 43 : this.lifetime.hashCode()); result = (result * PRIME) + (this.routeTableId == null ? 43 : this.routeTableId.hashCode()); + result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceLicensingConfig.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceLicensingConfig.java index 8093f103e60..0946e8e7805 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceLicensingConfig.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceLicensingConfig.java @@ -41,11 +41,13 @@ protected LaunchInstanceLicensingConfig(LicenseType licenseType) { * License Type for the OS license. * * {@code OCI_PROVIDED} - OCI provided license (e.g. metered $/OCPU-hour). * * {@code BRING_YOUR_OWN_LICENSE} - Bring your own license. + * * {@code PARTNER_PROVIDED} - Partner provided license. * **/ public enum LicenseType { OciProvided("OCI_PROVIDED"), BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + PartnerProvided("PARTNER_PROVIDED"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -92,6 +94,7 @@ public static LicenseType create(String key) { * License Type for the OS license. * * {@code OCI_PROVIDED} - OCI provided license (e.g. metered $/OCPU-hour). * * {@code BRING_YOUR_OWN_LICENSE} - Bring your own license. + * * {@code PARTNER_PROVIDED} - Partner provided license. * **/ @com.fasterxml.jackson.annotation.JsonProperty("licenseType") @@ -101,6 +104,7 @@ public static LicenseType create(String key) { * License Type for the OS license. * * {@code OCI_PROVIDED} - OCI provided license (e.g. metered $/OCPU-hour). * * {@code BRING_YOUR_OWN_LICENSE} - Bring your own license. + * * {@code PARTNER_PROVIDED} - Partner provided license. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/LetterOfAuthority.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/LetterOfAuthority.java index d1e57eea19d..f579bf9e15b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/LetterOfAuthority.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/LetterOfAuthority.java @@ -30,7 +30,9 @@ public final class LetterOfAuthority extends com.oracle.bmc.http.internal.Explic "facilityLocation", "portName", "timeExpires", - "timeIssued" + "timeIssued", + "authorizedAgent", + "extensionDetails" }) public LetterOfAuthority( String authorizedEntityName, @@ -39,7 +41,9 @@ public LetterOfAuthority( String facilityLocation, String portName, java.util.Date timeExpires, - java.util.Date timeIssued) { + java.util.Date timeIssued, + String authorizedAgent, + LoaExtensionData extensionDetails) { super(); this.authorizedEntityName = authorizedEntityName; this.circuitType = circuitType; @@ -48,6 +52,8 @@ public LetterOfAuthority( this.portName = portName; this.timeExpires = timeExpires; this.timeIssued = timeIssued; + this.authorizedAgent = authorizedAgent; + this.extensionDetails = extensionDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -172,6 +178,31 @@ public Builder timeIssued(java.util.Date timeIssued) { this.__explicitlySet__.add("timeIssued"); return this; } + /** + * Name of a customer authorized agent which will be appended to the LOA as 'Authorized Agent'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authorizedAgent") + private String authorizedAgent; + + /** + * Name of a customer authorized agent which will be appended to the LOA as 'Authorized Agent'. + * @param authorizedAgent the value to set + * @return this builder + **/ + public Builder authorizedAgent(String authorizedAgent) { + this.authorizedAgent = authorizedAgent; + this.__explicitlySet__.add("authorizedAgent"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extensionDetails") + private LoaExtensionData extensionDetails; + + public Builder extensionDetails(LoaExtensionData extensionDetails) { + this.extensionDetails = extensionDetails; + this.__explicitlySet__.add("extensionDetails"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -185,7 +216,9 @@ public LetterOfAuthority build() { this.facilityLocation, this.portName, this.timeExpires, - this.timeIssued); + this.timeIssued, + this.authorizedAgent, + this.extensionDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -215,6 +248,12 @@ public Builder copy(LetterOfAuthority model) { if (model.wasPropertyExplicitlySet("timeIssued")) { this.timeIssued(model.getTimeIssued()); } + if (model.wasPropertyExplicitlySet("authorizedAgent")) { + this.authorizedAgent(model.getAuthorizedAgent()); + } + if (model.wasPropertyExplicitlySet("extensionDetails")) { + this.extensionDetails(model.getExtensionDetails()); + } return this; } } @@ -384,6 +423,27 @@ public java.util.Date getTimeIssued() { return timeIssued; } + /** + * Name of a customer authorized agent which will be appended to the LOA as 'Authorized Agent'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authorizedAgent") + private final String authorizedAgent; + + /** + * Name of a customer authorized agent which will be appended to the LOA as 'Authorized Agent'. + * @return the value + **/ + public String getAuthorizedAgent() { + return authorizedAgent; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extensionDetails") + private final LoaExtensionData extensionDetails; + + public LoaExtensionData getExtensionDetails() { + return extensionDetails; + } + @Override public String toString() { return this.toString(true); @@ -405,6 +465,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", portName=").append(String.valueOf(this.portName)); sb.append(", timeExpires=").append(String.valueOf(this.timeExpires)); sb.append(", timeIssued=").append(String.valueOf(this.timeIssued)); + sb.append(", authorizedAgent=").append(String.valueOf(this.authorizedAgent)); + sb.append(", extensionDetails=").append(String.valueOf(this.extensionDetails)); sb.append(")"); return sb.toString(); } @@ -426,6 +488,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.portName, other.portName) && java.util.Objects.equals(this.timeExpires, other.timeExpires) && java.util.Objects.equals(this.timeIssued, other.timeIssued) + && java.util.Objects.equals(this.authorizedAgent, other.authorizedAgent) + && java.util.Objects.equals(this.extensionDetails, other.extensionDetails) && super.equals(other); } @@ -448,6 +512,12 @@ public int hashCode() { result = (result * PRIME) + (this.portName == null ? 43 : this.portName.hashCode()); result = (result * PRIME) + (this.timeExpires == null ? 43 : this.timeExpires.hashCode()); result = (result * PRIME) + (this.timeIssued == null ? 43 : this.timeIssued.hashCode()); + result = + (result * PRIME) + + (this.authorizedAgent == null ? 43 : this.authorizedAgent.hashCode()); + result = + (result * PRIME) + + (this.extensionDetails == null ? 43 : this.extensionDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/LicensingConfig.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/LicensingConfig.java index 7a258a1c471..cf3be7e22dd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/LicensingConfig.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/LicensingConfig.java @@ -49,6 +49,7 @@ public Builder type(Type type) { * License Type for the OS license. * * {@code OCI_PROVIDED} - OCI provided license (e.g. metered $/OCPU-hour). * * {@code BRING_YOUR_OWN_LICENSE} - Bring your own license. + * * {@code PARTNER_PROVIDED} - Partner provided license. * **/ @com.fasterxml.jackson.annotation.JsonProperty("licenseType") @@ -58,6 +59,7 @@ public Builder type(Type type) { * License Type for the OS license. * * {@code OCI_PROVIDED} - OCI provided license (e.g. metered $/OCPU-hour). * * {@code BRING_YOUR_OWN_LICENSE} - Bring your own license. + * * {@code PARTNER_PROVIDED} - Partner provided license. * * @param licenseType the value to set * @return this builder @@ -185,11 +187,13 @@ public Type getType() { * License Type for the OS license. * * {@code OCI_PROVIDED} - OCI provided license (e.g. metered $/OCPU-hour). * * {@code BRING_YOUR_OWN_LICENSE} - Bring your own license. + * * {@code PARTNER_PROVIDED} - Partner provided license. * **/ public enum LicenseType { OciProvided("OCI_PROVIDED"), BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + PartnerProvided("PARTNER_PROVIDED"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -236,6 +240,7 @@ public static LicenseType create(String key) { * License Type for the OS license. * * {@code OCI_PROVIDED} - OCI provided license (e.g. metered $/OCPU-hour). * * {@code BRING_YOUR_OWN_LICENSE} - Bring your own license. + * * {@code PARTNER_PROVIDED} - Partner provided license. * **/ @com.fasterxml.jackson.annotation.JsonProperty("licenseType") @@ -245,6 +250,7 @@ public static LicenseType create(String key) { * License Type for the OS license. * * {@code OCI_PROVIDED} - OCI provided license (e.g. metered $/OCPU-hour). * * {@code BRING_YOUR_OWN_LICENSE} - Bring your own license. + * * {@code PARTNER_PROVIDED} - Partner provided license. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/LoaExtensionData.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/LoaExtensionData.java new file mode 100644 index 00000000000..6686633fbdb --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/LoaExtensionData.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.model; + +/** + * Data related to the extension of the Expiry date of the LOA. It gives you number of remaining extensions along + * with a history of past extensions made on the LOA. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = LoaExtensionData.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class LoaExtensionData extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"remainingExtensions", "history"}) + public LoaExtensionData(Long remainingExtensions, java.util.List history) { + super(); + this.remainingExtensions = remainingExtensions; + this.history = history; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The maximum number of times this LOA's expiry can be extended. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("remainingExtensions") + private Long remainingExtensions; + + /** + * The maximum number of times this LOA's expiry can be extended. + * @param remainingExtensions the value to set + * @return this builder + **/ + public Builder remainingExtensions(Long remainingExtensions) { + this.remainingExtensions = remainingExtensions; + this.__explicitlySet__.add("remainingExtensions"); + return this; + } + /** + * Chronologically sorted list of date and time when the Letter of Authority's expiration was last updated, + * most recent first, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). List is empty + * if the LOA's expiration date has never been extended. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("history") + private java.util.List history; + + /** + * Chronologically sorted list of date and time when the Letter of Authority's expiration was last updated, + * most recent first, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). List is empty + * if the LOA's expiration date has never been extended. + * + * @param history the value to set + * @return this builder + **/ + public Builder history(java.util.List history) { + this.history = history; + this.__explicitlySet__.add("history"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LoaExtensionData build() { + LoaExtensionData model = new LoaExtensionData(this.remainingExtensions, this.history); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LoaExtensionData model) { + if (model.wasPropertyExplicitlySet("remainingExtensions")) { + this.remainingExtensions(model.getRemainingExtensions()); + } + if (model.wasPropertyExplicitlySet("history")) { + this.history(model.getHistory()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The maximum number of times this LOA's expiry can be extended. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("remainingExtensions") + private final Long remainingExtensions; + + /** + * The maximum number of times this LOA's expiry can be extended. + * @return the value + **/ + public Long getRemainingExtensions() { + return remainingExtensions; + } + + /** + * Chronologically sorted list of date and time when the Letter of Authority's expiration was last updated, + * most recent first, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). List is empty + * if the LOA's expiration date has never been extended. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("history") + private final java.util.List history; + + /** + * Chronologically sorted list of date and time when the Letter of Authority's expiration was last updated, + * most recent first, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). List is empty + * if the LOA's expiration date has never been extended. + * + * @return the value + **/ + public java.util.List getHistory() { + return history; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LoaExtensionData("); + sb.append("super=").append(super.toString()); + sb.append("remainingExtensions=").append(String.valueOf(this.remainingExtensions)); + sb.append(", history=").append(String.valueOf(this.history)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LoaExtensionData)) { + return false; + } + + LoaExtensionData other = (LoaExtensionData) o; + return java.util.Objects.equals(this.remainingExtensions, other.remainingExtensions) + && java.util.Objects.equals(this.history, other.history) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.remainingExtensions == null + ? 43 + : this.remainingExtensions.hashCode()); + result = (result * PRIME) + (this.history == null ? 43 : this.history.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/PlacementConstraintDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/PlacementConstraintDetails.java index 110b0d75517..8da581ab1ff 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/PlacementConstraintDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PlacementConstraintDetails.java @@ -27,6 +27,10 @@ value = HostGroupPlacementConstraintDetails.class, name = "HOST_GROUP" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ComputeClusterPlacementConstraintDetails.class, + name = "COMPUTE_CLUSTER" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ComputeBareMetalHostPlacementConstraintDetails.class, name = "COMPUTE_BARE_METAL_HOST" diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ProviderRemoteRegionName.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ProviderRemoteRegionName.java new file mode 100644 index 00000000000..d69171f1d5a --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ProviderRemoteRegionName.java @@ -0,0 +1,197 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.model; + +/** + * A pair of OCI region and Provider remote region names for FastConnect MultiCloud interconnect. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ProviderRemoteRegionName.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ProviderRemoteRegionName + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"ociRegionName", "providerRegionName"}) + public ProviderRemoteRegionName(String ociRegionName, String providerRegionName) { + super(); + this.ociRegionName = ociRegionName; + this.providerRegionName = providerRegionName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCI region name associated with the provider remote region. + * Example: {@code us-ashburn-1}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ociRegionName") + private String ociRegionName; + + /** + * The OCI region name associated with the provider remote region. + * Example: {@code us-ashburn-1}. + * + * @param ociRegionName the value to set + * @return this builder + **/ + public Builder ociRegionName(String ociRegionName) { + this.ociRegionName = ociRegionName; + this.__explicitlySet__.add("ociRegionName"); + return this; + } + /** + * The provider remote region name associated with the OCI region. + * Example: {@code us-east-1}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerRegionName") + private String providerRegionName; + + /** + * The provider remote region name associated with the OCI region. + * Example: {@code us-east-1}. + * + * @param providerRegionName the value to set + * @return this builder + **/ + public Builder providerRegionName(String providerRegionName) { + this.providerRegionName = providerRegionName; + this.__explicitlySet__.add("providerRegionName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ProviderRemoteRegionName build() { + ProviderRemoteRegionName model = + new ProviderRemoteRegionName(this.ociRegionName, this.providerRegionName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ProviderRemoteRegionName model) { + if (model.wasPropertyExplicitlySet("ociRegionName")) { + this.ociRegionName(model.getOciRegionName()); + } + if (model.wasPropertyExplicitlySet("providerRegionName")) { + this.providerRegionName(model.getProviderRegionName()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCI region name associated with the provider remote region. + * Example: {@code us-ashburn-1}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ociRegionName") + private final String ociRegionName; + + /** + * The OCI region name associated with the provider remote region. + * Example: {@code us-ashburn-1}. + * + * @return the value + **/ + public String getOciRegionName() { + return ociRegionName; + } + + /** + * The provider remote region name associated with the OCI region. + * Example: {@code us-east-1}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerRegionName") + private final String providerRegionName; + + /** + * The provider remote region name associated with the OCI region. + * Example: {@code us-east-1}. + * + * @return the value + **/ + public String getProviderRegionName() { + return providerRegionName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ProviderRemoteRegionName("); + sb.append("super=").append(super.toString()); + sb.append("ociRegionName=").append(String.valueOf(this.ociRegionName)); + sb.append(", providerRegionName=").append(String.valueOf(this.providerRegionName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ProviderRemoteRegionName)) { + return false; + } + + ProviderRemoteRegionName other = (ProviderRemoteRegionName) o; + return java.util.Objects.equals(this.ociRegionName, other.ociRegionName) + && java.util.Objects.equals(this.providerRegionName, other.providerRegionName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.ociRegionName == null ? 43 : this.ociRegionName.hashCode()); + result = + (result * PRIME) + + (this.providerRegionName == null + ? 43 + : this.providerRegionName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/RetentionDuration.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/RetentionDuration.java new file mode 100644 index 00000000000..1f3fc66cb6d --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/RetentionDuration.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.model; + +/** + * This field is used to define the retention period for backups. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups. + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RetentionDuration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RetentionDuration extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"retentionTimeUnit", "retentionTimeAmount"}) + public RetentionDuration(RetentionTimeUnit retentionTimeUnit, Integer retentionTimeAmount) { + super(); + this.retentionTimeUnit = retentionTimeUnit; + this.retentionTimeAmount = retentionTimeAmount; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The value you can assign to the Time Unit property for this Duration may be either "YEARS" or "DAYS". + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionTimeUnit") + private RetentionTimeUnit retentionTimeUnit; + + /** + * The value you can assign to the Time Unit property for this Duration may be either "YEARS" or "DAYS". + * @param retentionTimeUnit the value to set + * @return this builder + **/ + public Builder retentionTimeUnit(RetentionTimeUnit retentionTimeUnit) { + this.retentionTimeUnit = retentionTimeUnit; + this.__explicitlySet__.add("retentionTimeUnit"); + return this; + } + /** + * The value to enter for the amount of retention time should be a numerical figure (such as 1, 7, 30, etc.) that corresponds to the period specified in the retention time unit property (such as YEARS, DAYS). The combination of these two properties determines the total length of the retention period. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionTimeAmount") + private Integer retentionTimeAmount; + + /** + * The value to enter for the amount of retention time should be a numerical figure (such as 1, 7, 30, etc.) that corresponds to the period specified in the retention time unit property (such as YEARS, DAYS). The combination of these two properties determines the total length of the retention period. + * @param retentionTimeAmount the value to set + * @return this builder + **/ + public Builder retentionTimeAmount(Integer retentionTimeAmount) { + this.retentionTimeAmount = retentionTimeAmount; + this.__explicitlySet__.add("retentionTimeAmount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RetentionDuration build() { + RetentionDuration model = + new RetentionDuration(this.retentionTimeUnit, this.retentionTimeAmount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RetentionDuration model) { + if (model.wasPropertyExplicitlySet("retentionTimeUnit")) { + this.retentionTimeUnit(model.getRetentionTimeUnit()); + } + if (model.wasPropertyExplicitlySet("retentionTimeAmount")) { + this.retentionTimeAmount(model.getRetentionTimeAmount()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The value you can assign to the Time Unit property for this Duration may be either "YEARS" or "DAYS". + **/ + public enum RetentionTimeUnit { + Years("YEARS"), + Days("DAYS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RetentionTimeUnit.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RetentionTimeUnit v : RetentionTimeUnit.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RetentionTimeUnit(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RetentionTimeUnit create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RetentionTimeUnit', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The value you can assign to the Time Unit property for this Duration may be either "YEARS" or "DAYS". + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionTimeUnit") + private final RetentionTimeUnit retentionTimeUnit; + + /** + * The value you can assign to the Time Unit property for this Duration may be either "YEARS" or "DAYS". + * @return the value + **/ + public RetentionTimeUnit getRetentionTimeUnit() { + return retentionTimeUnit; + } + + /** + * The value to enter for the amount of retention time should be a numerical figure (such as 1, 7, 30, etc.) that corresponds to the period specified in the retention time unit property (such as YEARS, DAYS). The combination of these two properties determines the total length of the retention period. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionTimeAmount") + private final Integer retentionTimeAmount; + + /** + * The value to enter for the amount of retention time should be a numerical figure (such as 1, 7, 30, etc.) that corresponds to the period specified in the retention time unit property (such as YEARS, DAYS). The combination of these two properties determines the total length of the retention period. + * @return the value + **/ + public Integer getRetentionTimeAmount() { + return retentionTimeAmount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RetentionDuration("); + sb.append("super=").append(super.toString()); + sb.append("retentionTimeUnit=").append(String.valueOf(this.retentionTimeUnit)); + sb.append(", retentionTimeAmount=").append(String.valueOf(this.retentionTimeAmount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RetentionDuration)) { + return false; + } + + RetentionDuration other = (RetentionDuration) o; + return java.util.Objects.equals(this.retentionTimeUnit, other.retentionTimeUnit) + && java.util.Objects.equals(this.retentionTimeAmount, other.retentionTimeAmount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.retentionTimeUnit == null ? 43 : this.retentionTimeUnit.hashCode()); + result = + (result * PRIME) + + (this.retentionTimeAmount == null + ? 43 + : this.retentionTimeAmount.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/SupportedCapabilities.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/SupportedCapabilities.java index 5ca3e03f022..41e30bef0c0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/SupportedCapabilities.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/SupportedCapabilities.java @@ -23,10 +23,12 @@ public final class SupportedCapabilities extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"isMemoryEncryptionSupported"}) - public SupportedCapabilities(Boolean isMemoryEncryptionSupported) { + @java.beans.ConstructorProperties({"isMemoryEncryptionSupported", "isBurstableSupported"}) + public SupportedCapabilities( + Boolean isMemoryEncryptionSupported, Boolean isBurstableSupported) { super(); this.isMemoryEncryptionSupported = isMemoryEncryptionSupported; + this.isBurstableSupported = isBurstableSupported; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -49,13 +51,32 @@ public Builder isMemoryEncryptionSupported(Boolean isMemoryEncryptionSupported) this.__explicitlySet__.add("isMemoryEncryptionSupported"); return this; } + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBurstableSupported") + private Boolean isBurstableSupported; + + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + * @param isBurstableSupported the value to set + * @return this builder + **/ + public Builder isBurstableSupported(Boolean isBurstableSupported) { + this.isBurstableSupported = isBurstableSupported; + this.__explicitlySet__.add("isBurstableSupported"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public SupportedCapabilities build() { SupportedCapabilities model = - new SupportedCapabilities(this.isMemoryEncryptionSupported); + new SupportedCapabilities( + this.isMemoryEncryptionSupported, this.isBurstableSupported); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -67,6 +88,9 @@ public Builder copy(SupportedCapabilities model) { if (model.wasPropertyExplicitlySet("isMemoryEncryptionSupported")) { this.isMemoryEncryptionSupported(model.getIsMemoryEncryptionSupported()); } + if (model.wasPropertyExplicitlySet("isBurstableSupported")) { + this.isBurstableSupported(model.getIsBurstableSupported()); + } return this; } } @@ -98,6 +122,22 @@ public Boolean getIsMemoryEncryptionSupported() { return isMemoryEncryptionSupported; } + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBurstableSupported") + private final Boolean isBurstableSupported; + + /** + * Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If {@code true}, only Burstable VMs can be launched. If {@code false}, Burstable VMs cannot be launched. + * + * @return the value + **/ + public Boolean getIsBurstableSupported() { + return isBurstableSupported; + } + @Override public String toString() { return this.toString(true); @@ -114,6 +154,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("isMemoryEncryptionSupported=") .append(String.valueOf(this.isMemoryEncryptionSupported)); + sb.append(", isBurstableSupported=").append(String.valueOf(this.isBurstableSupported)); sb.append(")"); return sb.toString(); } @@ -130,6 +171,7 @@ public boolean equals(Object o) { SupportedCapabilities other = (SupportedCapabilities) o; return java.util.Objects.equals( this.isMemoryEncryptionSupported, other.isMemoryEncryptionSupported) + && java.util.Objects.equals(this.isBurstableSupported, other.isBurstableSupported) && super.equals(other); } @@ -142,6 +184,11 @@ public int hashCode() { + (this.isMemoryEncryptionSupported == null ? 43 : this.isMemoryEncryptionSupported.hashCode()); + result = + (result * PRIME) + + (this.isBurstableSupported == null + ? 43 + : this.isBurstableSupported.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateBootVolumeBackupDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateBootVolumeBackupDetails.java index c8a6126df71..a3a8616d2e1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateBootVolumeBackupDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateBootVolumeBackupDetails.java @@ -22,17 +22,34 @@ public final class UpdateBootVolumeBackupDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"definedTags", "displayName", "freeformTags", "kmsKeyId"}) + @java.beans.ConstructorProperties({ + "definedTags", + "displayName", + "freeformTags", + "kmsKeyId", + "retentionPeriod", + "isPreventDeletionEnabled", + "isRetentionLockEnabled", + "isIndefiniteRetentionEnabled" + }) public UpdateBootVolumeBackupDetails( java.util.Map> definedTags, String displayName, java.util.Map freeformTags, - String kmsKeyId) { + String kmsKeyId, + RetentionDuration retentionPeriod, + Boolean isPreventDeletionEnabled, + Boolean isRetentionLockEnabled, + Boolean isIndefiniteRetentionEnabled) { super(); this.definedTags = definedTags; this.displayName = displayName; this.freeformTags = freeformTags; this.kmsKeyId = kmsKeyId; + this.retentionPeriod = retentionPeriod; + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -131,13 +148,77 @@ public Builder kmsKeyId(String kmsKeyId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private RetentionDuration retentionPeriod; + + public Builder retentionPeriod(RetentionDuration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @param isPreventDeletionEnabled the value to set + * @return this builder + **/ + public Builder isPreventDeletionEnabled(Boolean isPreventDeletionEnabled) { + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.__explicitlySet__.add("isPreventDeletionEnabled"); + return this; + } + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @param isRetentionLockEnabled the value to set + * @return this builder + **/ + public Builder isRetentionLockEnabled(Boolean isRetentionLockEnabled) { + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.__explicitlySet__.add("isRetentionLockEnabled"); + return this; + } + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @param isIndefiniteRetentionEnabled the value to set + * @return this builder + **/ + public Builder isIndefiniteRetentionEnabled(Boolean isIndefiniteRetentionEnabled) { + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; + this.__explicitlySet__.add("isIndefiniteRetentionEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateBootVolumeBackupDetails build() { UpdateBootVolumeBackupDetails model = new UpdateBootVolumeBackupDetails( - this.definedTags, this.displayName, this.freeformTags, this.kmsKeyId); + this.definedTags, + this.displayName, + this.freeformTags, + this.kmsKeyId, + this.retentionPeriod, + this.isPreventDeletionEnabled, + this.isRetentionLockEnabled, + this.isIndefiniteRetentionEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -158,6 +239,18 @@ public Builder copy(UpdateBootVolumeBackupDetails model) { if (model.wasPropertyExplicitlySet("kmsKeyId")) { this.kmsKeyId(model.getKmsKeyId()); } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("isPreventDeletionEnabled")) { + this.isPreventDeletionEnabled(model.getIsPreventDeletionEnabled()); + } + if (model.wasPropertyExplicitlySet("isRetentionLockEnabled")) { + this.isRetentionLockEnabled(model.getIsRetentionLockEnabled()); + } + if (model.wasPropertyExplicitlySet("isIndefiniteRetentionEnabled")) { + this.isIndefiniteRetentionEnabled(model.getIsIndefiniteRetentionEnabled()); + } return this; } } @@ -257,6 +350,55 @@ public String getKmsKeyId() { return kmsKeyId; } + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final RetentionDuration retentionPeriod; + + public RetentionDuration getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private final Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @return the value + **/ + public Boolean getIsPreventDeletionEnabled() { + return isPreventDeletionEnabled; + } + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private final Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @return the value + **/ + public Boolean getIsRetentionLockEnabled() { + return isRetentionLockEnabled; + } + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private final Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @return the value + **/ + public Boolean getIsIndefiniteRetentionEnabled() { + return isIndefiniteRetentionEnabled; + } + @Override public String toString() { return this.toString(true); @@ -275,6 +417,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", isPreventDeletionEnabled=") + .append(String.valueOf(this.isPreventDeletionEnabled)); + sb.append(", isRetentionLockEnabled=").append(String.valueOf(this.isRetentionLockEnabled)); + sb.append(", isIndefiniteRetentionEnabled=") + .append(String.valueOf(this.isIndefiniteRetentionEnabled)); sb.append(")"); return sb.toString(); } @@ -293,6 +441,13 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals( + this.isPreventDeletionEnabled, other.isPreventDeletionEnabled) + && java.util.Objects.equals( + this.isRetentionLockEnabled, other.isRetentionLockEnabled) + && java.util.Objects.equals( + this.isIndefiniteRetentionEnabled, other.isIndefiniteRetentionEnabled) && super.equals(other); } @@ -304,6 +459,24 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = + (result * PRIME) + + (this.isPreventDeletionEnabled == null + ? 43 + : this.isPreventDeletionEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRetentionLockEnabled == null + ? 43 + : this.isRetentionLockEnabled.hashCode()); + result = + (result * PRIME) + + (this.isIndefiniteRetentionEnabled == null + ? 43 + : this.isIndefiniteRetentionEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeClusterDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeClusterDetails.java index 85a559b0c91..1f1879ed7a9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeClusterDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateComputeClusterDetails.java @@ -5,8 +5,16 @@ package com.oracle.bmc.core.model; /** - * The data to update a compute cluster. A [compute cluster](https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) - * is a remote direct memory access (RDMA) network group. + * The data to update a [compute cluster](https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). + *

+ * Use {@code COMPUTE_CLUSTER} type when using placementConstraintDetails. + *

+ * {@code placementConstraintDetails.hpcIslandId} is create-only and cannot be part of this update request. + *

+ * All other fields in {@code placementConstraintDetails} are optional, and only the fields provided will be updated. + *

+ * If {@code placementConstraintDetails.targetNetworkBlockIds} or {@code placementConstraintDetails.targetMemoryFabricIds} is + * provided, then the target compute cluster must already have {@code hpcIslandId} persisted. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -24,15 +32,22 @@ public final class UpdateComputeClusterDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"displayName", "definedTags", "freeformTags"}) + @java.beans.ConstructorProperties({ + "displayName", + "definedTags", + "freeformTags", + "placementConstraintDetails" + }) public UpdateComputeClusterDetails( String displayName, java.util.Map> definedTags, - java.util.Map freeformTags) { + java.util.Map freeformTags, + PlacementConstraintDetails placementConstraintDetails) { super(); this.displayName = displayName; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.placementConstraintDetails = placementConstraintDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -107,13 +122,26 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("placementConstraintDetails") + private PlacementConstraintDetails placementConstraintDetails; + + public Builder placementConstraintDetails( + PlacementConstraintDetails placementConstraintDetails) { + this.placementConstraintDetails = placementConstraintDetails; + this.__explicitlySet__.add("placementConstraintDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateComputeClusterDetails build() { UpdateComputeClusterDetails model = new UpdateComputeClusterDetails( - this.displayName, this.definedTags, this.freeformTags); + this.displayName, + this.definedTags, + this.freeformTags, + this.placementConstraintDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -131,6 +159,9 @@ public Builder copy(UpdateComputeClusterDetails model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("placementConstraintDetails")) { + this.placementConstraintDetails(model.getPlacementConstraintDetails()); + } return this; } } @@ -208,6 +239,13 @@ public java.util.Map getFreeformTags() { return freeformTags; } + @com.fasterxml.jackson.annotation.JsonProperty("placementConstraintDetails") + private final PlacementConstraintDetails placementConstraintDetails; + + public PlacementConstraintDetails getPlacementConstraintDetails() { + return placementConstraintDetails; + } + @Override public String toString() { return this.toString(true); @@ -225,6 +263,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", placementConstraintDetails=") + .append(String.valueOf(this.placementConstraintDetails)); sb.append(")"); return sb.toString(); } @@ -242,6 +282,8 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals( + this.placementConstraintDetails, other.placementConstraintDetails) && super.equals(other); } @@ -252,6 +294,11 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.placementConstraintDetails == null + ? 43 + : this.placementConstraintDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateCrossConnectDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateCrossConnectDetails.java index 3ecac086b5d..fb802c7a39d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateCrossConnectDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateCrossConnectDetails.java @@ -29,7 +29,9 @@ public final class UpdateCrossConnectDetails "freeformTags", "isActive", "customerReferenceName", - "macsecProperties" + "macsecProperties", + "isInterfaceHoldTimerEnabled", + "interfaceDownTimerValueInMilliseconds" }) public UpdateCrossConnectDetails( java.util.Map> definedTags, @@ -37,7 +39,9 @@ public UpdateCrossConnectDetails( java.util.Map freeformTags, Boolean isActive, String customerReferenceName, - UpdateMacsecProperties macsecProperties) { + UpdateMacsecProperties macsecProperties, + Boolean isInterfaceHoldTimerEnabled, + Integer interfaceDownTimerValueInMilliseconds) { super(); this.definedTags = definedTags; this.displayName = displayName; @@ -45,6 +49,8 @@ public UpdateCrossConnectDetails( this.isActive = isActive; this.customerReferenceName = customerReferenceName; this.macsecProperties = macsecProperties; + this.isInterfaceHoldTimerEnabled = isInterfaceHoldTimerEnabled; + this.interfaceDownTimerValueInMilliseconds = interfaceDownTimerValueInMilliseconds; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -171,6 +177,39 @@ public Builder macsecProperties(UpdateMacsecProperties macsecProperties) { this.__explicitlySet__.add("macsecProperties"); return this; } + /** + * The flag to enable or disable the down timer for the interface. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInterfaceHoldTimerEnabled") + private Boolean isInterfaceHoldTimerEnabled; + + /** + * The flag to enable or disable the down timer for the interface. + * @param isInterfaceHoldTimerEnabled the value to set + * @return this builder + **/ + public Builder isInterfaceHoldTimerEnabled(Boolean isInterfaceHoldTimerEnabled) { + this.isInterfaceHoldTimerEnabled = isInterfaceHoldTimerEnabled; + this.__explicitlySet__.add("isInterfaceHoldTimerEnabled"); + return this; + } + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("interfaceDownTimerValueInMilliseconds") + private Integer interfaceDownTimerValueInMilliseconds; + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + * @param interfaceDownTimerValueInMilliseconds the value to set + * @return this builder + **/ + public Builder interfaceDownTimerValueInMilliseconds( + Integer interfaceDownTimerValueInMilliseconds) { + this.interfaceDownTimerValueInMilliseconds = interfaceDownTimerValueInMilliseconds; + this.__explicitlySet__.add("interfaceDownTimerValueInMilliseconds"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -183,7 +222,9 @@ public UpdateCrossConnectDetails build() { this.freeformTags, this.isActive, this.customerReferenceName, - this.macsecProperties); + this.macsecProperties, + this.isInterfaceHoldTimerEnabled, + this.interfaceDownTimerValueInMilliseconds); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -210,6 +251,13 @@ public Builder copy(UpdateCrossConnectDetails model) { if (model.wasPropertyExplicitlySet("macsecProperties")) { this.macsecProperties(model.getMacsecProperties()); } + if (model.wasPropertyExplicitlySet("isInterfaceHoldTimerEnabled")) { + this.isInterfaceHoldTimerEnabled(model.getIsInterfaceHoldTimerEnabled()); + } + if (model.wasPropertyExplicitlySet("interfaceDownTimerValueInMilliseconds")) { + this.interfaceDownTimerValueInMilliseconds( + model.getInterfaceDownTimerValueInMilliseconds()); + } return this; } } @@ -334,6 +382,34 @@ public UpdateMacsecProperties getMacsecProperties() { return macsecProperties; } + /** + * The flag to enable or disable the down timer for the interface. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInterfaceHoldTimerEnabled") + private final Boolean isInterfaceHoldTimerEnabled; + + /** + * The flag to enable or disable the down timer for the interface. + * @return the value + **/ + public Boolean getIsInterfaceHoldTimerEnabled() { + return isInterfaceHoldTimerEnabled; + } + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("interfaceDownTimerValueInMilliseconds") + private final Integer interfaceDownTimerValueInMilliseconds; + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + * @return the value + **/ + public Integer getInterfaceDownTimerValueInMilliseconds() { + return interfaceDownTimerValueInMilliseconds; + } + @Override public String toString() { return this.toString(true); @@ -354,6 +430,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isActive=").append(String.valueOf(this.isActive)); sb.append(", customerReferenceName=").append(String.valueOf(this.customerReferenceName)); sb.append(", macsecProperties=").append(String.valueOf(this.macsecProperties)); + sb.append(", isInterfaceHoldTimerEnabled=") + .append(String.valueOf(this.isInterfaceHoldTimerEnabled)); + sb.append(", interfaceDownTimerValueInMilliseconds=") + .append(String.valueOf(this.interfaceDownTimerValueInMilliseconds)); sb.append(")"); return sb.toString(); } @@ -374,6 +454,11 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isActive, other.isActive) && java.util.Objects.equals(this.customerReferenceName, other.customerReferenceName) && java.util.Objects.equals(this.macsecProperties, other.macsecProperties) + && java.util.Objects.equals( + this.isInterfaceHoldTimerEnabled, other.isInterfaceHoldTimerEnabled) + && java.util.Objects.equals( + this.interfaceDownTimerValueInMilliseconds, + other.interfaceDownTimerValueInMilliseconds) && super.equals(other); } @@ -393,6 +478,16 @@ public int hashCode() { result = (result * PRIME) + (this.macsecProperties == null ? 43 : this.macsecProperties.hashCode()); + result = + (result * PRIME) + + (this.isInterfaceHoldTimerEnabled == null + ? 43 + : this.isInterfaceHoldTimerEnabled.hashCode()); + result = + (result * PRIME) + + (this.interfaceDownTimerValueInMilliseconds == null + ? 43 + : this.interfaceDownTimerValueInMilliseconds.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateCrossConnectGroupDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateCrossConnectGroupDetails.java index ab5ce5e1ca5..103778ef869 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateCrossConnectGroupDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateCrossConnectGroupDetails.java @@ -27,20 +27,29 @@ public final class UpdateCrossConnectGroupDetails "displayName", "customerReferenceName", "freeformTags", - "macsecProperties" + "macsecProperties", + "minimumLinks", + "isInterfaceHoldTimerEnabled", + "interfaceDownTimerValueInMilliseconds" }) public UpdateCrossConnectGroupDetails( java.util.Map> definedTags, String displayName, String customerReferenceName, java.util.Map freeformTags, - UpdateMacsecProperties macsecProperties) { + UpdateMacsecProperties macsecProperties, + Integer minimumLinks, + Boolean isInterfaceHoldTimerEnabled, + Integer interfaceDownTimerValueInMilliseconds) { super(); this.definedTags = definedTags; this.displayName = displayName; this.customerReferenceName = customerReferenceName; this.freeformTags = freeformTags; this.macsecProperties = macsecProperties; + this.minimumLinks = minimumLinks; + this.isInterfaceHoldTimerEnabled = isInterfaceHoldTimerEnabled; + this.interfaceDownTimerValueInMilliseconds = interfaceDownTimerValueInMilliseconds; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -141,6 +150,61 @@ public Builder macsecProperties(UpdateMacsecProperties macsecProperties) { this.__explicitlySet__.add("macsecProperties"); return this; } + /** + * (Optional) Minimum number of active cross-connects required for the cross-connect group to be considered + * operational. If not specified, this value defaults to 1. Value must not exceed the total number of + * cross-connects in the cross-connect group. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minimumLinks") + private Integer minimumLinks; + + /** + * (Optional) Minimum number of active cross-connects required for the cross-connect group to be considered + * operational. If not specified, this value defaults to 1. Value must not exceed the total number of + * cross-connects in the cross-connect group. + * + * @param minimumLinks the value to set + * @return this builder + **/ + public Builder minimumLinks(Integer minimumLinks) { + this.minimumLinks = minimumLinks; + this.__explicitlySet__.add("minimumLinks"); + return this; + } + /** + * The flag to enable or disable the down timer for the interface. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInterfaceHoldTimerEnabled") + private Boolean isInterfaceHoldTimerEnabled; + + /** + * The flag to enable or disable the down timer for the interface. + * @param isInterfaceHoldTimerEnabled the value to set + * @return this builder + **/ + public Builder isInterfaceHoldTimerEnabled(Boolean isInterfaceHoldTimerEnabled) { + this.isInterfaceHoldTimerEnabled = isInterfaceHoldTimerEnabled; + this.__explicitlySet__.add("isInterfaceHoldTimerEnabled"); + return this; + } + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("interfaceDownTimerValueInMilliseconds") + private Integer interfaceDownTimerValueInMilliseconds; + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + * @param interfaceDownTimerValueInMilliseconds the value to set + * @return this builder + **/ + public Builder interfaceDownTimerValueInMilliseconds( + Integer interfaceDownTimerValueInMilliseconds) { + this.interfaceDownTimerValueInMilliseconds = interfaceDownTimerValueInMilliseconds; + this.__explicitlySet__.add("interfaceDownTimerValueInMilliseconds"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -152,7 +216,10 @@ public UpdateCrossConnectGroupDetails build() { this.displayName, this.customerReferenceName, this.freeformTags, - this.macsecProperties); + this.macsecProperties, + this.minimumLinks, + this.isInterfaceHoldTimerEnabled, + this.interfaceDownTimerValueInMilliseconds); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -176,6 +243,16 @@ public Builder copy(UpdateCrossConnectGroupDetails model) { if (model.wasPropertyExplicitlySet("macsecProperties")) { this.macsecProperties(model.getMacsecProperties()); } + if (model.wasPropertyExplicitlySet("minimumLinks")) { + this.minimumLinks(model.getMinimumLinks()); + } + if (model.wasPropertyExplicitlySet("isInterfaceHoldTimerEnabled")) { + this.isInterfaceHoldTimerEnabled(model.getIsInterfaceHoldTimerEnabled()); + } + if (model.wasPropertyExplicitlySet("interfaceDownTimerValueInMilliseconds")) { + this.interfaceDownTimerValueInMilliseconds( + model.getInterfaceDownTimerValueInMilliseconds()); + } return this; } } @@ -276,6 +353,54 @@ public UpdateMacsecProperties getMacsecProperties() { return macsecProperties; } + /** + * (Optional) Minimum number of active cross-connects required for the cross-connect group to be considered + * operational. If not specified, this value defaults to 1. Value must not exceed the total number of + * cross-connects in the cross-connect group. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minimumLinks") + private final Integer minimumLinks; + + /** + * (Optional) Minimum number of active cross-connects required for the cross-connect group to be considered + * operational. If not specified, this value defaults to 1. Value must not exceed the total number of + * cross-connects in the cross-connect group. + * + * @return the value + **/ + public Integer getMinimumLinks() { + return minimumLinks; + } + + /** + * The flag to enable or disable the down timer for the interface. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInterfaceHoldTimerEnabled") + private final Boolean isInterfaceHoldTimerEnabled; + + /** + * The flag to enable or disable the down timer for the interface. + * @return the value + **/ + public Boolean getIsInterfaceHoldTimerEnabled() { + return isInterfaceHoldTimerEnabled; + } + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("interfaceDownTimerValueInMilliseconds") + private final Integer interfaceDownTimerValueInMilliseconds; + + /** + * The duration of the interface down timer in milliseconds between 0 and 3000 in multiples of 500. + * @return the value + **/ + public Integer getInterfaceDownTimerValueInMilliseconds() { + return interfaceDownTimerValueInMilliseconds; + } + @Override public String toString() { return this.toString(true); @@ -295,6 +420,11 @@ public String toString(boolean includeByteArrayContents) { sb.append(", customerReferenceName=").append(String.valueOf(this.customerReferenceName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", macsecProperties=").append(String.valueOf(this.macsecProperties)); + sb.append(", minimumLinks=").append(String.valueOf(this.minimumLinks)); + sb.append(", isInterfaceHoldTimerEnabled=") + .append(String.valueOf(this.isInterfaceHoldTimerEnabled)); + sb.append(", interfaceDownTimerValueInMilliseconds=") + .append(String.valueOf(this.interfaceDownTimerValueInMilliseconds)); sb.append(")"); return sb.toString(); } @@ -314,6 +444,12 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.customerReferenceName, other.customerReferenceName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.macsecProperties, other.macsecProperties) + && java.util.Objects.equals(this.minimumLinks, other.minimumLinks) + && java.util.Objects.equals( + this.isInterfaceHoldTimerEnabled, other.isInterfaceHoldTimerEnabled) + && java.util.Objects.equals( + this.interfaceDownTimerValueInMilliseconds, + other.interfaceDownTimerValueInMilliseconds) && super.equals(other); } @@ -332,6 +468,17 @@ public int hashCode() { result = (result * PRIME) + (this.macsecProperties == null ? 43 : this.macsecProperties.hashCode()); + result = (result * PRIME) + (this.minimumLinks == null ? 43 : this.minimumLinks.hashCode()); + result = + (result * PRIME) + + (this.isInterfaceHoldTimerEnabled == null + ? 43 + : this.isInterfaceHoldTimerEnabled.hashCode()); + result = + (result * PRIME) + + (this.interfaceDownTimerValueInMilliseconds == null + ? 43 + : this.interfaceDownTimerValueInMilliseconds.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateCrossConnectLetterOfAuthorityDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateCrossConnectLetterOfAuthorityDetails.java new file mode 100644 index 00000000000..5f724dbc40a --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateCrossConnectLetterOfAuthorityDetails.java @@ -0,0 +1,270 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.model; + +/** + * Update the details of the Letter of Authority associated with a cross-connect. Upon successful alterations + * a new updated copy of the LOA will be attached to the cross-connect. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateCrossConnectLetterOfAuthorityDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateCrossConnectLetterOfAuthorityDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "shouldExtend", + "shouldRemoveAuthorizedAgent", + "authorizedAgent" + }) + public UpdateCrossConnectLetterOfAuthorityDetails( + Boolean shouldExtend, Boolean shouldRemoveAuthorizedAgent, String authorizedAgent) { + super(); + this.shouldExtend = shouldExtend; + this.shouldRemoveAuthorizedAgent = shouldRemoveAuthorizedAgent; + this.authorizedAgent = authorizedAgent; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A boolean flag to indicate whether to extend the expiry of the associated LOA with the provided + * cross-connect. If un-set or set to false, it does not alter the existing expiry of the LOA. + * On extension an updated copy of the LOA will be provided with the new expiry date. An LOA cannot + * be extended more than 3 times. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shouldExtend") + private Boolean shouldExtend; + + /** + * A boolean flag to indicate whether to extend the expiry of the associated LOA with the provided + * cross-connect. If un-set or set to false, it does not alter the existing expiry of the LOA. + * On extension an updated copy of the LOA will be provided with the new expiry date. An LOA cannot + * be extended more than 3 times. + * + * @param shouldExtend the value to set + * @return this builder + **/ + public Builder shouldExtend(Boolean shouldExtend) { + this.shouldExtend = shouldExtend; + this.__explicitlySet__.add("shouldExtend"); + return this; + } + /** + * A boolean flag to indicate whether to remove an attached Authorized Agent to the LOA. If this boolean flag + * is set, an attempt will be made to remove the attached authorized agent to the LOA, if any, and any value + * given in the field 'authorizedAgent' will be ignored. In case, of updating an existing Authorized Agent, + * keep this flag unset and set the expected value in 'authorizedAgent'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shouldRemoveAuthorizedAgent") + private Boolean shouldRemoveAuthorizedAgent; + + /** + * A boolean flag to indicate whether to remove an attached Authorized Agent to the LOA. If this boolean flag + * is set, an attempt will be made to remove the attached authorized agent to the LOA, if any, and any value + * given in the field 'authorizedAgent' will be ignored. In case, of updating an existing Authorized Agent, + * keep this flag unset and set the expected value in 'authorizedAgent'. + * + * @param shouldRemoveAuthorizedAgent the value to set + * @return this builder + **/ + public Builder shouldRemoveAuthorizedAgent(Boolean shouldRemoveAuthorizedAgent) { + this.shouldRemoveAuthorizedAgent = shouldRemoveAuthorizedAgent; + this.__explicitlySet__.add("shouldRemoveAuthorizedAgent"); + return this; + } + /** + * Name of a customer authorized agent which will be appended to the LOA as the field 'Authorized Agent'. + * If the field is left un-set in the request body, no changes will be done on the LOA for Authorized Agent. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authorizedAgent") + private String authorizedAgent; + + /** + * Name of a customer authorized agent which will be appended to the LOA as the field 'Authorized Agent'. + * If the field is left un-set in the request body, no changes will be done on the LOA for Authorized Agent. + * + * @param authorizedAgent the value to set + * @return this builder + **/ + public Builder authorizedAgent(String authorizedAgent) { + this.authorizedAgent = authorizedAgent; + this.__explicitlySet__.add("authorizedAgent"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateCrossConnectLetterOfAuthorityDetails build() { + UpdateCrossConnectLetterOfAuthorityDetails model = + new UpdateCrossConnectLetterOfAuthorityDetails( + this.shouldExtend, + this.shouldRemoveAuthorizedAgent, + this.authorizedAgent); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateCrossConnectLetterOfAuthorityDetails model) { + if (model.wasPropertyExplicitlySet("shouldExtend")) { + this.shouldExtend(model.getShouldExtend()); + } + if (model.wasPropertyExplicitlySet("shouldRemoveAuthorizedAgent")) { + this.shouldRemoveAuthorizedAgent(model.getShouldRemoveAuthorizedAgent()); + } + if (model.wasPropertyExplicitlySet("authorizedAgent")) { + this.authorizedAgent(model.getAuthorizedAgent()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A boolean flag to indicate whether to extend the expiry of the associated LOA with the provided + * cross-connect. If un-set or set to false, it does not alter the existing expiry of the LOA. + * On extension an updated copy of the LOA will be provided with the new expiry date. An LOA cannot + * be extended more than 3 times. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shouldExtend") + private final Boolean shouldExtend; + + /** + * A boolean flag to indicate whether to extend the expiry of the associated LOA with the provided + * cross-connect. If un-set or set to false, it does not alter the existing expiry of the LOA. + * On extension an updated copy of the LOA will be provided with the new expiry date. An LOA cannot + * be extended more than 3 times. + * + * @return the value + **/ + public Boolean getShouldExtend() { + return shouldExtend; + } + + /** + * A boolean flag to indicate whether to remove an attached Authorized Agent to the LOA. If this boolean flag + * is set, an attempt will be made to remove the attached authorized agent to the LOA, if any, and any value + * given in the field 'authorizedAgent' will be ignored. In case, of updating an existing Authorized Agent, + * keep this flag unset and set the expected value in 'authorizedAgent'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shouldRemoveAuthorizedAgent") + private final Boolean shouldRemoveAuthorizedAgent; + + /** + * A boolean flag to indicate whether to remove an attached Authorized Agent to the LOA. If this boolean flag + * is set, an attempt will be made to remove the attached authorized agent to the LOA, if any, and any value + * given in the field 'authorizedAgent' will be ignored. In case, of updating an existing Authorized Agent, + * keep this flag unset and set the expected value in 'authorizedAgent'. + * + * @return the value + **/ + public Boolean getShouldRemoveAuthorizedAgent() { + return shouldRemoveAuthorizedAgent; + } + + /** + * Name of a customer authorized agent which will be appended to the LOA as the field 'Authorized Agent'. + * If the field is left un-set in the request body, no changes will be done on the LOA for Authorized Agent. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authorizedAgent") + private final String authorizedAgent; + + /** + * Name of a customer authorized agent which will be appended to the LOA as the field 'Authorized Agent'. + * If the field is left un-set in the request body, no changes will be done on the LOA for Authorized Agent. + * + * @return the value + **/ + public String getAuthorizedAgent() { + return authorizedAgent; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateCrossConnectLetterOfAuthorityDetails("); + sb.append("super=").append(super.toString()); + sb.append("shouldExtend=").append(String.valueOf(this.shouldExtend)); + sb.append(", shouldRemoveAuthorizedAgent=") + .append(String.valueOf(this.shouldRemoveAuthorizedAgent)); + sb.append(", authorizedAgent=").append(String.valueOf(this.authorizedAgent)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateCrossConnectLetterOfAuthorityDetails)) { + return false; + } + + UpdateCrossConnectLetterOfAuthorityDetails other = + (UpdateCrossConnectLetterOfAuthorityDetails) o; + return java.util.Objects.equals(this.shouldExtend, other.shouldExtend) + && java.util.Objects.equals( + this.shouldRemoveAuthorizedAgent, other.shouldRemoveAuthorizedAgent) + && java.util.Objects.equals(this.authorizedAgent, other.authorizedAgent) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.shouldExtend == null ? 43 : this.shouldExtend.hashCode()); + result = + (result * PRIME) + + (this.shouldRemoveAuthorizedAgent == null + ? 43 + : this.shouldRemoveAuthorizedAgent.hashCode()); + result = + (result * PRIME) + + (this.authorizedAgent == null ? 43 : this.authorizedAgent.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstanceLicensingConfig.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstanceLicensingConfig.java index 9bdac2b52d6..3826b4ce2d6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstanceLicensingConfig.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstanceLicensingConfig.java @@ -42,11 +42,13 @@ protected UpdateInstanceLicensingConfig(LicenseType licenseType) { * License Type for the OS license. * * {@code OCI_PROVIDED} - OCI provided license (e.g. metered $/OCPU-hour). * * {@code BRING_YOUR_OWN_LICENSE} - Bring your own license. + * * {@code PARTNER_PROVIDED} - Partner provided license. * **/ public enum LicenseType { OciProvided("OCI_PROVIDED"), BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + PartnerProvided("PARTNER_PROVIDED"), ; private final String value; @@ -80,6 +82,7 @@ public static LicenseType create(String key) { * License Type for the OS license. * * {@code OCI_PROVIDED} - OCI provided license (e.g. metered $/OCPU-hour). * * {@code BRING_YOUR_OWN_LICENSE} - Bring your own license. + * * {@code PARTNER_PROVIDED} - Partner provided license. * **/ @com.fasterxml.jackson.annotation.JsonProperty("licenseType") @@ -89,6 +92,7 @@ public static LicenseType create(String key) { * License Type for the OS license. * * {@code OCI_PROVIDED} - OCI provided license (e.g. metered $/OCPU-hour). * * {@code BRING_YOUR_OWN_LICENSE} - Bring your own license. + * * {@code PARTNER_PROVIDED} - Partner provided license. * * @return the value **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstancePoolDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstancePoolDetails.java index 1b8cabf0298..24c8686c1b0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstancePoolDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstancePoolDetails.java @@ -179,6 +179,7 @@ public Builder placementConfigurations( } /** * The number of instances that should be in the instance pool. + * For a GMC-enabled resource pool, this is the number of GMC resources that should be in the pool. *

* To determine whether capacity is available for a specific shape before you resize an instance pool, * use the {@link #createComputeCapacityReport(CreateComputeCapacityReportRequest) createComputeCapacityReport} @@ -190,6 +191,7 @@ public Builder placementConfigurations( /** * The number of instances that should be in the instance pool. + * For a GMC-enabled resource pool, this is the number of GMC resources that should be in the pool. *

* To determine whether capacity is available for a specific shape before you resize an instance pool, * use the {@link #createComputeCapacityReport(CreateComputeCapacityReportRequest) createComputeCapacityReport} @@ -429,6 +431,7 @@ public String getInstanceConfigurationId() { /** * The number of instances that should be in the instance pool. + * For a GMC-enabled resource pool, this is the number of GMC resources that should be in the pool. *

* To determine whether capacity is available for a specific shape before you resize an instance pool, * use the {@link #createComputeCapacityReport(CreateComputeCapacityReportRequest) createComputeCapacityReport} @@ -440,6 +443,7 @@ public String getInstanceConfigurationId() { /** * The number of instances that should be in the instance pool. + * For a GMC-enabled resource pool, this is the number of GMC resources that should be in the pool. *

* To determine whether capacity is available for a specific shape before you resize an instance pool, * use the {@link #createComputeCapacityReport(CreateComputeCapacityReportRequest) createComputeCapacityReport} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateIpv6Details.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateIpv6Details.java index b1e2ab665c8..dc4a6f2c4d6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateIpv6Details.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateIpv6Details.java @@ -26,6 +26,7 @@ public final class UpdateIpv6Details extends com.oracle.bmc.http.internal.Explic "displayName", "freeformTags", "vnicId", + "hostname", "routeTableId", "lifetime" }) @@ -34,6 +35,7 @@ public UpdateIpv6Details( String displayName, java.util.Map freeformTags, String vnicId, + String hostname, String routeTableId, Lifetime lifetime) { super(); @@ -41,6 +43,7 @@ public UpdateIpv6Details( this.displayName = displayName; this.freeformTags = freeformTags; this.vnicId = vnicId; + this.hostname = hostname; this.routeTableId = routeTableId; this.lifetime = lifetime; } @@ -136,6 +139,24 @@ public Builder vnicId(String vnicId) { this.__explicitlySet__.add("vnicId"); return this; } + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private String hostname; + + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + * @param hostname the value to set + * @return this builder + **/ + public Builder hostname(String hostname) { + this.hostname = hostname; + this.__explicitlySet__.add("hostname"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the IP address or VNIC will use. For more information, see * [Per-resource Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). @@ -191,6 +212,7 @@ public UpdateIpv6Details build() { this.displayName, this.freeformTags, this.vnicId, + this.hostname, this.routeTableId, this.lifetime); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -213,6 +235,9 @@ public Builder copy(UpdateIpv6Details model) { if (model.wasPropertyExplicitlySet("vnicId")) { this.vnicId(model.getVnicId()); } + if (model.wasPropertyExplicitlySet("hostname")) { + this.hostname(model.getHostname()); + } if (model.wasPropertyExplicitlySet("routeTableId")) { this.routeTableId(model.getRouteTableId()); } @@ -314,6 +339,22 @@ public String getVnicId() { return vnicId; } + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private final String hostname; + + /** + * The hostname associated with the IPv6 address. Only the hostname label, not the FQDN. + * + * @return the value + **/ + public String getHostname() { + return hostname; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the IP address or VNIC will use. For more information, see * [Per-resource Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). @@ -411,6 +452,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", vnicId=").append(String.valueOf(this.vnicId)); + sb.append(", hostname=").append(String.valueOf(this.hostname)); sb.append(", routeTableId=").append(String.valueOf(this.routeTableId)); sb.append(", lifetime=").append(String.valueOf(this.lifetime)); sb.append(")"); @@ -431,6 +473,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.vnicId, other.vnicId) + && java.util.Objects.equals(this.hostname, other.hostname) && java.util.Objects.equals(this.routeTableId, other.routeTableId) && java.util.Objects.equals(this.lifetime, other.lifetime) && super.equals(other); @@ -444,6 +487,7 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.vnicId == null ? 43 : this.vnicId.hashCode()); + result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); result = (result * PRIME) + (this.routeTableId == null ? 43 : this.routeTableId.hashCode()); result = (result * PRIME) + (this.lifetime == null ? 43 : this.lifetime.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVirtualCircuitDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVirtualCircuitDetails.java index 19ad5f1323b..972bf986697 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVirtualCircuitDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVirtualCircuitDetails.java @@ -34,6 +34,7 @@ public final class UpdateVirtualCircuitDetails "definedTags", "displayName", "freeformTags", + "trafficMode", "gatewayId", "providerState", "providerServiceKeyName", @@ -52,6 +53,7 @@ public UpdateVirtualCircuitDetails( java.util.Map> definedTags, String displayName, java.util.Map freeformTags, + TrafficMode trafficMode, String gatewayId, ProviderState providerState, String providerServiceKeyName, @@ -69,6 +71,7 @@ public UpdateVirtualCircuitDetails( this.definedTags = definedTags; this.displayName = displayName; this.freeformTags = freeformTags; + this.trafficMode = trafficMode; this.gatewayId = gatewayId; this.providerState = providerState; this.providerServiceKeyName = providerServiceKeyName; @@ -338,6 +341,26 @@ public Builder freeformTags(java.util.Map freeformTags) { this.__explicitlySet__.add("freeformTags"); return this; } + /** + * The traffic mode to be set with this Virtual Circuit. This controls whether the traffic is to be drained + * for the associated Virtual Circuit or not. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("trafficMode") + private TrafficMode trafficMode; + + /** + * The traffic mode to be set with this Virtual Circuit. This controls whether the traffic is to be drained + * for the associated Virtual Circuit or not. + * + * @param trafficMode the value to set + * @return this builder + **/ + public Builder trafficMode(TrafficMode trafficMode) { + this.trafficMode = trafficMode; + this.__explicitlySet__.add("trafficMode"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the {@link Drg} * that this private virtual circuit uses. @@ -468,6 +491,7 @@ public UpdateVirtualCircuitDetails build() { this.definedTags, this.displayName, this.freeformTags, + this.trafficMode, this.gatewayId, this.providerState, this.providerServiceKeyName, @@ -514,6 +538,9 @@ public Builder copy(UpdateVirtualCircuitDetails model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("trafficMode")) { + this.trafficMode(model.getTrafficMode()); + } if (model.wasPropertyExplicitlySet("gatewayId")) { this.gatewayId(model.getGatewayId()); } @@ -852,6 +879,61 @@ public java.util.Map getFreeformTags() { return freeformTags; } + /** + * The traffic mode to be set with this Virtual Circuit. This controls whether the traffic is to be drained + * for the associated Virtual Circuit or not. + * + **/ + public enum TrafficMode { + Normal("NORMAL"), + Drain("DRAIN"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TrafficMode v : TrafficMode.values()) { + map.put(v.getValue(), v); + } + } + + TrafficMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TrafficMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid TrafficMode: " + key); + } + }; + /** + * The traffic mode to be set with this Virtual Circuit. This controls whether the traffic is to be drained + * for the associated Virtual Circuit or not. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("trafficMode") + private final TrafficMode trafficMode; + + /** + * The traffic mode to be set with this Virtual Circuit. This controls whether the traffic is to be drained + * for the associated Virtual Circuit or not. + * + * @return the value + **/ + public TrafficMode getTrafficMode() { + return trafficMode; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the {@link Drg} * that this private virtual circuit uses. @@ -1021,6 +1103,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", trafficMode=").append(String.valueOf(this.trafficMode)); sb.append(", gatewayId=").append(String.valueOf(this.gatewayId)); sb.append(", providerState=").append(String.valueOf(this.providerState)); sb.append(", providerServiceKeyName=").append(String.valueOf(this.providerServiceKeyName)); @@ -1051,6 +1134,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.trafficMode, other.trafficMode) && java.util.Objects.equals(this.gatewayId, other.gatewayId) && java.util.Objects.equals(this.providerState, other.providerState) && java.util.Objects.equals( @@ -1091,6 +1175,7 @@ public int hashCode() { result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.trafficMode == null ? 43 : this.trafficMode.hashCode()); result = (result * PRIME) + (this.gatewayId == null ? 43 : this.gatewayId.hashCode()); result = (result * PRIME) diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVolumeBackupDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVolumeBackupDetails.java index 1ef87845819..66c58ac4a09 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVolumeBackupDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVolumeBackupDetails.java @@ -22,17 +22,34 @@ public final class UpdateVolumeBackupDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"definedTags", "displayName", "freeformTags", "kmsKeyId"}) + @java.beans.ConstructorProperties({ + "definedTags", + "displayName", + "freeformTags", + "kmsKeyId", + "retentionPeriod", + "isPreventDeletionEnabled", + "isRetentionLockEnabled", + "isIndefiniteRetentionEnabled" + }) public UpdateVolumeBackupDetails( java.util.Map> definedTags, String displayName, java.util.Map freeformTags, - String kmsKeyId) { + String kmsKeyId, + RetentionDuration retentionPeriod, + Boolean isPreventDeletionEnabled, + Boolean isRetentionLockEnabled, + Boolean isIndefiniteRetentionEnabled) { super(); this.definedTags = definedTags; this.displayName = displayName; this.freeformTags = freeformTags; this.kmsKeyId = kmsKeyId; + this.retentionPeriod = retentionPeriod; + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -131,13 +148,77 @@ public Builder kmsKeyId(String kmsKeyId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private RetentionDuration retentionPeriod; + + public Builder retentionPeriod(RetentionDuration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @param isPreventDeletionEnabled the value to set + * @return this builder + **/ + public Builder isPreventDeletionEnabled(Boolean isPreventDeletionEnabled) { + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.__explicitlySet__.add("isPreventDeletionEnabled"); + return this; + } + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @param isRetentionLockEnabled the value to set + * @return this builder + **/ + public Builder isRetentionLockEnabled(Boolean isRetentionLockEnabled) { + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.__explicitlySet__.add("isRetentionLockEnabled"); + return this; + } + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @param isIndefiniteRetentionEnabled the value to set + * @return this builder + **/ + public Builder isIndefiniteRetentionEnabled(Boolean isIndefiniteRetentionEnabled) { + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; + this.__explicitlySet__.add("isIndefiniteRetentionEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateVolumeBackupDetails build() { UpdateVolumeBackupDetails model = new UpdateVolumeBackupDetails( - this.definedTags, this.displayName, this.freeformTags, this.kmsKeyId); + this.definedTags, + this.displayName, + this.freeformTags, + this.kmsKeyId, + this.retentionPeriod, + this.isPreventDeletionEnabled, + this.isRetentionLockEnabled, + this.isIndefiniteRetentionEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -158,6 +239,18 @@ public Builder copy(UpdateVolumeBackupDetails model) { if (model.wasPropertyExplicitlySet("kmsKeyId")) { this.kmsKeyId(model.getKmsKeyId()); } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("isPreventDeletionEnabled")) { + this.isPreventDeletionEnabled(model.getIsPreventDeletionEnabled()); + } + if (model.wasPropertyExplicitlySet("isRetentionLockEnabled")) { + this.isRetentionLockEnabled(model.getIsRetentionLockEnabled()); + } + if (model.wasPropertyExplicitlySet("isIndefiniteRetentionEnabled")) { + this.isIndefiniteRetentionEnabled(model.getIsIndefiniteRetentionEnabled()); + } return this; } } @@ -257,6 +350,55 @@ public String getKmsKeyId() { return kmsKeyId; } + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final RetentionDuration retentionPeriod; + + public RetentionDuration getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private final Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @return the value + **/ + public Boolean getIsPreventDeletionEnabled() { + return isPreventDeletionEnabled; + } + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private final Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @return the value + **/ + public Boolean getIsRetentionLockEnabled() { + return isRetentionLockEnabled; + } + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private final Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @return the value + **/ + public Boolean getIsIndefiniteRetentionEnabled() { + return isIndefiniteRetentionEnabled; + } + @Override public String toString() { return this.toString(true); @@ -275,6 +417,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", isPreventDeletionEnabled=") + .append(String.valueOf(this.isPreventDeletionEnabled)); + sb.append(", isRetentionLockEnabled=").append(String.valueOf(this.isRetentionLockEnabled)); + sb.append(", isIndefiniteRetentionEnabled=") + .append(String.valueOf(this.isIndefiniteRetentionEnabled)); sb.append(")"); return sb.toString(); } @@ -293,6 +441,13 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals( + this.isPreventDeletionEnabled, other.isPreventDeletionEnabled) + && java.util.Objects.equals( + this.isRetentionLockEnabled, other.isRetentionLockEnabled) + && java.util.Objects.equals( + this.isIndefiniteRetentionEnabled, other.isIndefiniteRetentionEnabled) && super.equals(other); } @@ -304,6 +459,24 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = + (result * PRIME) + + (this.isPreventDeletionEnabled == null + ? 43 + : this.isPreventDeletionEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRetentionLockEnabled == null + ? 43 + : this.isRetentionLockEnabled.hashCode()); + result = + (result * PRIME) + + (this.isIndefiniteRetentionEnabled == null + ? 43 + : this.isIndefiniteRetentionEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVolumeGroupBackupDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVolumeGroupBackupDetails.java index f28b2c5a9c7..92cf54ebe84 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVolumeGroupBackupDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVolumeGroupBackupDetails.java @@ -22,15 +22,31 @@ public final class UpdateVolumeGroupBackupDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"definedTags", "displayName", "freeformTags"}) + @java.beans.ConstructorProperties({ + "definedTags", + "displayName", + "freeformTags", + "retentionPeriod", + "isPreventDeletionEnabled", + "isRetentionLockEnabled", + "isIndefiniteRetentionEnabled" + }) public UpdateVolumeGroupBackupDetails( java.util.Map> definedTags, String displayName, - java.util.Map freeformTags) { + java.util.Map freeformTags, + RetentionDuration retentionPeriod, + Boolean isPreventDeletionEnabled, + Boolean isRetentionLockEnabled, + Boolean isIndefiniteRetentionEnabled) { super(); this.definedTags = definedTags; this.displayName = displayName; this.freeformTags = freeformTags; + this.retentionPeriod = retentionPeriod; + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -105,13 +121,76 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private RetentionDuration retentionPeriod; + + public Builder retentionPeriod(RetentionDuration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @param isPreventDeletionEnabled the value to set + * @return this builder + **/ + public Builder isPreventDeletionEnabled(Boolean isPreventDeletionEnabled) { + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.__explicitlySet__.add("isPreventDeletionEnabled"); + return this; + } + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @param isRetentionLockEnabled the value to set + * @return this builder + **/ + public Builder isRetentionLockEnabled(Boolean isRetentionLockEnabled) { + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.__explicitlySet__.add("isRetentionLockEnabled"); + return this; + } + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @param isIndefiniteRetentionEnabled the value to set + * @return this builder + **/ + public Builder isIndefiniteRetentionEnabled(Boolean isIndefiniteRetentionEnabled) { + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; + this.__explicitlySet__.add("isIndefiniteRetentionEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateVolumeGroupBackupDetails build() { UpdateVolumeGroupBackupDetails model = new UpdateVolumeGroupBackupDetails( - this.definedTags, this.displayName, this.freeformTags); + this.definedTags, + this.displayName, + this.freeformTags, + this.retentionPeriod, + this.isPreventDeletionEnabled, + this.isRetentionLockEnabled, + this.isIndefiniteRetentionEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -129,6 +208,18 @@ public Builder copy(UpdateVolumeGroupBackupDetails model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("isPreventDeletionEnabled")) { + this.isPreventDeletionEnabled(model.getIsPreventDeletionEnabled()); + } + if (model.wasPropertyExplicitlySet("isRetentionLockEnabled")) { + this.isRetentionLockEnabled(model.getIsRetentionLockEnabled()); + } + if (model.wasPropertyExplicitlySet("isIndefiniteRetentionEnabled")) { + this.isIndefiniteRetentionEnabled(model.getIsIndefiniteRetentionEnabled()); + } return this; } } @@ -206,6 +297,55 @@ public java.util.Map getFreeformTags() { return freeformTags; } + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final RetentionDuration retentionPeriod; + + public RetentionDuration getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private final Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @return the value + **/ + public Boolean getIsPreventDeletionEnabled() { + return isPreventDeletionEnabled; + } + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private final Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @return the value + **/ + public Boolean getIsRetentionLockEnabled() { + return isRetentionLockEnabled; + } + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private final Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @return the value + **/ + public Boolean getIsIndefiniteRetentionEnabled() { + return isIndefiniteRetentionEnabled; + } + @Override public String toString() { return this.toString(true); @@ -223,6 +363,12 @@ public String toString(boolean includeByteArrayContents) { sb.append("definedTags=").append(String.valueOf(this.definedTags)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", isPreventDeletionEnabled=") + .append(String.valueOf(this.isPreventDeletionEnabled)); + sb.append(", isRetentionLockEnabled=").append(String.valueOf(this.isRetentionLockEnabled)); + sb.append(", isIndefiniteRetentionEnabled=") + .append(String.valueOf(this.isIndefiniteRetentionEnabled)); sb.append(")"); return sb.toString(); } @@ -240,6 +386,13 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals( + this.isPreventDeletionEnabled, other.isPreventDeletionEnabled) + && java.util.Objects.equals( + this.isRetentionLockEnabled, other.isRetentionLockEnabled) + && java.util.Objects.equals( + this.isIndefiniteRetentionEnabled, other.isIndefiniteRetentionEnabled) && super.equals(other); } @@ -250,6 +403,24 @@ public int hashCode() { result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = + (result * PRIME) + + (this.isPreventDeletionEnabled == null + ? 43 + : this.isPreventDeletionEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRetentionLockEnabled == null + ? 43 + : this.isRetentionLockEnabled.hashCode()); + result = + (result * PRIME) + + (this.isIndefiniteRetentionEnabled == null + ? 43 + : this.isIndefiniteRetentionEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/VirtualCircuit.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/VirtualCircuit.java index f791fa39137..279426e99f2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/VirtualCircuit.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/VirtualCircuit.java @@ -70,6 +70,10 @@ public final class VirtualCircuit extends com.oracle.bmc.http.internal.Explicitl "timeCreated", "type", "ipMtu", + "providerRemoteRegion", + "sharedConnectionUuid", + "remoteAccountId", + "trafficMode", "virtualCircuitRedundancyMetadata" }) public VirtualCircuit( @@ -104,6 +108,10 @@ public VirtualCircuit( java.util.Date timeCreated, Type type, VirtualCircuitIpMtu ipMtu, + String providerRemoteRegion, + String sharedConnectionUuid, + String remoteAccountId, + TrafficMode trafficMode, VirtualCircuitRedundancyMetadata virtualCircuitRedundancyMetadata) { super(); this.bandwidthShapeName = bandwidthShapeName; @@ -137,6 +145,10 @@ public VirtualCircuit( this.timeCreated = timeCreated; this.type = type; this.ipMtu = ipMtu; + this.providerRemoteRegion = providerRemoteRegion; + this.sharedConnectionUuid = sharedConnectionUuid; + this.remoteAccountId = remoteAccountId; + this.trafficMode = trafficMode; this.virtualCircuitRedundancyMetadata = virtualCircuitRedundancyMetadata; } @@ -764,6 +776,78 @@ public Builder ipMtu(VirtualCircuitIpMtu ipMtu) { this.__explicitlySet__.add("ipMtu"); return this; } + /** + * The OCI's FastConnect MultiCloud Provider/Partner remote region name associated with the OCI region. + * To get the list of associated provider remote region use the ListProviderRemoteRegions operation + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerRemoteRegion") + private String providerRemoteRegion; + + /** + * The OCI's FastConnect MultiCloud Provider/Partner remote region name associated with the OCI region. + * To get the list of associated provider remote region use the ListProviderRemoteRegions operation + * + * @param providerRemoteRegion the value to set + * @return this builder + **/ + public Builder providerRemoteRegion(String providerRemoteRegion) { + this.providerRemoteRegion = providerRemoteRegion; + this.__explicitlySet__.add("providerRemoteRegion"); + return this; + } + /** + * The Shared unique identifier for the connection between the multicloud interconnect providers + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sharedConnectionUuid") + private String sharedConnectionUuid; + + /** + * The Shared unique identifier for the connection between the multicloud interconnect providers + * @param sharedConnectionUuid the value to set + * @return this builder + **/ + public Builder sharedConnectionUuid(String sharedConnectionUuid) { + this.sharedConnectionUuid = sharedConnectionUuid; + this.__explicitlySet__.add("sharedConnectionUuid"); + return this; + } + /** + * Customer's account on Provider/Partner cloud (AWS, GCP or any other) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("remoteAccountId") + private String remoteAccountId; + + /** + * Customer's account on Provider/Partner cloud (AWS, GCP or any other) + * @param remoteAccountId the value to set + * @return this builder + **/ + public Builder remoteAccountId(String remoteAccountId) { + this.remoteAccountId = remoteAccountId; + this.__explicitlySet__.add("remoteAccountId"); + return this; + } + /** + * The current traffic mode for the Virtual Circuit. This indicates whether the traffic is drained for the + * associated Virtual Circuit or not. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("trafficMode") + private TrafficMode trafficMode; + + /** + * The current traffic mode for the Virtual Circuit. This indicates whether the traffic is drained for the + * associated Virtual Circuit or not. + * + * @param trafficMode the value to set + * @return this builder + **/ + public Builder trafficMode(TrafficMode trafficMode) { + this.trafficMode = trafficMode; + this.__explicitlySet__.add("trafficMode"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("virtualCircuitRedundancyMetadata") private VirtualCircuitRedundancyMetadata virtualCircuitRedundancyMetadata; @@ -812,6 +896,10 @@ public VirtualCircuit build() { this.timeCreated, this.type, this.ipMtu, + this.providerRemoteRegion, + this.sharedConnectionUuid, + this.remoteAccountId, + this.trafficMode, this.virtualCircuitRedundancyMetadata); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -914,6 +1002,18 @@ public Builder copy(VirtualCircuit model) { if (model.wasPropertyExplicitlySet("ipMtu")) { this.ipMtu(model.getIpMtu()); } + if (model.wasPropertyExplicitlySet("providerRemoteRegion")) { + this.providerRemoteRegion(model.getProviderRemoteRegion()); + } + if (model.wasPropertyExplicitlySet("sharedConnectionUuid")) { + this.sharedConnectionUuid(model.getSharedConnectionUuid()); + } + if (model.wasPropertyExplicitlySet("remoteAccountId")) { + this.remoteAccountId(model.getRemoteAccountId()); + } + if (model.wasPropertyExplicitlySet("trafficMode")) { + this.trafficMode(model.getTrafficMode()); + } if (model.wasPropertyExplicitlySet("virtualCircuitRedundancyMetadata")) { this.virtualCircuitRedundancyMetadata(model.getVirtualCircuitRedundancyMetadata()); } @@ -1943,6 +2043,120 @@ public VirtualCircuitIpMtu getIpMtu() { return ipMtu; } + /** + * The OCI's FastConnect MultiCloud Provider/Partner remote region name associated with the OCI region. + * To get the list of associated provider remote region use the ListProviderRemoteRegions operation + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerRemoteRegion") + private final String providerRemoteRegion; + + /** + * The OCI's FastConnect MultiCloud Provider/Partner remote region name associated with the OCI region. + * To get the list of associated provider remote region use the ListProviderRemoteRegions operation + * + * @return the value + **/ + public String getProviderRemoteRegion() { + return providerRemoteRegion; + } + + /** + * The Shared unique identifier for the connection between the multicloud interconnect providers + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sharedConnectionUuid") + private final String sharedConnectionUuid; + + /** + * The Shared unique identifier for the connection between the multicloud interconnect providers + * @return the value + **/ + public String getSharedConnectionUuid() { + return sharedConnectionUuid; + } + + /** + * Customer's account on Provider/Partner cloud (AWS, GCP or any other) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("remoteAccountId") + private final String remoteAccountId; + + /** + * Customer's account on Provider/Partner cloud (AWS, GCP or any other) + * @return the value + **/ + public String getRemoteAccountId() { + return remoteAccountId; + } + + /** + * The current traffic mode for the Virtual Circuit. This indicates whether the traffic is drained for the + * associated Virtual Circuit or not. + * + **/ + public enum TrafficMode { + Normal("NORMAL"), + Drain("DRAIN"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(TrafficMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TrafficMode v : TrafficMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TrafficMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TrafficMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TrafficMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current traffic mode for the Virtual Circuit. This indicates whether the traffic is drained for the + * associated Virtual Circuit or not. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("trafficMode") + private final TrafficMode trafficMode; + + /** + * The current traffic mode for the Virtual Circuit. This indicates whether the traffic is drained for the + * associated Virtual Circuit or not. + * + * @return the value + **/ + public TrafficMode getTrafficMode() { + return trafficMode; + } + @com.fasterxml.jackson.annotation.JsonProperty("virtualCircuitRedundancyMetadata") private final VirtualCircuitRedundancyMetadata virtualCircuitRedundancyMetadata; @@ -1995,6 +2209,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", type=").append(String.valueOf(this.type)); sb.append(", ipMtu=").append(String.valueOf(this.ipMtu)); + sb.append(", providerRemoteRegion=").append(String.valueOf(this.providerRemoteRegion)); + sb.append(", sharedConnectionUuid=").append(String.valueOf(this.sharedConnectionUuid)); + sb.append(", remoteAccountId=").append(String.valueOf(this.remoteAccountId)); + sb.append(", trafficMode=").append(String.valueOf(this.trafficMode)); sb.append(", virtualCircuitRedundancyMetadata=") .append(String.valueOf(this.virtualCircuitRedundancyMetadata)); sb.append(")"); @@ -2043,6 +2261,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.ipMtu, other.ipMtu) + && java.util.Objects.equals(this.providerRemoteRegion, other.providerRemoteRegion) + && java.util.Objects.equals(this.sharedConnectionUuid, other.sharedConnectionUuid) + && java.util.Objects.equals(this.remoteAccountId, other.remoteAccountId) + && java.util.Objects.equals(this.trafficMode, other.trafficMode) && java.util.Objects.equals( this.virtualCircuitRedundancyMetadata, other.virtualCircuitRedundancyMetadata) @@ -2128,6 +2350,20 @@ public int hashCode() { result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + (this.ipMtu == null ? 43 : this.ipMtu.hashCode()); + result = + (result * PRIME) + + (this.providerRemoteRegion == null + ? 43 + : this.providerRemoteRegion.hashCode()); + result = + (result * PRIME) + + (this.sharedConnectionUuid == null + ? 43 + : this.sharedConnectionUuid.hashCode()); + result = + (result * PRIME) + + (this.remoteAccountId == null ? 43 : this.remoteAccountId.hashCode()); + result = (result * PRIME) + (this.trafficMode == null ? 43 : this.trafficMode.hashCode()); result = (result * PRIME) + (this.virtualCircuitRedundancyMetadata == null diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackup.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackup.java index c181e8b24cb..b73a8dd212d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackup.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackup.java @@ -48,7 +48,13 @@ public final class VolumeBackup extends com.oracle.bmc.http.internal.ExplicitlyS "type", "uniqueSizeInGBs", "uniqueSizeInMbs", - "volumeId" + "volumeId", + "timeRetentionExpiresAt", + "retentionPeriod", + "isPreventDeletionEnabled", + "isRetentionLockEnabled", + "isIndefiniteRetentionEnabled", + "volumeGroupBackupId" }) public VolumeBackup( String compartmentId, @@ -69,7 +75,13 @@ public VolumeBackup( Type type, Long uniqueSizeInGBs, Long uniqueSizeInMbs, - String volumeId) { + String volumeId, + java.util.Date timeRetentionExpiresAt, + RetentionDuration retentionPeriod, + Boolean isPreventDeletionEnabled, + Boolean isRetentionLockEnabled, + Boolean isIndefiniteRetentionEnabled, + String volumeGroupBackupId) { super(); this.compartmentId = compartmentId; this.definedTags = definedTags; @@ -90,6 +102,12 @@ public VolumeBackup( this.uniqueSizeInGBs = uniqueSizeInGBs; this.uniqueSizeInMbs = uniqueSizeInMbs; this.volumeId = volumeId; + this.timeRetentionExpiresAt = timeRetentionExpiresAt; + this.retentionPeriod = retentionPeriod; + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; + this.volumeGroupBackupId = volumeGroupBackupId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -465,6 +483,95 @@ public Builder volumeId(String volumeId) { this.__explicitlySet__.add("volumeId"); return this; } + /** + * The date and time when a backup\u2019s retention period ends and it is set to expire. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRetentionExpiresAt") + private java.util.Date timeRetentionExpiresAt; + + /** + * The date and time when a backup\u2019s retention period ends and it is set to expire. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups. + * @param timeRetentionExpiresAt the value to set + * @return this builder + **/ + public Builder timeRetentionExpiresAt(java.util.Date timeRetentionExpiresAt) { + this.timeRetentionExpiresAt = timeRetentionExpiresAt; + this.__explicitlySet__.add("timeRetentionExpiresAt"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private RetentionDuration retentionPeriod; + + public Builder retentionPeriod(RetentionDuration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @param isPreventDeletionEnabled the value to set + * @return this builder + **/ + public Builder isPreventDeletionEnabled(Boolean isPreventDeletionEnabled) { + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.__explicitlySet__.add("isPreventDeletionEnabled"); + return this; + } + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @param isRetentionLockEnabled the value to set + * @return this builder + **/ + public Builder isRetentionLockEnabled(Boolean isRetentionLockEnabled) { + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.__explicitlySet__.add("isRetentionLockEnabled"); + return this; + } + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @param isIndefiniteRetentionEnabled the value to set + * @return this builder + **/ + public Builder isIndefiniteRetentionEnabled(Boolean isIndefiniteRetentionEnabled) { + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; + this.__explicitlySet__.add("isIndefiniteRetentionEnabled"); + return this; + } + /** + * The OCID of the volume group backup associated with the backup. This is an optional field. If it is not present in the response, the backup does not belong to a volume group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("volumeGroupBackupId") + private String volumeGroupBackupId; + + /** + * The OCID of the volume group backup associated with the backup. This is an optional field. If it is not present in the response, the backup does not belong to a volume group. + * @param volumeGroupBackupId the value to set + * @return this builder + **/ + public Builder volumeGroupBackupId(String volumeGroupBackupId) { + this.volumeGroupBackupId = volumeGroupBackupId; + this.__explicitlySet__.add("volumeGroupBackupId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -490,7 +597,13 @@ public VolumeBackup build() { this.type, this.uniqueSizeInGBs, this.uniqueSizeInMbs, - this.volumeId); + this.volumeId, + this.timeRetentionExpiresAt, + this.retentionPeriod, + this.isPreventDeletionEnabled, + this.isRetentionLockEnabled, + this.isIndefiniteRetentionEnabled, + this.volumeGroupBackupId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -556,6 +669,24 @@ public Builder copy(VolumeBackup model) { if (model.wasPropertyExplicitlySet("volumeId")) { this.volumeId(model.getVolumeId()); } + if (model.wasPropertyExplicitlySet("timeRetentionExpiresAt")) { + this.timeRetentionExpiresAt(model.getTimeRetentionExpiresAt()); + } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("isPreventDeletionEnabled")) { + this.isPreventDeletionEnabled(model.getIsPreventDeletionEnabled()); + } + if (model.wasPropertyExplicitlySet("isRetentionLockEnabled")) { + this.isRetentionLockEnabled(model.getIsRetentionLockEnabled()); + } + if (model.wasPropertyExplicitlySet("isIndefiniteRetentionEnabled")) { + this.isIndefiniteRetentionEnabled(model.getIsIndefiniteRetentionEnabled()); + } + if (model.wasPropertyExplicitlySet("volumeGroupBackupId")) { + this.volumeGroupBackupId(model.getVolumeGroupBackupId()); + } return this; } } @@ -1050,6 +1181,83 @@ public String getVolumeId() { return volumeId; } + /** + * The date and time when a backup\u2019s retention period ends and it is set to expire. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRetentionExpiresAt") + private final java.util.Date timeRetentionExpiresAt; + + /** + * The date and time when a backup\u2019s retention period ends and it is set to expire. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups. + * @return the value + **/ + public java.util.Date getTimeRetentionExpiresAt() { + return timeRetentionExpiresAt; + } + + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final RetentionDuration retentionPeriod; + + public RetentionDuration getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private final Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @return the value + **/ + public Boolean getIsPreventDeletionEnabled() { + return isPreventDeletionEnabled; + } + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private final Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @return the value + **/ + public Boolean getIsRetentionLockEnabled() { + return isRetentionLockEnabled; + } + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private final Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @return the value + **/ + public Boolean getIsIndefiniteRetentionEnabled() { + return isIndefiniteRetentionEnabled; + } + + /** + * The OCID of the volume group backup associated with the backup. This is an optional field. If it is not present in the response, the backup does not belong to a volume group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("volumeGroupBackupId") + private final String volumeGroupBackupId; + + /** + * The OCID of the volume group backup associated with the backup. This is an optional field. If it is not present in the response, the backup does not belong to a volume group. + * @return the value + **/ + public String getVolumeGroupBackupId() { + return volumeGroupBackupId; + } + @Override public String toString() { return this.toString(true); @@ -1083,6 +1291,14 @@ public String toString(boolean includeByteArrayContents) { sb.append(", uniqueSizeInGBs=").append(String.valueOf(this.uniqueSizeInGBs)); sb.append(", uniqueSizeInMbs=").append(String.valueOf(this.uniqueSizeInMbs)); sb.append(", volumeId=").append(String.valueOf(this.volumeId)); + sb.append(", timeRetentionExpiresAt=").append(String.valueOf(this.timeRetentionExpiresAt)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", isPreventDeletionEnabled=") + .append(String.valueOf(this.isPreventDeletionEnabled)); + sb.append(", isRetentionLockEnabled=").append(String.valueOf(this.isRetentionLockEnabled)); + sb.append(", isIndefiniteRetentionEnabled=") + .append(String.valueOf(this.isIndefiniteRetentionEnabled)); + sb.append(", volumeGroupBackupId=").append(String.valueOf(this.volumeGroupBackupId)); sb.append(")"); return sb.toString(); } @@ -1116,6 +1332,16 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.uniqueSizeInGBs, other.uniqueSizeInGBs) && java.util.Objects.equals(this.uniqueSizeInMbs, other.uniqueSizeInMbs) && java.util.Objects.equals(this.volumeId, other.volumeId) + && java.util.Objects.equals( + this.timeRetentionExpiresAt, other.timeRetentionExpiresAt) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals( + this.isPreventDeletionEnabled, other.isPreventDeletionEnabled) + && java.util.Objects.equals( + this.isRetentionLockEnabled, other.isRetentionLockEnabled) + && java.util.Objects.equals( + this.isIndefiniteRetentionEnabled, other.isIndefiniteRetentionEnabled) + && java.util.Objects.equals(this.volumeGroupBackupId, other.volumeGroupBackupId) && super.equals(other); } @@ -1160,6 +1386,34 @@ public int hashCode() { (result * PRIME) + (this.uniqueSizeInMbs == null ? 43 : this.uniqueSizeInMbs.hashCode()); result = (result * PRIME) + (this.volumeId == null ? 43 : this.volumeId.hashCode()); + result = + (result * PRIME) + + (this.timeRetentionExpiresAt == null + ? 43 + : this.timeRetentionExpiresAt.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = + (result * PRIME) + + (this.isPreventDeletionEnabled == null + ? 43 + : this.isPreventDeletionEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRetentionLockEnabled == null + ? 43 + : this.isRetentionLockEnabled.hashCode()); + result = + (result * PRIME) + + (this.isIndefiniteRetentionEnabled == null + ? 43 + : this.isIndefiniteRetentionEnabled.hashCode()); + result = + (result * PRIME) + + (this.volumeGroupBackupId == null + ? 43 + : this.volumeGroupBackupId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupSchedule.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupSchedule.java index b37df1626cc..9f1277027ab 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupSchedule.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupSchedule.java @@ -33,7 +33,10 @@ public final class VolumeBackupSchedule extends com.oracle.bmc.http.internal.Exp "dayOfMonth", "month", "retentionSeconds", - "timeZone" + "timeZone", + "retentionPeriod", + "isPreventDeletionEnabled", + "isRetentionLockEnabled" }) public VolumeBackupSchedule( BackupType backupType, @@ -45,7 +48,10 @@ public VolumeBackupSchedule( Integer dayOfMonth, Month month, Integer retentionSeconds, - TimeZone timeZone) { + TimeZone timeZone, + RetentionDuration retentionPeriod, + Boolean isPreventDeletionEnabled, + Boolean isRetentionLockEnabled) { super(); this.backupType = backupType; this.offsetSeconds = offsetSeconds; @@ -57,6 +63,9 @@ public VolumeBackupSchedule( this.month = month; this.retentionSeconds = retentionSeconds; this.timeZone = timeZone; + this.retentionPeriod = retentionPeriod; + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.isRetentionLockEnabled = isRetentionLockEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -274,6 +283,47 @@ public Builder timeZone(TimeZone timeZone) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private RetentionDuration retentionPeriod; + + public Builder retentionPeriod(RetentionDuration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @param isPreventDeletionEnabled the value to set + * @return this builder + **/ + public Builder isPreventDeletionEnabled(Boolean isPreventDeletionEnabled) { + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.__explicitlySet__.add("isPreventDeletionEnabled"); + return this; + } + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @param isRetentionLockEnabled the value to set + * @return this builder + **/ + public Builder isRetentionLockEnabled(Boolean isRetentionLockEnabled) { + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.__explicitlySet__.add("isRetentionLockEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -289,7 +339,10 @@ public VolumeBackupSchedule build() { this.dayOfMonth, this.month, this.retentionSeconds, - this.timeZone); + this.timeZone, + this.retentionPeriod, + this.isPreventDeletionEnabled, + this.isRetentionLockEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -328,6 +381,15 @@ public Builder copy(VolumeBackupSchedule model) { if (model.wasPropertyExplicitlySet("timeZone")) { this.timeZone(model.getTimeZone()); } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("isPreventDeletionEnabled")) { + this.isPreventDeletionEnabled(model.getIsPreventDeletionEnabled()); + } + if (model.wasPropertyExplicitlySet("isRetentionLockEnabled")) { + this.isRetentionLockEnabled(model.getIsRetentionLockEnabled()); + } return this; } } @@ -862,6 +924,41 @@ public TimeZone getTimeZone() { return timeZone; } + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final RetentionDuration retentionPeriod; + + public RetentionDuration getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private final Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @return the value + **/ + public Boolean getIsPreventDeletionEnabled() { + return isPreventDeletionEnabled; + } + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private final Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @return the value + **/ + public Boolean getIsRetentionLockEnabled() { + return isRetentionLockEnabled; + } + @Override public String toString() { return this.toString(true); @@ -886,6 +983,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", month=").append(String.valueOf(this.month)); sb.append(", retentionSeconds=").append(String.valueOf(this.retentionSeconds)); sb.append(", timeZone=").append(String.valueOf(this.timeZone)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", isPreventDeletionEnabled=") + .append(String.valueOf(this.isPreventDeletionEnabled)); + sb.append(", isRetentionLockEnabled=").append(String.valueOf(this.isRetentionLockEnabled)); sb.append(")"); return sb.toString(); } @@ -910,6 +1011,11 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.month, other.month) && java.util.Objects.equals(this.retentionSeconds, other.retentionSeconds) && java.util.Objects.equals(this.timeZone, other.timeZone) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals( + this.isPreventDeletionEnabled, other.isPreventDeletionEnabled) + && java.util.Objects.equals( + this.isRetentionLockEnabled, other.isRetentionLockEnabled) && super.equals(other); } @@ -931,6 +1037,19 @@ public int hashCode() { (result * PRIME) + (this.retentionSeconds == null ? 43 : this.retentionSeconds.hashCode()); result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = + (result * PRIME) + + (this.isPreventDeletionEnabled == null + ? 43 + : this.isPreventDeletionEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRetentionLockEnabled == null + ? 43 + : this.isRetentionLockEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeGroupBackup.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeGroupBackup.java index c3997dbce8c..7e83aed3b54 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeGroupBackup.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeGroupBackup.java @@ -48,7 +48,12 @@ public final class VolumeGroupBackup extends com.oracle.bmc.http.internal.Explic "uniqueSizeInGbs", "volumeBackupIds", "volumeGroupId", - "sourceVolumeGroupBackupId" + "sourceVolumeGroupBackupId", + "timeRetentionExpiresAt", + "retentionPeriod", + "isPreventDeletionEnabled", + "isRetentionLockEnabled", + "isIndefiniteRetentionEnabled" }) public VolumeGroupBackup( String compartmentId, @@ -68,7 +73,12 @@ public VolumeGroupBackup( Long uniqueSizeInGbs, java.util.List volumeBackupIds, String volumeGroupId, - String sourceVolumeGroupBackupId) { + String sourceVolumeGroupBackupId, + java.util.Date timeRetentionExpiresAt, + RetentionDuration retentionPeriod, + Boolean isPreventDeletionEnabled, + Boolean isRetentionLockEnabled, + Boolean isIndefiniteRetentionEnabled) { super(); this.compartmentId = compartmentId; this.definedTags = definedTags; @@ -88,6 +98,11 @@ public VolumeGroupBackup( this.volumeBackupIds = volumeBackupIds; this.volumeGroupId = volumeGroupId; this.sourceVolumeGroupBackupId = sourceVolumeGroupBackupId; + this.timeRetentionExpiresAt = timeRetentionExpiresAt; + this.retentionPeriod = retentionPeriod; + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -441,6 +456,79 @@ public Builder sourceVolumeGroupBackupId(String sourceVolumeGroupBackupId) { this.__explicitlySet__.add("sourceVolumeGroupBackupId"); return this; } + /** + * The date and time when a backup\u2019s retention period ends and it is set to expire. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRetentionExpiresAt") + private java.util.Date timeRetentionExpiresAt; + + /** + * The date and time when a backup\u2019s retention period ends and it is set to expire. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups. + * @param timeRetentionExpiresAt the value to set + * @return this builder + **/ + public Builder timeRetentionExpiresAt(java.util.Date timeRetentionExpiresAt) { + this.timeRetentionExpiresAt = timeRetentionExpiresAt; + this.__explicitlySet__.add("timeRetentionExpiresAt"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private RetentionDuration retentionPeriod; + + public Builder retentionPeriod(RetentionDuration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @param isPreventDeletionEnabled the value to set + * @return this builder + **/ + public Builder isPreventDeletionEnabled(Boolean isPreventDeletionEnabled) { + this.isPreventDeletionEnabled = isPreventDeletionEnabled; + this.__explicitlySet__.add("isPreventDeletionEnabled"); + return this; + } + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @param isRetentionLockEnabled the value to set + * @return this builder + **/ + public Builder isRetentionLockEnabled(Boolean isRetentionLockEnabled) { + this.isRetentionLockEnabled = isRetentionLockEnabled; + this.__explicitlySet__.add("isRetentionLockEnabled"); + return this; + } + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @param isIndefiniteRetentionEnabled the value to set + * @return this builder + **/ + public Builder isIndefiniteRetentionEnabled(Boolean isIndefiniteRetentionEnabled) { + this.isIndefiniteRetentionEnabled = isIndefiniteRetentionEnabled; + this.__explicitlySet__.add("isIndefiniteRetentionEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -465,7 +553,12 @@ public VolumeGroupBackup build() { this.uniqueSizeInGbs, this.volumeBackupIds, this.volumeGroupId, - this.sourceVolumeGroupBackupId); + this.sourceVolumeGroupBackupId, + this.timeRetentionExpiresAt, + this.retentionPeriod, + this.isPreventDeletionEnabled, + this.isRetentionLockEnabled, + this.isIndefiniteRetentionEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -528,6 +621,21 @@ public Builder copy(VolumeGroupBackup model) { if (model.wasPropertyExplicitlySet("sourceVolumeGroupBackupId")) { this.sourceVolumeGroupBackupId(model.getSourceVolumeGroupBackupId()); } + if (model.wasPropertyExplicitlySet("timeRetentionExpiresAt")) { + this.timeRetentionExpiresAt(model.getTimeRetentionExpiresAt()); + } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("isPreventDeletionEnabled")) { + this.isPreventDeletionEnabled(model.getIsPreventDeletionEnabled()); + } + if (model.wasPropertyExplicitlySet("isRetentionLockEnabled")) { + this.isRetentionLockEnabled(model.getIsRetentionLockEnabled()); + } + if (model.wasPropertyExplicitlySet("isIndefiniteRetentionEnabled")) { + this.isIndefiniteRetentionEnabled(model.getIsIndefiniteRetentionEnabled()); + } return this; } } @@ -1004,6 +1112,69 @@ public String getSourceVolumeGroupBackupId() { return sourceVolumeGroupBackupId; } + /** + * The date and time when a backup\u2019s retention period ends and it is set to expire. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRetentionExpiresAt") + private final java.util.Date timeRetentionExpiresAt; + + /** + * The date and time when a backup\u2019s retention period ends and it is set to expire. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups. + * @return the value + **/ + public java.util.Date getTimeRetentionExpiresAt() { + return timeRetentionExpiresAt; + } + + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final RetentionDuration retentionPeriod; + + public RetentionDuration getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPreventDeletionEnabled") + private final Boolean isPreventDeletionEnabled; + + /** + * Prevent backups from being deleted during the configured retention period. This is an optional field. If it is not specified, it is set to null, prevent deletion will not be applied to the backups. + * @return the value + **/ + public Boolean getIsPreventDeletionEnabled() { + return isPreventDeletionEnabled; + } + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRetentionLockEnabled") + private final Boolean isRetentionLockEnabled; + + /** + * feature that prevents deletion or alteration of backup data for a specified period to ensure data protection and regulatory compliance. This is an optional field. If it is not specified, it is set to null, no retention lock will be applied to the backups. This feature should be used in conjunction with the retention-period field. + * @return the value + **/ + public Boolean getIsRetentionLockEnabled() { + return isRetentionLockEnabled; + } + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIndefiniteRetentionEnabled") + private final Boolean isIndefiniteRetentionEnabled; + + /** + * feature that preserves backup data from modification or deletion to ensure it remains available for legal or regulatory investigations or litigation, regardless of standard retention policies. This is an optional field. If it is not specified, it is set to null, no legal hold will be applied to the backups. + * @return the value + **/ + public Boolean getIsIndefiniteRetentionEnabled() { + return isIndefiniteRetentionEnabled; + } + @Override public String toString() { return this.toString(true); @@ -1037,6 +1208,13 @@ public String toString(boolean includeByteArrayContents) { sb.append(", volumeGroupId=").append(String.valueOf(this.volumeGroupId)); sb.append(", sourceVolumeGroupBackupId=") .append(String.valueOf(this.sourceVolumeGroupBackupId)); + sb.append(", timeRetentionExpiresAt=").append(String.valueOf(this.timeRetentionExpiresAt)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", isPreventDeletionEnabled=") + .append(String.valueOf(this.isPreventDeletionEnabled)); + sb.append(", isRetentionLockEnabled=").append(String.valueOf(this.isRetentionLockEnabled)); + sb.append(", isIndefiniteRetentionEnabled=") + .append(String.valueOf(this.isIndefiniteRetentionEnabled)); sb.append(")"); return sb.toString(); } @@ -1070,6 +1248,15 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.volumeGroupId, other.volumeGroupId) && java.util.Objects.equals( this.sourceVolumeGroupBackupId, other.sourceVolumeGroupBackupId) + && java.util.Objects.equals( + this.timeRetentionExpiresAt, other.timeRetentionExpiresAt) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals( + this.isPreventDeletionEnabled, other.isPreventDeletionEnabled) + && java.util.Objects.equals( + this.isRetentionLockEnabled, other.isRetentionLockEnabled) + && java.util.Objects.equals( + this.isIndefiniteRetentionEnabled, other.isIndefiniteRetentionEnabled) && super.equals(other); } @@ -1117,6 +1304,29 @@ public int hashCode() { + (this.sourceVolumeGroupBackupId == null ? 43 : this.sourceVolumeGroupBackupId.hashCode()); + result = + (result * PRIME) + + (this.timeRetentionExpiresAt == null + ? 43 + : this.timeRetentionExpiresAt.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = + (result * PRIME) + + (this.isPreventDeletionEnabled == null + ? 43 + : this.isPreventDeletionEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRetentionLockEnabled == null + ? 43 + : this.isRetentionLockEnabled.hashCode()); + result = + (result * PRIME) + + (this.isIndefiniteRetentionEnabled == null + ? 43 + : this.isIndefiniteRetentionEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/GetCrossConnectLetterOfAuthorityRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/GetCrossConnectLetterOfAuthorityRequest.java index 211976a4cf2..c33204c99d9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/GetCrossConnectLetterOfAuthorityRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/GetCrossConnectLetterOfAuthorityRequest.java @@ -23,6 +23,21 @@ public class GetCrossConnectLetterOfAuthorityRequest public String getCrossConnectId() { return crossConnectId; } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -46,6 +61,25 @@ public Builder crossConnectId(String crossConnectId) { return this; } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -75,6 +109,7 @@ public Builder retryConfiguration( */ public Builder copy(GetCrossConnectLetterOfAuthorityRequest o) { crossConnectId(o.getCrossConnectId()); + opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -109,8 +144,9 @@ public GetCrossConnectLetterOfAuthorityRequest buildWithoutInvocationCallback() GetCrossConnectLetterOfAuthorityRequest request = new GetCrossConnectLetterOfAuthorityRequest(); request.crossConnectId = crossConnectId; + request.opcRequestId = opcRequestId; return request; - // new GetCrossConnectLetterOfAuthorityRequest(crossConnectId); + // new GetCrossConnectLetterOfAuthorityRequest(crossConnectId, opcRequestId); } } @@ -119,7 +155,7 @@ public GetCrossConnectLetterOfAuthorityRequest buildWithoutInvocationCallback() * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder().crossConnectId(crossConnectId); + return new Builder().crossConnectId(crossConnectId).opcRequestId(opcRequestId); } /** @@ -136,6 +172,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",crossConnectId=").append(String.valueOf(this.crossConnectId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); } @@ -151,7 +188,8 @@ public boolean equals(Object o) { GetCrossConnectLetterOfAuthorityRequest other = (GetCrossConnectLetterOfAuthorityRequest) o; return super.equals(o) - && java.util.Objects.equals(this.crossConnectId, other.crossConnectId); + && java.util.Objects.equals(this.crossConnectId, other.crossConnectId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override @@ -161,6 +199,7 @@ public int hashCode() { result = (result * PRIME) + (this.crossConnectId == null ? 43 : this.crossConnectId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListComputeGpuMemoryClustersRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListComputeGpuMemoryClustersRequest.java index e01775689bb..c6b831a073c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListComputeGpuMemoryClustersRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListComputeGpuMemoryClustersRequest.java @@ -51,6 +51,19 @@ public String getOpcRequestId() { public String getComputeGpuMemoryClusterId() { return computeGpuMemoryClusterId; } + /** + * A filter to return only the listings that matches the given GPU memory fabric id. + * + */ + private String computeGpuMemoryFabricId; + + /** + * A filter to return only the listings that matches the given GPU memory fabric id. + * + */ + public String getComputeGpuMemoryFabricId() { + return computeGpuMemoryFabricId; + } /** * The name of the availability domain. *

@@ -319,6 +332,23 @@ public Builder computeGpuMemoryClusterId(String computeGpuMemoryClusterId) { return this; } + /** + * A filter to return only the listings that matches the given GPU memory fabric id. + * + */ + private String computeGpuMemoryFabricId = null; + + /** + * A filter to return only the listings that matches the given GPU memory fabric id. + * + * @param computeGpuMemoryFabricId the value to set + * @return this builder instance + */ + public Builder computeGpuMemoryFabricId(String computeGpuMemoryFabricId) { + this.computeGpuMemoryFabricId = computeGpuMemoryFabricId; + return this; + } + /** * The name of the availability domain. *

@@ -505,6 +535,7 @@ public Builder copy(ListComputeGpuMemoryClustersRequest o) { compartmentId(o.getCompartmentId()); opcRequestId(o.getOpcRequestId()); computeGpuMemoryClusterId(o.getComputeGpuMemoryClusterId()); + computeGpuMemoryFabricId(o.getComputeGpuMemoryFabricId()); availabilityDomain(o.getAvailabilityDomain()); displayName(o.getDisplayName()); computeClusterId(o.getComputeClusterId()); @@ -547,6 +578,7 @@ public ListComputeGpuMemoryClustersRequest buildWithoutInvocationCallback() { request.compartmentId = compartmentId; request.opcRequestId = opcRequestId; request.computeGpuMemoryClusterId = computeGpuMemoryClusterId; + request.computeGpuMemoryFabricId = computeGpuMemoryFabricId; request.availabilityDomain = availabilityDomain; request.displayName = displayName; request.computeClusterId = computeClusterId; @@ -555,7 +587,7 @@ public ListComputeGpuMemoryClustersRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.limit = limit; return request; - // new ListComputeGpuMemoryClustersRequest(compartmentId, opcRequestId, computeGpuMemoryClusterId, availabilityDomain, displayName, computeClusterId, page, sortBy, sortOrder, limit); + // new ListComputeGpuMemoryClustersRequest(compartmentId, opcRequestId, computeGpuMemoryClusterId, computeGpuMemoryFabricId, availabilityDomain, displayName, computeClusterId, page, sortBy, sortOrder, limit); } } @@ -568,6 +600,7 @@ public Builder toBuilder() { .compartmentId(compartmentId) .opcRequestId(opcRequestId) .computeGpuMemoryClusterId(computeGpuMemoryClusterId) + .computeGpuMemoryFabricId(computeGpuMemoryFabricId) .availabilityDomain(availabilityDomain) .displayName(displayName) .computeClusterId(computeClusterId) @@ -594,6 +627,8 @@ public String toString() { sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",computeGpuMemoryClusterId=") .append(String.valueOf(this.computeGpuMemoryClusterId)); + sb.append(",computeGpuMemoryFabricId=") + .append(String.valueOf(this.computeGpuMemoryFabricId)); sb.append(",availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(",displayName=").append(String.valueOf(this.displayName)); sb.append(",computeClusterId=").append(String.valueOf(this.computeClusterId)); @@ -620,6 +655,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals( this.computeGpuMemoryClusterId, other.computeGpuMemoryClusterId) + && java.util.Objects.equals( + this.computeGpuMemoryFabricId, other.computeGpuMemoryFabricId) && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.computeClusterId, other.computeClusterId) @@ -642,6 +679,11 @@ public int hashCode() { + (this.computeGpuMemoryClusterId == null ? 43 : this.computeGpuMemoryClusterId.hashCode()); + result = + (result * PRIME) + + (this.computeGpuMemoryFabricId == null + ? 43 + : this.computeGpuMemoryFabricId.hashCode()); result = (result * PRIME) + (this.availabilityDomain == null diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListProviderRemoteRegionsRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListProviderRemoteRegionsRequest.java new file mode 100644 index 00000000000..03f4ad9e9b7 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListProviderRemoteRegionsRequest.java @@ -0,0 +1,302 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use ListProviderRemoteRegionsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListProviderRemoteRegionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the provider service. + */ + private String providerServiceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the provider service. + */ + public String getProviderServiceId() { + return providerServiceId; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" + * call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" + * call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListProviderRemoteRegionsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the provider service. + */ + private String providerServiceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the provider service. + * @param providerServiceId the value to set + * @return this builder instance + */ + public Builder providerServiceId(String providerServiceId) { + this.providerServiceId = providerServiceId; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a paginated + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + *

+ * Example: {@code 50} + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" + * call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" + * call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * 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(ListProviderRemoteRegionsRequest o) { + providerServiceId(o.getProviderServiceId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListProviderRemoteRegionsRequest 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 ListProviderRemoteRegionsRequest + */ + public ListProviderRemoteRegionsRequest build() { + ListProviderRemoteRegionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListProviderRemoteRegionsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListProviderRemoteRegionsRequest + */ + public ListProviderRemoteRegionsRequest buildWithoutInvocationCallback() { + ListProviderRemoteRegionsRequest request = new ListProviderRemoteRegionsRequest(); + request.providerServiceId = providerServiceId; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListProviderRemoteRegionsRequest(providerServiceId, opcRequestId, limit, page); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .providerServiceId(providerServiceId) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",providerServiceId=").append(String.valueOf(this.providerServiceId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListProviderRemoteRegionsRequest)) { + return false; + } + + ListProviderRemoteRegionsRequest other = (ListProviderRemoteRegionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.providerServiceId, other.providerServiceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.providerServiceId == null ? 43 : this.providerServiceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateCrossConnectLetterOfAuthorityRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateCrossConnectLetterOfAuthorityRequest.java new file mode 100644 index 00000000000..b4a0ca2696c --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/UpdateCrossConnectLetterOfAuthorityRequest.java @@ -0,0 +1,324 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use UpdateCrossConnectLetterOfAuthorityRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateCrossConnectLetterOfAuthorityRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.core.model.UpdateCrossConnectLetterOfAuthorityDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. + */ + private String crossConnectId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. + */ + public String getCrossConnectId() { + return crossConnectId; + } + /** + * Update CrossConnect LOA fields. + */ + private com.oracle.bmc.core.model.UpdateCrossConnectLetterOfAuthorityDetails + updateCrossConnectLetterOfAuthorityDetails; + + /** + * Update CrossConnect LOA fields. + */ + public com.oracle.bmc.core.model.UpdateCrossConnectLetterOfAuthorityDetails + getUpdateCrossConnectLetterOfAuthorityDetails() { + return updateCrossConnectLetterOfAuthorityDetails; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.core.model.UpdateCrossConnectLetterOfAuthorityDetails getBody$() { + return updateCrossConnectLetterOfAuthorityDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateCrossConnectLetterOfAuthorityRequest, + com.oracle.bmc.core.model.UpdateCrossConnectLetterOfAuthorityDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. + */ + private String crossConnectId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. + * @param crossConnectId the value to set + * @return this builder instance + */ + public Builder crossConnectId(String crossConnectId) { + this.crossConnectId = crossConnectId; + return this; + } + + /** + * Update CrossConnect LOA fields. + */ + private com.oracle.bmc.core.model.UpdateCrossConnectLetterOfAuthorityDetails + updateCrossConnectLetterOfAuthorityDetails = null; + + /** + * Update CrossConnect LOA fields. + * @param updateCrossConnectLetterOfAuthorityDetails the value to set + * @return this builder instance + */ + public Builder updateCrossConnectLetterOfAuthorityDetails( + com.oracle.bmc.core.model.UpdateCrossConnectLetterOfAuthorityDetails + updateCrossConnectLetterOfAuthorityDetails) { + this.updateCrossConnectLetterOfAuthorityDetails = + updateCrossConnectLetterOfAuthorityDetails; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(UpdateCrossConnectLetterOfAuthorityRequest o) { + crossConnectId(o.getCrossConnectId()); + updateCrossConnectLetterOfAuthorityDetails( + o.getUpdateCrossConnectLetterOfAuthorityDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateCrossConnectLetterOfAuthorityRequest 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 UpdateCrossConnectLetterOfAuthorityRequest + */ + public UpdateCrossConnectLetterOfAuthorityRequest build() { + UpdateCrossConnectLetterOfAuthorityRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.core.model.UpdateCrossConnectLetterOfAuthorityDetails body) { + updateCrossConnectLetterOfAuthorityDetails(body); + return this; + } + + /** + * Build the instance of UpdateCrossConnectLetterOfAuthorityRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateCrossConnectLetterOfAuthorityRequest + */ + public UpdateCrossConnectLetterOfAuthorityRequest buildWithoutInvocationCallback() { + UpdateCrossConnectLetterOfAuthorityRequest request = + new UpdateCrossConnectLetterOfAuthorityRequest(); + request.crossConnectId = crossConnectId; + request.updateCrossConnectLetterOfAuthorityDetails = + updateCrossConnectLetterOfAuthorityDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UpdateCrossConnectLetterOfAuthorityRequest(crossConnectId, updateCrossConnectLetterOfAuthorityDetails, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .crossConnectId(crossConnectId) + .updateCrossConnectLetterOfAuthorityDetails( + updateCrossConnectLetterOfAuthorityDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",crossConnectId=").append(String.valueOf(this.crossConnectId)); + sb.append(",updateCrossConnectLetterOfAuthorityDetails=") + .append(String.valueOf(this.updateCrossConnectLetterOfAuthorityDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateCrossConnectLetterOfAuthorityRequest)) { + return false; + } + + UpdateCrossConnectLetterOfAuthorityRequest other = + (UpdateCrossConnectLetterOfAuthorityRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.crossConnectId, other.crossConnectId) + && java.util.Objects.equals( + this.updateCrossConnectLetterOfAuthorityDetails, + other.updateCrossConnectLetterOfAuthorityDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.crossConnectId == null ? 43 : this.crossConnectId.hashCode()); + result = + (result * PRIME) + + (this.updateCrossConnectLetterOfAuthorityDetails == null + ? 43 + : this.updateCrossConnectLetterOfAuthorityDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/AttachVolumeResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/AttachVolumeResponse.java index 1b5778ff7de..2984b91fdb8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/responses/AttachVolumeResponse.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/AttachVolumeResponse.java @@ -40,6 +40,25 @@ public String getOpcRequestId() { return opcRequestId; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + /** * The returned VolumeAttachment instance. */ @@ -58,6 +77,7 @@ public com.oracle.bmc.core.model.VolumeAttachment getVolumeAttachment() { "headers", "etag", "opcRequestId", + "opcWorkRequestId", "volumeAttachment" }) private AttachVolumeResponse( @@ -65,10 +85,12 @@ private AttachVolumeResponse( javax.ws.rs.core.MultivaluedMap headers, String etag, String opcRequestId, + String opcWorkRequestId, com.oracle.bmc.core.model.VolumeAttachment volumeAttachment) { super(__httpStatusCode__, headers); this.etag = etag; this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; this.volumeAttachment = volumeAttachment; } @@ -123,6 +145,27 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + /** * The returned VolumeAttachment instance. */ @@ -148,6 +191,7 @@ public Builder copy(AttachVolumeResponse o) { headers(o.getHeaders()); etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); volumeAttachment(o.getVolumeAttachment()); return this; @@ -159,7 +203,12 @@ public Builder copy(AttachVolumeResponse o) { */ public AttachVolumeResponse build() { return new AttachVolumeResponse( - __httpStatusCode__, headers, etag, opcRequestId, volumeAttachment); + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcWorkRequestId, + volumeAttachment); } } @@ -178,6 +227,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",etag=").append(String.valueOf(etag)); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(",volumeAttachment=").append(String.valueOf(volumeAttachment)); sb.append(")"); return sb.toString(); @@ -196,6 +246,7 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.etag, other.etag) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) && java.util.Objects.equals(this.volumeAttachment, other.volumeAttachment); } @@ -205,6 +256,9 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); result = (result * PRIME) + (this.volumeAttachment == null ? 43 : this.volumeAttachment.hashCode()); diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/DetachVolumeResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/DetachVolumeResponse.java index cf88a1854ce..c62691e51f3 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/responses/DetachVolumeResponse.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/DetachVolumeResponse.java @@ -25,13 +25,39 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) private DetachVolumeResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder { @@ -68,6 +94,27 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + /** * Copy method to populate the builder with values from the given instance. * @return this builder instance @@ -76,6 +123,7 @@ public Builder copy(DetachVolumeResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -85,7 +133,8 @@ public Builder copy(DetachVolumeResponse o) { * @return the response object */ public DetachVolumeResponse build() { - return new DetachVolumeResponse(__httpStatusCode__, headers, opcRequestId); + return new DetachVolumeResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -103,6 +152,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(")"); return sb.toString(); } @@ -117,7 +167,9 @@ public boolean equals(Object o) { } DetachVolumeResponse other = (DetachVolumeResponse) o; - return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); } @Override @@ -125,6 +177,9 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); return result; } } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/GetCrossConnectLetterOfAuthorityResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/GetCrossConnectLetterOfAuthorityResponse.java index f6fbbcbf8ab..31c52745d09 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/responses/GetCrossConnectLetterOfAuthorityResponse.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/GetCrossConnectLetterOfAuthorityResponse.java @@ -8,6 +8,21 @@ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") public class GetCrossConnectLetterOfAuthorityResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -41,15 +56,18 @@ public com.oracle.bmc.core.model.LetterOfAuthority getLetterOfAuthority() { @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", + "etag", "opcRequestId", "letterOfAuthority" }) private GetCrossConnectLetterOfAuthorityResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, + String etag, String opcRequestId, com.oracle.bmc.core.model.LetterOfAuthority letterOfAuthority) { super(__httpStatusCode__, headers); + this.etag = etag; this.opcRequestId = opcRequestId; this.letterOfAuthority = letterOfAuthority; } @@ -69,6 +87,23 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) return this; } + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -111,6 +146,7 @@ public Builder letterOfAuthority( public Builder copy(GetCrossConnectLetterOfAuthorityResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); + etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); letterOfAuthority(o.getLetterOfAuthority()); @@ -123,7 +159,7 @@ public Builder copy(GetCrossConnectLetterOfAuthorityResponse o) { */ public GetCrossConnectLetterOfAuthorityResponse build() { return new GetCrossConnectLetterOfAuthorityResponse( - __httpStatusCode__, headers, opcRequestId, letterOfAuthority); + __httpStatusCode__, headers, etag, opcRequestId, letterOfAuthority); } } @@ -140,6 +176,7 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); sb.append(",letterOfAuthority=").append(String.valueOf(letterOfAuthority)); sb.append(")"); @@ -158,6 +195,7 @@ public boolean equals(Object o) { GetCrossConnectLetterOfAuthorityResponse other = (GetCrossConnectLetterOfAuthorityResponse) o; return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.letterOfAuthority, other.letterOfAuthority); } @@ -166,6 +204,7 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/ListProviderRemoteRegionsResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/ListProviderRemoteRegionsResponse.java new file mode 100644 index 00000000000..d599083a63b --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/ListProviderRemoteRegionsResponse.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.responses; + +import com.oracle.bmc.core.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListProviderRemoteRegionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A list of com.oracle.bmc.core.model.ProviderRemoteRegionName instances. + */ + private java.util.List items; + + /** + * A list of com.oracle.bmc.core.model.ProviderRemoteRegionName instances. + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "items" + }) + private ListProviderRemoteRegionsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcNextPage, + String opcRequestId, + java.util.List items) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.items = items; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A list of com.oracle.bmc.core.model.ProviderRemoteRegionName instances. + */ + private java.util.List items; + + /** + * A list of com.oracle.bmc.core.model.ProviderRemoteRegionName instances. + * @param items the value to set + * @return this builder + */ + public Builder items( + java.util.List items) { + this.items = items; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListProviderRemoteRegionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListProviderRemoteRegionsResponse build() { + return new ListProviderRemoteRegionsResponse( + __httpStatusCode__, headers, opcNextPage, opcRequestId, items); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",items=").append(String.valueOf(items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListProviderRemoteRegionsResponse)) { + return false; + } + + ListProviderRemoteRegionsResponse other = (ListProviderRemoteRegionsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.items, other.items); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/TerminateInstanceResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/TerminateInstanceResponse.java index 26ef47c5c7c..58bf5ea54ac 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/responses/TerminateInstanceResponse.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/TerminateInstanceResponse.java @@ -25,13 +25,39 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) private TerminateInstanceResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder { @@ -68,6 +94,27 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * Use [GetWorkRequest](https://docs.oracle.com/iaas/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + /** * Copy method to populate the builder with values from the given instance. * @return this builder instance @@ -76,6 +123,7 @@ public Builder copy(TerminateInstanceResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -85,7 +133,8 @@ public Builder copy(TerminateInstanceResponse o) { * @return the response object */ public TerminateInstanceResponse build() { - return new TerminateInstanceResponse(__httpStatusCode__, headers, opcRequestId); + return new TerminateInstanceResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -103,6 +152,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(")"); return sb.toString(); } @@ -117,7 +167,9 @@ public boolean equals(Object o) { } TerminateInstanceResponse other = (TerminateInstanceResponse) o; - return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); } @Override @@ -125,6 +177,9 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); return result; } } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateCrossConnectLetterOfAuthorityResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateCrossConnectLetterOfAuthorityResponse.java new file mode 100644 index 00000000000..ab3aa98ac6e --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/UpdateCrossConnectLetterOfAuthorityResponse.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.core.responses; + +import com.oracle.bmc.core.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateCrossConnectLetterOfAuthorityResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned LetterOfAuthority instance. + */ + private com.oracle.bmc.core.model.LetterOfAuthority letterOfAuthority; + + /** + * The returned LetterOfAuthority instance. + * @return the value + */ + public com.oracle.bmc.core.model.LetterOfAuthority getLetterOfAuthority() { + return letterOfAuthority; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "letterOfAuthority" + }) + private UpdateCrossConnectLetterOfAuthorityResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.core.model.LetterOfAuthority letterOfAuthority) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.letterOfAuthority = letterOfAuthority; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned LetterOfAuthority instance. + */ + private com.oracle.bmc.core.model.LetterOfAuthority letterOfAuthority; + + /** + * The returned LetterOfAuthority instance. + * @param letterOfAuthority the value to set + * @return this builder + */ + public Builder letterOfAuthority( + com.oracle.bmc.core.model.LetterOfAuthority letterOfAuthority) { + this.letterOfAuthority = letterOfAuthority; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateCrossConnectLetterOfAuthorityResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + letterOfAuthority(o.getLetterOfAuthority()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateCrossConnectLetterOfAuthorityResponse build() { + return new UpdateCrossConnectLetterOfAuthorityResponse( + __httpStatusCode__, headers, etag, opcRequestId, letterOfAuthority); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",letterOfAuthority=").append(String.valueOf(letterOfAuthority)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateCrossConnectLetterOfAuthorityResponse)) { + return false; + } + + UpdateCrossConnectLetterOfAuthorityResponse other = + (UpdateCrossConnectLetterOfAuthorityResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.letterOfAuthority, other.letterOfAuthority); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.letterOfAuthority == null ? 43 : this.letterOfAuthority.hashCode()); + return result; + } +} diff --git a/bmc-costad/pom.xml b/bmc-costad/pom.xml index fea8ebca353..a0d8ef8ed03 100644 --- a/bmc-costad/pom.xml +++ b/bmc-costad/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-costad @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index d2e7aa7becd..e8fed8bfe7b 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-dashboardservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index fdc72f72491..7e777895a73 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.93.0 + 2.95.0 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java index 18da3daf528..37fea73727b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java @@ -322,6 +322,20 @@ ChangeAutonomousVmClusterCompartmentResponse changeAutonomousVmClusterCompartmen ChangeBackupDestinationCompartmentResponse changeBackupDestinationCompartment( ChangeBackupDestinationCompartmentRequest request); + /** + * Moves a BaseDB-C@C VM cluster and its dependent resources to another compartment. Applies to Base Database Service on Cloud@Customer instances only. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ChangeBaseccVmClusterCompartment API. + */ + ChangeBaseccVmClusterCompartmentResponse changeBaseccVmClusterCompartment( + ChangeBaseccVmClusterCompartmentRequest request); + /** * Moves an Autonomous Exadata VM cluster in the Oracle cloud and its dependent resources to another compartment. For Exadata Cloud@Customer systems, see {@link #changeAutonomousVmClusterCompartment(ChangeAutonomousVmClusterCompartmentRequest) changeAutonomousVmClusterCompartment}. * @@ -1018,6 +1032,19 @@ CreateAutonomousVmClusterResponse createAutonomousVmCluster( */ CreateBackupDestinationResponse createBackupDestination(CreateBackupDestinationRequest request); + /** + * Creates a BaseDB-C@C VM cluster. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateBaseccVmCluster API. + */ + CreateBaseccVmClusterResponse createBaseccVmCluster(CreateBaseccVmClusterRequest request); + /** * Creates an Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Customer systems, see {@link #createAutonomousVmCluster(CreateAutonomousVmClusterRequest) createAutonomousVmCluster}. * @@ -1440,6 +1467,8 @@ CreatePluggableDatabaseSnapshotResponse createPluggableDatabaseSnapshot( * Performs one of the following power actions on the specified DB node: * - start - power on * - stop - power off gracefully + * - forcestop - power off forcefully + * - forcereset - ACPI shutdown and power on forcefully * - softreset - ACPI shutdown and power on * - reset - power off and power on *

@@ -1567,6 +1596,19 @@ DeleteAutonomousVmClusterResponse deleteAutonomousVmCluster( */ DeleteBackupDestinationResponse deleteBackupDestination(DeleteBackupDestinationRequest request); + /** + * Deletes the specified BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteBaseccVmCluster API. + */ + DeleteBaseccVmClusterResponse deleteBaseccVmCluster(DeleteBaseccVmClusterRequest request); + /** * Deletes the specified Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Customer systems, see {@link #deleteAutonomousVmCluster(DeleteAutonomousVmClusterRequest) deleteAutonomousVmCluster}. * @@ -2778,6 +2820,47 @@ GetAutonomousVmClusterResourceUsageResponse getAutonomousVmClusterResourceUsage( */ GetBackupDestinationResponse getBackupDestination(GetBackupDestinationRequest request); + /** + * Gets information about the BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetBaseccVmCluster API. + */ + GetBaseccVmClusterResponse getBaseccVmCluster(GetBaseccVmClusterRequest request); + + /** + * Gets information about a specified maintenance update package for a BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetBaseccVmClusterUpdate API. + */ + GetBaseccVmClusterUpdateResponse getBaseccVmClusterUpdate( + GetBaseccVmClusterUpdateRequest request); + + /** + * Gets the maintenance update history details for the specified update history entry. Applies to Base Database Service on Cloud@Customer instances only. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetBaseccVmClusterUpdateHistoryEntry API. + */ + GetBaseccVmClusterUpdateHistoryEntryResponse getBaseccVmClusterUpdateHistoryEntry( + GetBaseccVmClusterUpdateHistoryEntryRequest request); + /** * Gets information about the specified Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Custustomer systems, see {@link #getAutonomousVmCluster(GetAutonomousVmClusterRequest) getAutonomousVmCluster}. * @@ -3963,6 +4046,47 @@ ListAutonomousVmClustersResponse listAutonomousVmClusters( */ ListBackupsResponse listBackups(ListBackupsRequest request); + /** + * Gets the history of the maintenance update actions performed on the specified BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListBaseccVmClusterUpdateHistoryEntries API. + */ + ListBaseccVmClusterUpdateHistoryEntriesResponse listBaseccVmClusterUpdateHistoryEntries( + ListBaseccVmClusterUpdateHistoryEntriesRequest request); + + /** + * Lists the maintenance updates that can be applied to the specified BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListBaseccVmClusterUpdates API. + */ + ListBaseccVmClusterUpdatesResponse listBaseccVmClusterUpdates( + ListBaseccVmClusterUpdatesRequest request); + + /** + * Lists the BaseDB-C@C VM clusters in the specified compartment. Applies to Base Database Service on Cloud@Customer instances only. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListBaseccVmClusters API. + */ + ListBaseccVmClustersResponse listBaseccVmClusters(ListBaseccVmClustersRequest request); + /** * Gets the list of resource usage details for all the Cloud Autonomous Container Database * in the specified Cloud Autonomous Exadata VM cluster. @@ -5077,6 +5201,20 @@ RegisterCloudAutonomousVmClusterPkcsResponse registerCloudAutonomousVmClusterPkc RegisterCloudVmClusterPkcsResponse registerCloudVmClusterPkcs( RegisterCloudVmClusterPkcsRequest request); + /** + * Install the PKCS11 driver for given keystore type + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RegisterExadbVmClusterPkcs API. + */ + RegisterExadbVmClusterPkcsResponse registerExadbVmClusterPkcs( + RegisterExadbVmClusterPkcsRequest request); + /** * Reinstates a disabled standby Autonomous Container Database (ACD), identified by the autonomousContainerDatabaseId parameter to an active standby ACD. For more information, see * [Reinstate the Disabled Standby in an Autonomous Data Guard Configuration](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html#ADBCL-GUID-B5C6A90D-72E3-4F32-988D-8AECC0A2D947). @@ -5221,6 +5359,20 @@ RemoveVirtualMachineFromVmClusterResponse removeVirtualMachineFromVmCluster( */ ReorderScheduledActionsResponse reorderScheduledActions(ReorderScheduledActionsRequest request); + /** + * Reschedule the Managed Database Software Update + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RescheduleManagedDbSoftwareUpdate API. + */ + RescheduleManagedDbSoftwareUpdateResponse rescheduleManagedDbSoftwareUpdate( + RescheduleManagedDbSoftwareUpdateRequest request); + /** * Adds or removes Db server network nodes to extend or shrink the existing VM cluster network. Applies to Exadata * Cloud@Customer instances only. @@ -5275,6 +5427,34 @@ RestartAutonomousContainerDatabaseResponse restartAutonomousContainerDatabase( RestartAutonomousDatabaseResponse restartAutonomousDatabase( RestartAutonomousDatabaseRequest request); + /** + * Restarts Oracle REST Data Services (ORDS) for Autonomous Exadata VM cluster. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RestartAutonomousVmClusterOrds API. + */ + RestartAutonomousVmClusterOrdsResponse restartAutonomousVmClusterOrds( + RestartAutonomousVmClusterOrdsRequest request); + + /** + * Restarts Oracle REST Data Services (ORDS) for a cloud Autonomous Exadata VM cluster. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RestartCloudAutonomousVmClusterOrds API. + */ + RestartCloudAutonomousVmClusterOrdsResponse restartCloudAutonomousVmClusterOrds( + RestartCloudAutonomousVmClusterOrdsRequest request); + /** * Restores an Autonomous AI Database based on the provided request parameters. * @@ -5751,6 +5931,20 @@ UnregisterCloudAutonomousVmClusterPkcsResponse unregisterCloudAutonomousVmCluste UnregisterCloudVmClusterPkcsResponse unregisterCloudVmClusterPkcs( UnregisterCloudVmClusterPkcsRequest request); + /** + * Uninstall the PKCS11 driver for given keystore type + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UnregisterExadbVmClusterPkcs API. + */ + UnregisterExadbVmClusterPkcsResponse unregisterExadbVmClusterPkcs( + UnregisterExadbVmClusterPkcsRequest request); + /** * Updates the advanced cluster file system resource. * @@ -5917,6 +6111,19 @@ UpdateAutonomousVmClusterResponse updateAutonomousVmCluster( */ UpdateBackupDestinationResponse updateBackupDestination(UpdateBackupDestinationRequest request); + /** + * Updates the specified BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateBaseccVmCluster API. + */ + UpdateBaseccVmClusterResponse updateBaseccVmCluster(UpdateBaseccVmClusterRequest request); + /** * Updates the specified Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Customer systems, see {@link #updateAutonomousVmCluster(UpdateAutonomousVmClusterRequest) updateAutonomousVmCluster}. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java index e7238fa0552..c0c9fab0a26 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java @@ -403,6 +403,25 @@ java.util.concurrent.Future cancelExecutionWindow ChangeBackupDestinationCompartmentResponse> handler); + /** + * Moves a BaseDB-C@C VM cluster and its dependent resources to another compartment. Applies to Base Database Service on Cloud@Customer instances only. + * + * + * @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 + changeBaseccVmClusterCompartment( + ChangeBaseccVmClusterCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeBaseccVmClusterCompartmentRequest, + ChangeBaseccVmClusterCompartmentResponse> + handler); + /** * Moves an Autonomous Exadata VM cluster in the Oracle cloud and its dependent resources to another compartment. For Exadata Cloud@Customer systems, see {@link #changeAutonomousVmClusterCompartment(ChangeAutonomousVmClusterCompartmentRequest, Consumer, Consumer) changeAutonomousVmClusterCompartment}. * @@ -1308,6 +1327,23 @@ java.util.concurrent.Future createBackupDestina CreateBackupDestinationRequest, CreateBackupDestinationResponse> handler); + /** + * Creates a BaseDB-C@C VM cluster. + * + * + * @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 createBaseccVmCluster( + CreateBaseccVmClusterRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateBaseccVmClusterRequest, CreateBaseccVmClusterResponse> + handler); + /** * Creates an Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Customer systems, see {@link #createAutonomousVmCluster(CreateAutonomousVmClusterRequest, Consumer, Consumer) createAutonomousVmCluster}. * @@ -1850,6 +1886,8 @@ java.util.concurrent.Future createVmClusterNetwo * Performs one of the following power actions on the specified DB node: * - start - power on * - stop - power off gracefully + * - forcestop - power off forcefully + * - forcereset - ACPI shutdown and power on forcefully * - softreset - ACPI shutdown and power on * - reset - power off and power on *

@@ -2012,6 +2050,23 @@ java.util.concurrent.Future deleteBackupDestina DeleteBackupDestinationRequest, DeleteBackupDestinationResponse> handler); + /** + * Deletes the specified BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + * + * @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 deleteBaseccVmCluster( + DeleteBaseccVmClusterRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteBaseccVmClusterRequest, DeleteBaseccVmClusterResponse> + handler); + /** * Deletes the specified Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Customer systems, see {@link #deleteAutonomousVmCluster(DeleteAutonomousVmClusterRequest, Consumer, Consumer) deleteAutonomousVmCluster}. * @@ -3573,6 +3628,59 @@ java.util.concurrent.Future getBackupDestination( GetBackupDestinationRequest, GetBackupDestinationResponse> handler); + /** + * Gets information about the BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + * + * @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 getBaseccVmCluster( + GetBaseccVmClusterRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetBaseccVmClusterRequest, GetBaseccVmClusterResponse> + handler); + + /** + * Gets information about a specified maintenance update package for a BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + * + * @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 getBaseccVmClusterUpdate( + GetBaseccVmClusterUpdateRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetBaseccVmClusterUpdateRequest, GetBaseccVmClusterUpdateResponse> + handler); + + /** + * Gets the maintenance update history details for the specified update history entry. Applies to Base Database Service on Cloud@Customer instances only. + * + * + * @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 + getBaseccVmClusterUpdateHistoryEntry( + GetBaseccVmClusterUpdateHistoryEntryRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetBaseccVmClusterUpdateHistoryEntryRequest, + GetBaseccVmClusterUpdateHistoryEntryResponse> + handler); + /** * Gets information about the specified Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Custustomer systems, see {@link #getAutonomousVmCluster(GetAutonomousVmClusterRequest, Consumer, Consumer) getAutonomousVmCluster}. * @@ -5100,6 +5208,59 @@ java.util.concurrent.Future listBackups( ListBackupsRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Gets the history of the maintenance update actions performed on the specified BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + * + * @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 + listBaseccVmClusterUpdateHistoryEntries( + ListBaseccVmClusterUpdateHistoryEntriesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListBaseccVmClusterUpdateHistoryEntriesRequest, + ListBaseccVmClusterUpdateHistoryEntriesResponse> + handler); + + /** + * Lists the maintenance updates that can be applied to the specified BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + * + * @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 listBaseccVmClusterUpdates( + ListBaseccVmClusterUpdatesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListBaseccVmClusterUpdatesRequest, ListBaseccVmClusterUpdatesResponse> + handler); + + /** + * Lists the BaseDB-C@C VM clusters in the specified compartment. Applies to Base Database Service on Cloud@Customer instances only. + * + * + * @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 listBaseccVmClusters( + ListBaseccVmClustersRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListBaseccVmClustersRequest, ListBaseccVmClustersResponse> + handler); + /** * Gets the list of resource usage details for all the Cloud Autonomous Container Database * in the specified Cloud Autonomous Exadata VM cluster. @@ -6543,6 +6704,23 @@ java.util.concurrent.Future registerCloudVmC RegisterCloudVmClusterPkcsRequest, RegisterCloudVmClusterPkcsResponse> handler); + /** + * Install the PKCS11 driver for given keystore type + * + * + * @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 registerExadbVmClusterPkcs( + RegisterExadbVmClusterPkcsRequest request, + com.oracle.bmc.responses.AsyncHandler< + RegisterExadbVmClusterPkcsRequest, RegisterExadbVmClusterPkcsResponse> + handler); + /** * Reinstates a disabled standby Autonomous Container Database (ACD), identified by the autonomousContainerDatabaseId parameter to an active standby ACD. For more information, see * [Reinstate the Disabled Standby in an Autonomous Data Guard Configuration](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html#ADBCL-GUID-B5C6A90D-72E3-4F32-988D-8AECC0A2D947). @@ -6731,6 +6909,25 @@ java.util.concurrent.Future reorderScheduledAct ReorderScheduledActionsRequest, ReorderScheduledActionsResponse> handler); + /** + * Reschedule the Managed Database Software Update + * + * + * @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 + rescheduleManagedDbSoftwareUpdate( + RescheduleManagedDbSoftwareUpdateRequest request, + com.oracle.bmc.responses.AsyncHandler< + RescheduleManagedDbSoftwareUpdateRequest, + RescheduleManagedDbSoftwareUpdateResponse> + handler); + /** * Adds or removes Db server network nodes to extend or shrink the existing VM cluster network. Applies to Exadata * Cloud@Customer instances only. @@ -6801,6 +6998,44 @@ java.util.concurrent.Future restartAutonomous RestartAutonomousDatabaseRequest, RestartAutonomousDatabaseResponse> handler); + /** + * Restarts Oracle REST Data Services (ORDS) for Autonomous Exadata VM cluster. + * + * + * @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 + restartAutonomousVmClusterOrds( + RestartAutonomousVmClusterOrdsRequest request, + com.oracle.bmc.responses.AsyncHandler< + RestartAutonomousVmClusterOrdsRequest, + RestartAutonomousVmClusterOrdsResponse> + handler); + + /** + * Restarts Oracle REST Data Services (ORDS) for a cloud Autonomous Exadata VM cluster. + * + * + * @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 + restartCloudAutonomousVmClusterOrds( + RestartCloudAutonomousVmClusterOrdsRequest request, + com.oracle.bmc.responses.AsyncHandler< + RestartCloudAutonomousVmClusterOrdsRequest, + RestartCloudAutonomousVmClusterOrdsResponse> + handler); + /** * Restores an Autonomous AI Database based on the provided request parameters. * @@ -7415,6 +7650,24 @@ java.util.concurrent.Future unregisterClou UnregisterCloudVmClusterPkcsResponse> handler); + /** + * Uninstall the PKCS11 driver for given keystore type + * + * + * @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 unregisterExadbVmClusterPkcs( + UnregisterExadbVmClusterPkcsRequest request, + com.oracle.bmc.responses.AsyncHandler< + UnregisterExadbVmClusterPkcsRequest, + UnregisterExadbVmClusterPkcsResponse> + handler); + /** * Updates the advanced cluster file system resource. * @@ -7633,6 +7886,23 @@ java.util.concurrent.Future updateBackupDestina UpdateBackupDestinationRequest, UpdateBackupDestinationResponse> handler); + /** + * Updates the specified BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + * + * @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 updateBaseccVmCluster( + UpdateBaseccVmClusterRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateBaseccVmClusterRequest, UpdateBaseccVmClusterResponse> + handler); + /** * Updates the specified Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Customer systems, see {@link #updateAutonomousVmCluster(UpdateAutonomousVmClusterRequest, Consumer, Consumer) updateAutonomousVmCluster}. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java index c8c41e6ed01..2ef6cd4f493 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java @@ -1517,6 +1517,65 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + changeBaseccVmClusterCompartment( + ChangeBaseccVmClusterCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeBaseccVmClusterCompartmentRequest, + ChangeBaseccVmClusterCompartmentResponse> + handler) { + LOG.trace("Called async changeBaseccVmClusterCompartment"); + final ChangeBaseccVmClusterCompartmentRequest interceptedRequest = + ChangeBaseccVmClusterCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeBaseccVmClusterCompartmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "ChangeBaseccVmClusterCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmCluster/ChangeBaseccVmClusterCompartment"); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeBaseccVmClusterCompartmentResponse> + transformer = + ChangeBaseccVmClusterCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeBaseccVmClusterCompartmentRequest, + ChangeBaseccVmClusterCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeBaseccVmClusterCompartmentRequest, + ChangeBaseccVmClusterCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeBaseccVmClusterCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeBaseccVmClusterCompartmentRequest, + ChangeBaseccVmClusterCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future changeCloudAutonomousVmClusterCompartment( @@ -4309,6 +4368,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future createBaseccVmCluster( + CreateBaseccVmClusterRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateBaseccVmClusterRequest, CreateBaseccVmClusterResponse> + handler) { + LOG.trace("Called async createBaseccVmCluster"); + final CreateBaseccVmClusterRequest interceptedRequest = + CreateBaseccVmClusterConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateBaseccVmClusterConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "CreateBaseccVmCluster", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmCluster/CreateBaseccVmCluster"); + final java.util.function.Function + transformer = + CreateBaseccVmClusterConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateBaseccVmClusterRequest, CreateBaseccVmClusterResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateBaseccVmClusterRequest, CreateBaseccVmClusterResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateBaseccVmClusterDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateBaseccVmClusterRequest, CreateBaseccVmClusterResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future createCloudAutonomousVmCluster( @@ -6384,6 +6496,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future deleteBaseccVmCluster( + DeleteBaseccVmClusterRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteBaseccVmClusterRequest, DeleteBaseccVmClusterResponse> + handler) { + LOG.trace("Called async deleteBaseccVmCluster"); + final DeleteBaseccVmClusterRequest interceptedRequest = + DeleteBaseccVmClusterConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteBaseccVmClusterConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "DeleteBaseccVmCluster", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmCluster/DeleteBaseccVmCluster"); + final java.util.function.Function + transformer = + DeleteBaseccVmClusterConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteBaseccVmClusterRequest, DeleteBaseccVmClusterResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteBaseccVmClusterRequest, DeleteBaseccVmClusterResponse>, + 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< + DeleteBaseccVmClusterRequest, DeleteBaseccVmClusterResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deleteCloudAutonomousVmCluster( @@ -10901,6 +11060,154 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getBaseccVmCluster( + GetBaseccVmClusterRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetBaseccVmClusterRequest, GetBaseccVmClusterResponse> + handler) { + LOG.trace("Called async getBaseccVmCluster"); + final GetBaseccVmClusterRequest interceptedRequest = + GetBaseccVmClusterConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetBaseccVmClusterConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "GetBaseccVmCluster", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmCluster/GetBaseccVmCluster"); + final java.util.function.Function + transformer = + GetBaseccVmClusterConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetBaseccVmClusterRequest, GetBaseccVmClusterResponse>, + 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< + GetBaseccVmClusterRequest, GetBaseccVmClusterResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getBaseccVmClusterUpdate( + GetBaseccVmClusterUpdateRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetBaseccVmClusterUpdateRequest, GetBaseccVmClusterUpdateResponse> + handler) { + LOG.trace("Called async getBaseccVmClusterUpdate"); + final GetBaseccVmClusterUpdateRequest interceptedRequest = + GetBaseccVmClusterUpdateConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetBaseccVmClusterUpdateConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "GetBaseccVmClusterUpdate", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmClusterUpdate/GetBaseccVmClusterUpdate"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetBaseccVmClusterUpdateResponse> + transformer = + GetBaseccVmClusterUpdateConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetBaseccVmClusterUpdateRequest, GetBaseccVmClusterUpdateResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetBaseccVmClusterUpdateRequest, GetBaseccVmClusterUpdateResponse>, + 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< + GetBaseccVmClusterUpdateRequest, GetBaseccVmClusterUpdateResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getBaseccVmClusterUpdateHistoryEntry( + GetBaseccVmClusterUpdateHistoryEntryRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetBaseccVmClusterUpdateHistoryEntryRequest, + GetBaseccVmClusterUpdateHistoryEntryResponse> + handler) { + LOG.trace("Called async getBaseccVmClusterUpdateHistoryEntry"); + final GetBaseccVmClusterUpdateHistoryEntryRequest interceptedRequest = + GetBaseccVmClusterUpdateHistoryEntryConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetBaseccVmClusterUpdateHistoryEntryConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "GetBaseccVmClusterUpdateHistoryEntry", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmClusterUpdateHistoryEntry/GetBaseccVmClusterUpdateHistoryEntry"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetBaseccVmClusterUpdateHistoryEntryResponse> + transformer = + GetBaseccVmClusterUpdateHistoryEntryConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetBaseccVmClusterUpdateHistoryEntryRequest, + GetBaseccVmClusterUpdateHistoryEntryResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetBaseccVmClusterUpdateHistoryEntryRequest, + GetBaseccVmClusterUpdateHistoryEntryResponse>, + 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< + GetBaseccVmClusterUpdateHistoryEntryRequest, + GetBaseccVmClusterUpdateHistoryEntryResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getCloudAutonomousVmCluster( @@ -15174,49 +15481,48 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - listCloudAutonomousVmClusterAcdResourceUsage( - ListCloudAutonomousVmClusterAcdResourceUsageRequest request, + public java.util.concurrent.Future + listBaseccVmClusterUpdateHistoryEntries( + ListBaseccVmClusterUpdateHistoryEntriesRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListCloudAutonomousVmClusterAcdResourceUsageRequest, - ListCloudAutonomousVmClusterAcdResourceUsageResponse> + ListBaseccVmClusterUpdateHistoryEntriesRequest, + ListBaseccVmClusterUpdateHistoryEntriesResponse> handler) { - LOG.trace("Called async listCloudAutonomousVmClusterAcdResourceUsage"); - final ListCloudAutonomousVmClusterAcdResourceUsageRequest interceptedRequest = - ListCloudAutonomousVmClusterAcdResourceUsageConverter.interceptRequest(request); + LOG.trace("Called async listBaseccVmClusterUpdateHistoryEntries"); + final ListBaseccVmClusterUpdateHistoryEntriesRequest interceptedRequest = + ListBaseccVmClusterUpdateHistoryEntriesConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListCloudAutonomousVmClusterAcdResourceUsageConverter.fromRequest( + ListBaseccVmClusterUpdateHistoryEntriesConverter.fromRequest( client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "Database", - "ListCloudAutonomousVmClusterAcdResourceUsage", + "ListBaseccVmClusterUpdateHistoryEntries", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/ListCloudAutonomousVmClusterAcdResourceUsage"); + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmClusterUpdateHistoryEntry/ListBaseccVmClusterUpdateHistoryEntries"); final java.util.function.Function< - javax.ws.rs.core.Response, - ListCloudAutonomousVmClusterAcdResourceUsageResponse> + javax.ws.rs.core.Response, ListBaseccVmClusterUpdateHistoryEntriesResponse> transformer = - ListCloudAutonomousVmClusterAcdResourceUsageConverter.fromResponse( + ListBaseccVmClusterUpdateHistoryEntriesConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - ListCloudAutonomousVmClusterAcdResourceUsageRequest, - ListCloudAutonomousVmClusterAcdResourceUsageResponse> + ListBaseccVmClusterUpdateHistoryEntriesRequest, + ListBaseccVmClusterUpdateHistoryEntriesResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListCloudAutonomousVmClusterAcdResourceUsageRequest, - ListCloudAutonomousVmClusterAcdResourceUsageResponse>, + ListBaseccVmClusterUpdateHistoryEntriesRequest, + ListBaseccVmClusterUpdateHistoryEntriesResponse>, java.util.concurrent.Future< - ListCloudAutonomousVmClusterAcdResourceUsageResponse>> + ListBaseccVmClusterUpdateHistoryEntriesResponse>> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListCloudAutonomousVmClusterAcdResourceUsageRequest, - ListCloudAutonomousVmClusterAcdResourceUsageResponse>( + ListBaseccVmClusterUpdateHistoryEntriesRequest, + ListBaseccVmClusterUpdateHistoryEntriesResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -15230,44 +15536,44 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - listCloudAutonomousVmClusters( - ListCloudAutonomousVmClustersRequest request, + public java.util.concurrent.Future + listBaseccVmClusterUpdates( + ListBaseccVmClusterUpdatesRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListCloudAutonomousVmClustersRequest, - ListCloudAutonomousVmClustersResponse> + ListBaseccVmClusterUpdatesRequest, + ListBaseccVmClusterUpdatesResponse> handler) { - LOG.trace("Called async listCloudAutonomousVmClusters"); - final ListCloudAutonomousVmClustersRequest interceptedRequest = - ListCloudAutonomousVmClustersConverter.interceptRequest(request); + LOG.trace("Called async listBaseccVmClusterUpdates"); + final ListBaseccVmClusterUpdatesRequest interceptedRequest = + ListBaseccVmClusterUpdatesConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListCloudAutonomousVmClustersConverter.fromRequest(client, interceptedRequest); + ListBaseccVmClusterUpdatesConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "Database", - "ListCloudAutonomousVmClusters", + "ListBaseccVmClusterUpdates", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/ListCloudAutonomousVmClusters"); + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmClusterUpdate/ListBaseccVmClusterUpdates"); final java.util.function.Function< - javax.ws.rs.core.Response, ListCloudAutonomousVmClustersResponse> + javax.ws.rs.core.Response, ListBaseccVmClusterUpdatesResponse> transformer = - ListCloudAutonomousVmClustersConverter.fromResponse( + ListBaseccVmClusterUpdatesConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - ListCloudAutonomousVmClustersRequest, ListCloudAutonomousVmClustersResponse> + ListBaseccVmClusterUpdatesRequest, ListBaseccVmClusterUpdatesResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListCloudAutonomousVmClustersRequest, - ListCloudAutonomousVmClustersResponse>, - java.util.concurrent.Future> + ListBaseccVmClusterUpdatesRequest, + ListBaseccVmClusterUpdatesResponse>, + 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< - ListCloudAutonomousVmClustersRequest, ListCloudAutonomousVmClustersResponse>( + ListBaseccVmClusterUpdatesRequest, ListBaseccVmClusterUpdatesResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -15281,16 +15587,170 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - listCloudExadataInfrastructures( - ListCloudExadataInfrastructuresRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListCloudExadataInfrastructuresRequest, - ListCloudExadataInfrastructuresResponse> - handler) { - LOG.trace("Called async listCloudExadataInfrastructures"); - final ListCloudExadataInfrastructuresRequest interceptedRequest = - ListCloudExadataInfrastructuresConverter.interceptRequest(request); + public java.util.concurrent.Future listBaseccVmClusters( + ListBaseccVmClustersRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListBaseccVmClustersRequest, ListBaseccVmClustersResponse> + handler) { + LOG.trace("Called async listBaseccVmClusters"); + final ListBaseccVmClustersRequest interceptedRequest = + ListBaseccVmClustersConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListBaseccVmClustersConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "ListBaseccVmClusters", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmCluster/ListBaseccVmClusters"); + final java.util.function.Function + transformer = + ListBaseccVmClustersConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListBaseccVmClustersRequest, ListBaseccVmClustersResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListBaseccVmClustersRequest, ListBaseccVmClustersResponse>, + 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< + ListBaseccVmClustersRequest, ListBaseccVmClustersResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listCloudAutonomousVmClusterAcdResourceUsage( + ListCloudAutonomousVmClusterAcdResourceUsageRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCloudAutonomousVmClusterAcdResourceUsageRequest, + ListCloudAutonomousVmClusterAcdResourceUsageResponse> + handler) { + LOG.trace("Called async listCloudAutonomousVmClusterAcdResourceUsage"); + final ListCloudAutonomousVmClusterAcdResourceUsageRequest interceptedRequest = + ListCloudAutonomousVmClusterAcdResourceUsageConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCloudAutonomousVmClusterAcdResourceUsageConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "ListCloudAutonomousVmClusterAcdResourceUsage", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/ListCloudAutonomousVmClusterAcdResourceUsage"); + final java.util.function.Function< + javax.ws.rs.core.Response, + ListCloudAutonomousVmClusterAcdResourceUsageResponse> + transformer = + ListCloudAutonomousVmClusterAcdResourceUsageConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCloudAutonomousVmClusterAcdResourceUsageRequest, + ListCloudAutonomousVmClusterAcdResourceUsageResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCloudAutonomousVmClusterAcdResourceUsageRequest, + ListCloudAutonomousVmClusterAcdResourceUsageResponse>, + java.util.concurrent.Future< + ListCloudAutonomousVmClusterAcdResourceUsageResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListCloudAutonomousVmClusterAcdResourceUsageRequest, + ListCloudAutonomousVmClusterAcdResourceUsageResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listCloudAutonomousVmClusters( + ListCloudAutonomousVmClustersRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCloudAutonomousVmClustersRequest, + ListCloudAutonomousVmClustersResponse> + handler) { + LOG.trace("Called async listCloudAutonomousVmClusters"); + final ListCloudAutonomousVmClustersRequest interceptedRequest = + ListCloudAutonomousVmClustersConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCloudAutonomousVmClustersConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "ListCloudAutonomousVmClusters", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/ListCloudAutonomousVmClusters"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListCloudAutonomousVmClustersResponse> + transformer = + ListCloudAutonomousVmClustersConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCloudAutonomousVmClustersRequest, ListCloudAutonomousVmClustersResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCloudAutonomousVmClustersRequest, + ListCloudAutonomousVmClustersResponse>, + 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< + ListCloudAutonomousVmClustersRequest, ListCloudAutonomousVmClustersResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listCloudExadataInfrastructures( + ListCloudExadataInfrastructuresRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCloudExadataInfrastructuresRequest, + ListCloudExadataInfrastructuresResponse> + handler) { + LOG.trace("Called async listCloudExadataInfrastructures"); + final ListCloudExadataInfrastructuresRequest interceptedRequest = + ListCloudExadataInfrastructuresConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = ListCloudExadataInfrastructuresConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = @@ -19282,6 +19742,63 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + registerExadbVmClusterPkcs( + RegisterExadbVmClusterPkcsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RegisterExadbVmClusterPkcsRequest, + RegisterExadbVmClusterPkcsResponse> + handler) { + LOG.trace("Called async registerExadbVmClusterPkcs"); + final RegisterExadbVmClusterPkcsRequest interceptedRequest = + RegisterExadbVmClusterPkcsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RegisterExadbVmClusterPkcsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "RegisterExadbVmClusterPkcs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/RegisterExadbVmClusterPkcs"); + final java.util.function.Function< + javax.ws.rs.core.Response, RegisterExadbVmClusterPkcsResponse> + transformer = + RegisterExadbVmClusterPkcsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RegisterExadbVmClusterPkcsRequest, RegisterExadbVmClusterPkcsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RegisterExadbVmClusterPkcsRequest, + RegisterExadbVmClusterPkcsResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRegisterExadbVmClusterPkcsDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + RegisterExadbVmClusterPkcsRequest, RegisterExadbVmClusterPkcsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future reinstateAutonomousContainerDatabaseDataguard( @@ -19850,6 +20367,60 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + rescheduleManagedDbSoftwareUpdate( + RescheduleManagedDbSoftwareUpdateRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RescheduleManagedDbSoftwareUpdateRequest, + RescheduleManagedDbSoftwareUpdateResponse> + handler) { + LOG.trace("Called async rescheduleManagedDbSoftwareUpdate"); + final RescheduleManagedDbSoftwareUpdateRequest interceptedRequest = + RescheduleManagedDbSoftwareUpdateConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RescheduleManagedDbSoftwareUpdateConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "RescheduleManagedDbSoftwareUpdate", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/RescheduleManagedDbSoftwareUpdate"); + final java.util.function.Function< + javax.ws.rs.core.Response, RescheduleManagedDbSoftwareUpdateResponse> + transformer = + RescheduleManagedDbSoftwareUpdateConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RescheduleManagedDbSoftwareUpdateRequest, + RescheduleManagedDbSoftwareUpdateResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RescheduleManagedDbSoftwareUpdateRequest, + RescheduleManagedDbSoftwareUpdateResponse>, + 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< + RescheduleManagedDbSoftwareUpdateRequest, + RescheduleManagedDbSoftwareUpdateResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future resizeVmClusterNetwork( ResizeVmClusterNetworkRequest request, @@ -19984,7 +20555,12 @@ protected void beforeRetryAction() {} RestartAutonomousContainerDatabaseRequest, RestartAutonomousContainerDatabaseResponse>, java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRestartAutonomousContainerDatabaseDetails(), + ib, + transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { @@ -20034,7 +20610,12 @@ public java.util.concurrent.Future restartAut RestartAutonomousDatabaseRequest, RestartAutonomousDatabaseResponse>, java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRestartAutonomousDatabaseDetails(), + ib, + transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { @@ -20052,6 +20633,114 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + restartAutonomousVmClusterOrds( + RestartAutonomousVmClusterOrdsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RestartAutonomousVmClusterOrdsRequest, + RestartAutonomousVmClusterOrdsResponse> + handler) { + LOG.trace("Called async restartAutonomousVmClusterOrds"); + final RestartAutonomousVmClusterOrdsRequest interceptedRequest = + RestartAutonomousVmClusterOrdsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RestartAutonomousVmClusterOrdsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "RestartAutonomousVmClusterOrds", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousVmCluster/RestartAutonomousVmClusterOrds"); + final java.util.function.Function< + javax.ws.rs.core.Response, RestartAutonomousVmClusterOrdsResponse> + transformer = + RestartAutonomousVmClusterOrdsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RestartAutonomousVmClusterOrdsRequest, + RestartAutonomousVmClusterOrdsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RestartAutonomousVmClusterOrdsRequest, + RestartAutonomousVmClusterOrdsResponse>, + 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< + RestartAutonomousVmClusterOrdsRequest, RestartAutonomousVmClusterOrdsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + restartCloudAutonomousVmClusterOrds( + RestartCloudAutonomousVmClusterOrdsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RestartCloudAutonomousVmClusterOrdsRequest, + RestartCloudAutonomousVmClusterOrdsResponse> + handler) { + LOG.trace("Called async restartCloudAutonomousVmClusterOrds"); + final RestartCloudAutonomousVmClusterOrdsRequest interceptedRequest = + RestartCloudAutonomousVmClusterOrdsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RestartCloudAutonomousVmClusterOrdsConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "RestartCloudAutonomousVmClusterOrds", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/RestartCloudAutonomousVmClusterOrds"); + final java.util.function.Function< + javax.ws.rs.core.Response, RestartCloudAutonomousVmClusterOrdsResponse> + transformer = + RestartCloudAutonomousVmClusterOrdsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RestartCloudAutonomousVmClusterOrdsRequest, + RestartCloudAutonomousVmClusterOrdsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RestartCloudAutonomousVmClusterOrdsRequest, + RestartCloudAutonomousVmClusterOrdsResponse>, + 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< + RestartCloudAutonomousVmClusterOrdsRequest, + RestartCloudAutonomousVmClusterOrdsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future restoreAutonomousDatabase( RestoreAutonomousDatabaseRequest request, @@ -21147,7 +21836,12 @@ public java.util.concurrent.Future stopAutonomou com.oracle.bmc.responses.AsyncHandler< StopAutonomousDatabaseRequest, StopAutonomousDatabaseResponse>, java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getStopAutonomousDatabaseDetails(), + ib, + transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { @@ -21869,6 +22563,63 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + unregisterExadbVmClusterPkcs( + UnregisterExadbVmClusterPkcsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UnregisterExadbVmClusterPkcsRequest, + UnregisterExadbVmClusterPkcsResponse> + handler) { + LOG.trace("Called async unregisterExadbVmClusterPkcs"); + final UnregisterExadbVmClusterPkcsRequest interceptedRequest = + UnregisterExadbVmClusterPkcsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UnregisterExadbVmClusterPkcsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "UnregisterExadbVmClusterPkcs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/UnregisterExadbVmClusterPkcs"); + final java.util.function.Function< + javax.ws.rs.core.Response, UnregisterExadbVmClusterPkcsResponse> + transformer = + UnregisterExadbVmClusterPkcsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UnregisterExadbVmClusterPkcsRequest, UnregisterExadbVmClusterPkcsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UnregisterExadbVmClusterPkcsRequest, + UnregisterExadbVmClusterPkcsResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getUnregisterExadbVmClusterPkcsDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UnregisterExadbVmClusterPkcsRequest, UnregisterExadbVmClusterPkcsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateAdvancedClusterFileSystem( @@ -22551,6 +23302,58 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future updateBaseccVmCluster( + UpdateBaseccVmClusterRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateBaseccVmClusterRequest, UpdateBaseccVmClusterResponse> + handler) { + LOG.trace("Called async updateBaseccVmCluster"); + final UpdateBaseccVmClusterRequest interceptedRequest = + UpdateBaseccVmClusterConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateBaseccVmClusterConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "UpdateBaseccVmCluster", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmCluster/UpdateBaseccVmCluster"); + final java.util.function.Function + transformer = + UpdateBaseccVmClusterConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateBaseccVmClusterRequest, UpdateBaseccVmClusterResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateBaseccVmClusterRequest, UpdateBaseccVmClusterResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateBaseccVmClusterDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateBaseccVmClusterRequest, UpdateBaseccVmClusterResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateCloudAutonomousVmCluster( diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java index 87521929bc2..8319a7ff76b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java @@ -1367,6 +1367,51 @@ public ChangeBackupDestinationCompartmentResponse changeBackupDestinationCompart }); } + @Override + public ChangeBaseccVmClusterCompartmentResponse changeBaseccVmClusterCompartment( + ChangeBaseccVmClusterCompartmentRequest request) { + LOG.trace("Called changeBaseccVmClusterCompartment"); + final ChangeBaseccVmClusterCompartmentRequest interceptedRequest = + ChangeBaseccVmClusterCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeBaseccVmClusterCompartmentConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "ChangeBaseccVmClusterCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmCluster/ChangeBaseccVmClusterCompartment"); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeBaseccVmClusterCompartmentResponse> + transformer = + ChangeBaseccVmClusterCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getChangeBaseccVmClusterCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ChangeCloudAutonomousVmClusterCompartmentResponse changeCloudAutonomousVmClusterCompartment( @@ -3516,6 +3561,49 @@ public CreateBackupDestinationResponse createBackupDestination( }); } + @Override + public CreateBaseccVmClusterResponse createBaseccVmCluster( + CreateBaseccVmClusterRequest request) { + LOG.trace("Called createBaseccVmCluster"); + final CreateBaseccVmClusterRequest interceptedRequest = + CreateBaseccVmClusterConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateBaseccVmClusterConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "CreateBaseccVmCluster", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmCluster/CreateBaseccVmCluster"); + java.util.function.Function + transformer = + CreateBaseccVmClusterConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateBaseccVmClusterDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateCloudAutonomousVmClusterResponse createCloudAutonomousVmCluster( CreateCloudAutonomousVmClusterRequest request) { @@ -5152,6 +5240,45 @@ public DeleteBackupDestinationResponse deleteBackupDestination( }); } + @Override + public DeleteBaseccVmClusterResponse deleteBaseccVmCluster( + DeleteBaseccVmClusterRequest request) { + LOG.trace("Called deleteBaseccVmCluster"); + final DeleteBaseccVmClusterRequest interceptedRequest = + DeleteBaseccVmClusterConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteBaseccVmClusterConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "DeleteBaseccVmCluster", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmCluster/DeleteBaseccVmCluster"); + java.util.function.Function + transformer = + DeleteBaseccVmClusterConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DeleteCloudAutonomousVmClusterResponse deleteCloudAutonomousVmCluster( DeleteCloudAutonomousVmClusterRequest request) { @@ -8660,6 +8787,121 @@ public GetBackupDestinationResponse getBackupDestination(GetBackupDestinationReq }); } + @Override + public GetBaseccVmClusterResponse getBaseccVmCluster(GetBaseccVmClusterRequest request) { + LOG.trace("Called getBaseccVmCluster"); + final GetBaseccVmClusterRequest interceptedRequest = + GetBaseccVmClusterConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetBaseccVmClusterConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "GetBaseccVmCluster", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmCluster/GetBaseccVmCluster"); + java.util.function.Function + transformer = + GetBaseccVmClusterConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetBaseccVmClusterUpdateResponse getBaseccVmClusterUpdate( + GetBaseccVmClusterUpdateRequest request) { + LOG.trace("Called getBaseccVmClusterUpdate"); + final GetBaseccVmClusterUpdateRequest interceptedRequest = + GetBaseccVmClusterUpdateConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetBaseccVmClusterUpdateConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "GetBaseccVmClusterUpdate", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmClusterUpdate/GetBaseccVmClusterUpdate"); + java.util.function.Function + transformer = + GetBaseccVmClusterUpdateConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetBaseccVmClusterUpdateHistoryEntryResponse getBaseccVmClusterUpdateHistoryEntry( + GetBaseccVmClusterUpdateHistoryEntryRequest request) { + LOG.trace("Called getBaseccVmClusterUpdateHistoryEntry"); + final GetBaseccVmClusterUpdateHistoryEntryRequest interceptedRequest = + GetBaseccVmClusterUpdateHistoryEntryConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetBaseccVmClusterUpdateHistoryEntryConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "GetBaseccVmClusterUpdateHistoryEntry", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmClusterUpdateHistoryEntry/GetBaseccVmClusterUpdateHistoryEntry"); + java.util.function.Function< + javax.ws.rs.core.Response, GetBaseccVmClusterUpdateHistoryEntryResponse> + transformer = + GetBaseccVmClusterUpdateHistoryEntryConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetCloudAutonomousVmClusterResponse getCloudAutonomousVmCluster( GetCloudAutonomousVmClusterRequest request) { @@ -11950,6 +12192,121 @@ public ListBackupsResponse listBackups(ListBackupsRequest request) { }); } + @Override + public ListBaseccVmClusterUpdateHistoryEntriesResponse listBaseccVmClusterUpdateHistoryEntries( + ListBaseccVmClusterUpdateHistoryEntriesRequest request) { + LOG.trace("Called listBaseccVmClusterUpdateHistoryEntries"); + final ListBaseccVmClusterUpdateHistoryEntriesRequest interceptedRequest = + ListBaseccVmClusterUpdateHistoryEntriesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListBaseccVmClusterUpdateHistoryEntriesConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "ListBaseccVmClusterUpdateHistoryEntries", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmClusterUpdateHistoryEntry/ListBaseccVmClusterUpdateHistoryEntries"); + java.util.function.Function< + javax.ws.rs.core.Response, ListBaseccVmClusterUpdateHistoryEntriesResponse> + transformer = + ListBaseccVmClusterUpdateHistoryEntriesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListBaseccVmClusterUpdatesResponse listBaseccVmClusterUpdates( + ListBaseccVmClusterUpdatesRequest request) { + LOG.trace("Called listBaseccVmClusterUpdates"); + final ListBaseccVmClusterUpdatesRequest interceptedRequest = + ListBaseccVmClusterUpdatesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListBaseccVmClusterUpdatesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "ListBaseccVmClusterUpdates", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmClusterUpdate/ListBaseccVmClusterUpdates"); + java.util.function.Function + transformer = + ListBaseccVmClusterUpdatesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListBaseccVmClustersResponse listBaseccVmClusters(ListBaseccVmClustersRequest request) { + LOG.trace("Called listBaseccVmClusters"); + final ListBaseccVmClustersRequest interceptedRequest = + ListBaseccVmClustersConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListBaseccVmClustersConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "ListBaseccVmClusters", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmCluster/ListBaseccVmClusters"); + java.util.function.Function + transformer = + ListBaseccVmClustersConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListCloudAutonomousVmClusterAcdResourceUsageResponse listCloudAutonomousVmClusterAcdResourceUsage( @@ -15123,6 +15480,50 @@ public RegisterCloudVmClusterPkcsResponse registerCloudVmClusterPkcs( }); } + @Override + public RegisterExadbVmClusterPkcsResponse registerExadbVmClusterPkcs( + RegisterExadbVmClusterPkcsRequest request) { + LOG.trace("Called registerExadbVmClusterPkcs"); + final RegisterExadbVmClusterPkcsRequest interceptedRequest = + RegisterExadbVmClusterPkcsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RegisterExadbVmClusterPkcsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "RegisterExadbVmClusterPkcs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/RegisterExadbVmClusterPkcs"); + java.util.function.Function + transformer = + RegisterExadbVmClusterPkcsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getRegisterExadbVmClusterPkcsDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ReinstateAutonomousContainerDatabaseDataguardResponse reinstateAutonomousContainerDatabaseDataguard( @@ -15563,6 +15964,47 @@ public ReorderScheduledActionsResponse reorderScheduledActions( }); } + @Override + public RescheduleManagedDbSoftwareUpdateResponse rescheduleManagedDbSoftwareUpdate( + RescheduleManagedDbSoftwareUpdateRequest request) { + LOG.trace("Called rescheduleManagedDbSoftwareUpdate"); + final RescheduleManagedDbSoftwareUpdateRequest interceptedRequest = + RescheduleManagedDbSoftwareUpdateConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RescheduleManagedDbSoftwareUpdateConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "RescheduleManagedDbSoftwareUpdate", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/RescheduleManagedDbSoftwareUpdate"); + java.util.function.Function< + javax.ws.rs.core.Response, RescheduleManagedDbSoftwareUpdateResponse> + transformer = + RescheduleManagedDbSoftwareUpdateConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ResizeVmClusterNetworkResponse resizeVmClusterNetwork( ResizeVmClusterNetworkRequest request) { @@ -15679,7 +16121,11 @@ public RestartAutonomousContainerDatabaseResponse restartAutonomousContainerData retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); + client.post( + ib, + retriedRequest + .getRestartAutonomousContainerDatabaseDetails(), + retriedRequest); return transformer.apply(response); }); }); @@ -15708,6 +16154,93 @@ public RestartAutonomousDatabaseResponse restartAutonomousDatabase( transformer = RestartAutonomousDatabaseConverter.fromResponse( java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getRestartAutonomousDatabaseDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public RestartAutonomousVmClusterOrdsResponse restartAutonomousVmClusterOrds( + RestartAutonomousVmClusterOrdsRequest request) { + LOG.trace("Called restartAutonomousVmClusterOrds"); + final RestartAutonomousVmClusterOrdsRequest interceptedRequest = + RestartAutonomousVmClusterOrdsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RestartAutonomousVmClusterOrdsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "RestartAutonomousVmClusterOrds", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousVmCluster/RestartAutonomousVmClusterOrds"); + java.util.function.Function< + javax.ws.rs.core.Response, RestartAutonomousVmClusterOrdsResponse> + transformer = + RestartAutonomousVmClusterOrdsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public RestartCloudAutonomousVmClusterOrdsResponse restartCloudAutonomousVmClusterOrds( + RestartCloudAutonomousVmClusterOrdsRequest request) { + LOG.trace("Called restartCloudAutonomousVmClusterOrds"); + final RestartCloudAutonomousVmClusterOrdsRequest interceptedRequest = + RestartCloudAutonomousVmClusterOrdsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RestartCloudAutonomousVmClusterOrdsConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "RestartCloudAutonomousVmClusterOrds", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/RestartCloudAutonomousVmClusterOrds"); + java.util.function.Function< + javax.ws.rs.core.Response, RestartCloudAutonomousVmClusterOrdsResponse> + transformer = + RestartCloudAutonomousVmClusterOrdsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, retryRequest -> { @@ -16596,7 +17129,10 @@ public StopAutonomousDatabaseResponse stopAutonomousDatabase( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); + client.post( + ib, + retriedRequest.getStopAutonomousDatabaseDetails(), + retriedRequest); return transformer.apply(response); }); }); @@ -17150,6 +17686,50 @@ public UnregisterCloudVmClusterPkcsResponse unregisterCloudVmClusterPkcs( }); } + @Override + public UnregisterExadbVmClusterPkcsResponse unregisterExadbVmClusterPkcs( + UnregisterExadbVmClusterPkcsRequest request) { + LOG.trace("Called unregisterExadbVmClusterPkcs"); + final UnregisterExadbVmClusterPkcsRequest interceptedRequest = + UnregisterExadbVmClusterPkcsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UnregisterExadbVmClusterPkcsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "UnregisterExadbVmClusterPkcs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/UnregisterExadbVmClusterPkcs"); + java.util.function.Function + transformer = + UnregisterExadbVmClusterPkcsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getUnregisterExadbVmClusterPkcsDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateAdvancedClusterFileSystemResponse updateAdvancedClusterFileSystem( UpdateAdvancedClusterFileSystemRequest request) { @@ -17675,6 +18255,48 @@ public UpdateBackupDestinationResponse updateBackupDestination( }); } + @Override + public UpdateBaseccVmClusterResponse updateBaseccVmCluster( + UpdateBaseccVmClusterRequest request) { + LOG.trace("Called updateBaseccVmCluster"); + final UpdateBaseccVmClusterRequest interceptedRequest = + UpdateBaseccVmClusterConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateBaseccVmClusterConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "UpdateBaseccVmCluster", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/BaseccVmCluster/UpdateBaseccVmCluster"); + java.util.function.Function + transformer = + UpdateBaseccVmClusterConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateBaseccVmClusterDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateCloudAutonomousVmClusterResponse updateCloudAutonomousVmCluster( UpdateCloudAutonomousVmClusterRequest request) { diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java index 6e65db2f215..b1984a622ed 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java @@ -2775,6 +2775,370 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listBaseccVmClusterUpdateHistoryEntries 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 + listBaseccVmClusterUpdateHistoryEntriesResponseIterator( + final ListBaseccVmClusterUpdateHistoryEntriesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListBaseccVmClusterUpdateHistoryEntriesRequest.Builder, + ListBaseccVmClusterUpdateHistoryEntriesRequest, + ListBaseccVmClusterUpdateHistoryEntriesResponse>( + new java.util.function.Supplier< + ListBaseccVmClusterUpdateHistoryEntriesRequest.Builder>() { + @Override + public ListBaseccVmClusterUpdateHistoryEntriesRequest.Builder get() { + return ListBaseccVmClusterUpdateHistoryEntriesRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListBaseccVmClusterUpdateHistoryEntriesResponse, String>() { + @Override + public String apply(ListBaseccVmClusterUpdateHistoryEntriesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBaseccVmClusterUpdateHistoryEntriesRequest.Builder>, + ListBaseccVmClusterUpdateHistoryEntriesRequest>() { + @Override + public ListBaseccVmClusterUpdateHistoryEntriesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBaseccVmClusterUpdateHistoryEntriesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListBaseccVmClusterUpdateHistoryEntriesRequest, + ListBaseccVmClusterUpdateHistoryEntriesResponse>() { + @Override + public ListBaseccVmClusterUpdateHistoryEntriesResponse apply( + ListBaseccVmClusterUpdateHistoryEntriesRequest request) { + return client.listBaseccVmClusterUpdateHistoryEntries(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntrySummary} objects + * contained in responses from the listBaseccVmClusterUpdateHistoryEntries 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.database.model.BaseccVmClusterUpdateHistoryEntrySummary} objects + * contained in responses received from the service. + */ + public Iterable + listBaseccVmClusterUpdateHistoryEntriesRecordIterator( + final ListBaseccVmClusterUpdateHistoryEntriesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListBaseccVmClusterUpdateHistoryEntriesRequest.Builder, + ListBaseccVmClusterUpdateHistoryEntriesRequest, + ListBaseccVmClusterUpdateHistoryEntriesResponse, + com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntrySummary>( + new java.util.function.Supplier< + ListBaseccVmClusterUpdateHistoryEntriesRequest.Builder>() { + @Override + public ListBaseccVmClusterUpdateHistoryEntriesRequest.Builder get() { + return ListBaseccVmClusterUpdateHistoryEntriesRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListBaseccVmClusterUpdateHistoryEntriesResponse, String>() { + @Override + public String apply(ListBaseccVmClusterUpdateHistoryEntriesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBaseccVmClusterUpdateHistoryEntriesRequest.Builder>, + ListBaseccVmClusterUpdateHistoryEntriesRequest>() { + @Override + public ListBaseccVmClusterUpdateHistoryEntriesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBaseccVmClusterUpdateHistoryEntriesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListBaseccVmClusterUpdateHistoryEntriesRequest, + ListBaseccVmClusterUpdateHistoryEntriesResponse>() { + @Override + public ListBaseccVmClusterUpdateHistoryEntriesResponse apply( + ListBaseccVmClusterUpdateHistoryEntriesRequest request) { + return client.listBaseccVmClusterUpdateHistoryEntries(request); + } + }, + new java.util.function.Function< + ListBaseccVmClusterUpdateHistoryEntriesResponse, + java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterUpdateHistoryEntrySummary>>() { + @Override + public java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterUpdateHistoryEntrySummary> + apply(ListBaseccVmClusterUpdateHistoryEntriesResponse response) { + return response.getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listBaseccVmClusterUpdates 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 listBaseccVmClusterUpdatesResponseIterator( + final ListBaseccVmClusterUpdatesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListBaseccVmClusterUpdatesRequest.Builder, ListBaseccVmClusterUpdatesRequest, + ListBaseccVmClusterUpdatesResponse>( + new java.util.function.Supplier() { + @Override + public ListBaseccVmClusterUpdatesRequest.Builder get() { + return ListBaseccVmClusterUpdatesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListBaseccVmClusterUpdatesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBaseccVmClusterUpdatesRequest.Builder>, + ListBaseccVmClusterUpdatesRequest>() { + @Override + public ListBaseccVmClusterUpdatesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBaseccVmClusterUpdatesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListBaseccVmClusterUpdatesRequest, ListBaseccVmClusterUpdatesResponse>() { + @Override + public ListBaseccVmClusterUpdatesResponse apply( + ListBaseccVmClusterUpdatesRequest request) { + return client.listBaseccVmClusterUpdates(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.database.model.BaseccVmClusterUpdateSummary} objects + * contained in responses from the listBaseccVmClusterUpdates 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.database.model.BaseccVmClusterUpdateSummary} objects + * contained in responses received from the service. + */ + public Iterable + listBaseccVmClusterUpdatesRecordIterator( + final ListBaseccVmClusterUpdatesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListBaseccVmClusterUpdatesRequest.Builder, ListBaseccVmClusterUpdatesRequest, + ListBaseccVmClusterUpdatesResponse, + com.oracle.bmc.database.model.BaseccVmClusterUpdateSummary>( + new java.util.function.Supplier() { + @Override + public ListBaseccVmClusterUpdatesRequest.Builder get() { + return ListBaseccVmClusterUpdatesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListBaseccVmClusterUpdatesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBaseccVmClusterUpdatesRequest.Builder>, + ListBaseccVmClusterUpdatesRequest>() { + @Override + public ListBaseccVmClusterUpdatesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBaseccVmClusterUpdatesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListBaseccVmClusterUpdatesRequest, ListBaseccVmClusterUpdatesResponse>() { + @Override + public ListBaseccVmClusterUpdatesResponse apply( + ListBaseccVmClusterUpdatesRequest request) { + return client.listBaseccVmClusterUpdates(request); + } + }, + new java.util.function.Function< + ListBaseccVmClusterUpdatesResponse, + java.util.List< + com.oracle.bmc.database.model.BaseccVmClusterUpdateSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.database.model.BaseccVmClusterUpdateSummary> + apply(ListBaseccVmClusterUpdatesResponse response) { + return response.getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listBaseccVmClusters 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 listBaseccVmClustersResponseIterator( + final ListBaseccVmClustersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListBaseccVmClustersRequest.Builder, ListBaseccVmClustersRequest, + ListBaseccVmClustersResponse>( + new java.util.function.Supplier() { + @Override + public ListBaseccVmClustersRequest.Builder get() { + return ListBaseccVmClustersRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListBaseccVmClustersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBaseccVmClustersRequest.Builder>, + ListBaseccVmClustersRequest>() { + @Override + public ListBaseccVmClustersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBaseccVmClustersRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListBaseccVmClustersRequest, ListBaseccVmClustersResponse>() { + @Override + public ListBaseccVmClustersResponse apply(ListBaseccVmClustersRequest request) { + return client.listBaseccVmClusters(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.database.model.BaseccVmClusterSummary} objects + * contained in responses from the listBaseccVmClusters 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.database.model.BaseccVmClusterSummary} objects + * contained in responses received from the service. + */ + public Iterable + listBaseccVmClustersRecordIterator(final ListBaseccVmClustersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListBaseccVmClustersRequest.Builder, ListBaseccVmClustersRequest, + ListBaseccVmClustersResponse, com.oracle.bmc.database.model.BaseccVmClusterSummary>( + new java.util.function.Supplier() { + @Override + public ListBaseccVmClustersRequest.Builder get() { + return ListBaseccVmClustersRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListBaseccVmClustersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBaseccVmClustersRequest.Builder>, + ListBaseccVmClustersRequest>() { + @Override + public ListBaseccVmClustersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBaseccVmClustersRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListBaseccVmClustersRequest, ListBaseccVmClustersResponse>() { + @Override + public ListBaseccVmClustersResponse apply(ListBaseccVmClustersRequest request) { + return client.listBaseccVmClusters(request); + } + }, + new java.util.function.Function< + ListBaseccVmClustersResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListBaseccVmClustersResponse response) { + return response.getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listCloudAutonomousVmClusterAcdResourceUsage operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java index 2c70a86ba9c..26430612efe 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java @@ -1213,6 +1213,71 @@ public ChangeBackupDestinationCompartmentResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ChangeBaseccVmClusterCompartmentRequest, + ChangeBaseccVmClusterCompartmentResponse> + forChangeBaseccVmClusterCompartment(ChangeBaseccVmClusterCompartmentRequest request) { + return forChangeBaseccVmClusterCompartment( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ChangeBaseccVmClusterCompartmentRequest, + ChangeBaseccVmClusterCompartmentResponse> + forChangeBaseccVmClusterCompartment( + ChangeBaseccVmClusterCompartmentRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public ChangeBaseccVmClusterCompartmentResponse call() throws Exception { + final ChangeBaseccVmClusterCompartmentResponse response = + client.changeBaseccVmClusterCompartment(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -4258,6 +4323,67 @@ public CreateBackupResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forCreateBaseccVmCluster(CreateBaseccVmClusterRequest request) { + return forCreateBaseccVmCluster( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forCreateBaseccVmCluster( + CreateBaseccVmClusterRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public CreateBaseccVmClusterResponse call() throws Exception { + final CreateBaseccVmClusterResponse response = + client.createBaseccVmCluster(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -6498,6 +6624,67 @@ public DeleteBackupResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forDeleteBaseccVmCluster(DeleteBaseccVmClusterRequest request) { + return forDeleteBaseccVmCluster( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forDeleteBaseccVmCluster( + DeleteBaseccVmClusterRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public DeleteBaseccVmClusterResponse call() throws Exception { + final DeleteBaseccVmClusterResponse response = + client.deleteBaseccVmCluster(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -11843,18 +12030,16 @@ public boolean test(GetBackupDestinationResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> - forCloudAutonomousVmCluster( - GetCloudAutonomousVmClusterRequest request, - com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter + forBaseccVmCluster( + GetBaseccVmClusterRequest request, + com.oracle.bmc.database.model.BaseccVmCluster.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forCloudAutonomousVmCluster( + return forBaseccVmCluster( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -11867,18 +12052,16 @@ public boolean test(GetBackupDestinationResponse response) { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> - forCloudAutonomousVmCluster( - GetCloudAutonomousVmClusterRequest request, - com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState - targetState, + public com.oracle.bmc.waiter.Waiter + forBaseccVmCluster( + GetBaseccVmClusterRequest request, + com.oracle.bmc.database.model.BaseccVmCluster.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); - return forCloudAutonomousVmCluster( + return forBaseccVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -11893,34 +12076,31 @@ public boolean test(GetBackupDestinationResponse response) { * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> - forCloudAutonomousVmCluster( - GetCloudAutonomousVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter + forBaseccVmCluster( + GetBaseccVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState... - targetStates) { + com.oracle.bmc.database.model.BaseccVmCluster.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forCloudAutonomousVmCluster( + return forBaseccVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for CloudAutonomousVmCluster. - private com.oracle.bmc.waiter.Waiter< - GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> - forCloudAutonomousVmCluster( + // Helper method to create a new Waiter for BaseccVmCluster. + private com.oracle.bmc.waiter.Waiter + forBaseccVmCluster( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetCloudAutonomousVmClusterRequest request, - final com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState... + final GetBaseccVmClusterRequest request, + final com.oracle.bmc.database.model.BaseccVmCluster.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -11928,24 +12108,23 @@ public boolean test(GetBackupDestinationResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetCloudAutonomousVmClusterRequest, - GetCloudAutonomousVmClusterResponse>() { + GetBaseccVmClusterRequest, GetBaseccVmClusterResponse>() { @Override - public GetCloudAutonomousVmClusterResponse apply( - GetCloudAutonomousVmClusterRequest request) { - return client.getCloudAutonomousVmCluster(request); + public GetBaseccVmClusterResponse apply( + GetBaseccVmClusterRequest request) { + return client.getBaseccVmCluster(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetCloudAutonomousVmClusterResponse response) { + public boolean test(GetBaseccVmClusterResponse response) { return targetStatesSet.contains( - response.getCloudAutonomousVmCluster().getLifecycleState()); + response.getBaseccVmCluster().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.CloudAutonomousVmCluster - .LifecycleState.Terminated)), + com.oracle.bmc.database.model.BaseccVmCluster.LifecycleState + .Terminated)), request); } @@ -11957,17 +12136,17 @@ public boolean test(GetCloudAutonomousVmClusterResponse response) { * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> - forCloudExadataInfrastructure( - GetCloudExadataInfrastructureRequest request, - com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... + GetBaseccVmClusterUpdateRequest, GetBaseccVmClusterUpdateResponse> + forBaseccVmClusterUpdate( + GetBaseccVmClusterUpdateRequest request, + com.oracle.bmc.database.model.BaseccVmClusterUpdate.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forCloudExadataInfrastructure( + return forBaseccVmClusterUpdate( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -11981,17 +12160,16 @@ public boolean test(GetCloudAutonomousVmClusterResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> - forCloudExadataInfrastructure( - GetCloudExadataInfrastructureRequest request, - com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState - targetState, + GetBaseccVmClusterUpdateRequest, GetBaseccVmClusterUpdateResponse> + forBaseccVmClusterUpdate( + GetBaseccVmClusterUpdateRequest request, + com.oracle.bmc.database.model.BaseccVmClusterUpdate.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); - return forCloudExadataInfrastructure( + return forBaseccVmClusterUpdate( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -12007,33 +12185,33 @@ public boolean test(GetCloudAutonomousVmClusterResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> - forCloudExadataInfrastructure( - GetCloudExadataInfrastructureRequest request, + GetBaseccVmClusterUpdateRequest, GetBaseccVmClusterUpdateResponse> + forBaseccVmClusterUpdate( + GetBaseccVmClusterUpdateRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... + com.oracle.bmc.database.model.BaseccVmClusterUpdate.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forCloudExadataInfrastructure( + return forBaseccVmClusterUpdate( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for CloudExadataInfrastructure. + // Helper method to create a new Waiter for BaseccVmClusterUpdate. private com.oracle.bmc.waiter.Waiter< - GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> - forCloudExadataInfrastructure( + GetBaseccVmClusterUpdateRequest, GetBaseccVmClusterUpdateResponse> + forBaseccVmClusterUpdate( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetCloudExadataInfrastructureRequest request, - final com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... + final GetBaseccVmClusterUpdateRequest request, + final com.oracle.bmc.database.model.BaseccVmClusterUpdate.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -12041,25 +12219,22 @@ public boolean test(GetCloudAutonomousVmClusterResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetCloudExadataInfrastructureRequest, - GetCloudExadataInfrastructureResponse>() { + GetBaseccVmClusterUpdateRequest, + GetBaseccVmClusterUpdateResponse>() { @Override - public GetCloudExadataInfrastructureResponse apply( - GetCloudExadataInfrastructureRequest request) { - return client.getCloudExadataInfrastructure(request); + public GetBaseccVmClusterUpdateResponse apply( + GetBaseccVmClusterUpdateRequest request) { + return client.getBaseccVmClusterUpdate(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetCloudExadataInfrastructureResponse response) { + public boolean test(GetBaseccVmClusterUpdateResponse response) { return targetStatesSet.contains( - response.getCloudExadataInfrastructure() - .getLifecycleState()); + response.getBaseccVmClusterUpdate().getLifecycleState()); } }, - targetStatesSet.contains( - com.oracle.bmc.database.model.CloudExadataInfrastructure - .LifecycleState.Terminated)), + false), request); } @@ -12070,16 +12245,20 @@ public boolean test(GetCloudExadataInfrastructureResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forCloudVmCluster( - GetCloudVmClusterRequest request, - com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetBaseccVmClusterUpdateHistoryEntryRequest, + GetBaseccVmClusterUpdateHistoryEntryResponse> + forBaseccVmClusterUpdateHistoryEntry( + GetBaseccVmClusterUpdateHistoryEntryRequest request, + com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntry + .LifecycleState... + targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forCloudVmCluster( + return forBaseccVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -12092,16 +12271,19 @@ public boolean test(GetCloudExadataInfrastructureResponse response) { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forCloudVmCluster( - GetCloudVmClusterRequest request, - com.oracle.bmc.database.model.CloudVmCluster.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter< + GetBaseccVmClusterUpdateHistoryEntryRequest, + GetBaseccVmClusterUpdateHistoryEntryResponse> + forBaseccVmClusterUpdateHistoryEntry( + GetBaseccVmClusterUpdateHistoryEntryRequest request, + com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntry.LifecycleState + targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); - return forCloudVmCluster( + return forBaseccVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -12116,26 +12298,369 @@ public boolean test(GetCloudExadataInfrastructureResponse response) { * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forCloudVmCluster( - GetCloudVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter< + GetBaseccVmClusterUpdateHistoryEntryRequest, + GetBaseccVmClusterUpdateHistoryEntryResponse> + forBaseccVmClusterUpdateHistoryEntry( + GetBaseccVmClusterUpdateHistoryEntryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { + com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntry + .LifecycleState... + targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forCloudVmCluster( + return forBaseccVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for CloudVmCluster. - private com.oracle.bmc.waiter.Waiter - forCloudVmCluster( + // Helper method to create a new Waiter for BaseccVmClusterUpdateHistoryEntry. + private com.oracle.bmc.waiter.Waiter< + GetBaseccVmClusterUpdateHistoryEntryRequest, + GetBaseccVmClusterUpdateHistoryEntryResponse> + forBaseccVmClusterUpdateHistoryEntry( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetBaseccVmClusterUpdateHistoryEntryRequest request, + final com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntry + .LifecycleState... + targetStates) { + final java.util.Set< + com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntry + .LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetBaseccVmClusterUpdateHistoryEntryRequest, + GetBaseccVmClusterUpdateHistoryEntryResponse>() { + @Override + public GetBaseccVmClusterUpdateHistoryEntryResponse apply( + GetBaseccVmClusterUpdateHistoryEntryRequest request) { + return client.getBaseccVmClusterUpdateHistoryEntry(request); + } + }, + new java.util.function.Predicate< + GetBaseccVmClusterUpdateHistoryEntryResponse>() { + @Override + public boolean test( + GetBaseccVmClusterUpdateHistoryEntryResponse response) { + return targetStatesSet.contains( + response.getBaseccVmClusterUpdateHistoryEntry() + .getLifecycleState()); + } + }, + false), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> + forCloudAutonomousVmCluster( + GetCloudAutonomousVmClusterRequest request, + com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forCloudAutonomousVmCluster( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> + forCloudAutonomousVmCluster( + GetCloudAutonomousVmClusterRequest request, + com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forCloudAutonomousVmCluster( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> + forCloudAutonomousVmCluster( + GetCloudAutonomousVmClusterRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forCloudAutonomousVmCluster( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for CloudAutonomousVmCluster. + private com.oracle.bmc.waiter.Waiter< + GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> + forCloudAutonomousVmCluster( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetCloudAutonomousVmClusterRequest request, + final com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetCloudAutonomousVmClusterRequest, + GetCloudAutonomousVmClusterResponse>() { + @Override + public GetCloudAutonomousVmClusterResponse apply( + GetCloudAutonomousVmClusterRequest request) { + return client.getCloudAutonomousVmCluster(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetCloudAutonomousVmClusterResponse response) { + return targetStatesSet.contains( + response.getCloudAutonomousVmCluster().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.CloudAutonomousVmCluster + .LifecycleState.Terminated)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> + forCloudExadataInfrastructure( + GetCloudExadataInfrastructureRequest request, + com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forCloudExadataInfrastructure( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> + forCloudExadataInfrastructure( + GetCloudExadataInfrastructureRequest request, + com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forCloudExadataInfrastructure( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> + forCloudExadataInfrastructure( + GetCloudExadataInfrastructureRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forCloudExadataInfrastructure( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for CloudExadataInfrastructure. + private com.oracle.bmc.waiter.Waiter< + GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> + forCloudExadataInfrastructure( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetCloudExadataInfrastructureRequest request, + final com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetCloudExadataInfrastructureRequest, + GetCloudExadataInfrastructureResponse>() { + @Override + public GetCloudExadataInfrastructureResponse apply( + GetCloudExadataInfrastructureRequest request) { + return client.getCloudExadataInfrastructure(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetCloudExadataInfrastructureResponse response) { + return targetStatesSet.contains( + response.getCloudExadataInfrastructure() + .getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.CloudExadataInfrastructure + .LifecycleState.Terminated)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forCloudVmCluster( + GetCloudVmClusterRequest request, + com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forCloudVmCluster( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forCloudVmCluster( + GetCloudVmClusterRequest request, + com.oracle.bmc.database.model.CloudVmCluster.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forCloudVmCluster( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forCloudVmCluster( + GetCloudVmClusterRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forCloudVmCluster( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for CloudVmCluster. + private com.oracle.bmc.waiter.Waiter + forCloudVmCluster( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetCloudVmClusterRequest request, final com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... @@ -17608,6 +18133,69 @@ public RegisterCloudVmClusterPkcsResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + RegisterExadbVmClusterPkcsRequest, RegisterExadbVmClusterPkcsResponse> + forRegisterExadbVmClusterPkcs(RegisterExadbVmClusterPkcsRequest request) { + return forRegisterExadbVmClusterPkcs( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + RegisterExadbVmClusterPkcsRequest, RegisterExadbVmClusterPkcsResponse> + forRegisterExadbVmClusterPkcs( + RegisterExadbVmClusterPkcsRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public RegisterExadbVmClusterPkcsResponse call() throws Exception { + final RegisterExadbVmClusterPkcsResponse response = + client.registerExadbVmClusterPkcs(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -17909,9 +18497,208 @@ public ReinstateDataGuardAssociationResponse call() throws Exception { executorService, new java.util.concurrent.Callable() { @Override - public RemoteClonePluggableDatabaseResponse call() throws Exception { - final RemoteClonePluggableDatabaseResponse response = - client.remoteClonePluggableDatabase(request); + public RemoteClonePluggableDatabaseResponse call() throws Exception { + final RemoteClonePluggableDatabaseResponse response = + client.remoteClonePluggableDatabase(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + RemoveVirtualMachineFromCloudVmClusterRequest, + RemoveVirtualMachineFromCloudVmClusterResponse> + forRemoveVirtualMachineFromCloudVmCluster( + RemoveVirtualMachineFromCloudVmClusterRequest request) { + return forRemoveVirtualMachineFromCloudVmCluster( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + RemoveVirtualMachineFromCloudVmClusterRequest, + RemoveVirtualMachineFromCloudVmClusterResponse> + forRemoveVirtualMachineFromCloudVmCluster( + RemoveVirtualMachineFromCloudVmClusterRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + RemoveVirtualMachineFromCloudVmClusterResponse>() { + @Override + public RemoveVirtualMachineFromCloudVmClusterResponse call() throws Exception { + final RemoveVirtualMachineFromCloudVmClusterResponse response = + client.removeVirtualMachineFromCloudVmCluster(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + RemoveVirtualMachineFromExadbVmClusterRequest, + RemoveVirtualMachineFromExadbVmClusterResponse> + forRemoveVirtualMachineFromExadbVmCluster( + RemoveVirtualMachineFromExadbVmClusterRequest request) { + return forRemoveVirtualMachineFromExadbVmCluster( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + RemoveVirtualMachineFromExadbVmClusterRequest, + RemoveVirtualMachineFromExadbVmClusterResponse> + forRemoveVirtualMachineFromExadbVmCluster( + RemoveVirtualMachineFromExadbVmClusterRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + RemoveVirtualMachineFromExadbVmClusterResponse>() { + @Override + public RemoveVirtualMachineFromExadbVmClusterResponse call() throws Exception { + final RemoveVirtualMachineFromExadbVmClusterResponse response = + client.removeVirtualMachineFromExadbVmCluster(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + RemoveVirtualMachineFromVmClusterRequest, + RemoveVirtualMachineFromVmClusterResponse> + forRemoveVirtualMachineFromVmCluster(RemoveVirtualMachineFromVmClusterRequest request) { + return forRemoveVirtualMachineFromVmCluster( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + RemoveVirtualMachineFromVmClusterRequest, + RemoveVirtualMachineFromVmClusterResponse> + forRemoveVirtualMachineFromVmCluster( + RemoveVirtualMachineFromVmClusterRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public RemoveVirtualMachineFromVmClusterResponse call() throws Exception { + final RemoveVirtualMachineFromVmClusterResponse response = + client.removeVirtualMachineFromVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -17941,11 +18728,9 @@ public RemoteClonePluggableDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RemoveVirtualMachineFromCloudVmClusterRequest, - RemoveVirtualMachineFromCloudVmClusterResponse> - forRemoveVirtualMachineFromCloudVmCluster( - RemoveVirtualMachineFromCloudVmClusterRequest request) { - return forRemoveVirtualMachineFromCloudVmCluster( + ReorderExecutionActionsRequest, ReorderExecutionActionsResponse> + forReorderExecutionActions(ReorderExecutionActionsRequest request) { + return forReorderExecutionActions( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -17960,10 +18745,9 @@ public RemoteClonePluggableDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RemoveVirtualMachineFromCloudVmClusterRequest, - RemoveVirtualMachineFromCloudVmClusterResponse> - forRemoveVirtualMachineFromCloudVmCluster( - RemoveVirtualMachineFromCloudVmClusterRequest request, + ReorderExecutionActionsRequest, ReorderExecutionActionsResponse> + forReorderExecutionActions( + ReorderExecutionActionsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -17973,12 +18757,11 @@ public RemoteClonePluggableDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - RemoveVirtualMachineFromCloudVmClusterResponse>() { + new java.util.concurrent.Callable() { @Override - public RemoveVirtualMachineFromCloudVmClusterResponse call() throws Exception { - final RemoveVirtualMachineFromCloudVmClusterResponse response = - client.removeVirtualMachineFromCloudVmCluster(request); + public ReorderExecutionActionsResponse call() throws Exception { + final ReorderExecutionActionsResponse response = + client.reorderExecutionActions(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -18008,11 +18791,9 @@ public RemoveVirtualMachineFromCloudVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RemoveVirtualMachineFromExadbVmClusterRequest, - RemoveVirtualMachineFromExadbVmClusterResponse> - forRemoveVirtualMachineFromExadbVmCluster( - RemoveVirtualMachineFromExadbVmClusterRequest request) { - return forRemoveVirtualMachineFromExadbVmCluster( + ReorderScheduledActionsRequest, ReorderScheduledActionsResponse> + forReorderScheduledActions(ReorderScheduledActionsRequest request) { + return forReorderScheduledActions( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -18027,10 +18808,9 @@ public RemoveVirtualMachineFromCloudVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RemoveVirtualMachineFromExadbVmClusterRequest, - RemoveVirtualMachineFromExadbVmClusterResponse> - forRemoveVirtualMachineFromExadbVmCluster( - RemoveVirtualMachineFromExadbVmClusterRequest request, + ReorderScheduledActionsRequest, ReorderScheduledActionsResponse> + forReorderScheduledActions( + ReorderScheduledActionsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -18040,12 +18820,11 @@ public RemoveVirtualMachineFromCloudVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - RemoveVirtualMachineFromExadbVmClusterResponse>() { + new java.util.concurrent.Callable() { @Override - public RemoveVirtualMachineFromExadbVmClusterResponse call() throws Exception { - final RemoveVirtualMachineFromExadbVmClusterResponse response = - client.removeVirtualMachineFromExadbVmCluster(request); + public ReorderScheduledActionsResponse call() throws Exception { + final ReorderScheduledActionsResponse response = + client.reorderScheduledActions(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -18075,10 +18854,10 @@ public RemoveVirtualMachineFromExadbVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RemoveVirtualMachineFromVmClusterRequest, - RemoveVirtualMachineFromVmClusterResponse> - forRemoveVirtualMachineFromVmCluster(RemoveVirtualMachineFromVmClusterRequest request) { - return forRemoveVirtualMachineFromVmCluster( + RescheduleManagedDbSoftwareUpdateRequest, + RescheduleManagedDbSoftwareUpdateResponse> + forRescheduleManagedDbSoftwareUpdate(RescheduleManagedDbSoftwareUpdateRequest request) { + return forRescheduleManagedDbSoftwareUpdate( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -18093,10 +18872,10 @@ public RemoveVirtualMachineFromExadbVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RemoveVirtualMachineFromVmClusterRequest, - RemoveVirtualMachineFromVmClusterResponse> - forRemoveVirtualMachineFromVmCluster( - RemoveVirtualMachineFromVmClusterRequest request, + RescheduleManagedDbSoftwareUpdateRequest, + RescheduleManagedDbSoftwareUpdateResponse> + forRescheduleManagedDbSoftwareUpdate( + RescheduleManagedDbSoftwareUpdateRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -18106,11 +18885,11 @@ public RemoveVirtualMachineFromExadbVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RemoveVirtualMachineFromVmClusterResponse call() throws Exception { - final RemoveVirtualMachineFromVmClusterResponse response = - client.removeVirtualMachineFromVmCluster(request); + public RescheduleManagedDbSoftwareUpdateResponse call() throws Exception { + final RescheduleManagedDbSoftwareUpdateResponse response = + client.rescheduleManagedDbSoftwareUpdate(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -18140,9 +18919,9 @@ public RemoveVirtualMachineFromVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ReorderExecutionActionsRequest, ReorderExecutionActionsResponse> - forReorderExecutionActions(ReorderExecutionActionsRequest request) { - return forReorderExecutionActions( + ResizeVmClusterNetworkRequest, ResizeVmClusterNetworkResponse> + forResizeVmClusterNetwork(ResizeVmClusterNetworkRequest request) { + return forResizeVmClusterNetwork( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -18157,9 +18936,9 @@ public RemoveVirtualMachineFromVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ReorderExecutionActionsRequest, ReorderExecutionActionsResponse> - forReorderExecutionActions( - ReorderExecutionActionsRequest request, + ResizeVmClusterNetworkRequest, ResizeVmClusterNetworkResponse> + forResizeVmClusterNetwork( + ResizeVmClusterNetworkRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -18169,11 +18948,11 @@ public RemoveVirtualMachineFromVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public ReorderExecutionActionsResponse call() throws Exception { - final ReorderExecutionActionsResponse response = - client.reorderExecutionActions(request); + public ResizeVmClusterNetworkResponse call() throws Exception { + final ResizeVmClusterNetworkResponse response = + client.resizeVmClusterNetwork(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -18203,9 +18982,11 @@ public ReorderExecutionActionsResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ReorderScheduledActionsRequest, ReorderScheduledActionsResponse> - forReorderScheduledActions(ReorderScheduledActionsRequest request) { - return forReorderScheduledActions( + RestartAutonomousContainerDatabaseRequest, + RestartAutonomousContainerDatabaseResponse> + forRestartAutonomousContainerDatabase( + RestartAutonomousContainerDatabaseRequest request) { + return forRestartAutonomousContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -18220,9 +19001,10 @@ public ReorderExecutionActionsResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ReorderScheduledActionsRequest, ReorderScheduledActionsResponse> - forReorderScheduledActions( - ReorderScheduledActionsRequest request, + RestartAutonomousContainerDatabaseRequest, + RestartAutonomousContainerDatabaseResponse> + forRestartAutonomousContainerDatabase( + RestartAutonomousContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -18232,11 +19014,11 @@ public ReorderExecutionActionsResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public ReorderScheduledActionsResponse call() throws Exception { - final ReorderScheduledActionsResponse response = - client.reorderScheduledActions(request); + public RestartAutonomousContainerDatabaseResponse call() throws Exception { + final RestartAutonomousContainerDatabaseResponse response = + client.restartAutonomousContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -18266,9 +19048,9 @@ public ReorderScheduledActionsResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ResizeVmClusterNetworkRequest, ResizeVmClusterNetworkResponse> - forResizeVmClusterNetwork(ResizeVmClusterNetworkRequest request) { - return forResizeVmClusterNetwork( + RestartAutonomousDatabaseRequest, RestartAutonomousDatabaseResponse> + forRestartAutonomousDatabase(RestartAutonomousDatabaseRequest request) { + return forRestartAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -18283,9 +19065,9 @@ public ReorderScheduledActionsResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ResizeVmClusterNetworkRequest, ResizeVmClusterNetworkResponse> - forResizeVmClusterNetwork( - ResizeVmClusterNetworkRequest request, + RestartAutonomousDatabaseRequest, RestartAutonomousDatabaseResponse> + forRestartAutonomousDatabase( + RestartAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -18295,11 +19077,11 @@ public ReorderScheduledActionsResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public ResizeVmClusterNetworkResponse call() throws Exception { - final ResizeVmClusterNetworkResponse response = - client.resizeVmClusterNetwork(request); + public RestartAutonomousDatabaseResponse call() throws Exception { + final RestartAutonomousDatabaseResponse response = + client.restartAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -18329,11 +19111,9 @@ public ResizeVmClusterNetworkResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RestartAutonomousContainerDatabaseRequest, - RestartAutonomousContainerDatabaseResponse> - forRestartAutonomousContainerDatabase( - RestartAutonomousContainerDatabaseRequest request) { - return forRestartAutonomousContainerDatabase( + RestartAutonomousVmClusterOrdsRequest, RestartAutonomousVmClusterOrdsResponse> + forRestartAutonomousVmClusterOrds(RestartAutonomousVmClusterOrdsRequest request) { + return forRestartAutonomousVmClusterOrds( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -18348,10 +19128,9 @@ public ResizeVmClusterNetworkResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RestartAutonomousContainerDatabaseRequest, - RestartAutonomousContainerDatabaseResponse> - forRestartAutonomousContainerDatabase( - RestartAutonomousContainerDatabaseRequest request, + RestartAutonomousVmClusterOrdsRequest, RestartAutonomousVmClusterOrdsResponse> + forRestartAutonomousVmClusterOrds( + RestartAutonomousVmClusterOrdsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -18361,11 +19140,11 @@ public ResizeVmClusterNetworkResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RestartAutonomousContainerDatabaseResponse call() throws Exception { - final RestartAutonomousContainerDatabaseResponse response = - client.restartAutonomousContainerDatabase(request); + public RestartAutonomousVmClusterOrdsResponse call() throws Exception { + final RestartAutonomousVmClusterOrdsResponse response = + client.restartAutonomousVmClusterOrds(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -18395,9 +19174,11 @@ public RestartAutonomousContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RestartAutonomousDatabaseRequest, RestartAutonomousDatabaseResponse> - forRestartAutonomousDatabase(RestartAutonomousDatabaseRequest request) { - return forRestartAutonomousDatabase( + RestartCloudAutonomousVmClusterOrdsRequest, + RestartCloudAutonomousVmClusterOrdsResponse> + forRestartCloudAutonomousVmClusterOrds( + RestartCloudAutonomousVmClusterOrdsRequest request) { + return forRestartCloudAutonomousVmClusterOrds( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -18412,9 +19193,10 @@ public RestartAutonomousContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RestartAutonomousDatabaseRequest, RestartAutonomousDatabaseResponse> - forRestartAutonomousDatabase( - RestartAutonomousDatabaseRequest request, + RestartCloudAutonomousVmClusterOrdsRequest, + RestartCloudAutonomousVmClusterOrdsResponse> + forRestartCloudAutonomousVmClusterOrds( + RestartCloudAutonomousVmClusterOrdsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -18424,11 +19206,11 @@ public RestartAutonomousContainerDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RestartAutonomousDatabaseResponse call() throws Exception { - final RestartAutonomousDatabaseResponse response = - client.restartAutonomousDatabase(request); + public RestartCloudAutonomousVmClusterOrdsResponse call() throws Exception { + final RestartCloudAutonomousVmClusterOrdsResponse response = + client.restartCloudAutonomousVmClusterOrds(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -20556,6 +21338,69 @@ public UnregisterCloudVmClusterPkcsResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + UnregisterExadbVmClusterPkcsRequest, UnregisterExadbVmClusterPkcsResponse> + forUnregisterExadbVmClusterPkcs(UnregisterExadbVmClusterPkcsRequest request) { + return forUnregisterExadbVmClusterPkcs( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + UnregisterExadbVmClusterPkcsRequest, UnregisterExadbVmClusterPkcsResponse> + forUnregisterExadbVmClusterPkcs( + UnregisterExadbVmClusterPkcsRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public UnregisterExadbVmClusterPkcsResponse call() throws Exception { + final UnregisterExadbVmClusterPkcsResponse response = + client.unregisterExadbVmClusterPkcs(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -21199,6 +22044,67 @@ public UpdateBackupResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forUpdateBaseccVmCluster(UpdateBaseccVmClusterRequest request) { + return forUpdateBaseccVmCluster( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forUpdateBaseccVmCluster( + UpdateBaseccVmClusterRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public UpdateBaseccVmClusterResponse call() throws Exception { + final UpdateBaseccVmClusterResponse response = + client.updateBaseccVmCluster(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ChangeBaseccVmClusterCompartmentConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ChangeBaseccVmClusterCompartmentConverter.java new file mode 100644 index 00000000000..f8b1c23d937 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ChangeBaseccVmClusterCompartmentConverter.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ChangeBaseccVmClusterCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ChangeBaseccVmClusterCompartmentConverter.class); + + public static com.oracle.bmc.database.requests.ChangeBaseccVmClusterCompartmentRequest + interceptRequest( + com.oracle.bmc.database.requests.ChangeBaseccVmClusterCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.ChangeBaseccVmClusterCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getChangeBaseccVmClusterCompartmentDetails(), + "changeBaseccVmClusterCompartmentDetails is required"); + Validate.notBlank(request.getBaseccVmClusterId(), "baseccVmClusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("baseccVmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBaseccVmClusterId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ChangeBaseccVmClusterCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ChangeBaseccVmClusterCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ChangeBaseccVmClusterCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ChangeBaseccVmClusterCompartmentResponse>() { + @Override + public com.oracle.bmc.database.responses + .ChangeBaseccVmClusterCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.ChangeBaseccVmClusterCompartmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.database.responses + .ChangeBaseccVmClusterCompartmentResponse.Builder + builder = + com.oracle.bmc.database.responses + .ChangeBaseccVmClusterCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses + .ChangeBaseccVmClusterCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateBaseccVmClusterConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateBaseccVmClusterConverter.java new file mode 100644 index 00000000000..35643efb13e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateBaseccVmClusterConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateBaseccVmClusterConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CreateBaseccVmClusterConverter.class); + + public static com.oracle.bmc.database.requests.CreateBaseccVmClusterRequest interceptRequest( + com.oracle.bmc.database.requests.CreateBaseccVmClusterRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.CreateBaseccVmClusterRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateBaseccVmClusterDetails(), + "createBaseccVmClusterDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20160918").path("baseccVmClusters"); + + 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 (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.CreateBaseccVmClusterResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.CreateBaseccVmClusterResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.CreateBaseccVmClusterResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.CreateBaseccVmClusterResponse>() { + @Override + public com.oracle.bmc.database.responses.CreateBaseccVmClusterResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.CreateBaseccVmClusterResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model + .BaseccVmCluster>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.BaseccVmCluster + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.BaseccVmCluster + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model.BaseccVmCluster> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses.CreateBaseccVmClusterResponse + .Builder + builder = + com.oracle.bmc.database.responses + .CreateBaseccVmClusterResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.baseccVmCluster(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses.CreateBaseccVmClusterResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteBaseccVmClusterConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteBaseccVmClusterConverter.java new file mode 100644 index 00000000000..2af8e44a68e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteBaseccVmClusterConverter.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteBaseccVmClusterConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteBaseccVmClusterConverter.class); + + public static com.oracle.bmc.database.requests.DeleteBaseccVmClusterRequest interceptRequest( + com.oracle.bmc.database.requests.DeleteBaseccVmClusterRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.DeleteBaseccVmClusterRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getBaseccVmClusterId(), "baseccVmClusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("baseccVmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBaseccVmClusterId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.DeleteBaseccVmClusterResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.DeleteBaseccVmClusterResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.DeleteBaseccVmClusterResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.DeleteBaseccVmClusterResponse>() { + @Override + public com.oracle.bmc.database.responses.DeleteBaseccVmClusterResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.DeleteBaseccVmClusterResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.database.responses.DeleteBaseccVmClusterResponse + .Builder + builder = + com.oracle.bmc.database.responses + .DeleteBaseccVmClusterResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses.DeleteBaseccVmClusterResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetBaseccVmClusterConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetBaseccVmClusterConverter.java new file mode 100644 index 00000000000..25bf348b548 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetBaseccVmClusterConverter.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetBaseccVmClusterConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetBaseccVmClusterConverter.class); + + public static com.oracle.bmc.database.requests.GetBaseccVmClusterRequest interceptRequest( + com.oracle.bmc.database.requests.GetBaseccVmClusterRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.GetBaseccVmClusterRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getBaseccVmClusterId(), "baseccVmClusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("baseccVmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBaseccVmClusterId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetBaseccVmClusterResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetBaseccVmClusterResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetBaseccVmClusterResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetBaseccVmClusterResponse>() { + @Override + public com.oracle.bmc.database.responses.GetBaseccVmClusterResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.GetBaseccVmClusterResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model + .BaseccVmCluster>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.BaseccVmCluster + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.BaseccVmCluster + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model.BaseccVmCluster> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses.GetBaseccVmClusterResponse.Builder + builder = + com.oracle.bmc.database.responses + .GetBaseccVmClusterResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.baseccVmCluster(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses.GetBaseccVmClusterResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetBaseccVmClusterUpdateConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetBaseccVmClusterUpdateConverter.java new file mode 100644 index 00000000000..507b2300d1e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetBaseccVmClusterUpdateConverter.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetBaseccVmClusterUpdateConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetBaseccVmClusterUpdateConverter.class); + + public static com.oracle.bmc.database.requests.GetBaseccVmClusterUpdateRequest interceptRequest( + com.oracle.bmc.database.requests.GetBaseccVmClusterUpdateRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.GetBaseccVmClusterUpdateRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getBaseccVmClusterId(), "baseccVmClusterId must not be blank"); + Validate.notBlank(request.getUpdateId(), "updateId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("baseccVmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBaseccVmClusterId())) + .path("updates") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getUpdateId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetBaseccVmClusterUpdateResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetBaseccVmClusterUpdateResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetBaseccVmClusterUpdateResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .GetBaseccVmClusterUpdateResponse>() { + @Override + public com.oracle.bmc.database.responses + .GetBaseccVmClusterUpdateResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.GetBaseccVmClusterUpdateResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model + .BaseccVmClusterUpdate>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model + .BaseccVmClusterUpdate + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model + .BaseccVmClusterUpdate + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model.BaseccVmClusterUpdate> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses.GetBaseccVmClusterUpdateResponse + .Builder + builder = + com.oracle.bmc.database.responses + .GetBaseccVmClusterUpdateResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.baseccVmClusterUpdate(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses.GetBaseccVmClusterUpdateResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetBaseccVmClusterUpdateHistoryEntryConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetBaseccVmClusterUpdateHistoryEntryConverter.java new file mode 100644 index 00000000000..69e6ff8be2a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetBaseccVmClusterUpdateHistoryEntryConverter.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetBaseccVmClusterUpdateHistoryEntryConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetBaseccVmClusterUpdateHistoryEntryConverter.class); + + public static com.oracle.bmc.database.requests.GetBaseccVmClusterUpdateHistoryEntryRequest + interceptRequest( + com.oracle.bmc.database.requests.GetBaseccVmClusterUpdateHistoryEntryRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.GetBaseccVmClusterUpdateHistoryEntryRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getBaseccVmClusterId(), "baseccVmClusterId must not be blank"); + Validate.notBlank( + request.getUpdateHistoryEntryId(), "updateHistoryEntryId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("baseccVmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBaseccVmClusterId())) + .path("updateHistoryEntries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getUpdateHistoryEntryId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetBaseccVmClusterUpdateHistoryEntryResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetBaseccVmClusterUpdateHistoryEntryResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .GetBaseccVmClusterUpdateHistoryEntryResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .GetBaseccVmClusterUpdateHistoryEntryResponse>() { + @Override + public com.oracle.bmc.database.responses + .GetBaseccVmClusterUpdateHistoryEntryResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.GetBaseccVmClusterUpdateHistoryEntryResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model + .BaseccVmClusterUpdateHistoryEntry>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model + .BaseccVmClusterUpdateHistoryEntry + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model + .BaseccVmClusterUpdateHistoryEntry + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model + .BaseccVmClusterUpdateHistoryEntry> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .GetBaseccVmClusterUpdateHistoryEntryResponse + .Builder + builder = + com.oracle.bmc.database.responses + .GetBaseccVmClusterUpdateHistoryEntryResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.baseccVmClusterUpdateHistoryEntry(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses + .GetBaseccVmClusterUpdateHistoryEntryResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBaseccVmClusterUpdateHistoryEntriesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBaseccVmClusterUpdateHistoryEntriesConverter.java new file mode 100644 index 00000000000..6dafdd3bfe6 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBaseccVmClusterUpdateHistoryEntriesConverter.java @@ -0,0 +1,197 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListBaseccVmClusterUpdateHistoryEntriesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + ListBaseccVmClusterUpdateHistoryEntriesConverter.class); + + public static com.oracle.bmc.database.requests.ListBaseccVmClusterUpdateHistoryEntriesRequest + interceptRequest( + com.oracle.bmc.database.requests.ListBaseccVmClusterUpdateHistoryEntriesRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.ListBaseccVmClusterUpdateHistoryEntriesRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getBaseccVmClusterId(), "baseccVmClusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("baseccVmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBaseccVmClusterId())) + .path("updateHistoryEntries"); + + if (request.getUpdateType() != null) { + target = + target.queryParam( + "updateType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getUpdateType().getValue())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + 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())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ListBaseccVmClusterUpdateHistoryEntriesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ListBaseccVmClusterUpdateHistoryEntriesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ListBaseccVmClusterUpdateHistoryEntriesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ListBaseccVmClusterUpdateHistoryEntriesResponse>() { + @Override + public com.oracle.bmc.database.responses + .ListBaseccVmClusterUpdateHistoryEntriesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.ListBaseccVmClusterUpdateHistoryEntriesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterUpdateHistoryEntrySummary>>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterUpdateHistoryEntrySummary>>() {}, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterUpdateHistoryEntrySummary>>() {}); + } + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterUpdateHistoryEntrySummary>> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .ListBaseccVmClusterUpdateHistoryEntriesResponse + .Builder + builder = + com.oracle.bmc.database.responses + .ListBaseccVmClusterUpdateHistoryEntriesResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.items(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.database.responses + .ListBaseccVmClusterUpdateHistoryEntriesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBaseccVmClusterUpdatesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBaseccVmClusterUpdatesConverter.java new file mode 100644 index 00000000000..fd2811f83c5 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBaseccVmClusterUpdatesConverter.java @@ -0,0 +1,189 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListBaseccVmClusterUpdatesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListBaseccVmClusterUpdatesConverter.class); + + public static com.oracle.bmc.database.requests.ListBaseccVmClusterUpdatesRequest + interceptRequest( + com.oracle.bmc.database.requests.ListBaseccVmClusterUpdatesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.ListBaseccVmClusterUpdatesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getBaseccVmClusterId(), "baseccVmClusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("baseccVmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBaseccVmClusterId())) + .path("updates"); + + if (request.getUpdateType() != null) { + target = + target.queryParam( + "updateType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getUpdateType().getValue())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + 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())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListBaseccVmClusterUpdatesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListBaseccVmClusterUpdatesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListBaseccVmClusterUpdatesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ListBaseccVmClusterUpdatesResponse>() { + @Override + public com.oracle.bmc.database.responses + .ListBaseccVmClusterUpdatesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.ListBaseccVmClusterUpdatesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterUpdateSummary>>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterUpdateSummary>>() {}, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterUpdateSummary>>() {}); + } + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterUpdateSummary>> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses.ListBaseccVmClusterUpdatesResponse + .Builder + builder = + com.oracle.bmc.database.responses + .ListBaseccVmClusterUpdatesResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.items(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.database.responses.ListBaseccVmClusterUpdatesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBaseccVmClustersConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBaseccVmClustersConverter.java new file mode 100644 index 00000000000..fd13471e681 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBaseccVmClustersConverter.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListBaseccVmClustersConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListBaseccVmClustersConverter.class); + + public static com.oracle.bmc.database.requests.ListBaseccVmClustersRequest interceptRequest( + com.oracle.bmc.database.requests.ListBaseccVmClustersRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.ListBaseccVmClustersRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20160918").path("baseccVmClusters"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getBaseInfrastructureId() != null) { + target = + target.queryParam( + "baseInfrastructureId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getBaseInfrastructureId())); + } + + 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.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getAvailabilityDomain() != null) { + target = + target.queryParam( + "availabilityDomain", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAvailabilityDomain())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getVmClusterType() != null) { + target = + target.queryParam( + "vmClusterType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getVmClusterType().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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListBaseccVmClustersResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListBaseccVmClustersResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListBaseccVmClustersResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListBaseccVmClustersResponse>() { + @Override + public com.oracle.bmc.database.responses.ListBaseccVmClustersResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.ListBaseccVmClustersResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterSummary>>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterSummary>>() {}, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterSummary>>() {}); + } + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterSummary>> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses.ListBaseccVmClustersResponse + .Builder + builder = + com.oracle.bmc.database.responses + .ListBaseccVmClustersResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.items(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.database.responses.ListBaseccVmClustersResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListGiVersionMinorVersionsConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListGiVersionMinorVersionsConverter.java index 34dcd14a03d..8adfa30bb37 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListGiVersionMinorVersionsConverter.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListGiVersionMinorVersionsConverter.java @@ -57,6 +57,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCompartmentId())); } + if (request.getExadataInfrastructureId() != null) { + target = + target.queryParam( + "exadataInfrastructureId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getExadataInfrastructureId())); + } + if (request.getShapeFamily() != null) { target = target.queryParam( diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/RegisterExadbVmClusterPkcsConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/RegisterExadbVmClusterPkcsConverter.java new file mode 100644 index 00000000000..6aaf40b843d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/RegisterExadbVmClusterPkcsConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RegisterExadbVmClusterPkcsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RegisterExadbVmClusterPkcsConverter.class); + + public static com.oracle.bmc.database.requests.RegisterExadbVmClusterPkcsRequest + interceptRequest( + com.oracle.bmc.database.requests.RegisterExadbVmClusterPkcsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.RegisterExadbVmClusterPkcsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getExadbVmClusterId(), "exadbVmClusterId must not be blank"); + Validate.notNull( + request.getRegisterExadbVmClusterPkcsDetails(), + "registerExadbVmClusterPkcsDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("exadbVmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExadbVmClusterId())) + .path("actions") + .path("registerPkcs"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.RegisterExadbVmClusterPkcsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.RegisterExadbVmClusterPkcsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.RegisterExadbVmClusterPkcsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .RegisterExadbVmClusterPkcsResponse>() { + @Override + public com.oracle.bmc.database.responses + .RegisterExadbVmClusterPkcsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.RegisterExadbVmClusterPkcsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.database.responses.RegisterExadbVmClusterPkcsResponse + .Builder + builder = + com.oracle.bmc.database.responses + .RegisterExadbVmClusterPkcsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses.RegisterExadbVmClusterPkcsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/RescheduleManagedDbSoftwareUpdateConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/RescheduleManagedDbSoftwareUpdateConverter.java new file mode 100644 index 00000000000..464582f2bc4 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/RescheduleManagedDbSoftwareUpdateConverter.java @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RescheduleManagedDbSoftwareUpdateConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RescheduleManagedDbSoftwareUpdateConverter.class); + + public static com.oracle.bmc.database.requests.RescheduleManagedDbSoftwareUpdateRequest + interceptRequest( + com.oracle.bmc.database.requests.RescheduleManagedDbSoftwareUpdateRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.RescheduleManagedDbSoftwareUpdateRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDatabaseId(), "databaseId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("databases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDatabaseId())) + .path("actions") + .path("rescheduleManagedDbSoftwareUpdate"); + + 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()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.RescheduleManagedDbSoftwareUpdateResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.RescheduleManagedDbSoftwareUpdateResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.RescheduleManagedDbSoftwareUpdateResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .RescheduleManagedDbSoftwareUpdateResponse>() { + @Override + public com.oracle.bmc.database.responses + .RescheduleManagedDbSoftwareUpdateResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.RescheduleManagedDbSoftwareUpdateResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model.Database>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.Database.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.Database.class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model.Database> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .RescheduleManagedDbSoftwareUpdateResponse.Builder + builder = + com.oracle.bmc.database.responses + .RescheduleManagedDbSoftwareUpdateResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.database(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.database.responses + .RescheduleManagedDbSoftwareUpdateResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/RestartAutonomousVmClusterOrdsConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/RestartAutonomousVmClusterOrdsConverter.java new file mode 100644 index 00000000000..f613e2035f8 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/RestartAutonomousVmClusterOrdsConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RestartAutonomousVmClusterOrdsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RestartAutonomousVmClusterOrdsConverter.class); + + public static com.oracle.bmc.database.requests.RestartAutonomousVmClusterOrdsRequest + interceptRequest( + com.oracle.bmc.database.requests.RestartAutonomousVmClusterOrdsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.RestartAutonomousVmClusterOrdsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getAutonomousVmClusterId(), "autonomousVmClusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("autonomousVmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAutonomousVmClusterId())) + .path("actions") + .path("restartOrds"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.RestartAutonomousVmClusterOrdsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.RestartAutonomousVmClusterOrdsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.RestartAutonomousVmClusterOrdsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .RestartAutonomousVmClusterOrdsResponse>() { + @Override + public com.oracle.bmc.database.responses + .RestartAutonomousVmClusterOrdsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.RestartAutonomousVmClusterOrdsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.database.responses + .RestartAutonomousVmClusterOrdsResponse.Builder + builder = + com.oracle.bmc.database.responses + .RestartAutonomousVmClusterOrdsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses + .RestartAutonomousVmClusterOrdsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/RestartCloudAutonomousVmClusterOrdsConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/RestartCloudAutonomousVmClusterOrdsConverter.java new file mode 100644 index 00000000000..c3a28765570 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/RestartCloudAutonomousVmClusterOrdsConverter.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RestartCloudAutonomousVmClusterOrdsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RestartCloudAutonomousVmClusterOrdsConverter.class); + + public static com.oracle.bmc.database.requests.RestartCloudAutonomousVmClusterOrdsRequest + interceptRequest( + com.oracle.bmc.database.requests.RestartCloudAutonomousVmClusterOrdsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.RestartCloudAutonomousVmClusterOrdsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getCloudAutonomousVmClusterId(), + "cloudAutonomousVmClusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("cloudAutonomousVmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCloudAutonomousVmClusterId())) + .path("actions") + .path("restartOrds"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.RestartCloudAutonomousVmClusterOrdsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.RestartCloudAutonomousVmClusterOrdsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .RestartCloudAutonomousVmClusterOrdsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .RestartCloudAutonomousVmClusterOrdsResponse>() { + @Override + public com.oracle.bmc.database.responses + .RestartCloudAutonomousVmClusterOrdsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.RestartCloudAutonomousVmClusterOrdsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.database.responses + .RestartCloudAutonomousVmClusterOrdsResponse.Builder + builder = + com.oracle.bmc.database.responses + .RestartCloudAutonomousVmClusterOrdsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses + .RestartCloudAutonomousVmClusterOrdsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UnregisterExadbVmClusterPkcsConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UnregisterExadbVmClusterPkcsConverter.java new file mode 100644 index 00000000000..23b5faf23da --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UnregisterExadbVmClusterPkcsConverter.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UnregisterExadbVmClusterPkcsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UnregisterExadbVmClusterPkcsConverter.class); + + public static com.oracle.bmc.database.requests.UnregisterExadbVmClusterPkcsRequest + interceptRequest( + com.oracle.bmc.database.requests.UnregisterExadbVmClusterPkcsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.UnregisterExadbVmClusterPkcsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getExadbVmClusterId(), "exadbVmClusterId must not be blank"); + Validate.notNull( + request.getUnregisterExadbVmClusterPkcsDetails(), + "unregisterExadbVmClusterPkcsDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("exadbVmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExadbVmClusterId())) + .path("actions") + .path("unregisterPkcs"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.UnregisterExadbVmClusterPkcsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.UnregisterExadbVmClusterPkcsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.UnregisterExadbVmClusterPkcsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .UnregisterExadbVmClusterPkcsResponse>() { + @Override + public com.oracle.bmc.database.responses + .UnregisterExadbVmClusterPkcsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.UnregisterExadbVmClusterPkcsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.database.responses + .UnregisterExadbVmClusterPkcsResponse.Builder + builder = + com.oracle.bmc.database.responses + .UnregisterExadbVmClusterPkcsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses + .UnregisterExadbVmClusterPkcsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateBaseccVmClusterConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateBaseccVmClusterConverter.java new file mode 100644 index 00000000000..e845c7d5c5a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateBaseccVmClusterConverter.java @@ -0,0 +1,161 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateBaseccVmClusterConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateBaseccVmClusterConverter.class); + + public static com.oracle.bmc.database.requests.UpdateBaseccVmClusterRequest interceptRequest( + com.oracle.bmc.database.requests.UpdateBaseccVmClusterRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.UpdateBaseccVmClusterRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getBaseccVmClusterId(), "baseccVmClusterId must not be blank"); + Validate.notNull( + request.getUpdateBaseccVmClusterDetails(), + "updateBaseccVmClusterDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("baseccVmClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBaseccVmClusterId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.UpdateBaseccVmClusterResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.UpdateBaseccVmClusterResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.UpdateBaseccVmClusterResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.UpdateBaseccVmClusterResponse>() { + @Override + public com.oracle.bmc.database.responses.UpdateBaseccVmClusterResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.UpdateBaseccVmClusterResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model + .BaseccVmCluster>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.BaseccVmCluster + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.BaseccVmCluster + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model.BaseccVmCluster> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses.UpdateBaseccVmClusterResponse + .Builder + builder = + com.oracle.bmc.database.responses + .UpdateBaseccVmClusterResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.baseccVmCluster(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses.UpdateBaseccVmClusterResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java index 8a77450949b..2f6d3d053d7 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java @@ -23,6 +23,7 @@ public final class AutonomousDatabase extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "externalLocationZone", "id", "compartmentId", "subscriptionId", @@ -154,6 +155,7 @@ public final class AutonomousDatabase extends com.oracle.bmc.http.internal.Expli "disasterRecoveryRegionType", "timeDisasterRecoveryRoleChanged", "remoteDisasterRecoveryConfiguration", + "accessTypes", "netServicesArchitecture", "availabilityDomain", "clusterPlacementGroupId", @@ -163,6 +165,7 @@ public final class AutonomousDatabase extends com.oracle.bmc.http.internal.Expli "localAdgResourcePoolLeaderId" }) public AutonomousDatabase( + String externalLocationZone, String id, String compartmentId, String subscriptionId, @@ -294,6 +297,7 @@ public AutonomousDatabase( DisasterRecoveryRegionType disasterRecoveryRegionType, java.util.Date timeDisasterRecoveryRoleChanged, DisasterRecoveryConfiguration remoteDisasterRecoveryConfiguration, + java.util.List accessTypes, NetServicesArchitecture netServicesArchitecture, String availabilityDomain, String clusterPlacementGroupId, @@ -302,6 +306,7 @@ public AutonomousDatabase( java.util.Map additionalAttributes, String localAdgResourcePoolLeaderId) { super(); + this.externalLocationZone = externalLocationZone; this.id = id; this.compartmentId = compartmentId; this.subscriptionId = subscriptionId; @@ -433,6 +438,7 @@ public AutonomousDatabase( this.disasterRecoveryRegionType = disasterRecoveryRegionType; this.timeDisasterRecoveryRoleChanged = timeDisasterRecoveryRoleChanged; this.remoteDisasterRecoveryConfiguration = remoteDisasterRecoveryConfiguration; + this.accessTypes = accessTypes; this.netServicesArchitecture = netServicesArchitecture; this.availabilityDomain = availabilityDomain; this.clusterPlacementGroupId = clusterPlacementGroupId; @@ -444,6 +450,22 @@ public AutonomousDatabase( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** + * The external logical zone where the Autonomous AI Database Serverless instance is located (Intended for multicloud use). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalLocationZone") + private String externalLocationZone; + + /** + * The external logical zone where the Autonomous AI Database Serverless instance is located (Intended for multicloud use). + * @param externalLocationZone the value to set + * @return this builder + **/ + public Builder externalLocationZone(String externalLocationZone) { + this.externalLocationZone = externalLocationZone; + this.__explicitlySet__.add("externalLocationZone"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Autonomous AI Database. **/ @@ -2838,6 +2860,22 @@ public Builder remoteDisasterRecoveryConfiguration( this.__explicitlySet__.add("remoteDisasterRecoveryConfiguration"); return this; } + /** + * List of access types for an Autonomous AI Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessTypes") + private java.util.List accessTypes; + + /** + * List of access types for an Autonomous AI Database. + * @param accessTypes the value to set + * @return this builder + **/ + public Builder accessTypes(java.util.List accessTypes) { + this.accessTypes = accessTypes; + this.__explicitlySet__.add("accessTypes"); + return this; + } /** * Enabling SHARED server architecture enables a database server to allow many client processes to share very few server processes, thereby increasing the number of supported users. * @@ -2963,6 +3001,7 @@ public Builder localAdgResourcePoolLeaderId(String localAdgResourcePoolLeaderId) public AutonomousDatabase build() { AutonomousDatabase model = new AutonomousDatabase( + this.externalLocationZone, this.id, this.compartmentId, this.subscriptionId, @@ -3094,6 +3133,7 @@ public AutonomousDatabase build() { this.disasterRecoveryRegionType, this.timeDisasterRecoveryRoleChanged, this.remoteDisasterRecoveryConfiguration, + this.accessTypes, this.netServicesArchitecture, this.availabilityDomain, this.clusterPlacementGroupId, @@ -3109,6 +3149,9 @@ public AutonomousDatabase build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(AutonomousDatabase model) { + if (model.wasPropertyExplicitlySet("externalLocationZone")) { + this.externalLocationZone(model.getExternalLocationZone()); + } if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } @@ -3510,6 +3553,9 @@ public Builder copy(AutonomousDatabase model) { this.remoteDisasterRecoveryConfiguration( model.getRemoteDisasterRecoveryConfiguration()); } + if (model.wasPropertyExplicitlySet("accessTypes")) { + this.accessTypes(model.getAccessTypes()); + } if (model.wasPropertyExplicitlySet("netServicesArchitecture")) { this.netServicesArchitecture(model.getNetServicesArchitecture()); } @@ -3546,6 +3592,20 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** + * The external logical zone where the Autonomous AI Database Serverless instance is located (Intended for multicloud use). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalLocationZone") + private final String externalLocationZone; + + /** + * The external logical zone where the Autonomous AI Database Serverless instance is located (Intended for multicloud use). + * @return the value + **/ + public String getExternalLocationZone() { + return externalLocationZone; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Autonomous AI Database. **/ @@ -6541,6 +6601,20 @@ public DisasterRecoveryConfiguration getRemoteDisasterRecoveryConfiguration() { return remoteDisasterRecoveryConfiguration; } + /** + * List of access types for an Autonomous AI Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessTypes") + private final java.util.List accessTypes; + + /** + * List of access types for an Autonomous AI Database. + * @return the value + **/ + public java.util.List getAccessTypes() { + return accessTypes; + } + /** * Enabling SHARED server architecture enables a database server to allow many client processes to share very few server processes, thereby increasing the number of supported users. * @@ -6758,7 +6832,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("AutonomousDatabase("); sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); + sb.append("externalLocationZone=").append(String.valueOf(this.externalLocationZone)); + sb.append(", id=").append(String.valueOf(this.id)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -6933,6 +7008,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.timeDisasterRecoveryRoleChanged)); sb.append(", remoteDisasterRecoveryConfiguration=") .append(String.valueOf(this.remoteDisasterRecoveryConfiguration)); + sb.append(", accessTypes=").append(String.valueOf(this.accessTypes)); sb.append(", netServicesArchitecture=") .append(String.valueOf(this.netServicesArchitecture)); sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); @@ -6957,7 +7033,8 @@ public boolean equals(Object o) { } AutonomousDatabase other = (AutonomousDatabase) o; - return java.util.Objects.equals(this.id, other.id) + return java.util.Objects.equals(this.externalLocationZone, other.externalLocationZone) + && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -7145,6 +7222,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.remoteDisasterRecoveryConfiguration, other.remoteDisasterRecoveryConfiguration) + && java.util.Objects.equals(this.accessTypes, other.accessTypes) && java.util.Objects.equals( this.netServicesArchitecture, other.netServicesArchitecture) && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) @@ -7162,6 +7240,11 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.externalLocationZone == null + ? 43 + : this.externalLocationZone.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) @@ -7635,6 +7718,7 @@ public int hashCode() { + (this.remoteDisasterRecoveryConfiguration == null ? 43 : this.remoteDisasterRecoveryConfiguration.hashCode()); + result = (result * PRIME) + (this.accessTypes == null ? 43 : this.accessTypes.hashCode()); result = (result * PRIME) + (this.netServicesArchitecture == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseStandbySummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseStandbySummary.java index 772d6478da3..6c2898e79f2 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseStandbySummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseStandbySummary.java @@ -32,7 +32,8 @@ public final class AutonomousDatabaseStandbySummary "timeMaintenanceBegin", "timeMaintenanceEnd", "maintenanceTargetComponent", - "availabilityDomain" + "availabilityDomain", + "externalLocationZone" }) public AutonomousDatabaseStandbySummary( Integer lagTimeInSeconds, @@ -43,7 +44,8 @@ public AutonomousDatabaseStandbySummary( java.util.Date timeMaintenanceBegin, java.util.Date timeMaintenanceEnd, String maintenanceTargetComponent, - String availabilityDomain) { + String availabilityDomain, + String externalLocationZone) { super(); this.lagTimeInSeconds = lagTimeInSeconds; this.lifecycleState = lifecycleState; @@ -54,6 +56,7 @@ public AutonomousDatabaseStandbySummary( this.timeMaintenanceEnd = timeMaintenanceEnd; this.maintenanceTargetComponent = maintenanceTargetComponent; this.availabilityDomain = availabilityDomain; + this.externalLocationZone = externalLocationZone; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -203,6 +206,22 @@ public Builder availabilityDomain(String availabilityDomain) { this.__explicitlySet__.add("availabilityDomain"); return this; } + /** + * The external logical zone where the local Autonomous Data Guard is located (Intended for multicloud use). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalLocationZone") + private String externalLocationZone; + + /** + * The external logical zone where the local Autonomous Data Guard is located (Intended for multicloud use). + * @param externalLocationZone the value to set + * @return this builder + **/ + public Builder externalLocationZone(String externalLocationZone) { + this.externalLocationZone = externalLocationZone; + this.__explicitlySet__.add("externalLocationZone"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -218,7 +237,8 @@ public AutonomousDatabaseStandbySummary build() { this.timeMaintenanceBegin, this.timeMaintenanceEnd, this.maintenanceTargetComponent, - this.availabilityDomain); + this.availabilityDomain, + this.externalLocationZone); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -254,6 +274,9 @@ public Builder copy(AutonomousDatabaseStandbySummary model) { if (model.wasPropertyExplicitlySet("availabilityDomain")) { this.availabilityDomain(model.getAvailabilityDomain()); } + if (model.wasPropertyExplicitlySet("externalLocationZone")) { + this.externalLocationZone(model.getExternalLocationZone()); + } return this; } } @@ -463,6 +486,20 @@ public String getAvailabilityDomain() { return availabilityDomain; } + /** + * The external logical zone where the local Autonomous Data Guard is located (Intended for multicloud use). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalLocationZone") + private final String externalLocationZone; + + /** + * The external logical zone where the local Autonomous Data Guard is located (Intended for multicloud use). + * @return the value + **/ + public String getExternalLocationZone() { + return externalLocationZone; + } + @Override public String toString() { return this.toString(true); @@ -489,6 +526,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", maintenanceTargetComponent=") .append(String.valueOf(this.maintenanceTargetComponent)); sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", externalLocationZone=").append(String.valueOf(this.externalLocationZone)); sb.append(")"); return sb.toString(); } @@ -515,6 +553,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.maintenanceTargetComponent, other.maintenanceTargetComponent) && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.externalLocationZone, other.externalLocationZone) && super.equals(other); } @@ -561,6 +600,11 @@ public int hashCode() { + (this.availabilityDomain == null ? 43 : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.externalLocationZone == null + ? 43 + : this.externalLocationZone.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java index c7c7f8b3372..930b984d7d8 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java @@ -157,6 +157,7 @@ public final class AutonomousDatabaseSummary "disasterRecoveryRegionType", "timeDisasterRecoveryRoleChanged", "remoteDisasterRecoveryConfiguration", + "accessTypes", "netServicesArchitecture", "availabilityDomain", "clusterPlacementGroupId", @@ -297,6 +298,7 @@ public AutonomousDatabaseSummary( DisasterRecoveryRegionType disasterRecoveryRegionType, java.util.Date timeDisasterRecoveryRoleChanged, DisasterRecoveryConfiguration remoteDisasterRecoveryConfiguration, + java.util.List accessTypes, NetServicesArchitecture netServicesArchitecture, String availabilityDomain, String clusterPlacementGroupId, @@ -436,6 +438,7 @@ public AutonomousDatabaseSummary( this.disasterRecoveryRegionType = disasterRecoveryRegionType; this.timeDisasterRecoveryRoleChanged = timeDisasterRecoveryRoleChanged; this.remoteDisasterRecoveryConfiguration = remoteDisasterRecoveryConfiguration; + this.accessTypes = accessTypes; this.netServicesArchitecture = netServicesArchitecture; this.availabilityDomain = availabilityDomain; this.clusterPlacementGroupId = clusterPlacementGroupId; @@ -2841,6 +2844,22 @@ public Builder remoteDisasterRecoveryConfiguration( this.__explicitlySet__.add("remoteDisasterRecoveryConfiguration"); return this; } + /** + * List of access types for an Autonomous AI Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessTypes") + private java.util.List accessTypes; + + /** + * List of access types for an Autonomous AI Database. + * @param accessTypes the value to set + * @return this builder + **/ + public Builder accessTypes(java.util.List accessTypes) { + this.accessTypes = accessTypes; + this.__explicitlySet__.add("accessTypes"); + return this; + } /** * Enabling SHARED server architecture enables a database server to allow many client processes to share very few server processes, thereby increasing the number of supported users. * @@ -3097,6 +3116,7 @@ public AutonomousDatabaseSummary build() { this.disasterRecoveryRegionType, this.timeDisasterRecoveryRoleChanged, this.remoteDisasterRecoveryConfiguration, + this.accessTypes, this.netServicesArchitecture, this.availabilityDomain, this.clusterPlacementGroupId, @@ -3513,6 +3533,9 @@ public Builder copy(AutonomousDatabaseSummary model) { this.remoteDisasterRecoveryConfiguration( model.getRemoteDisasterRecoveryConfiguration()); } + if (model.wasPropertyExplicitlySet("accessTypes")) { + this.accessTypes(model.getAccessTypes()); + } if (model.wasPropertyExplicitlySet("netServicesArchitecture")) { this.netServicesArchitecture(model.getNetServicesArchitecture()); } @@ -6544,6 +6567,20 @@ public DisasterRecoveryConfiguration getRemoteDisasterRecoveryConfiguration() { return remoteDisasterRecoveryConfiguration; } + /** + * List of access types for an Autonomous AI Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessTypes") + private final java.util.List accessTypes; + + /** + * List of access types for an Autonomous AI Database. + * @return the value + **/ + public java.util.List getAccessTypes() { + return accessTypes; + } + /** * Enabling SHARED server architecture enables a database server to allow many client processes to share very few server processes, thereby increasing the number of supported users. * @@ -6936,6 +6973,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.timeDisasterRecoveryRoleChanged)); sb.append(", remoteDisasterRecoveryConfiguration=") .append(String.valueOf(this.remoteDisasterRecoveryConfiguration)); + sb.append(", accessTypes=").append(String.valueOf(this.accessTypes)); sb.append(", netServicesArchitecture=") .append(String.valueOf(this.netServicesArchitecture)); sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); @@ -7148,6 +7186,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.remoteDisasterRecoveryConfiguration, other.remoteDisasterRecoveryConfiguration) + && java.util.Objects.equals(this.accessTypes, other.accessTypes) && java.util.Objects.equals( this.netServicesArchitecture, other.netServicesArchitecture) && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) @@ -7638,6 +7677,7 @@ public int hashCode() { + (this.remoteDisasterRecoveryConfiguration == null ? 43 : this.remoteDisasterRecoveryConfiguration.hashCode()); + result = (result * PRIME) + (this.accessTypes == null ? 43 : this.accessTypes.hashCode()); result = (result * PRIME) + (this.netServicesArchitecture == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java index dee6ff172b7..299488b9fe6 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java @@ -154,6 +154,7 @@ public final class AutonomousDwDatabase extends com.oracle.bmc.http.internal.Exp "disasterRecoveryRegionType", "timeDisasterRecoveryRoleChanged", "remoteDisasterRecoveryConfiguration", + "accessTypes", "netServicesArchitecture", "availabilityDomain", "clusterPlacementGroupId", @@ -294,6 +295,7 @@ public AutonomousDwDatabase( DisasterRecoveryRegionType disasterRecoveryRegionType, java.util.Date timeDisasterRecoveryRoleChanged, DisasterRecoveryConfiguration remoteDisasterRecoveryConfiguration, + java.util.List accessTypes, NetServicesArchitecture netServicesArchitecture, String availabilityDomain, String clusterPlacementGroupId, @@ -433,6 +435,7 @@ public AutonomousDwDatabase( this.disasterRecoveryRegionType = disasterRecoveryRegionType; this.timeDisasterRecoveryRoleChanged = timeDisasterRecoveryRoleChanged; this.remoteDisasterRecoveryConfiguration = remoteDisasterRecoveryConfiguration; + this.accessTypes = accessTypes; this.netServicesArchitecture = netServicesArchitecture; this.availabilityDomain = availabilityDomain; this.clusterPlacementGroupId = clusterPlacementGroupId; @@ -2838,6 +2841,22 @@ public Builder remoteDisasterRecoveryConfiguration( this.__explicitlySet__.add("remoteDisasterRecoveryConfiguration"); return this; } + /** + * List of access types for an Autonomous AI Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessTypes") + private java.util.List accessTypes; + + /** + * List of access types for an Autonomous AI Database. + * @param accessTypes the value to set + * @return this builder + **/ + public Builder accessTypes(java.util.List accessTypes) { + this.accessTypes = accessTypes; + this.__explicitlySet__.add("accessTypes"); + return this; + } /** * Enabling SHARED server architecture enables a database server to allow many client processes to share very few server processes, thereby increasing the number of supported users. * @@ -3094,6 +3113,7 @@ public AutonomousDwDatabase build() { this.disasterRecoveryRegionType, this.timeDisasterRecoveryRoleChanged, this.remoteDisasterRecoveryConfiguration, + this.accessTypes, this.netServicesArchitecture, this.availabilityDomain, this.clusterPlacementGroupId, @@ -3510,6 +3530,9 @@ public Builder copy(AutonomousDwDatabase model) { this.remoteDisasterRecoveryConfiguration( model.getRemoteDisasterRecoveryConfiguration()); } + if (model.wasPropertyExplicitlySet("accessTypes")) { + this.accessTypes(model.getAccessTypes()); + } if (model.wasPropertyExplicitlySet("netServicesArchitecture")) { this.netServicesArchitecture(model.getNetServicesArchitecture()); } @@ -6322,6 +6345,20 @@ public DisasterRecoveryConfiguration getRemoteDisasterRecoveryConfiguration() { return remoteDisasterRecoveryConfiguration; } + /** + * List of access types for an Autonomous AI Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessTypes") + private final java.util.List accessTypes; + + /** + * List of access types for an Autonomous AI Database. + * @return the value + **/ + public java.util.List getAccessTypes() { + return accessTypes; + } + /** * Enabling SHARED server architecture enables a database server to allow many client processes to share very few server processes, thereby increasing the number of supported users. * @@ -6688,6 +6725,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.timeDisasterRecoveryRoleChanged)); sb.append(", remoteDisasterRecoveryConfiguration=") .append(String.valueOf(this.remoteDisasterRecoveryConfiguration)); + sb.append(", accessTypes=").append(String.valueOf(this.accessTypes)); sb.append(", netServicesArchitecture=") .append(String.valueOf(this.netServicesArchitecture)); sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); @@ -6900,6 +6938,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.remoteDisasterRecoveryConfiguration, other.remoteDisasterRecoveryConfiguration) + && java.util.Objects.equals(this.accessTypes, other.accessTypes) && java.util.Objects.equals( this.netServicesArchitecture, other.netServicesArchitecture) && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) @@ -7390,6 +7429,7 @@ public int hashCode() { + (this.remoteDisasterRecoveryConfiguration == null ? 43 : this.remoteDisasterRecoveryConfiguration.hashCode()); + result = (result * PRIME) + (this.accessTypes == null ? 43 : this.accessTypes.hashCode()); result = (result * PRIME) + (this.netServicesArchitecture == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmCluster.java new file mode 100644 index 00000000000..5e225d409fe --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmCluster.java @@ -0,0 +1,1779 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Details of the BaseDB-C@C VM cluster resource. Applies to Base Database Service on Cloud@Customer instances only. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = BaseccVmCluster.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BaseccVmCluster extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "lastPatchHistoryEntryId", + "lifecycleState", + "timeCreated", + "timeUpdated", + "lifecycleDetails", + "availabilityDomain", + "compartmentId", + "databaseEdition", + "nodeCount", + "dbServers", + "cpusEnabled", + "baseInfrastructureId", + "baseVmClusterNetworkId", + "giVersion", + "dataCollectionOptions", + "description", + "displayName", + "sshPublicKeys", + "timeZone", + "clusterName", + "bootStorageSizeInGBs", + "additionalVmStorageSizeInGBs", + "totalStorageSizeInGBs", + "dataStorageSizeInGBs", + "recoStorageSizeInGBs", + "memorySizeInGBs", + "licenseModel", + "freeformTags", + "definedTags", + "systemTags", + "systemVersion", + "vmClusterType", + "cloudAutomationUpdateDetails" + }) + public BaseccVmCluster( + String id, + String lastPatchHistoryEntryId, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String lifecycleDetails, + String availabilityDomain, + String compartmentId, + DatabaseEdition databaseEdition, + Integer nodeCount, + java.util.List dbServers, + Integer cpusEnabled, + String baseInfrastructureId, + String baseVmClusterNetworkId, + String giVersion, + DataCollectionOptions dataCollectionOptions, + String description, + String displayName, + java.util.List sshPublicKeys, + String timeZone, + String clusterName, + Integer bootStorageSizeInGBs, + Integer additionalVmStorageSizeInGBs, + Integer totalStorageSizeInGBs, + Integer dataStorageSizeInGBs, + Integer recoStorageSizeInGBs, + Integer memorySizeInGBs, + LicenseModel licenseModel, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + String systemVersion, + VmClusterType vmClusterType, + CloudAutomationUpdateDetails cloudAutomationUpdateDetails) { + super(); + this.id = id; + this.lastPatchHistoryEntryId = lastPatchHistoryEntryId; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleDetails = lifecycleDetails; + this.availabilityDomain = availabilityDomain; + this.compartmentId = compartmentId; + this.databaseEdition = databaseEdition; + this.nodeCount = nodeCount; + this.dbServers = dbServers; + this.cpusEnabled = cpusEnabled; + this.baseInfrastructureId = baseInfrastructureId; + this.baseVmClusterNetworkId = baseVmClusterNetworkId; + this.giVersion = giVersion; + this.dataCollectionOptions = dataCollectionOptions; + this.description = description; + this.displayName = displayName; + this.sshPublicKeys = sshPublicKeys; + this.timeZone = timeZone; + this.clusterName = clusterName; + this.bootStorageSizeInGBs = bootStorageSizeInGBs; + this.additionalVmStorageSizeInGBs = additionalVmStorageSizeInGBs; + this.totalStorageSizeInGBs = totalStorageSizeInGBs; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.recoStorageSizeInGBs = recoStorageSizeInGBs; + this.memorySizeInGBs = memorySizeInGBs; + this.licenseModel = licenseModel; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.systemVersion = systemVersion; + this.vmClusterType = vmClusterType; + this.cloudAutomationUpdateDetails = cloudAutomationUpdateDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation starts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastPatchHistoryEntryId") + private String lastPatchHistoryEntryId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation starts. + * @param lastPatchHistoryEntryId the value to set + * @return this builder + **/ + public Builder lastPatchHistoryEntryId(String lastPatchHistoryEntryId) { + this.lastPatchHistoryEntryId = lastPatchHistoryEntryId; + this.__explicitlySet__.add("lastPatchHistoryEntryId"); + return this; + } + /** + * The current state of the VM Cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the VM Cluster. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was created. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was updated. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Additional information about the current lifecycle state of the the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state of the the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The name of the availability domain in which the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster is located. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The name of the availability domain in which the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster is located. + * + * @param availabilityDomain the value to set + * @return this builder + **/ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + private DatabaseEdition databaseEdition; + + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + * @param databaseEdition the value to set + * @return this builder + **/ + public Builder databaseEdition(DatabaseEdition databaseEdition) { + this.databaseEdition = databaseEdition; + this.__explicitlySet__.add("databaseEdition"); + return this; + } + /** + * The number of nodes in the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private Integer nodeCount; + + /** + * The number of nodes in the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param nodeCount the value to set + * @return this builder + **/ + public Builder nodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + this.__explicitlySet__.add("nodeCount"); + return this; + } + /** + * List of Base server OCIDs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbServers") + private java.util.List dbServers; + + /** + * List of Base server OCIDs. + * @param dbServers the value to set + * @return this builder + **/ + public Builder dbServers(java.util.List dbServers) { + this.dbServers = dbServers; + this.__explicitlySet__.add("dbServers"); + return this; + } + /** + * Total CPU cores for the BaseDB C@C VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private Integer cpusEnabled; + + /** + * Total CPU cores for the BaseDB C@C VM cluster. + * @param cpusEnabled the value to set + * @return this builder + **/ + public Builder cpusEnabled(Integer cpusEnabled) { + this.cpusEnabled = cpusEnabled; + this.__explicitlySet__.add("cpusEnabled"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Oracle Data Cloud@Customer Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseInfrastructureId") + private String baseInfrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Oracle Data Cloud@Customer Infrastructure. + * @param baseInfrastructureId the value to set + * @return this builder + **/ + public Builder baseInfrastructureId(String baseInfrastructureId) { + this.baseInfrastructureId = baseInfrastructureId; + this.__explicitlySet__.add("baseInfrastructureId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of BaseDB-C@C VM Cluster Network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmClusterNetworkId") + private String baseVmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of BaseDB-C@C VM Cluster Network. + * @param baseVmClusterNetworkId the value to set + * @return this builder + **/ + public Builder baseVmClusterNetworkId(String baseVmClusterNetworkId) { + this.baseVmClusterNetworkId = baseVmClusterNetworkId; + this.__explicitlySet__.add("baseVmClusterNetworkId"); + return this; + } + /** + * A valid Oracle Grid Infrastructure (GI) software version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giVersion") + private String giVersion; + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + * @param giVersion the value to set + * @return this builder + **/ + public Builder giVersion(String giVersion) { + this.giVersion = giVersion; + this.__explicitlySet__.add("giVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataCollectionOptions") + private DataCollectionOptions dataCollectionOptions; + + public Builder dataCollectionOptions(DataCollectionOptions dataCollectionOptions) { + this.dataCollectionOptions = dataCollectionOptions; + this.__explicitlySet__.add("dataCollectionOptions"); + return this; + } + /** + * The description for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private java.util.List sshPublicKeys; + + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param sshPublicKeys the value to set + * @return this builder + **/ + public Builder sshPublicKeys(java.util.List sshPublicKeys) { + this.sshPublicKeys = sshPublicKeys; + this.__explicitlySet__.add("sshPublicKeys"); + return this; + } + /** + * The time zone to use for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. For details, see [Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + /** + * The time zone to use for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. For details, see [Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * + * @param timeZone the value to set + * @return this builder + **/ + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + /** + * The cluster name for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterName") + private String clusterName; + + /** + * The cluster name for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param clusterName the value to set + * @return this builder + **/ + public Builder clusterName(String clusterName) { + this.clusterName = clusterName; + this.__explicitlySet__.add("clusterName"); + return this; + } + /** + * Total boot partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bootStorageSizeInGBs") + private Integer bootStorageSizeInGBs; + + /** + * Total boot partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param bootStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder bootStorageSizeInGBs(Integer bootStorageSizeInGBs) { + this.bootStorageSizeInGBs = bootStorageSizeInGBs; + this.__explicitlySet__.add("bootStorageSizeInGBs"); + return this; + } + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalVmStorageSizeInGBs") + private Integer additionalVmStorageSizeInGBs; + + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param additionalVmStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder additionalVmStorageSizeInGBs(Integer additionalVmStorageSizeInGBs) { + this.additionalVmStorageSizeInGBs = additionalVmStorageSizeInGBs; + this.__explicitlySet__.add("additionalVmStorageSizeInGBs"); + return this; + } + /** + * The total storage allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalStorageSizeInGBs") + private Integer totalStorageSizeInGBs; + + /** + * The total storage allocated in GBs. + * @param totalStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder totalStorageSizeInGBs(Integer totalStorageSizeInGBs) { + this.totalStorageSizeInGBs = totalStorageSizeInGBs; + this.__explicitlySet__.add("totalStorageSizeInGBs"); + return this; + } + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Integer dataStorageSizeInGBs; + + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param dataStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStorageSizeInGBs") + private Integer recoStorageSizeInGBs; + + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param recoStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder recoStorageSizeInGBs(Integer recoStorageSizeInGBs) { + this.recoStorageSizeInGBs = recoStorageSizeInGBs; + this.__explicitlySet__.add("recoStorageSizeInGBs"); + return this; + } + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private Integer memorySizeInGBs; + + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + * @param memorySizeInGBs the value to set + * @return this builder + **/ + public Builder memorySizeInGBs(Integer memorySizeInGBs) { + this.memorySizeInGBs = memorySizeInGBs; + this.__explicitlySet__.add("memorySizeInGBs"); + return this; + } + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + * @param licenseModel the value to set + * @return this builder + **/ + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Operating system version of the image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemVersion") + private String systemVersion; + + /** + * Operating system version of the image. + * @param systemVersion the value to set + * @return this builder + **/ + public Builder systemVersion(String systemVersion) { + this.systemVersion = systemVersion; + this.__explicitlySet__.add("systemVersion"); + return this; + } + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterType") + private VmClusterType vmClusterType; + + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param vmClusterType the value to set + * @return this builder + **/ + public Builder vmClusterType(VmClusterType vmClusterType) { + this.vmClusterType = vmClusterType; + this.__explicitlySet__.add("vmClusterType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutomationUpdateDetails") + private CloudAutomationUpdateDetails cloudAutomationUpdateDetails; + + public Builder cloudAutomationUpdateDetails( + CloudAutomationUpdateDetails cloudAutomationUpdateDetails) { + this.cloudAutomationUpdateDetails = cloudAutomationUpdateDetails; + this.__explicitlySet__.add("cloudAutomationUpdateDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BaseccVmCluster build() { + BaseccVmCluster model = + new BaseccVmCluster( + this.id, + this.lastPatchHistoryEntryId, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.lifecycleDetails, + this.availabilityDomain, + this.compartmentId, + this.databaseEdition, + this.nodeCount, + this.dbServers, + this.cpusEnabled, + this.baseInfrastructureId, + this.baseVmClusterNetworkId, + this.giVersion, + this.dataCollectionOptions, + this.description, + this.displayName, + this.sshPublicKeys, + this.timeZone, + this.clusterName, + this.bootStorageSizeInGBs, + this.additionalVmStorageSizeInGBs, + this.totalStorageSizeInGBs, + this.dataStorageSizeInGBs, + this.recoStorageSizeInGBs, + this.memorySizeInGBs, + this.licenseModel, + this.freeformTags, + this.definedTags, + this.systemTags, + this.systemVersion, + this.vmClusterType, + this.cloudAutomationUpdateDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BaseccVmCluster model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("lastPatchHistoryEntryId")) { + this.lastPatchHistoryEntryId(model.getLastPatchHistoryEntryId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("databaseEdition")) { + this.databaseEdition(model.getDatabaseEdition()); + } + if (model.wasPropertyExplicitlySet("nodeCount")) { + this.nodeCount(model.getNodeCount()); + } + if (model.wasPropertyExplicitlySet("dbServers")) { + this.dbServers(model.getDbServers()); + } + if (model.wasPropertyExplicitlySet("cpusEnabled")) { + this.cpusEnabled(model.getCpusEnabled()); + } + if (model.wasPropertyExplicitlySet("baseInfrastructureId")) { + this.baseInfrastructureId(model.getBaseInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("baseVmClusterNetworkId")) { + this.baseVmClusterNetworkId(model.getBaseVmClusterNetworkId()); + } + if (model.wasPropertyExplicitlySet("giVersion")) { + this.giVersion(model.getGiVersion()); + } + if (model.wasPropertyExplicitlySet("dataCollectionOptions")) { + this.dataCollectionOptions(model.getDataCollectionOptions()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("sshPublicKeys")) { + this.sshPublicKeys(model.getSshPublicKeys()); + } + if (model.wasPropertyExplicitlySet("timeZone")) { + this.timeZone(model.getTimeZone()); + } + if (model.wasPropertyExplicitlySet("clusterName")) { + this.clusterName(model.getClusterName()); + } + if (model.wasPropertyExplicitlySet("bootStorageSizeInGBs")) { + this.bootStorageSizeInGBs(model.getBootStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("additionalVmStorageSizeInGBs")) { + this.additionalVmStorageSizeInGBs(model.getAdditionalVmStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("totalStorageSizeInGBs")) { + this.totalStorageSizeInGBs(model.getTotalStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("recoStorageSizeInGBs")) { + this.recoStorageSizeInGBs(model.getRecoStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("memorySizeInGBs")) { + this.memorySizeInGBs(model.getMemorySizeInGBs()); + } + if (model.wasPropertyExplicitlySet("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("systemVersion")) { + this.systemVersion(model.getSystemVersion()); + } + if (model.wasPropertyExplicitlySet("vmClusterType")) { + this.vmClusterType(model.getVmClusterType()); + } + if (model.wasPropertyExplicitlySet("cloudAutomationUpdateDetails")) { + this.cloudAutomationUpdateDetails(model.getCloudAutomationUpdateDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation starts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastPatchHistoryEntryId") + private final String lastPatchHistoryEntryId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation starts. + * @return the value + **/ + public String getLastPatchHistoryEntryId() { + return lastPatchHistoryEntryId; + } + + /** + * The current state of the VM Cluster. + **/ + public enum LifecycleState { + Provisioning("PROVISIONING"), + Available("AVAILABLE"), + Updating("UPDATING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Failed("FAILED"), + MaintenanceInProgress("MAINTENANCE_IN_PROGRESS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + 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 VM Cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the VM Cluster. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was created. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was updated. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Additional information about the current lifecycle state of the the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state of the the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The name of the availability domain in which the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster is located. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The name of the availability domain in which the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster is located. + * + * @return the value + **/ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + **/ + public enum DatabaseEdition { + StandardEdition("STANDARD_EDITION"), + EnterpriseEdition("ENTERPRISE_EDITION"), + EnterpriseEditionHighPerformance("ENTERPRISE_EDITION_HIGH_PERFORMANCE"), + EnterpriseEditionExtremePerformance("ENTERPRISE_EDITION_EXTREME_PERFORMANCE"), + EnterpriseEditionDeveloper("ENTERPRISE_EDITION_DEVELOPER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseEdition.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseEdition v : DatabaseEdition.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseEdition(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseEdition create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseEdition', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + private final DatabaseEdition databaseEdition; + + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + * @return the value + **/ + public DatabaseEdition getDatabaseEdition() { + return databaseEdition; + } + + /** + * The number of nodes in the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private final Integer nodeCount; + + /** + * The number of nodes in the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public Integer getNodeCount() { + return nodeCount; + } + + /** + * List of Base server OCIDs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbServers") + private final java.util.List dbServers; + + /** + * List of Base server OCIDs. + * @return the value + **/ + public java.util.List getDbServers() { + return dbServers; + } + + /** + * Total CPU cores for the BaseDB C@C VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private final Integer cpusEnabled; + + /** + * Total CPU cores for the BaseDB C@C VM cluster. + * @return the value + **/ + public Integer getCpusEnabled() { + return cpusEnabled; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Oracle Data Cloud@Customer Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseInfrastructureId") + private final String baseInfrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Oracle Data Cloud@Customer Infrastructure. + * @return the value + **/ + public String getBaseInfrastructureId() { + return baseInfrastructureId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of BaseDB-C@C VM Cluster Network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmClusterNetworkId") + private final String baseVmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of BaseDB-C@C VM Cluster Network. + * @return the value + **/ + public String getBaseVmClusterNetworkId() { + return baseVmClusterNetworkId; + } + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giVersion") + private final String giVersion; + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + * @return the value + **/ + public String getGiVersion() { + return giVersion; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataCollectionOptions") + private final DataCollectionOptions dataCollectionOptions; + + public DataCollectionOptions getDataCollectionOptions() { + return dataCollectionOptions; + } + + /** + * The description for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private final java.util.List sshPublicKeys; + + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public java.util.List getSshPublicKeys() { + return sshPublicKeys; + } + + /** + * The time zone to use for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. For details, see [Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private final String timeZone; + + /** + * The time zone to use for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. For details, see [Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * + * @return the value + **/ + public String getTimeZone() { + return timeZone; + } + + /** + * The cluster name for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterName") + private final String clusterName; + + /** + * The cluster name for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public String getClusterName() { + return clusterName; + } + + /** + * Total boot partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bootStorageSizeInGBs") + private final Integer bootStorageSizeInGBs; + + /** + * Total boot partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public Integer getBootStorageSizeInGBs() { + return bootStorageSizeInGBs; + } + + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalVmStorageSizeInGBs") + private final Integer additionalVmStorageSizeInGBs; + + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public Integer getAdditionalVmStorageSizeInGBs() { + return additionalVmStorageSizeInGBs; + } + + /** + * The total storage allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalStorageSizeInGBs") + private final Integer totalStorageSizeInGBs; + + /** + * The total storage allocated in GBs. + * @return the value + **/ + public Integer getTotalStorageSizeInGBs() { + return totalStorageSizeInGBs; + } + + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Integer dataStorageSizeInGBs; + + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public Integer getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStorageSizeInGBs") + private final Integer recoStorageSizeInGBs; + + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public Integer getRecoStorageSizeInGBs() { + return recoStorageSizeInGBs; + } + + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private final Integer memorySizeInGBs; + + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + * @return the value + **/ + public Integer getMemorySizeInGBs() { + return memorySizeInGBs; + } + + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + **/ + public enum LicenseModel { + LicenseIncluded("LICENSE_INCLUDED"), + BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LicenseModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LicenseModel v : LicenseModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LicenseModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LicenseModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LicenseModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private final LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + * @return the value + **/ + public LicenseModel getLicenseModel() { + return licenseModel; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * Operating system version of the image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemVersion") + private final String systemVersion; + + /** + * Operating system version of the image. + * @return the value + **/ + public String getSystemVersion() { + return systemVersion; + } + + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + public enum VmClusterType { + Regular("REGULAR"), + Developer("DEVELOPER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(VmClusterType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VmClusterType v : VmClusterType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + VmClusterType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VmClusterType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'VmClusterType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterType") + private final VmClusterType vmClusterType; + + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public VmClusterType getVmClusterType() { + return vmClusterType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutomationUpdateDetails") + private final CloudAutomationUpdateDetails cloudAutomationUpdateDetails; + + public CloudAutomationUpdateDetails getCloudAutomationUpdateDetails() { + return cloudAutomationUpdateDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BaseccVmCluster("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", lastPatchHistoryEntryId=") + .append(String.valueOf(this.lastPatchHistoryEntryId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", databaseEdition=").append(String.valueOf(this.databaseEdition)); + sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); + sb.append(", dbServers=").append(String.valueOf(this.dbServers)); + sb.append(", cpusEnabled=").append(String.valueOf(this.cpusEnabled)); + sb.append(", baseInfrastructureId=").append(String.valueOf(this.baseInfrastructureId)); + sb.append(", baseVmClusterNetworkId=").append(String.valueOf(this.baseVmClusterNetworkId)); + sb.append(", giVersion=").append(String.valueOf(this.giVersion)); + sb.append(", dataCollectionOptions=").append(String.valueOf(this.dataCollectionOptions)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", sshPublicKeys=").append(String.valueOf(this.sshPublicKeys)); + sb.append(", timeZone=").append(String.valueOf(this.timeZone)); + sb.append(", clusterName=").append(String.valueOf(this.clusterName)); + sb.append(", bootStorageSizeInGBs=").append(String.valueOf(this.bootStorageSizeInGBs)); + sb.append(", additionalVmStorageSizeInGBs=") + .append(String.valueOf(this.additionalVmStorageSizeInGBs)); + sb.append(", totalStorageSizeInGBs=").append(String.valueOf(this.totalStorageSizeInGBs)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", recoStorageSizeInGBs=").append(String.valueOf(this.recoStorageSizeInGBs)); + sb.append(", memorySizeInGBs=").append(String.valueOf(this.memorySizeInGBs)); + sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", systemVersion=").append(String.valueOf(this.systemVersion)); + sb.append(", vmClusterType=").append(String.valueOf(this.vmClusterType)); + sb.append(", cloudAutomationUpdateDetails=") + .append(String.valueOf(this.cloudAutomationUpdateDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BaseccVmCluster)) { + return false; + } + + BaseccVmCluster other = (BaseccVmCluster) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals( + this.lastPatchHistoryEntryId, other.lastPatchHistoryEntryId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.databaseEdition, other.databaseEdition) + && java.util.Objects.equals(this.nodeCount, other.nodeCount) + && java.util.Objects.equals(this.dbServers, other.dbServers) + && java.util.Objects.equals(this.cpusEnabled, other.cpusEnabled) + && java.util.Objects.equals(this.baseInfrastructureId, other.baseInfrastructureId) + && java.util.Objects.equals( + this.baseVmClusterNetworkId, other.baseVmClusterNetworkId) + && java.util.Objects.equals(this.giVersion, other.giVersion) + && java.util.Objects.equals(this.dataCollectionOptions, other.dataCollectionOptions) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sshPublicKeys, other.sshPublicKeys) + && java.util.Objects.equals(this.timeZone, other.timeZone) + && java.util.Objects.equals(this.clusterName, other.clusterName) + && java.util.Objects.equals(this.bootStorageSizeInGBs, other.bootStorageSizeInGBs) + && java.util.Objects.equals( + this.additionalVmStorageSizeInGBs, other.additionalVmStorageSizeInGBs) + && java.util.Objects.equals(this.totalStorageSizeInGBs, other.totalStorageSizeInGBs) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.recoStorageSizeInGBs, other.recoStorageSizeInGBs) + && java.util.Objects.equals(this.memorySizeInGBs, other.memorySizeInGBs) + && java.util.Objects.equals(this.licenseModel, other.licenseModel) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.systemVersion, other.systemVersion) + && java.util.Objects.equals(this.vmClusterType, other.vmClusterType) + && java.util.Objects.equals( + this.cloudAutomationUpdateDetails, other.cloudAutomationUpdateDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.lastPatchHistoryEntryId == null + ? 43 + : this.lastPatchHistoryEntryId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.databaseEdition == null ? 43 : this.databaseEdition.hashCode()); + result = (result * PRIME) + (this.nodeCount == null ? 43 : this.nodeCount.hashCode()); + result = (result * PRIME) + (this.dbServers == null ? 43 : this.dbServers.hashCode()); + result = (result * PRIME) + (this.cpusEnabled == null ? 43 : this.cpusEnabled.hashCode()); + result = + (result * PRIME) + + (this.baseInfrastructureId == null + ? 43 + : this.baseInfrastructureId.hashCode()); + result = + (result * PRIME) + + (this.baseVmClusterNetworkId == null + ? 43 + : this.baseVmClusterNetworkId.hashCode()); + result = (result * PRIME) + (this.giVersion == null ? 43 : this.giVersion.hashCode()); + result = + (result * PRIME) + + (this.dataCollectionOptions == null + ? 43 + : this.dataCollectionOptions.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.sshPublicKeys == null ? 43 : this.sshPublicKeys.hashCode()); + result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); + result = (result * PRIME) + (this.clusterName == null ? 43 : this.clusterName.hashCode()); + result = + (result * PRIME) + + (this.bootStorageSizeInGBs == null + ? 43 + : this.bootStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.additionalVmStorageSizeInGBs == null + ? 43 + : this.additionalVmStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.totalStorageSizeInGBs == null + ? 43 + : this.totalStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.recoStorageSizeInGBs == null + ? 43 + : this.recoStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.memorySizeInGBs == null ? 43 : this.memorySizeInGBs.hashCode()); + result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.systemVersion == null ? 43 : this.systemVersion.hashCode()); + result = + (result * PRIME) + + (this.vmClusterType == null ? 43 : this.vmClusterType.hashCode()); + result = + (result * PRIME) + + (this.cloudAutomationUpdateDetails == null + ? 43 + : this.cloudAutomationUpdateDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterSummary.java new file mode 100644 index 00000000000..1e22bbc926d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterSummary.java @@ -0,0 +1,1782 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Details of the Base Cloud@Customer VM Cluster. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BaseccVmClusterSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BaseccVmClusterSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "lastPatchHistoryEntryId", + "lifecycleState", + "timeCreated", + "timeUpdated", + "lifecycleDetails", + "availabilityDomain", + "compartmentId", + "databaseEdition", + "nodeCount", + "dbServers", + "cpusEnabled", + "baseInfrastructureId", + "baseVmClusterNetworkId", + "giVersion", + "dataCollectionOptions", + "description", + "displayName", + "sshPublicKeys", + "timeZone", + "clusterName", + "bootStorageSizeInGBs", + "additionalVmStorageSizeInGBs", + "totalStorageSizeInGBs", + "dataStorageSizeInGBs", + "recoStorageSizeInGBs", + "memorySizeInGBs", + "licenseModel", + "freeformTags", + "definedTags", + "systemTags", + "systemVersion", + "vmClusterType", + "cloudAutomationUpdateDetails" + }) + public BaseccVmClusterSummary( + String id, + String lastPatchHistoryEntryId, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String lifecycleDetails, + String availabilityDomain, + String compartmentId, + DatabaseEdition databaseEdition, + Integer nodeCount, + java.util.List dbServers, + Integer cpusEnabled, + String baseInfrastructureId, + String baseVmClusterNetworkId, + String giVersion, + DataCollectionOptions dataCollectionOptions, + String description, + String displayName, + java.util.List sshPublicKeys, + String timeZone, + String clusterName, + Integer bootStorageSizeInGBs, + Integer additionalVmStorageSizeInGBs, + Integer totalStorageSizeInGBs, + Integer dataStorageSizeInGBs, + Integer recoStorageSizeInGBs, + Integer memorySizeInGBs, + LicenseModel licenseModel, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + String systemVersion, + VmClusterType vmClusterType, + CloudAutomationUpdateDetails cloudAutomationUpdateDetails) { + super(); + this.id = id; + this.lastPatchHistoryEntryId = lastPatchHistoryEntryId; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleDetails = lifecycleDetails; + this.availabilityDomain = availabilityDomain; + this.compartmentId = compartmentId; + this.databaseEdition = databaseEdition; + this.nodeCount = nodeCount; + this.dbServers = dbServers; + this.cpusEnabled = cpusEnabled; + this.baseInfrastructureId = baseInfrastructureId; + this.baseVmClusterNetworkId = baseVmClusterNetworkId; + this.giVersion = giVersion; + this.dataCollectionOptions = dataCollectionOptions; + this.description = description; + this.displayName = displayName; + this.sshPublicKeys = sshPublicKeys; + this.timeZone = timeZone; + this.clusterName = clusterName; + this.bootStorageSizeInGBs = bootStorageSizeInGBs; + this.additionalVmStorageSizeInGBs = additionalVmStorageSizeInGBs; + this.totalStorageSizeInGBs = totalStorageSizeInGBs; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.recoStorageSizeInGBs = recoStorageSizeInGBs; + this.memorySizeInGBs = memorySizeInGBs; + this.licenseModel = licenseModel; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.systemVersion = systemVersion; + this.vmClusterType = vmClusterType; + this.cloudAutomationUpdateDetails = cloudAutomationUpdateDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation starts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastPatchHistoryEntryId") + private String lastPatchHistoryEntryId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation starts. + * @param lastPatchHistoryEntryId the value to set + * @return this builder + **/ + public Builder lastPatchHistoryEntryId(String lastPatchHistoryEntryId) { + this.lastPatchHistoryEntryId = lastPatchHistoryEntryId; + this.__explicitlySet__.add("lastPatchHistoryEntryId"); + return this; + } + /** + * The current state of the VM Cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the VM Cluster. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was created. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was updated. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Additional information about the current lifecycle state of the the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state of the the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The name of the availability domain in which the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster is located. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The name of the availability domain in which the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster is located. + * + * @param availabilityDomain the value to set + * @return this builder + **/ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + private DatabaseEdition databaseEdition; + + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + * @param databaseEdition the value to set + * @return this builder + **/ + public Builder databaseEdition(DatabaseEdition databaseEdition) { + this.databaseEdition = databaseEdition; + this.__explicitlySet__.add("databaseEdition"); + return this; + } + /** + * The number of nodes in the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private Integer nodeCount; + + /** + * The number of nodes in the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param nodeCount the value to set + * @return this builder + **/ + public Builder nodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + this.__explicitlySet__.add("nodeCount"); + return this; + } + /** + * List of Base server OCIDs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbServers") + private java.util.List dbServers; + + /** + * List of Base server OCIDs. + * @param dbServers the value to set + * @return this builder + **/ + public Builder dbServers(java.util.List dbServers) { + this.dbServers = dbServers; + this.__explicitlySet__.add("dbServers"); + return this; + } + /** + * Total CPU cores for the BaseDB C@C VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private Integer cpusEnabled; + + /** + * Total CPU cores for the BaseDB C@C VM cluster. + * @param cpusEnabled the value to set + * @return this builder + **/ + public Builder cpusEnabled(Integer cpusEnabled) { + this.cpusEnabled = cpusEnabled; + this.__explicitlySet__.add("cpusEnabled"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Oracle Data Cloud@Customer Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseInfrastructureId") + private String baseInfrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Oracle Data Cloud@Customer Infrastructure. + * @param baseInfrastructureId the value to set + * @return this builder + **/ + public Builder baseInfrastructureId(String baseInfrastructureId) { + this.baseInfrastructureId = baseInfrastructureId; + this.__explicitlySet__.add("baseInfrastructureId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of BaseDB-C@C VM Cluster Network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmClusterNetworkId") + private String baseVmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of BaseDB-C@C VM Cluster Network. + * @param baseVmClusterNetworkId the value to set + * @return this builder + **/ + public Builder baseVmClusterNetworkId(String baseVmClusterNetworkId) { + this.baseVmClusterNetworkId = baseVmClusterNetworkId; + this.__explicitlySet__.add("baseVmClusterNetworkId"); + return this; + } + /** + * A valid Oracle Grid Infrastructure (GI) software version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giVersion") + private String giVersion; + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + * @param giVersion the value to set + * @return this builder + **/ + public Builder giVersion(String giVersion) { + this.giVersion = giVersion; + this.__explicitlySet__.add("giVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataCollectionOptions") + private DataCollectionOptions dataCollectionOptions; + + public Builder dataCollectionOptions(DataCollectionOptions dataCollectionOptions) { + this.dataCollectionOptions = dataCollectionOptions; + this.__explicitlySet__.add("dataCollectionOptions"); + return this; + } + /** + * The description for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private java.util.List sshPublicKeys; + + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param sshPublicKeys the value to set + * @return this builder + **/ + public Builder sshPublicKeys(java.util.List sshPublicKeys) { + this.sshPublicKeys = sshPublicKeys; + this.__explicitlySet__.add("sshPublicKeys"); + return this; + } + /** + * The time zone to use for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. For details, see [Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + /** + * The time zone to use for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. For details, see [Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * + * @param timeZone the value to set + * @return this builder + **/ + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + /** + * The cluster name for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterName") + private String clusterName; + + /** + * The cluster name for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param clusterName the value to set + * @return this builder + **/ + public Builder clusterName(String clusterName) { + this.clusterName = clusterName; + this.__explicitlySet__.add("clusterName"); + return this; + } + /** + * Total boot partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bootStorageSizeInGBs") + private Integer bootStorageSizeInGBs; + + /** + * Total boot partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param bootStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder bootStorageSizeInGBs(Integer bootStorageSizeInGBs) { + this.bootStorageSizeInGBs = bootStorageSizeInGBs; + this.__explicitlySet__.add("bootStorageSizeInGBs"); + return this; + } + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalVmStorageSizeInGBs") + private Integer additionalVmStorageSizeInGBs; + + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param additionalVmStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder additionalVmStorageSizeInGBs(Integer additionalVmStorageSizeInGBs) { + this.additionalVmStorageSizeInGBs = additionalVmStorageSizeInGBs; + this.__explicitlySet__.add("additionalVmStorageSizeInGBs"); + return this; + } + /** + * The total storage allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalStorageSizeInGBs") + private Integer totalStorageSizeInGBs; + + /** + * The total storage allocated in GBs. + * @param totalStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder totalStorageSizeInGBs(Integer totalStorageSizeInGBs) { + this.totalStorageSizeInGBs = totalStorageSizeInGBs; + this.__explicitlySet__.add("totalStorageSizeInGBs"); + return this; + } + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Integer dataStorageSizeInGBs; + + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param dataStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStorageSizeInGBs") + private Integer recoStorageSizeInGBs; + + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param recoStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder recoStorageSizeInGBs(Integer recoStorageSizeInGBs) { + this.recoStorageSizeInGBs = recoStorageSizeInGBs; + this.__explicitlySet__.add("recoStorageSizeInGBs"); + return this; + } + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private Integer memorySizeInGBs; + + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + * @param memorySizeInGBs the value to set + * @return this builder + **/ + public Builder memorySizeInGBs(Integer memorySizeInGBs) { + this.memorySizeInGBs = memorySizeInGBs; + this.__explicitlySet__.add("memorySizeInGBs"); + return this; + } + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + * @param licenseModel the value to set + * @return this builder + **/ + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Operating system version of the image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemVersion") + private String systemVersion; + + /** + * Operating system version of the image. + * @param systemVersion the value to set + * @return this builder + **/ + public Builder systemVersion(String systemVersion) { + this.systemVersion = systemVersion; + this.__explicitlySet__.add("systemVersion"); + return this; + } + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterType") + private VmClusterType vmClusterType; + + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param vmClusterType the value to set + * @return this builder + **/ + public Builder vmClusterType(VmClusterType vmClusterType) { + this.vmClusterType = vmClusterType; + this.__explicitlySet__.add("vmClusterType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutomationUpdateDetails") + private CloudAutomationUpdateDetails cloudAutomationUpdateDetails; + + public Builder cloudAutomationUpdateDetails( + CloudAutomationUpdateDetails cloudAutomationUpdateDetails) { + this.cloudAutomationUpdateDetails = cloudAutomationUpdateDetails; + this.__explicitlySet__.add("cloudAutomationUpdateDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BaseccVmClusterSummary build() { + BaseccVmClusterSummary model = + new BaseccVmClusterSummary( + this.id, + this.lastPatchHistoryEntryId, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.lifecycleDetails, + this.availabilityDomain, + this.compartmentId, + this.databaseEdition, + this.nodeCount, + this.dbServers, + this.cpusEnabled, + this.baseInfrastructureId, + this.baseVmClusterNetworkId, + this.giVersion, + this.dataCollectionOptions, + this.description, + this.displayName, + this.sshPublicKeys, + this.timeZone, + this.clusterName, + this.bootStorageSizeInGBs, + this.additionalVmStorageSizeInGBs, + this.totalStorageSizeInGBs, + this.dataStorageSizeInGBs, + this.recoStorageSizeInGBs, + this.memorySizeInGBs, + this.licenseModel, + this.freeformTags, + this.definedTags, + this.systemTags, + this.systemVersion, + this.vmClusterType, + this.cloudAutomationUpdateDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BaseccVmClusterSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("lastPatchHistoryEntryId")) { + this.lastPatchHistoryEntryId(model.getLastPatchHistoryEntryId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("databaseEdition")) { + this.databaseEdition(model.getDatabaseEdition()); + } + if (model.wasPropertyExplicitlySet("nodeCount")) { + this.nodeCount(model.getNodeCount()); + } + if (model.wasPropertyExplicitlySet("dbServers")) { + this.dbServers(model.getDbServers()); + } + if (model.wasPropertyExplicitlySet("cpusEnabled")) { + this.cpusEnabled(model.getCpusEnabled()); + } + if (model.wasPropertyExplicitlySet("baseInfrastructureId")) { + this.baseInfrastructureId(model.getBaseInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("baseVmClusterNetworkId")) { + this.baseVmClusterNetworkId(model.getBaseVmClusterNetworkId()); + } + if (model.wasPropertyExplicitlySet("giVersion")) { + this.giVersion(model.getGiVersion()); + } + if (model.wasPropertyExplicitlySet("dataCollectionOptions")) { + this.dataCollectionOptions(model.getDataCollectionOptions()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("sshPublicKeys")) { + this.sshPublicKeys(model.getSshPublicKeys()); + } + if (model.wasPropertyExplicitlySet("timeZone")) { + this.timeZone(model.getTimeZone()); + } + if (model.wasPropertyExplicitlySet("clusterName")) { + this.clusterName(model.getClusterName()); + } + if (model.wasPropertyExplicitlySet("bootStorageSizeInGBs")) { + this.bootStorageSizeInGBs(model.getBootStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("additionalVmStorageSizeInGBs")) { + this.additionalVmStorageSizeInGBs(model.getAdditionalVmStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("totalStorageSizeInGBs")) { + this.totalStorageSizeInGBs(model.getTotalStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("recoStorageSizeInGBs")) { + this.recoStorageSizeInGBs(model.getRecoStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("memorySizeInGBs")) { + this.memorySizeInGBs(model.getMemorySizeInGBs()); + } + if (model.wasPropertyExplicitlySet("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("systemVersion")) { + this.systemVersion(model.getSystemVersion()); + } + if (model.wasPropertyExplicitlySet("vmClusterType")) { + this.vmClusterType(model.getVmClusterType()); + } + if (model.wasPropertyExplicitlySet("cloudAutomationUpdateDetails")) { + this.cloudAutomationUpdateDetails(model.getCloudAutomationUpdateDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation starts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastPatchHistoryEntryId") + private final String lastPatchHistoryEntryId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation starts. + * @return the value + **/ + public String getLastPatchHistoryEntryId() { + return lastPatchHistoryEntryId; + } + + /** + * The current state of the VM Cluster. + **/ + public enum LifecycleState { + Provisioning("PROVISIONING"), + Available("AVAILABLE"), + Updating("UPDATING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Failed("FAILED"), + MaintenanceInProgress("MAINTENANCE_IN_PROGRESS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + 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 VM Cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the VM Cluster. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was created. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time that the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster was updated. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Additional information about the current lifecycle state of the the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state of the the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The name of the availability domain in which the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster is located. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The name of the availability domain in which the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster is located. + * + * @return the value + **/ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + **/ + public enum DatabaseEdition { + StandardEdition("STANDARD_EDITION"), + EnterpriseEdition("ENTERPRISE_EDITION"), + EnterpriseEditionHighPerformance("ENTERPRISE_EDITION_HIGH_PERFORMANCE"), + EnterpriseEditionExtremePerformance("ENTERPRISE_EDITION_EXTREME_PERFORMANCE"), + EnterpriseEditionDeveloper("ENTERPRISE_EDITION_DEVELOPER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseEdition.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseEdition v : DatabaseEdition.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseEdition(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseEdition create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseEdition', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + private final DatabaseEdition databaseEdition; + + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + * @return the value + **/ + public DatabaseEdition getDatabaseEdition() { + return databaseEdition; + } + + /** + * The number of nodes in the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private final Integer nodeCount; + + /** + * The number of nodes in the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public Integer getNodeCount() { + return nodeCount; + } + + /** + * List of Base server OCIDs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbServers") + private final java.util.List dbServers; + + /** + * List of Base server OCIDs. + * @return the value + **/ + public java.util.List getDbServers() { + return dbServers; + } + + /** + * Total CPU cores for the BaseDB C@C VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private final Integer cpusEnabled; + + /** + * Total CPU cores for the BaseDB C@C VM cluster. + * @return the value + **/ + public Integer getCpusEnabled() { + return cpusEnabled; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Oracle Data Cloud@Customer Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseInfrastructureId") + private final String baseInfrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Oracle Data Cloud@Customer Infrastructure. + * @return the value + **/ + public String getBaseInfrastructureId() { + return baseInfrastructureId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of BaseDB-C@C VM Cluster Network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmClusterNetworkId") + private final String baseVmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of BaseDB-C@C VM Cluster Network. + * @return the value + **/ + public String getBaseVmClusterNetworkId() { + return baseVmClusterNetworkId; + } + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giVersion") + private final String giVersion; + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + * @return the value + **/ + public String getGiVersion() { + return giVersion; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataCollectionOptions") + private final DataCollectionOptions dataCollectionOptions; + + public DataCollectionOptions getDataCollectionOptions() { + return dataCollectionOptions; + } + + /** + * The description for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private final java.util.List sshPublicKeys; + + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public java.util.List getSshPublicKeys() { + return sshPublicKeys; + } + + /** + * The time zone to use for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. For details, see [Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private final String timeZone; + + /** + * The time zone to use for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. For details, see [Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * + * @return the value + **/ + public String getTimeZone() { + return timeZone; + } + + /** + * The cluster name for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterName") + private final String clusterName; + + /** + * The cluster name for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public String getClusterName() { + return clusterName; + } + + /** + * Total boot partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bootStorageSizeInGBs") + private final Integer bootStorageSizeInGBs; + + /** + * Total boot partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public Integer getBootStorageSizeInGBs() { + return bootStorageSizeInGBs; + } + + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalVmStorageSizeInGBs") + private final Integer additionalVmStorageSizeInGBs; + + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public Integer getAdditionalVmStorageSizeInGBs() { + return additionalVmStorageSizeInGBs; + } + + /** + * The total storage allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalStorageSizeInGBs") + private final Integer totalStorageSizeInGBs; + + /** + * The total storage allocated in GBs. + * @return the value + **/ + public Integer getTotalStorageSizeInGBs() { + return totalStorageSizeInGBs; + } + + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Integer dataStorageSizeInGBs; + + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public Integer getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStorageSizeInGBs") + private final Integer recoStorageSizeInGBs; + + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public Integer getRecoStorageSizeInGBs() { + return recoStorageSizeInGBs; + } + + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private final Integer memorySizeInGBs; + + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + * @return the value + **/ + public Integer getMemorySizeInGBs() { + return memorySizeInGBs; + } + + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + **/ + public enum LicenseModel { + LicenseIncluded("LICENSE_INCLUDED"), + BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LicenseModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LicenseModel v : LicenseModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LicenseModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LicenseModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LicenseModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private final LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + * @return the value + **/ + public LicenseModel getLicenseModel() { + return licenseModel; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * Operating system version of the image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemVersion") + private final String systemVersion; + + /** + * Operating system version of the image. + * @return the value + **/ + public String getSystemVersion() { + return systemVersion; + } + + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + public enum VmClusterType { + Regular("REGULAR"), + Developer("DEVELOPER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(VmClusterType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VmClusterType v : VmClusterType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + VmClusterType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VmClusterType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'VmClusterType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterType") + private final VmClusterType vmClusterType; + + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public VmClusterType getVmClusterType() { + return vmClusterType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutomationUpdateDetails") + private final CloudAutomationUpdateDetails cloudAutomationUpdateDetails; + + public CloudAutomationUpdateDetails getCloudAutomationUpdateDetails() { + return cloudAutomationUpdateDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BaseccVmClusterSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", lastPatchHistoryEntryId=") + .append(String.valueOf(this.lastPatchHistoryEntryId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", databaseEdition=").append(String.valueOf(this.databaseEdition)); + sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); + sb.append(", dbServers=").append(String.valueOf(this.dbServers)); + sb.append(", cpusEnabled=").append(String.valueOf(this.cpusEnabled)); + sb.append(", baseInfrastructureId=").append(String.valueOf(this.baseInfrastructureId)); + sb.append(", baseVmClusterNetworkId=").append(String.valueOf(this.baseVmClusterNetworkId)); + sb.append(", giVersion=").append(String.valueOf(this.giVersion)); + sb.append(", dataCollectionOptions=").append(String.valueOf(this.dataCollectionOptions)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", sshPublicKeys=").append(String.valueOf(this.sshPublicKeys)); + sb.append(", timeZone=").append(String.valueOf(this.timeZone)); + sb.append(", clusterName=").append(String.valueOf(this.clusterName)); + sb.append(", bootStorageSizeInGBs=").append(String.valueOf(this.bootStorageSizeInGBs)); + sb.append(", additionalVmStorageSizeInGBs=") + .append(String.valueOf(this.additionalVmStorageSizeInGBs)); + sb.append(", totalStorageSizeInGBs=").append(String.valueOf(this.totalStorageSizeInGBs)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", recoStorageSizeInGBs=").append(String.valueOf(this.recoStorageSizeInGBs)); + sb.append(", memorySizeInGBs=").append(String.valueOf(this.memorySizeInGBs)); + sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", systemVersion=").append(String.valueOf(this.systemVersion)); + sb.append(", vmClusterType=").append(String.valueOf(this.vmClusterType)); + sb.append(", cloudAutomationUpdateDetails=") + .append(String.valueOf(this.cloudAutomationUpdateDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BaseccVmClusterSummary)) { + return false; + } + + BaseccVmClusterSummary other = (BaseccVmClusterSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals( + this.lastPatchHistoryEntryId, other.lastPatchHistoryEntryId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.databaseEdition, other.databaseEdition) + && java.util.Objects.equals(this.nodeCount, other.nodeCount) + && java.util.Objects.equals(this.dbServers, other.dbServers) + && java.util.Objects.equals(this.cpusEnabled, other.cpusEnabled) + && java.util.Objects.equals(this.baseInfrastructureId, other.baseInfrastructureId) + && java.util.Objects.equals( + this.baseVmClusterNetworkId, other.baseVmClusterNetworkId) + && java.util.Objects.equals(this.giVersion, other.giVersion) + && java.util.Objects.equals(this.dataCollectionOptions, other.dataCollectionOptions) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sshPublicKeys, other.sshPublicKeys) + && java.util.Objects.equals(this.timeZone, other.timeZone) + && java.util.Objects.equals(this.clusterName, other.clusterName) + && java.util.Objects.equals(this.bootStorageSizeInGBs, other.bootStorageSizeInGBs) + && java.util.Objects.equals( + this.additionalVmStorageSizeInGBs, other.additionalVmStorageSizeInGBs) + && java.util.Objects.equals(this.totalStorageSizeInGBs, other.totalStorageSizeInGBs) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.recoStorageSizeInGBs, other.recoStorageSizeInGBs) + && java.util.Objects.equals(this.memorySizeInGBs, other.memorySizeInGBs) + && java.util.Objects.equals(this.licenseModel, other.licenseModel) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.systemVersion, other.systemVersion) + && java.util.Objects.equals(this.vmClusterType, other.vmClusterType) + && java.util.Objects.equals( + this.cloudAutomationUpdateDetails, other.cloudAutomationUpdateDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.lastPatchHistoryEntryId == null + ? 43 + : this.lastPatchHistoryEntryId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.databaseEdition == null ? 43 : this.databaseEdition.hashCode()); + result = (result * PRIME) + (this.nodeCount == null ? 43 : this.nodeCount.hashCode()); + result = (result * PRIME) + (this.dbServers == null ? 43 : this.dbServers.hashCode()); + result = (result * PRIME) + (this.cpusEnabled == null ? 43 : this.cpusEnabled.hashCode()); + result = + (result * PRIME) + + (this.baseInfrastructureId == null + ? 43 + : this.baseInfrastructureId.hashCode()); + result = + (result * PRIME) + + (this.baseVmClusterNetworkId == null + ? 43 + : this.baseVmClusterNetworkId.hashCode()); + result = (result * PRIME) + (this.giVersion == null ? 43 : this.giVersion.hashCode()); + result = + (result * PRIME) + + (this.dataCollectionOptions == null + ? 43 + : this.dataCollectionOptions.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.sshPublicKeys == null ? 43 : this.sshPublicKeys.hashCode()); + result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); + result = (result * PRIME) + (this.clusterName == null ? 43 : this.clusterName.hashCode()); + result = + (result * PRIME) + + (this.bootStorageSizeInGBs == null + ? 43 + : this.bootStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.additionalVmStorageSizeInGBs == null + ? 43 + : this.additionalVmStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.totalStorageSizeInGBs == null + ? 43 + : this.totalStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.recoStorageSizeInGBs == null + ? 43 + : this.recoStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.memorySizeInGBs == null ? 43 : this.memorySizeInGBs.hashCode()); + result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.systemVersion == null ? 43 : this.systemVersion.hashCode()); + result = + (result * PRIME) + + (this.vmClusterType == null ? 43 : this.vmClusterType.hashCode()); + result = + (result * PRIME) + + (this.cloudAutomationUpdateDetails == null + ? 43 + : this.cloudAutomationUpdateDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdate.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdate.java new file mode 100644 index 00000000000..e91200267f7 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdate.java @@ -0,0 +1,667 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Maintenance update details for a BaseDB-C@C VM cluster. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BaseccVmClusterUpdate.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BaseccVmClusterUpdate + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "description", + "lastAction", + "availableActions", + "updateType", + "lifecycleDetails", + "lifecycleState", + "timeReleased", + "version" + }) + public BaseccVmClusterUpdate( + String id, + String description, + LastAction lastAction, + java.util.List availableActions, + UpdateType updateType, + String lifecycleDetails, + LifecycleState lifecycleState, + java.util.Date timeReleased, + String version) { + super(); + this.id = id; + this.description = description; + this.lastAction = lastAction; + this.availableActions = availableActions; + this.updateType = updateType; + this.lifecycleDetails = lifecycleDetails; + this.lifecycleState = lifecycleState; + this.timeReleased = timeReleased; + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Details of the maintenance update package. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Details of the maintenance update package. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The previous update action performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastAction") + private LastAction lastAction; + + /** + * The previous update action performed. + * @param lastAction the value to set + * @return this builder + **/ + public Builder lastAction(LastAction lastAction) { + this.lastAction = lastAction; + this.__explicitlySet__.add("lastAction"); + return this; + } + /** + * The possible actions performed by the update operation on the infrastructure components. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private java.util.List availableActions; + + /** + * The possible actions performed by the update operation on the infrastructure components. + * @param availableActions the value to set + * @return this builder + **/ + public Builder availableActions(java.util.List availableActions) { + this.availableActions = availableActions; + this.__explicitlySet__.add("availableActions"); + return this; + } + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateType") + private UpdateType updateType; + + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + * @param updateType the value to set + * @return this builder + **/ + public Builder updateType(UpdateType updateType) { + this.updateType = updateType; + this.__explicitlySet__.add("updateType"); + return this; + } + /** + * Descriptive text providing additional details about the lifecycle state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Descriptive text providing additional details about the lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The current state of the maintenance update. Dependent on value of {@code lastAction}. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the maintenance update. Dependent on value of {@code lastAction}. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The date and time the maintenance update was released. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeReleased") + private java.util.Date timeReleased; + + /** + * The date and time the maintenance update was released. + * @param timeReleased the value to set + * @return this builder + **/ + public Builder timeReleased(java.util.Date timeReleased) { + this.timeReleased = timeReleased; + this.__explicitlySet__.add("timeReleased"); + return this; + } + /** + * The version of the maintenance update package. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of the maintenance update package. + * @param version the value to set + * @return this builder + **/ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BaseccVmClusterUpdate build() { + BaseccVmClusterUpdate model = + new BaseccVmClusterUpdate( + this.id, + this.description, + this.lastAction, + this.availableActions, + this.updateType, + this.lifecycleDetails, + this.lifecycleState, + this.timeReleased, + this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BaseccVmClusterUpdate model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lastAction")) { + this.lastAction(model.getLastAction()); + } + if (model.wasPropertyExplicitlySet("availableActions")) { + this.availableActions(model.getAvailableActions()); + } + if (model.wasPropertyExplicitlySet("updateType")) { + this.updateType(model.getUpdateType()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeReleased")) { + this.timeReleased(model.getTimeReleased()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Details of the maintenance update package. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Details of the maintenance update package. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The previous update action performed. + **/ + public enum LastAction { + RollingApply("ROLLING_APPLY"), + Precheck("PRECHECK"), + Rollback("ROLLBACK"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LastAction.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LastAction v : LastAction.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LastAction(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LastAction create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LastAction', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The previous update action performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastAction") + private final LastAction lastAction; + + /** + * The previous update action performed. + * @return the value + **/ + public LastAction getLastAction() { + return lastAction; + } + + /** + **/ + public enum AvailableActions { + RollingApply("ROLLING_APPLY"), + Precheck("PRECHECK"), + Rollback("ROLLBACK"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AvailableActions.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AvailableActions v : AvailableActions.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AvailableActions(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AvailableActions create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AvailableActions', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The possible actions performed by the update operation on the infrastructure components. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private final java.util.List availableActions; + + /** + * The possible actions performed by the update operation on the infrastructure components. + * @return the value + **/ + public java.util.List getAvailableActions() { + return availableActions; + } + + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + **/ + public enum UpdateType { + GiUpgrade("GI_UPGRADE"), + GiPatch("GI_PATCH"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateType v : UpdateType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UpdateType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UpdateType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateType") + private final UpdateType updateType; + + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + * @return the value + **/ + public UpdateType getUpdateType() { + return updateType; + } + + /** + * Descriptive text providing additional details about the lifecycle state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Descriptive text providing additional details about the lifecycle state. + * + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The current state of the maintenance update. Dependent on value of {@code lastAction}. + **/ + public enum LifecycleState { + Available("AVAILABLE"), + Success("SUCCESS"), + InProgress("IN_PROGRESS"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + 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 maintenance update. Dependent on value of {@code lastAction}. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the maintenance update. Dependent on value of {@code lastAction}. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The date and time the maintenance update was released. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeReleased") + private final java.util.Date timeReleased; + + /** + * The date and time the maintenance update was released. + * @return the value + **/ + public java.util.Date getTimeReleased() { + return timeReleased; + } + + /** + * The version of the maintenance update package. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of the maintenance update package. + * @return the value + **/ + public String getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BaseccVmClusterUpdate("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", lastAction=").append(String.valueOf(this.lastAction)); + sb.append(", availableActions=").append(String.valueOf(this.availableActions)); + sb.append(", updateType=").append(String.valueOf(this.updateType)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeReleased=").append(String.valueOf(this.timeReleased)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BaseccVmClusterUpdate)) { + return false; + } + + BaseccVmClusterUpdate other = (BaseccVmClusterUpdate) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.lastAction, other.lastAction) + && java.util.Objects.equals(this.availableActions, other.availableActions) + && java.util.Objects.equals(this.updateType, other.updateType) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeReleased, other.timeReleased) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.lastAction == null ? 43 : this.lastAction.hashCode()); + result = + (result * PRIME) + + (this.availableActions == null ? 43 : this.availableActions.hashCode()); + result = (result * PRIME) + (this.updateType == null ? 43 : this.updateType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeReleased == null ? 43 : this.timeReleased.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdateDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdateDetails.java new file mode 100644 index 00000000000..821d1c4d64c --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdateDetails.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Details specifying which maintenance update to apply to the BaseDB-C@C VM cluster and which action is to be performed by the maintenance update. Applies to Base Database Service on Cloud@Customer instances only. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BaseccVmClusterUpdateDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BaseccVmClusterUpdateDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"updateId", "updateAction", "giSoftwareImageId"}) + public BaseccVmClusterUpdateDetails( + String updateId, UpdateAction updateAction, String giSoftwareImageId) { + super(); + this.updateId = updateId; + this.updateAction = updateAction; + this.giSoftwareImageId = giSoftwareImageId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateId") + private String updateId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + * @param updateId the value to set + * @return this builder + **/ + public Builder updateId(String updateId) { + this.updateId = updateId; + this.__explicitlySet__.add("updateId"); + return this; + } + /** + * The update action to perform. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateAction") + private UpdateAction updateAction; + + /** + * The update action to perform. + * @param updateAction the value to set + * @return this builder + **/ + public Builder updateAction(UpdateAction updateAction) { + this.updateAction = updateAction; + this.__explicitlySet__.add("updateAction"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a grid infrastructure software image. This is a database software image of the type {@code GRID_IMAGE}. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private String giSoftwareImageId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a grid infrastructure software image. This is a database software image of the type {@code GRID_IMAGE}. + * @param giSoftwareImageId the value to set + * @return this builder + **/ + public Builder giSoftwareImageId(String giSoftwareImageId) { + this.giSoftwareImageId = giSoftwareImageId; + this.__explicitlySet__.add("giSoftwareImageId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BaseccVmClusterUpdateDetails build() { + BaseccVmClusterUpdateDetails model = + new BaseccVmClusterUpdateDetails( + this.updateId, this.updateAction, this.giSoftwareImageId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BaseccVmClusterUpdateDetails model) { + if (model.wasPropertyExplicitlySet("updateId")) { + this.updateId(model.getUpdateId()); + } + if (model.wasPropertyExplicitlySet("updateAction")) { + this.updateAction(model.getUpdateAction()); + } + if (model.wasPropertyExplicitlySet("giSoftwareImageId")) { + this.giSoftwareImageId(model.getGiSoftwareImageId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateId") + private final String updateId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + * @return the value + **/ + public String getUpdateId() { + return updateId; + } + + /** + * The update action to perform. + **/ + public enum UpdateAction { + RollingApply("ROLLING_APPLY"), + Precheck("PRECHECK"), + Rollback("ROLLBACK"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateAction v : UpdateAction.values()) { + map.put(v.getValue(), v); + } + } + + UpdateAction(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateAction create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid UpdateAction: " + key); + } + }; + /** + * The update action to perform. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateAction") + private final UpdateAction updateAction; + + /** + * The update action to perform. + * @return the value + **/ + public UpdateAction getUpdateAction() { + return updateAction; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a grid infrastructure software image. This is a database software image of the type {@code GRID_IMAGE}. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private final String giSoftwareImageId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a grid infrastructure software image. This is a database software image of the type {@code GRID_IMAGE}. + * @return the value + **/ + public String getGiSoftwareImageId() { + return giSoftwareImageId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BaseccVmClusterUpdateDetails("); + sb.append("super=").append(super.toString()); + sb.append("updateId=").append(String.valueOf(this.updateId)); + sb.append(", updateAction=").append(String.valueOf(this.updateAction)); + sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BaseccVmClusterUpdateDetails)) { + return false; + } + + BaseccVmClusterUpdateDetails other = (BaseccVmClusterUpdateDetails) o; + return java.util.Objects.equals(this.updateId, other.updateId) + && java.util.Objects.equals(this.updateAction, other.updateAction) + && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); + result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); + result = + (result * PRIME) + + (this.giSoftwareImageId == null ? 43 : this.giSoftwareImageId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdateHistoryEntry.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdateHistoryEntry.java new file mode 100644 index 00000000000..6d25fbebdac --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdateHistoryEntry.java @@ -0,0 +1,618 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * The record of a maintenance update action on a specified BaseDB-C@C VM cluster. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BaseccVmClusterUpdateHistoryEntry.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BaseccVmClusterUpdateHistoryEntry + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "updateId", + "updateAction", + "updateType", + "lifecycleState", + "lifecycleDetails", + "timeStarted", + "timeCompleted", + "version" + }) + public BaseccVmClusterUpdateHistoryEntry( + String id, + String updateId, + UpdateAction updateAction, + UpdateType updateType, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeStarted, + java.util.Date timeCompleted, + String version) { + super(); + this.id = id; + this.updateId = updateId; + this.updateAction = updateAction; + this.updateType = updateType; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeStarted = timeStarted; + this.timeCompleted = timeCompleted; + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateId") + private String updateId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + * @param updateId the value to set + * @return this builder + **/ + public Builder updateId(String updateId) { + this.updateId = updateId; + this.__explicitlySet__.add("updateId"); + return this; + } + /** + * The update action. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateAction") + private UpdateAction updateAction; + + /** + * The update action. + * @param updateAction the value to set + * @return this builder + **/ + public Builder updateAction(UpdateAction updateAction) { + this.updateAction = updateAction; + this.__explicitlySet__.add("updateAction"); + return this; + } + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateType") + private UpdateType updateType; + + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + * @param updateType the value to set + * @return this builder + **/ + public Builder updateType(UpdateType updateType) { + this.updateType = updateType; + this.__explicitlySet__.add("updateType"); + return this; + } + /** + * The current lifecycle state of the maintenance update operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the maintenance update operation. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Descriptive text providing additional details about the lifecycle state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Descriptive text providing additional details about the lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The date and time when the maintenance update action started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time when the maintenance update action started. + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time when the maintenance update action completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCompleted") + private java.util.Date timeCompleted; + + /** + * The date and time when the maintenance update action completed. + * @param timeCompleted the value to set + * @return this builder + **/ + public Builder timeCompleted(java.util.Date timeCompleted) { + this.timeCompleted = timeCompleted; + this.__explicitlySet__.add("timeCompleted"); + return this; + } + /** + * The version of the maintenance update package. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of the maintenance update package. + * @param version the value to set + * @return this builder + **/ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BaseccVmClusterUpdateHistoryEntry build() { + BaseccVmClusterUpdateHistoryEntry model = + new BaseccVmClusterUpdateHistoryEntry( + this.id, + this.updateId, + this.updateAction, + this.updateType, + this.lifecycleState, + this.lifecycleDetails, + this.timeStarted, + this.timeCompleted, + this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BaseccVmClusterUpdateHistoryEntry model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("updateId")) { + this.updateId(model.getUpdateId()); + } + if (model.wasPropertyExplicitlySet("updateAction")) { + this.updateAction(model.getUpdateAction()); + } + if (model.wasPropertyExplicitlySet("updateType")) { + this.updateType(model.getUpdateType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeCompleted")) { + this.timeCompleted(model.getTimeCompleted()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateId") + private final String updateId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + * @return the value + **/ + public String getUpdateId() { + return updateId; + } + + /** + * The update action. + **/ + public enum UpdateAction { + RollingApply("ROLLING_APPLY"), + Precheck("PRECHECK"), + Rollback("ROLLBACK"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateAction.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateAction v : UpdateAction.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UpdateAction(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateAction create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UpdateAction', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The update action. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateAction") + private final UpdateAction updateAction; + + /** + * The update action. + * @return the value + **/ + public UpdateAction getUpdateAction() { + return updateAction; + } + + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + **/ + public enum UpdateType { + GiUpgrade("GI_UPGRADE"), + GiPatch("GI_PATCH"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateType v : UpdateType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UpdateType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UpdateType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateType") + private final UpdateType updateType; + + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + * @return the value + **/ + public UpdateType getUpdateType() { + return updateType; + } + + /** + * The current lifecycle state of the maintenance update operation. + **/ + public enum LifecycleState { + InProgress("IN_PROGRESS"), + Succeeded("SUCCEEDED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + 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 lifecycle state of the maintenance update operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the maintenance update operation. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Descriptive text providing additional details about the lifecycle state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Descriptive text providing additional details about the lifecycle state. + * + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The date and time when the maintenance update action started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time when the maintenance update action started. + * @return the value + **/ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time when the maintenance update action completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCompleted") + private final java.util.Date timeCompleted; + + /** + * The date and time when the maintenance update action completed. + * @return the value + **/ + public java.util.Date getTimeCompleted() { + return timeCompleted; + } + + /** + * The version of the maintenance update package. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of the maintenance update package. + * @return the value + **/ + public String getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BaseccVmClusterUpdateHistoryEntry("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", updateId=").append(String.valueOf(this.updateId)); + sb.append(", updateAction=").append(String.valueOf(this.updateAction)); + sb.append(", updateType=").append(String.valueOf(this.updateType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeCompleted=").append(String.valueOf(this.timeCompleted)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BaseccVmClusterUpdateHistoryEntry)) { + return false; + } + + BaseccVmClusterUpdateHistoryEntry other = (BaseccVmClusterUpdateHistoryEntry) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.updateId, other.updateId) + && java.util.Objects.equals(this.updateAction, other.updateAction) + && java.util.Objects.equals(this.updateType, other.updateType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeCompleted, other.timeCompleted) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); + result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); + result = (result * PRIME) + (this.updateType == null ? 43 : this.updateType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = + (result * PRIME) + + (this.timeCompleted == null ? 43 : this.timeCompleted.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdateHistoryEntrySummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdateHistoryEntrySummary.java new file mode 100644 index 00000000000..0d901ea5f86 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdateHistoryEntrySummary.java @@ -0,0 +1,619 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * The record of a maintenance update action on a specified BaseDB-C@C VM cluster. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BaseccVmClusterUpdateHistoryEntrySummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BaseccVmClusterUpdateHistoryEntrySummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "updateId", + "updateAction", + "updateType", + "lifecycleState", + "lifecycleDetails", + "timeStarted", + "timeCompleted", + "version" + }) + public BaseccVmClusterUpdateHistoryEntrySummary( + String id, + String updateId, + UpdateAction updateAction, + UpdateType updateType, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeStarted, + java.util.Date timeCompleted, + String version) { + super(); + this.id = id; + this.updateId = updateId; + this.updateAction = updateAction; + this.updateType = updateType; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeStarted = timeStarted; + this.timeCompleted = timeCompleted; + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateId") + private String updateId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + * @param updateId the value to set + * @return this builder + **/ + public Builder updateId(String updateId) { + this.updateId = updateId; + this.__explicitlySet__.add("updateId"); + return this; + } + /** + * The update action. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateAction") + private UpdateAction updateAction; + + /** + * The update action. + * @param updateAction the value to set + * @return this builder + **/ + public Builder updateAction(UpdateAction updateAction) { + this.updateAction = updateAction; + this.__explicitlySet__.add("updateAction"); + return this; + } + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateType") + private UpdateType updateType; + + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + * @param updateType the value to set + * @return this builder + **/ + public Builder updateType(UpdateType updateType) { + this.updateType = updateType; + this.__explicitlySet__.add("updateType"); + return this; + } + /** + * The current lifecycle state of the maintenance update operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the maintenance update operation. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Descriptive text providing additional details about the lifecycle state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Descriptive text providing additional details about the lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The date and time when the maintenance update action started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time when the maintenance update action started. + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time when the maintenance update action completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCompleted") + private java.util.Date timeCompleted; + + /** + * The date and time when the maintenance update action completed. + * @param timeCompleted the value to set + * @return this builder + **/ + public Builder timeCompleted(java.util.Date timeCompleted) { + this.timeCompleted = timeCompleted; + this.__explicitlySet__.add("timeCompleted"); + return this; + } + /** + * The version of the maintenance update package. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of the maintenance update package. + * @param version the value to set + * @return this builder + **/ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BaseccVmClusterUpdateHistoryEntrySummary build() { + BaseccVmClusterUpdateHistoryEntrySummary model = + new BaseccVmClusterUpdateHistoryEntrySummary( + this.id, + this.updateId, + this.updateAction, + this.updateType, + this.lifecycleState, + this.lifecycleDetails, + this.timeStarted, + this.timeCompleted, + this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BaseccVmClusterUpdateHistoryEntrySummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("updateId")) { + this.updateId(model.getUpdateId()); + } + if (model.wasPropertyExplicitlySet("updateAction")) { + this.updateAction(model.getUpdateAction()); + } + if (model.wasPropertyExplicitlySet("updateType")) { + this.updateType(model.getUpdateType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeCompleted")) { + this.timeCompleted(model.getTimeCompleted()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateId") + private final String updateId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + * @return the value + **/ + public String getUpdateId() { + return updateId; + } + + /** + * The update action. + **/ + public enum UpdateAction { + RollingApply("ROLLING_APPLY"), + Precheck("PRECHECK"), + Rollback("ROLLBACK"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateAction.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateAction v : UpdateAction.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UpdateAction(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateAction create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UpdateAction', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The update action. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateAction") + private final UpdateAction updateAction; + + /** + * The update action. + * @return the value + **/ + public UpdateAction getUpdateAction() { + return updateAction; + } + + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + **/ + public enum UpdateType { + GiUpgrade("GI_UPGRADE"), + GiPatch("GI_PATCH"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateType v : UpdateType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UpdateType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UpdateType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateType") + private final UpdateType updateType; + + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + * @return the value + **/ + public UpdateType getUpdateType() { + return updateType; + } + + /** + * The current lifecycle state of the maintenance update operation. + **/ + public enum LifecycleState { + InProgress("IN_PROGRESS"), + Succeeded("SUCCEEDED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + 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 lifecycle state of the maintenance update operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the maintenance update operation. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Descriptive text providing additional details about the lifecycle state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Descriptive text providing additional details about the lifecycle state. + * + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The date and time when the maintenance update action started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time when the maintenance update action started. + * @return the value + **/ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time when the maintenance update action completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCompleted") + private final java.util.Date timeCompleted; + + /** + * The date and time when the maintenance update action completed. + * @return the value + **/ + public java.util.Date getTimeCompleted() { + return timeCompleted; + } + + /** + * The version of the maintenance update package. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of the maintenance update package. + * @return the value + **/ + public String getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BaseccVmClusterUpdateHistoryEntrySummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", updateId=").append(String.valueOf(this.updateId)); + sb.append(", updateAction=").append(String.valueOf(this.updateAction)); + sb.append(", updateType=").append(String.valueOf(this.updateType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeCompleted=").append(String.valueOf(this.timeCompleted)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BaseccVmClusterUpdateHistoryEntrySummary)) { + return false; + } + + BaseccVmClusterUpdateHistoryEntrySummary other = + (BaseccVmClusterUpdateHistoryEntrySummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.updateId, other.updateId) + && java.util.Objects.equals(this.updateAction, other.updateAction) + && java.util.Objects.equals(this.updateType, other.updateType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeCompleted, other.timeCompleted) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); + result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); + result = (result * PRIME) + (this.updateType == null ? 43 : this.updateType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = + (result * PRIME) + + (this.timeCompleted == null ? 43 : this.timeCompleted.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdateSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdateSummary.java new file mode 100644 index 00000000000..62a5779ce41 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/BaseccVmClusterUpdateSummary.java @@ -0,0 +1,671 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Maintenance update details for a BaseDB-C@C VM cluster. + *

+ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, + * talk to an administrator. If you're an administrator who needs to write policies to give users access, + * see [Getting Started with Policies](https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BaseccVmClusterUpdateSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BaseccVmClusterUpdateSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "description", + "lastAction", + "availableActions", + "updateType", + "lifecycleDetails", + "lifecycleState", + "timeReleased", + "version" + }) + public BaseccVmClusterUpdateSummary( + String id, + String description, + LastAction lastAction, + java.util.List availableActions, + UpdateType updateType, + String lifecycleDetails, + LifecycleState lifecycleState, + java.util.Date timeReleased, + String version) { + super(); + this.id = id; + this.description = description; + this.lastAction = lastAction; + this.availableActions = availableActions; + this.updateType = updateType; + this.lifecycleDetails = lifecycleDetails; + this.lifecycleState = lifecycleState; + this.timeReleased = timeReleased; + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Details of the maintenance update package. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Details of the maintenance update package. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The previous update action performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastAction") + private LastAction lastAction; + + /** + * The previous update action performed. + * @param lastAction the value to set + * @return this builder + **/ + public Builder lastAction(LastAction lastAction) { + this.lastAction = lastAction; + this.__explicitlySet__.add("lastAction"); + return this; + } + /** + * The possible actions performed by the update operation on the infrastructure components. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private java.util.List availableActions; + + /** + * The possible actions performed by the update operation on the infrastructure components. + * @param availableActions the value to set + * @return this builder + **/ + public Builder availableActions(java.util.List availableActions) { + this.availableActions = availableActions; + this.__explicitlySet__.add("availableActions"); + return this; + } + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateType") + private UpdateType updateType; + + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + * @param updateType the value to set + * @return this builder + **/ + public Builder updateType(UpdateType updateType) { + this.updateType = updateType; + this.__explicitlySet__.add("updateType"); + return this; + } + /** + * Descriptive text providing additional details about the lifecycle state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Descriptive text providing additional details about the lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The current state of the maintenance update. Dependent on value of {@code lastAction}. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the maintenance update. Dependent on value of {@code lastAction}. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The date and time the maintenance update was released. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeReleased") + private java.util.Date timeReleased; + + /** + * The date and time the maintenance update was released. + * @param timeReleased the value to set + * @return this builder + **/ + public Builder timeReleased(java.util.Date timeReleased) { + this.timeReleased = timeReleased; + this.__explicitlySet__.add("timeReleased"); + return this; + } + /** + * The version of the maintenance update package. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of the maintenance update package. + * @param version the value to set + * @return this builder + **/ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BaseccVmClusterUpdateSummary build() { + BaseccVmClusterUpdateSummary model = + new BaseccVmClusterUpdateSummary( + this.id, + this.description, + this.lastAction, + this.availableActions, + this.updateType, + this.lifecycleDetails, + this.lifecycleState, + this.timeReleased, + this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BaseccVmClusterUpdateSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lastAction")) { + this.lastAction(model.getLastAction()); + } + if (model.wasPropertyExplicitlySet("availableActions")) { + this.availableActions(model.getAvailableActions()); + } + if (model.wasPropertyExplicitlySet("updateType")) { + this.updateType(model.getUpdateType()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeReleased")) { + this.timeReleased(model.getTimeReleased()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Details of the maintenance update package. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Details of the maintenance update package. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The previous update action performed. + **/ + public enum LastAction { + RollingApply("ROLLING_APPLY"), + Precheck("PRECHECK"), + Rollback("ROLLBACK"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LastAction.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LastAction v : LastAction.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LastAction(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LastAction create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LastAction', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The previous update action performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastAction") + private final LastAction lastAction; + + /** + * The previous update action performed. + * @return the value + **/ + public LastAction getLastAction() { + return lastAction; + } + + /** + **/ + public enum AvailableActions { + RollingApply("ROLLING_APPLY"), + Precheck("PRECHECK"), + Rollback("ROLLBACK"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AvailableActions.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AvailableActions v : AvailableActions.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AvailableActions(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AvailableActions create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AvailableActions', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The possible actions performed by the update operation on the infrastructure components. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private final java.util.List availableActions; + + /** + * The possible actions performed by the update operation on the infrastructure components. + * @return the value + **/ + public java.util.List getAvailableActions() { + return availableActions; + } + + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + **/ + public enum UpdateType { + GiUpgrade("GI_UPGRADE"), + GiPatch("GI_PATCH"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateType v : UpdateType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UpdateType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UpdateType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateType") + private final UpdateType updateType; + + /** + * The type of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster maintenance update. + * @return the value + **/ + public UpdateType getUpdateType() { + return updateType; + } + + /** + * Descriptive text providing additional details about the lifecycle state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Descriptive text providing additional details about the lifecycle state. + * + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The current state of the maintenance update. Dependent on value of {@code lastAction}. + **/ + public enum LifecycleState { + Available("AVAILABLE"), + Success("SUCCESS"), + InProgress("IN_PROGRESS"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + 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 maintenance update. Dependent on value of {@code lastAction}. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the maintenance update. Dependent on value of {@code lastAction}. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The date and time the maintenance update was released. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeReleased") + private final java.util.Date timeReleased; + + /** + * The date and time the maintenance update was released. + * @return the value + **/ + public java.util.Date getTimeReleased() { + return timeReleased; + } + + /** + * The version of the maintenance update package. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of the maintenance update package. + * @return the value + **/ + public String getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BaseccVmClusterUpdateSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", lastAction=").append(String.valueOf(this.lastAction)); + sb.append(", availableActions=").append(String.valueOf(this.availableActions)); + sb.append(", updateType=").append(String.valueOf(this.updateType)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeReleased=").append(String.valueOf(this.timeReleased)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BaseccVmClusterUpdateSummary)) { + return false; + } + + BaseccVmClusterUpdateSummary other = (BaseccVmClusterUpdateSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.lastAction, other.lastAction) + && java.util.Objects.equals(this.availableActions, other.availableActions) + && java.util.Objects.equals(this.updateType, other.updateType) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeReleased, other.timeReleased) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.lastAction == null ? 43 : this.lastAction.hashCode()); + result = + (result * PRIME) + + (this.availableActions == null ? 43 : this.availableActions.hashCode()); + result = (result * PRIME) + (this.updateType == null ? 43 : this.updateType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeReleased == null ? 43 : this.timeReleased.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ChangeBaseccVmClusterCompartmentDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ChangeBaseccVmClusterCompartmentDetails.java new file mode 100644 index 00000000000..980381854e3 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ChangeBaseccVmClusterCompartmentDetails.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * The configuration details for moving the BaseDB-C@C VM cluster to another compartment. Applies to Base Database Service on Cloud@Customer only. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeBaseccVmClusterCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeBaseccVmClusterCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeBaseccVmClusterCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeBaseccVmClusterCompartmentDetails build() { + ChangeBaseccVmClusterCompartmentDetails model = + new ChangeBaseccVmClusterCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeBaseccVmClusterCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeBaseccVmClusterCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeBaseccVmClusterCompartmentDetails)) { + return false; + } + + ChangeBaseccVmClusterCompartmentDetails other = (ChangeBaseccVmClusterCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java index d00395fd7e7..ec4b85c2507 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java @@ -33,6 +33,8 @@ public final class CloudVmCluster extends com.oracle.bmc.http.internal.Explicitl "lastUpdateHistoryEntryId", "shape", "listenerPort", + "liveImageVersionDetails", + "oracleLinuxVersion", "lifecycleState", "nodeCount", "storageSizeInGBs", @@ -99,6 +101,8 @@ public CloudVmCluster( String lastUpdateHistoryEntryId, String shape, Long listenerPort, + ExadataLiveImageVersionDetails liveImageVersionDetails, + String oracleLinuxVersion, LifecycleState lifecycleState, Integer nodeCount, Integer storageSizeInGBs, @@ -164,6 +168,8 @@ public CloudVmCluster( this.lastUpdateHistoryEntryId = lastUpdateHistoryEntryId; this.shape = shape; this.listenerPort = listenerPort; + this.liveImageVersionDetails = liveImageVersionDetails; + this.oracleLinuxVersion = oracleLinuxVersion; this.lifecycleState = lifecycleState; this.nodeCount = nodeCount; this.storageSizeInGBs = storageSizeInGBs; @@ -437,6 +443,32 @@ public Builder listenerPort(Long listenerPort) { this.__explicitlySet__.add("listenerPort"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("liveImageVersionDetails") + private ExadataLiveImageVersionDetails liveImageVersionDetails; + + public Builder liveImageVersionDetails( + ExadataLiveImageVersionDetails liveImageVersionDetails) { + this.liveImageVersionDetails = liveImageVersionDetails; + this.__explicitlySet__.add("liveImageVersionDetails"); + return this; + } + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @param oracleLinuxVersion the value to set + * @return this builder + **/ + public Builder oracleLinuxVersion(String oracleLinuxVersion) { + this.oracleLinuxVersion = oracleLinuxVersion; + this.__explicitlySet__.add("oracleLinuxVersion"); + return this; + } /** * The current state of the cloud VM cluster. **/ @@ -1369,6 +1401,8 @@ public CloudVmCluster build() { this.lastUpdateHistoryEntryId, this.shape, this.listenerPort, + this.liveImageVersionDetails, + this.oracleLinuxVersion, this.lifecycleState, this.nodeCount, this.storageSizeInGBs, @@ -1465,6 +1499,12 @@ public Builder copy(CloudVmCluster model) { if (model.wasPropertyExplicitlySet("listenerPort")) { this.listenerPort(model.getListenerPort()); } + if (model.wasPropertyExplicitlySet("liveImageVersionDetails")) { + this.liveImageVersionDetails(model.getLiveImageVersionDetails()); + } + if (model.wasPropertyExplicitlySet("oracleLinuxVersion")) { + this.oracleLinuxVersion(model.getOracleLinuxVersion()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -1830,6 +1870,27 @@ public Long getListenerPort() { return listenerPort; } + @com.fasterxml.jackson.annotation.JsonProperty("liveImageVersionDetails") + private final ExadataLiveImageVersionDetails liveImageVersionDetails; + + public ExadataLiveImageVersionDetails getLiveImageVersionDetails() { + return liveImageVersionDetails; + } + + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private final String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @return the value + **/ + public String getOracleLinuxVersion() { + return oracleLinuxVersion; + } + /** * The current state of the cloud VM cluster. **/ @@ -3104,6 +3165,9 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.lastUpdateHistoryEntryId)); sb.append(", shape=").append(String.valueOf(this.shape)); sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", liveImageVersionDetails=") + .append(String.valueOf(this.liveImageVersionDetails)); + sb.append(", oracleLinuxVersion=").append(String.valueOf(this.oracleLinuxVersion)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); sb.append(", storageSizeInGBs=").append(String.valueOf(this.storageSizeInGBs)); @@ -3191,6 +3255,9 @@ public boolean equals(Object o) { this.lastUpdateHistoryEntryId, other.lastUpdateHistoryEntryId) && java.util.Objects.equals(this.shape, other.shape) && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals( + this.liveImageVersionDetails, other.liveImageVersionDetails) + && java.util.Objects.equals(this.oracleLinuxVersion, other.oracleLinuxVersion) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.nodeCount, other.nodeCount) && java.util.Objects.equals(this.storageSizeInGBs, other.storageSizeInGBs) @@ -3293,6 +3360,16 @@ public int hashCode() { : this.lastUpdateHistoryEntryId.hashCode()); result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.liveImageVersionDetails == null + ? 43 + : this.liveImageVersionDetails.hashCode()); + result = + (result * PRIME) + + (this.oracleLinuxVersion == null + ? 43 + : this.oracleLinuxVersion.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java index 02bcca0cd3d..0fecbd26ae9 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java @@ -35,6 +35,8 @@ public final class CloudVmClusterSummary "lastUpdateHistoryEntryId", "shape", "listenerPort", + "liveImageVersionDetails", + "oracleLinuxVersion", "lifecycleState", "nodeCount", "storageSizeInGBs", @@ -100,6 +102,8 @@ public CloudVmClusterSummary( String lastUpdateHistoryEntryId, String shape, Long listenerPort, + ExadataLiveImageVersionDetails liveImageVersionDetails, + String oracleLinuxVersion, LifecycleState lifecycleState, Integer nodeCount, Integer storageSizeInGBs, @@ -164,6 +168,8 @@ public CloudVmClusterSummary( this.lastUpdateHistoryEntryId = lastUpdateHistoryEntryId; this.shape = shape; this.listenerPort = listenerPort; + this.liveImageVersionDetails = liveImageVersionDetails; + this.oracleLinuxVersion = oracleLinuxVersion; this.lifecycleState = lifecycleState; this.nodeCount = nodeCount; this.storageSizeInGBs = storageSizeInGBs; @@ -428,6 +434,32 @@ public Builder listenerPort(Long listenerPort) { this.__explicitlySet__.add("listenerPort"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("liveImageVersionDetails") + private ExadataLiveImageVersionDetails liveImageVersionDetails; + + public Builder liveImageVersionDetails( + ExadataLiveImageVersionDetails liveImageVersionDetails) { + this.liveImageVersionDetails = liveImageVersionDetails; + this.__explicitlySet__.add("liveImageVersionDetails"); + return this; + } + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @param oracleLinuxVersion the value to set + * @return this builder + **/ + public Builder oracleLinuxVersion(String oracleLinuxVersion) { + this.oracleLinuxVersion = oracleLinuxVersion; + this.__explicitlySet__.add("oracleLinuxVersion"); + return this; + } /** * The current state of the cloud VM cluster. **/ @@ -1359,6 +1391,8 @@ public CloudVmClusterSummary build() { this.lastUpdateHistoryEntryId, this.shape, this.listenerPort, + this.liveImageVersionDetails, + this.oracleLinuxVersion, this.lifecycleState, this.nodeCount, this.storageSizeInGBs, @@ -1452,6 +1486,12 @@ public Builder copy(CloudVmClusterSummary model) { if (model.wasPropertyExplicitlySet("listenerPort")) { this.listenerPort(model.getListenerPort()); } + if (model.wasPropertyExplicitlySet("liveImageVersionDetails")) { + this.liveImageVersionDetails(model.getLiveImageVersionDetails()); + } + if (model.wasPropertyExplicitlySet("oracleLinuxVersion")) { + this.oracleLinuxVersion(model.getOracleLinuxVersion()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -1810,6 +1850,27 @@ public Long getListenerPort() { return listenerPort; } + @com.fasterxml.jackson.annotation.JsonProperty("liveImageVersionDetails") + private final ExadataLiveImageVersionDetails liveImageVersionDetails; + + public ExadataLiveImageVersionDetails getLiveImageVersionDetails() { + return liveImageVersionDetails; + } + + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private final String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @return the value + **/ + public String getOracleLinuxVersion() { + return oracleLinuxVersion; + } + /** * The current state of the cloud VM cluster. **/ @@ -3083,6 +3144,9 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.lastUpdateHistoryEntryId)); sb.append(", shape=").append(String.valueOf(this.shape)); sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", liveImageVersionDetails=") + .append(String.valueOf(this.liveImageVersionDetails)); + sb.append(", oracleLinuxVersion=").append(String.valueOf(this.oracleLinuxVersion)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); sb.append(", storageSizeInGBs=").append(String.valueOf(this.storageSizeInGBs)); @@ -3169,6 +3233,9 @@ public boolean equals(Object o) { this.lastUpdateHistoryEntryId, other.lastUpdateHistoryEntryId) && java.util.Objects.equals(this.shape, other.shape) && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals( + this.liveImageVersionDetails, other.liveImageVersionDetails) + && java.util.Objects.equals(this.oracleLinuxVersion, other.oracleLinuxVersion) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.nodeCount, other.nodeCount) && java.util.Objects.equals(this.storageSizeInGBs, other.storageSizeInGBs) @@ -3268,6 +3335,16 @@ public int hashCode() { : this.lastUpdateHistoryEntryId.hashCode()); result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.liveImageVersionDetails == null + ? 43 + : this.liveImageVersionDetails.hashCode()); + result = + (result * PRIME) + + (this.oracleLinuxVersion == null + ? 43 + : this.oracleLinuxVersion.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateBaseccVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateBaseccVmClusterDetails.java new file mode 100644 index 00000000000..d306c244a83 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateBaseccVmClusterDetails.java @@ -0,0 +1,1174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Details for creating a BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateBaseccVmClusterDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateBaseccVmClusterDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "databaseEdition", + "nodeCount", + "dbServerId", + "cpuCoreCount", + "baseInfrastructureId", + "baseVmClusterNetworkId", + "giVersion", + "dataCollectionOptions", + "description", + "displayName", + "sshPublicKeys", + "timeZone", + "additionalVmStorageSizeInGBs", + "dataStorageSizeInGBs", + "recoStorageSizeInGBs", + "memorySizeInGBs", + "licenseModel", + "freeformTags", + "definedTags", + "vmClusterType", + "cloudAutomationUpdateDetails" + }) + public CreateBaseccVmClusterDetails( + String compartmentId, + DatabaseEdition databaseEdition, + Integer nodeCount, + String dbServerId, + Integer cpuCoreCount, + String baseInfrastructureId, + String baseVmClusterNetworkId, + String giVersion, + DataCollectionOptions dataCollectionOptions, + String description, + String displayName, + java.util.List sshPublicKeys, + String timeZone, + Integer additionalVmStorageSizeInGBs, + Integer dataStorageSizeInGBs, + Integer recoStorageSizeInGBs, + Integer memorySizeInGBs, + LicenseModel licenseModel, + java.util.Map freeformTags, + java.util.Map> definedTags, + VmClusterType vmClusterType, + CloudAutomationUpdateDetails cloudAutomationUpdateDetails) { + super(); + this.compartmentId = compartmentId; + this.databaseEdition = databaseEdition; + this.nodeCount = nodeCount; + this.dbServerId = dbServerId; + this.cpuCoreCount = cpuCoreCount; + this.baseInfrastructureId = baseInfrastructureId; + this.baseVmClusterNetworkId = baseVmClusterNetworkId; + this.giVersion = giVersion; + this.dataCollectionOptions = dataCollectionOptions; + this.description = description; + this.displayName = displayName; + this.sshPublicKeys = sshPublicKeys; + this.timeZone = timeZone; + this.additionalVmStorageSizeInGBs = additionalVmStorageSizeInGBs; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.recoStorageSizeInGBs = recoStorageSizeInGBs; + this.memorySizeInGBs = memorySizeInGBs; + this.licenseModel = licenseModel; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.vmClusterType = vmClusterType; + this.cloudAutomationUpdateDetails = cloudAutomationUpdateDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + private DatabaseEdition databaseEdition; + + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + * @param databaseEdition the value to set + * @return this builder + **/ + public Builder databaseEdition(DatabaseEdition databaseEdition) { + this.databaseEdition = databaseEdition; + this.__explicitlySet__.add("databaseEdition"); + return this; + } + /** + * The number of nodes in the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private Integer nodeCount; + + /** + * The number of nodes in the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param nodeCount the value to set + * @return this builder + **/ + public Builder nodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + this.__explicitlySet__.add("nodeCount"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node of the Oracle Data Cloud@Customer Infrastructure, on which the VM should be launched. + * Note: Applies to single node Base Database Service on Cloud@Customer (BaseDB-C@C) VM clusters only + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbServerId") + private String dbServerId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node of the Oracle Data Cloud@Customer Infrastructure, on which the VM should be launched. + * Note: Applies to single node Base Database Service on Cloud@Customer (BaseDB-C@C) VM clusters only + * + * @param dbServerId the value to set + * @return this builder + **/ + public Builder dbServerId(String dbServerId) { + this.dbServerId = dbServerId; + this.__explicitlySet__.add("dbServerId"); + return this; + } + /** + * Total CPU cores for the BaseDB C@C VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount") + private Integer cpuCoreCount; + + /** + * Total CPU cores for the BaseDB C@C VM cluster. + * @param cpuCoreCount the value to set + * @return this builder + **/ + public Builder cpuCoreCount(Integer cpuCoreCount) { + this.cpuCoreCount = cpuCoreCount; + this.__explicitlySet__.add("cpuCoreCount"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Oracle Data Cloud@Customer Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseInfrastructureId") + private String baseInfrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Oracle Data Cloud@Customer Infrastructure. + * @param baseInfrastructureId the value to set + * @return this builder + **/ + public Builder baseInfrastructureId(String baseInfrastructureId) { + this.baseInfrastructureId = baseInfrastructureId; + this.__explicitlySet__.add("baseInfrastructureId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of BaseDB-C@C VM Cluster Network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmClusterNetworkId") + private String baseVmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of BaseDB-C@C VM Cluster Network. + * @param baseVmClusterNetworkId the value to set + * @return this builder + **/ + public Builder baseVmClusterNetworkId(String baseVmClusterNetworkId) { + this.baseVmClusterNetworkId = baseVmClusterNetworkId; + this.__explicitlySet__.add("baseVmClusterNetworkId"); + return this; + } + /** + * A valid Oracle Grid Infrastructure (GI) software version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giVersion") + private String giVersion; + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + * @param giVersion the value to set + * @return this builder + **/ + public Builder giVersion(String giVersion) { + this.giVersion = giVersion; + this.__explicitlySet__.add("giVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataCollectionOptions") + private DataCollectionOptions dataCollectionOptions; + + public Builder dataCollectionOptions(DataCollectionOptions dataCollectionOptions) { + this.dataCollectionOptions = dataCollectionOptions; + this.__explicitlySet__.add("dataCollectionOptions"); + return this; + } + /** + * The description for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private java.util.List sshPublicKeys; + + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param sshPublicKeys the value to set + * @return this builder + **/ + public Builder sshPublicKeys(java.util.List sshPublicKeys) { + this.sshPublicKeys = sshPublicKeys; + this.__explicitlySet__.add("sshPublicKeys"); + return this; + } + /** + * The time zone to use for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. For details, see [Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + /** + * The time zone to use for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. For details, see [Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * + * @param timeZone the value to set + * @return this builder + **/ + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalVmStorageSizeInGBs") + private Integer additionalVmStorageSizeInGBs; + + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param additionalVmStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder additionalVmStorageSizeInGBs(Integer additionalVmStorageSizeInGBs) { + this.additionalVmStorageSizeInGBs = additionalVmStorageSizeInGBs; + this.__explicitlySet__.add("additionalVmStorageSizeInGBs"); + return this; + } + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Integer dataStorageSizeInGBs; + + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param dataStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStorageSizeInGBs") + private Integer recoStorageSizeInGBs; + + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param recoStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder recoStorageSizeInGBs(Integer recoStorageSizeInGBs) { + this.recoStorageSizeInGBs = recoStorageSizeInGBs; + this.__explicitlySet__.add("recoStorageSizeInGBs"); + return this; + } + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private Integer memorySizeInGBs; + + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + * @param memorySizeInGBs the value to set + * @return this builder + **/ + public Builder memorySizeInGBs(Integer memorySizeInGBs) { + this.memorySizeInGBs = memorySizeInGBs; + this.__explicitlySet__.add("memorySizeInGBs"); + return this; + } + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + * @param licenseModel the value to set + * @return this builder + **/ + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterType") + private VmClusterType vmClusterType; + + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param vmClusterType the value to set + * @return this builder + **/ + public Builder vmClusterType(VmClusterType vmClusterType) { + this.vmClusterType = vmClusterType; + this.__explicitlySet__.add("vmClusterType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutomationUpdateDetails") + private CloudAutomationUpdateDetails cloudAutomationUpdateDetails; + + public Builder cloudAutomationUpdateDetails( + CloudAutomationUpdateDetails cloudAutomationUpdateDetails) { + this.cloudAutomationUpdateDetails = cloudAutomationUpdateDetails; + this.__explicitlySet__.add("cloudAutomationUpdateDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateBaseccVmClusterDetails build() { + CreateBaseccVmClusterDetails model = + new CreateBaseccVmClusterDetails( + this.compartmentId, + this.databaseEdition, + this.nodeCount, + this.dbServerId, + this.cpuCoreCount, + this.baseInfrastructureId, + this.baseVmClusterNetworkId, + this.giVersion, + this.dataCollectionOptions, + this.description, + this.displayName, + this.sshPublicKeys, + this.timeZone, + this.additionalVmStorageSizeInGBs, + this.dataStorageSizeInGBs, + this.recoStorageSizeInGBs, + this.memorySizeInGBs, + this.licenseModel, + this.freeformTags, + this.definedTags, + this.vmClusterType, + this.cloudAutomationUpdateDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateBaseccVmClusterDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("databaseEdition")) { + this.databaseEdition(model.getDatabaseEdition()); + } + if (model.wasPropertyExplicitlySet("nodeCount")) { + this.nodeCount(model.getNodeCount()); + } + if (model.wasPropertyExplicitlySet("dbServerId")) { + this.dbServerId(model.getDbServerId()); + } + if (model.wasPropertyExplicitlySet("cpuCoreCount")) { + this.cpuCoreCount(model.getCpuCoreCount()); + } + if (model.wasPropertyExplicitlySet("baseInfrastructureId")) { + this.baseInfrastructureId(model.getBaseInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("baseVmClusterNetworkId")) { + this.baseVmClusterNetworkId(model.getBaseVmClusterNetworkId()); + } + if (model.wasPropertyExplicitlySet("giVersion")) { + this.giVersion(model.getGiVersion()); + } + if (model.wasPropertyExplicitlySet("dataCollectionOptions")) { + this.dataCollectionOptions(model.getDataCollectionOptions()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("sshPublicKeys")) { + this.sshPublicKeys(model.getSshPublicKeys()); + } + if (model.wasPropertyExplicitlySet("timeZone")) { + this.timeZone(model.getTimeZone()); + } + if (model.wasPropertyExplicitlySet("additionalVmStorageSizeInGBs")) { + this.additionalVmStorageSizeInGBs(model.getAdditionalVmStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("recoStorageSizeInGBs")) { + this.recoStorageSizeInGBs(model.getRecoStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("memorySizeInGBs")) { + this.memorySizeInGBs(model.getMemorySizeInGBs()); + } + if (model.wasPropertyExplicitlySet("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("vmClusterType")) { + this.vmClusterType(model.getVmClusterType()); + } + if (model.wasPropertyExplicitlySet("cloudAutomationUpdateDetails")) { + this.cloudAutomationUpdateDetails(model.getCloudAutomationUpdateDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + **/ + public enum DatabaseEdition { + StandardEdition("STANDARD_EDITION"), + EnterpriseEdition("ENTERPRISE_EDITION"), + EnterpriseEditionHighPerformance("ENTERPRISE_EDITION_HIGH_PERFORMANCE"), + EnterpriseEditionExtremePerformance("ENTERPRISE_EDITION_EXTREME_PERFORMANCE"), + EnterpriseEditionDeveloper("ENTERPRISE_EDITION_DEVELOPER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseEdition v : DatabaseEdition.values()) { + map.put(v.getValue(), v); + } + } + + DatabaseEdition(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseEdition create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DatabaseEdition: " + key); + } + }; + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + private final DatabaseEdition databaseEdition; + + /** + * The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE. + * + * @return the value + **/ + public DatabaseEdition getDatabaseEdition() { + return databaseEdition; + } + + /** + * The number of nodes in the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private final Integer nodeCount; + + /** + * The number of nodes in the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public Integer getNodeCount() { + return nodeCount; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node of the Oracle Data Cloud@Customer Infrastructure, on which the VM should be launched. + * Note: Applies to single node Base Database Service on Cloud@Customer (BaseDB-C@C) VM clusters only + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbServerId") + private final String dbServerId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node of the Oracle Data Cloud@Customer Infrastructure, on which the VM should be launched. + * Note: Applies to single node Base Database Service on Cloud@Customer (BaseDB-C@C) VM clusters only + * + * @return the value + **/ + public String getDbServerId() { + return dbServerId; + } + + /** + * Total CPU cores for the BaseDB C@C VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount") + private final Integer cpuCoreCount; + + /** + * Total CPU cores for the BaseDB C@C VM cluster. + * @return the value + **/ + public Integer getCpuCoreCount() { + return cpuCoreCount; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Oracle Data Cloud@Customer Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseInfrastructureId") + private final String baseInfrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Oracle Data Cloud@Customer Infrastructure. + * @return the value + **/ + public String getBaseInfrastructureId() { + return baseInfrastructureId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of BaseDB-C@C VM Cluster Network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmClusterNetworkId") + private final String baseVmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of BaseDB-C@C VM Cluster Network. + * @return the value + **/ + public String getBaseVmClusterNetworkId() { + return baseVmClusterNetworkId; + } + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giVersion") + private final String giVersion; + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + * @return the value + **/ + public String getGiVersion() { + return giVersion; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataCollectionOptions") + private final DataCollectionOptions dataCollectionOptions; + + public DataCollectionOptions getDataCollectionOptions() { + return dataCollectionOptions; + } + + /** + * The description for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description for Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private final java.util.List sshPublicKeys; + + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public java.util.List getSshPublicKeys() { + return sshPublicKeys; + } + + /** + * The time zone to use for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. For details, see [Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private final String timeZone; + + /** + * The time zone to use for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. For details, see [Time Zones](https://docs.oracle.com/iaas/Content/Database/References/timezones.htm). + * + * @return the value + **/ + public String getTimeZone() { + return timeZone; + } + + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalVmStorageSizeInGBs") + private final Integer additionalVmStorageSizeInGBs; + + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public Integer getAdditionalVmStorageSizeInGBs() { + return additionalVmStorageSizeInGBs; + } + + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Integer dataStorageSizeInGBs; + + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public Integer getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStorageSizeInGBs") + private final Integer recoStorageSizeInGBs; + + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public Integer getRecoStorageSizeInGBs() { + return recoStorageSizeInGBs; + } + + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private final Integer memorySizeInGBs; + + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + * @return the value + **/ + public Integer getMemorySizeInGBs() { + return memorySizeInGBs; + } + + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + **/ + public enum LicenseModel { + LicenseIncluded("LICENSE_INCLUDED"), + BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LicenseModel v : LicenseModel.values()) { + map.put(v.getValue(), v); + } + } + + LicenseModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LicenseModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LicenseModel: " + key); + } + }; + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private final LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + * @return the value + **/ + public LicenseModel getLicenseModel() { + return licenseModel; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + public enum VmClusterType { + Regular("REGULAR"), + Developer("DEVELOPER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VmClusterType v : VmClusterType.values()) { + map.put(v.getValue(), v); + } + } + + VmClusterType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VmClusterType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid VmClusterType: " + key); + } + }; + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterType") + private final VmClusterType vmClusterType; + + /** + * The cluster type for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public VmClusterType getVmClusterType() { + return vmClusterType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutomationUpdateDetails") + private final CloudAutomationUpdateDetails cloudAutomationUpdateDetails; + + public CloudAutomationUpdateDetails getCloudAutomationUpdateDetails() { + return cloudAutomationUpdateDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateBaseccVmClusterDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", databaseEdition=").append(String.valueOf(this.databaseEdition)); + sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); + sb.append(", dbServerId=").append(String.valueOf(this.dbServerId)); + sb.append(", cpuCoreCount=").append(String.valueOf(this.cpuCoreCount)); + sb.append(", baseInfrastructureId=").append(String.valueOf(this.baseInfrastructureId)); + sb.append(", baseVmClusterNetworkId=").append(String.valueOf(this.baseVmClusterNetworkId)); + sb.append(", giVersion=").append(String.valueOf(this.giVersion)); + sb.append(", dataCollectionOptions=").append(String.valueOf(this.dataCollectionOptions)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", sshPublicKeys=").append(String.valueOf(this.sshPublicKeys)); + sb.append(", timeZone=").append(String.valueOf(this.timeZone)); + sb.append(", additionalVmStorageSizeInGBs=") + .append(String.valueOf(this.additionalVmStorageSizeInGBs)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", recoStorageSizeInGBs=").append(String.valueOf(this.recoStorageSizeInGBs)); + sb.append(", memorySizeInGBs=").append(String.valueOf(this.memorySizeInGBs)); + sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", vmClusterType=").append(String.valueOf(this.vmClusterType)); + sb.append(", cloudAutomationUpdateDetails=") + .append(String.valueOf(this.cloudAutomationUpdateDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBaseccVmClusterDetails)) { + return false; + } + + CreateBaseccVmClusterDetails other = (CreateBaseccVmClusterDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.databaseEdition, other.databaseEdition) + && java.util.Objects.equals(this.nodeCount, other.nodeCount) + && java.util.Objects.equals(this.dbServerId, other.dbServerId) + && java.util.Objects.equals(this.cpuCoreCount, other.cpuCoreCount) + && java.util.Objects.equals(this.baseInfrastructureId, other.baseInfrastructureId) + && java.util.Objects.equals( + this.baseVmClusterNetworkId, other.baseVmClusterNetworkId) + && java.util.Objects.equals(this.giVersion, other.giVersion) + && java.util.Objects.equals(this.dataCollectionOptions, other.dataCollectionOptions) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sshPublicKeys, other.sshPublicKeys) + && java.util.Objects.equals(this.timeZone, other.timeZone) + && java.util.Objects.equals( + this.additionalVmStorageSizeInGBs, other.additionalVmStorageSizeInGBs) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.recoStorageSizeInGBs, other.recoStorageSizeInGBs) + && java.util.Objects.equals(this.memorySizeInGBs, other.memorySizeInGBs) + && java.util.Objects.equals(this.licenseModel, other.licenseModel) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.vmClusterType, other.vmClusterType) + && java.util.Objects.equals( + this.cloudAutomationUpdateDetails, other.cloudAutomationUpdateDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.databaseEdition == null ? 43 : this.databaseEdition.hashCode()); + result = (result * PRIME) + (this.nodeCount == null ? 43 : this.nodeCount.hashCode()); + result = (result * PRIME) + (this.dbServerId == null ? 43 : this.dbServerId.hashCode()); + result = (result * PRIME) + (this.cpuCoreCount == null ? 43 : this.cpuCoreCount.hashCode()); + result = + (result * PRIME) + + (this.baseInfrastructureId == null + ? 43 + : this.baseInfrastructureId.hashCode()); + result = + (result * PRIME) + + (this.baseVmClusterNetworkId == null + ? 43 + : this.baseVmClusterNetworkId.hashCode()); + result = (result * PRIME) + (this.giVersion == null ? 43 : this.giVersion.hashCode()); + result = + (result * PRIME) + + (this.dataCollectionOptions == null + ? 43 + : this.dataCollectionOptions.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.sshPublicKeys == null ? 43 : this.sshPublicKeys.hashCode()); + result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); + result = + (result * PRIME) + + (this.additionalVmStorageSizeInGBs == null + ? 43 + : this.additionalVmStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.recoStorageSizeInGBs == null + ? 43 + : this.recoStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.memorySizeInGBs == null ? 43 : this.memorySizeInGBs.hashCode()); + result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.vmClusterType == null ? 43 : this.vmClusterType.hashCode()); + result = + (result * PRIME) + + (this.cloudAutomationUpdateDetails == null + ? 43 + : this.cloudAutomationUpdateDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseDetails.java index d3d08261b4b..16e2fb0b6c3 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseDetails.java @@ -44,7 +44,9 @@ public CreateDatabaseDetails( String sidPrefix, String keyStoreId, EncryptionKeyLocationDetails encryptionKeyLocationDetails, - DatabaseStorageSizeDetails storageSizeDetails) { + DatabaseStorageSizeDetails storageSizeDetails, + ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails, + String vmClusterId) { super(); this.dbName = dbName; this.dbUniqueName = dbUniqueName; @@ -65,6 +67,8 @@ public CreateDatabaseDetails( this.keyStoreId = keyStoreId; this.encryptionKeyLocationDetails = encryptionKeyLocationDetails; this.storageSizeDetails = storageSizeDetails; + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; + this.vmClusterId = vmClusterId; } @com.fasterxml.jackson.annotation.JsonCreator @@ -88,7 +92,9 @@ public CreateDatabaseDetails( "sidPrefix", "keyStoreId", "encryptionKeyLocationDetails", - "storageSizeDetails" + "storageSizeDetails", + "managedSoftwareUpdateDetails", + "vmClusterId" }) public CreateDatabaseDetails( String dbName, @@ -109,7 +115,9 @@ public CreateDatabaseDetails( String sidPrefix, String keyStoreId, EncryptionKeyLocationDetails encryptionKeyLocationDetails, - DatabaseStorageSizeDetails storageSizeDetails) { + DatabaseStorageSizeDetails storageSizeDetails, + ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails, + String vmClusterId) { super(); this.dbName = dbName; this.dbUniqueName = dbUniqueName; @@ -130,6 +138,8 @@ public CreateDatabaseDetails( this.keyStoreId = keyStoreId; this.encryptionKeyLocationDetails = encryptionKeyLocationDetails; this.storageSizeDetails = storageSizeDetails; + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; + this.vmClusterId = vmClusterId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -462,6 +472,32 @@ public Builder storageSizeDetails(DatabaseStorageSizeDetails storageSizeDetails) return this; } + @com.fasterxml.jackson.annotation.JsonProperty("managedSoftwareUpdateDetails") + private ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails; + + public Builder managedSoftwareUpdateDetails( + ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails) { + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; + this.__explicitlySet__.add("managedSoftwareUpdateDetails"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster. + * @param vmClusterId the value to set + * @return this builder + **/ + public Builder vmClusterId(String vmClusterId) { + this.vmClusterId = vmClusterId; + this.__explicitlySet__.add("vmClusterId"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -486,7 +522,9 @@ public CreateDatabaseDetails build() { this.sidPrefix, this.keyStoreId, this.encryptionKeyLocationDetails, - this.storageSizeDetails); + this.storageSizeDetails, + this.managedSoftwareUpdateDetails, + this.vmClusterId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -552,6 +590,12 @@ public Builder copy(CreateDatabaseDetails model) { if (model.wasPropertyExplicitlySet("storageSizeDetails")) { this.storageSizeDetails(model.getStorageSizeDetails()); } + if (model.wasPropertyExplicitlySet("managedSoftwareUpdateDetails")) { + this.managedSoftwareUpdateDetails(model.getManagedSoftwareUpdateDetails()); + } + if (model.wasPropertyExplicitlySet("vmClusterId")) { + this.vmClusterId(model.getVmClusterId()); + } return this; } } @@ -897,6 +941,27 @@ public DatabaseStorageSizeDetails getStorageSizeDetails() { return storageSizeDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("managedSoftwareUpdateDetails") + private final ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails; + + public ManagedSoftwareUpdateInputDetails getManagedSoftwareUpdateDetails() { + return managedSoftwareUpdateDetails; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private final String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster. + * @return the value + **/ + public String getVmClusterId() { + return vmClusterId; + } + @Override public String toString() { return this.toString(true); @@ -932,6 +997,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", encryptionKeyLocationDetails=") .append(String.valueOf(this.encryptionKeyLocationDetails)); sb.append(", storageSizeDetails=").append(String.valueOf(this.storageSizeDetails)); + sb.append(", managedSoftwareUpdateDetails=") + .append(String.valueOf(this.managedSoftwareUpdateDetails)); + sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); sb.append(")"); return sb.toString(); } @@ -967,6 +1035,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.encryptionKeyLocationDetails, other.encryptionKeyLocationDetails) && java.util.Objects.equals(this.storageSizeDetails, other.storageSizeDetails) + && java.util.Objects.equals( + this.managedSoftwareUpdateDetails, other.managedSoftwareUpdateDetails) + && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) && super.equals(other); } @@ -1015,6 +1086,12 @@ public int hashCode() { + (this.storageSizeDetails == null ? 43 : this.storageSizeDetails.hashCode()); + result = + (result * PRIME) + + (this.managedSoftwareUpdateDetails == null + ? 43 + : this.managedSoftwareUpdateDetails.hashCode()); + result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromAnotherDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromAnotherDatabaseDetails.java index 831f9df36bc..c0af05a5eec 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromAnotherDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromAnotherDatabaseDetails.java @@ -35,6 +35,7 @@ public final class CreateDatabaseFromAnotherDatabaseDetails "sidPrefix", "sourceEncryptionKeyLocationDetails", "storageSizeDetails", + "managedSoftwareUpdateDetails", "vmClusterId" }) public CreateDatabaseFromAnotherDatabaseDetails( @@ -50,6 +51,7 @@ public CreateDatabaseFromAnotherDatabaseDetails( String sidPrefix, EncryptionKeyLocationDetails sourceEncryptionKeyLocationDetails, DatabaseStorageSizeDetails storageSizeDetails, + ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails, String vmClusterId) { super(); this.databaseId = databaseId; @@ -64,6 +66,7 @@ public CreateDatabaseFromAnotherDatabaseDetails( this.sidPrefix = sidPrefix; this.sourceEncryptionKeyLocationDetails = sourceEncryptionKeyLocationDetails; this.storageSizeDetails = storageSizeDetails; + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; this.vmClusterId = vmClusterId; } @@ -264,6 +267,16 @@ public Builder storageSizeDetails(DatabaseStorageSizeDetails storageSizeDetails) this.__explicitlySet__.add("storageSizeDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("managedSoftwareUpdateDetails") + private ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails; + + public Builder managedSoftwareUpdateDetails( + ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails) { + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; + this.__explicitlySet__.add("managedSoftwareUpdateDetails"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster. **/ @@ -299,6 +312,7 @@ public CreateDatabaseFromAnotherDatabaseDetails build() { this.sidPrefix, this.sourceEncryptionKeyLocationDetails, this.storageSizeDetails, + this.managedSoftwareUpdateDetails, this.vmClusterId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -345,6 +359,9 @@ public Builder copy(CreateDatabaseFromAnotherDatabaseDetails model) { if (model.wasPropertyExplicitlySet("storageSizeDetails")) { this.storageSizeDetails(model.getStorageSizeDetails()); } + if (model.wasPropertyExplicitlySet("managedSoftwareUpdateDetails")) { + this.managedSoftwareUpdateDetails(model.getManagedSoftwareUpdateDetails()); + } if (model.wasPropertyExplicitlySet("vmClusterId")) { this.vmClusterId(model.getVmClusterId()); } @@ -531,6 +548,13 @@ public DatabaseStorageSizeDetails getStorageSizeDetails() { return storageSizeDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("managedSoftwareUpdateDetails") + private final ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails; + + public ManagedSoftwareUpdateInputDetails getManagedSoftwareUpdateDetails() { + return managedSoftwareUpdateDetails; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster. **/ @@ -573,6 +597,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sourceEncryptionKeyLocationDetails=") .append(String.valueOf(this.sourceEncryptionKeyLocationDetails)); sb.append(", storageSizeDetails=").append(String.valueOf(this.storageSizeDetails)); + sb.append(", managedSoftwareUpdateDetails=") + .append(String.valueOf(this.managedSoftwareUpdateDetails)); sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); sb.append(")"); return sb.toString(); @@ -604,6 +630,8 @@ public boolean equals(Object o) { this.sourceEncryptionKeyLocationDetails, other.sourceEncryptionKeyLocationDetails) && java.util.Objects.equals(this.storageSizeDetails, other.storageSizeDetails) + && java.util.Objects.equals( + this.managedSoftwareUpdateDetails, other.managedSoftwareUpdateDetails) && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) && super.equals(other); } @@ -644,6 +672,11 @@ public int hashCode() { + (this.storageSizeDetails == null ? 43 : this.storageSizeDetails.hashCode()); + result = + (result * PRIME) + + (this.managedSoftwareUpdateDetails == null + ? 43 + : this.managedSoftwareUpdateDetails.hashCode()); result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromBackupDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromBackupDetails.java index 05a18e4b163..f167f173421 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromBackupDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromBackupDetails.java @@ -32,6 +32,8 @@ public final class CreateDatabaseFromBackupDetails "sidPrefix", "pluggableDatabases", "storageSizeDetails", + "managedSoftwareUpdateDetails", + "vmClusterId", "freeformTags", "definedTags" }) @@ -45,6 +47,8 @@ public CreateDatabaseFromBackupDetails( String sidPrefix, java.util.List pluggableDatabases, DatabaseStorageSizeDetails storageSizeDetails, + ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails, + String vmClusterId, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -57,6 +61,8 @@ public CreateDatabaseFromBackupDetails( this.sidPrefix = sidPrefix; this.pluggableDatabases = pluggableDatabases; this.storageSizeDetails = storageSizeDetails; + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; + this.vmClusterId = vmClusterId; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -196,6 +202,32 @@ public Builder storageSizeDetails(DatabaseStorageSizeDetails storageSizeDetails) this.__explicitlySet__.add("storageSizeDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("managedSoftwareUpdateDetails") + private ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails; + + public Builder managedSoftwareUpdateDetails( + ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails) { + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; + this.__explicitlySet__.add("managedSoftwareUpdateDetails"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster. + * @param vmClusterId the value to set + * @return this builder + **/ + public Builder vmClusterId(String vmClusterId) { + this.vmClusterId = vmClusterId; + this.__explicitlySet__.add("vmClusterId"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -257,6 +289,8 @@ public CreateDatabaseFromBackupDetails build() { this.sidPrefix, this.pluggableDatabases, this.storageSizeDetails, + this.managedSoftwareUpdateDetails, + this.vmClusterId, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -295,6 +329,12 @@ public Builder copy(CreateDatabaseFromBackupDetails model) { if (model.wasPropertyExplicitlySet("storageSizeDetails")) { this.storageSizeDetails(model.getStorageSizeDetails()); } + if (model.wasPropertyExplicitlySet("managedSoftwareUpdateDetails")) { + this.managedSoftwareUpdateDetails(model.getManagedSoftwareUpdateDetails()); + } + if (model.wasPropertyExplicitlySet("vmClusterId")) { + this.vmClusterId(model.getVmClusterId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -430,6 +470,27 @@ public DatabaseStorageSizeDetails getStorageSizeDetails() { return storageSizeDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("managedSoftwareUpdateDetails") + private final ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails; + + public ManagedSoftwareUpdateInputDetails getManagedSoftwareUpdateDetails() { + return managedSoftwareUpdateDetails; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") + private final String vmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster. + * @return the value + **/ + public String getVmClusterId() { + return vmClusterId; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -494,6 +555,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sidPrefix=").append(String.valueOf(this.sidPrefix)); sb.append(", pluggableDatabases=").append(String.valueOf(this.pluggableDatabases)); sb.append(", storageSizeDetails=").append(String.valueOf(this.storageSizeDetails)); + sb.append(", managedSoftwareUpdateDetails=") + .append(String.valueOf(this.managedSoftwareUpdateDetails)); + sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -521,6 +585,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sidPrefix, other.sidPrefix) && java.util.Objects.equals(this.pluggableDatabases, other.pluggableDatabases) && java.util.Objects.equals(this.storageSizeDetails, other.storageSizeDetails) + && java.util.Objects.equals( + this.managedSoftwareUpdateDetails, other.managedSoftwareUpdateDetails) + && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -555,6 +622,12 @@ public int hashCode() { + (this.storageSizeDetails == null ? 43 : this.storageSizeDetails.hashCode()); + result = + (result * PRIME) + + (this.managedSoftwareUpdateDetails == null + ? 43 + : this.managedSoftwareUpdateDetails.hashCode()); + result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java index 82b3ce47cc2..4359a8ef4ee 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java @@ -381,6 +381,7 @@ public enum ImageShapeFamily { ExadataShape("EXADATA_SHAPE"), ExaccShape("EXACC_SHAPE"), ExadbxsShape("EXADBXS_SHAPE"), + BdbccShape("BDBCC_SHAPE"), ; private final String value; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/Database.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/Database.java index d1f3598606c..429cdc07b41 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/Database.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/Database.java @@ -55,6 +55,8 @@ public final class Database extends com.oracle.bmc.http.internal.ExplicitlySetBm "dataGuardGroup", "encryptionKeyLocationDetails", "storageSizeDetails", + "managedSoftwareUpdateDetails", + "homeType", "patchVersion" }) public Database( @@ -93,6 +95,8 @@ public Database( DataGuardGroup dataGuardGroup, EncryptionKeyLocationDetails encryptionKeyLocationDetails, DatabaseStorageSizeResponseDetails storageSizeDetails, + ManagedSoftwareUpdateDetails managedSoftwareUpdateDetails, + HomeType homeType, String patchVersion) { super(); this.id = id; @@ -131,6 +135,8 @@ public Database( this.dataGuardGroup = dataGuardGroup; this.encryptionKeyLocationDetails = encryptionKeyLocationDetails; this.storageSizeDetails = storageSizeDetails; + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; + this.homeType = homeType; this.patchVersion = patchVersion; } @@ -696,6 +702,34 @@ public Builder storageSizeDetails(DatabaseStorageSizeResponseDetails storageSize this.__explicitlySet__.add("storageSizeDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("managedSoftwareUpdateDetails") + private ManagedSoftwareUpdateDetails managedSoftwareUpdateDetails; + + public Builder managedSoftwareUpdateDetails( + ManagedSoftwareUpdateDetails managedSoftwareUpdateDetails) { + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; + this.__explicitlySet__.add("managedSoftwareUpdateDetails"); + return this; + } + /** + * Represents database will be under oracle managed home or customer managed home + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("homeType") + private HomeType homeType; + + /** + * Represents database will be under oracle managed home or customer managed home + * + * @param homeType the value to set + * @return this builder + **/ + public Builder homeType(HomeType homeType) { + this.homeType = homeType; + this.__explicitlySet__.add("homeType"); + return this; + } /** * The patch version of the database. **/ @@ -754,6 +788,8 @@ public Database build() { this.dataGuardGroup, this.encryptionKeyLocationDetails, this.storageSizeDetails, + this.managedSoftwareUpdateDetails, + this.homeType, this.patchVersion); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -869,6 +905,12 @@ public Builder copy(Database model) { if (model.wasPropertyExplicitlySet("storageSizeDetails")) { this.storageSizeDetails(model.getStorageSizeDetails()); } + if (model.wasPropertyExplicitlySet("managedSoftwareUpdateDetails")) { + this.managedSoftwareUpdateDetails(model.getManagedSoftwareUpdateDetails()); + } + if (model.wasPropertyExplicitlySet("homeType")) { + this.homeType(model.getHomeType()); + } if (model.wasPropertyExplicitlySet("patchVersion")) { this.patchVersion(model.getPatchVersion()); } @@ -1428,6 +1470,78 @@ public DatabaseStorageSizeResponseDetails getStorageSizeDetails() { return storageSizeDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("managedSoftwareUpdateDetails") + private final ManagedSoftwareUpdateDetails managedSoftwareUpdateDetails; + + public ManagedSoftwareUpdateDetails getManagedSoftwareUpdateDetails() { + return managedSoftwareUpdateDetails; + } + + /** + * Represents database will be under oracle managed home or customer managed home + * + **/ + public enum HomeType { + OracleManaged("ORACLE_MANAGED"), + CustomerManaged("CUSTOMER_MANAGED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(HomeType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HomeType v : HomeType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + HomeType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HomeType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'HomeType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Represents database will be under oracle managed home or customer managed home + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("homeType") + private final HomeType homeType; + + /** + * Represents database will be under oracle managed home or customer managed home + * + * @return the value + **/ + public HomeType getHomeType() { + return homeType; + } + /** * The patch version of the database. **/ @@ -1497,6 +1611,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", encryptionKeyLocationDetails=") .append(String.valueOf(this.encryptionKeyLocationDetails)); sb.append(", storageSizeDetails=").append(String.valueOf(this.storageSizeDetails)); + sb.append(", managedSoftwareUpdateDetails=") + .append(String.valueOf(this.managedSoftwareUpdateDetails)); + sb.append(", homeType=").append(String.valueOf(this.homeType)); sb.append(", patchVersion=").append(String.valueOf(this.patchVersion)); sb.append(")"); return sb.toString(); @@ -1554,6 +1671,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.encryptionKeyLocationDetails, other.encryptionKeyLocationDetails) && java.util.Objects.equals(this.storageSizeDetails, other.storageSizeDetails) + && java.util.Objects.equals( + this.managedSoftwareUpdateDetails, other.managedSoftwareUpdateDetails) + && java.util.Objects.equals(this.homeType, other.homeType) && java.util.Objects.equals(this.patchVersion, other.patchVersion) && super.equals(other); } @@ -1649,6 +1769,12 @@ public int hashCode() { + (this.storageSizeDetails == null ? 43 : this.storageSizeDetails.hashCode()); + result = + (result * PRIME) + + (this.managedSoftwareUpdateDetails == null + ? 43 + : this.managedSoftwareUpdateDetails.hashCode()); + result = (result * PRIME) + (this.homeType == null ? 43 : this.homeType.hashCode()); result = (result * PRIME) + (this.patchVersion == null ? 43 : this.patchVersion.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSoftwareImage.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSoftwareImage.java index 98fc32290ab..63f3e274eab 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSoftwareImage.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSoftwareImage.java @@ -718,6 +718,7 @@ public enum ImageShapeFamily { ExadataShape("EXADATA_SHAPE"), ExaccShape("EXACC_SHAPE"), ExadbxsShape("EXADBXS_SHAPE"), + BdbccShape("BDBCC_SHAPE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSoftwareImageSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSoftwareImageSummary.java index 4bd0da540ec..f27ab3c07dd 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSoftwareImageSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSoftwareImageSummary.java @@ -724,6 +724,7 @@ public enum ImageShapeFamily { ExadataShape("EXADATA_SHAPE"), ExaccShape("EXACC_SHAPE"), ExadbxsShape("EXADBXS_SHAPE"), + BdbccShape("BDBCC_SHAPE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSummary.java index d7f44580284..489b1d83ed4 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSummary.java @@ -60,6 +60,8 @@ public final class DatabaseSummary extends com.oracle.bmc.http.internal.Explicit "dataGuardGroup", "encryptionKeyLocationDetails", "storageSizeDetails", + "managedSoftwareUpdateDetails", + "homeType", "patchVersion" }) public DatabaseSummary( @@ -98,6 +100,8 @@ public DatabaseSummary( DataGuardGroup dataGuardGroup, EncryptionKeyLocationDetails encryptionKeyLocationDetails, DatabaseStorageSizeResponseDetails storageSizeDetails, + ManagedSoftwareUpdateDetails managedSoftwareUpdateDetails, + HomeType homeType, String patchVersion) { super(); this.id = id; @@ -136,6 +140,8 @@ public DatabaseSummary( this.dataGuardGroup = dataGuardGroup; this.encryptionKeyLocationDetails = encryptionKeyLocationDetails; this.storageSizeDetails = storageSizeDetails; + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; + this.homeType = homeType; this.patchVersion = patchVersion; } @@ -701,6 +707,34 @@ public Builder storageSizeDetails(DatabaseStorageSizeResponseDetails storageSize this.__explicitlySet__.add("storageSizeDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("managedSoftwareUpdateDetails") + private ManagedSoftwareUpdateDetails managedSoftwareUpdateDetails; + + public Builder managedSoftwareUpdateDetails( + ManagedSoftwareUpdateDetails managedSoftwareUpdateDetails) { + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; + this.__explicitlySet__.add("managedSoftwareUpdateDetails"); + return this; + } + /** + * Represents database will be under oracle managed home or customer managed home + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("homeType") + private HomeType homeType; + + /** + * Represents database will be under oracle managed home or customer managed home + * + * @param homeType the value to set + * @return this builder + **/ + public Builder homeType(HomeType homeType) { + this.homeType = homeType; + this.__explicitlySet__.add("homeType"); + return this; + } /** * The patch version of the database. **/ @@ -759,6 +793,8 @@ public DatabaseSummary build() { this.dataGuardGroup, this.encryptionKeyLocationDetails, this.storageSizeDetails, + this.managedSoftwareUpdateDetails, + this.homeType, this.patchVersion); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -874,6 +910,12 @@ public Builder copy(DatabaseSummary model) { if (model.wasPropertyExplicitlySet("storageSizeDetails")) { this.storageSizeDetails(model.getStorageSizeDetails()); } + if (model.wasPropertyExplicitlySet("managedSoftwareUpdateDetails")) { + this.managedSoftwareUpdateDetails(model.getManagedSoftwareUpdateDetails()); + } + if (model.wasPropertyExplicitlySet("homeType")) { + this.homeType(model.getHomeType()); + } if (model.wasPropertyExplicitlySet("patchVersion")) { this.patchVersion(model.getPatchVersion()); } @@ -1433,6 +1475,78 @@ public DatabaseStorageSizeResponseDetails getStorageSizeDetails() { return storageSizeDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("managedSoftwareUpdateDetails") + private final ManagedSoftwareUpdateDetails managedSoftwareUpdateDetails; + + public ManagedSoftwareUpdateDetails getManagedSoftwareUpdateDetails() { + return managedSoftwareUpdateDetails; + } + + /** + * Represents database will be under oracle managed home or customer managed home + * + **/ + public enum HomeType { + OracleManaged("ORACLE_MANAGED"), + CustomerManaged("CUSTOMER_MANAGED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(HomeType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HomeType v : HomeType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + HomeType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HomeType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'HomeType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Represents database will be under oracle managed home or customer managed home + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("homeType") + private final HomeType homeType; + + /** + * Represents database will be under oracle managed home or customer managed home + * + * @return the value + **/ + public HomeType getHomeType() { + return homeType; + } + /** * The patch version of the database. **/ @@ -1502,6 +1616,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", encryptionKeyLocationDetails=") .append(String.valueOf(this.encryptionKeyLocationDetails)); sb.append(", storageSizeDetails=").append(String.valueOf(this.storageSizeDetails)); + sb.append(", managedSoftwareUpdateDetails=") + .append(String.valueOf(this.managedSoftwareUpdateDetails)); + sb.append(", homeType=").append(String.valueOf(this.homeType)); sb.append(", patchVersion=").append(String.valueOf(this.patchVersion)); sb.append(")"); return sb.toString(); @@ -1559,6 +1676,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.encryptionKeyLocationDetails, other.encryptionKeyLocationDetails) && java.util.Objects.equals(this.storageSizeDetails, other.storageSizeDetails) + && java.util.Objects.equals( + this.managedSoftwareUpdateDetails, other.managedSoftwareUpdateDetails) + && java.util.Objects.equals(this.homeType, other.homeType) && java.util.Objects.equals(this.patchVersion, other.patchVersion) && super.equals(other); } @@ -1654,6 +1774,12 @@ public int hashCode() { + (this.storageSizeDetails == null ? 43 : this.storageSizeDetails.hashCode()); + result = + (result * PRIME) + + (this.managedSoftwareUpdateDetails == null + ? 43 + : this.managedSoftwareUpdateDetails.hashCode()); + result = (result * PRIME) + (this.homeType == null ? 43 : this.homeType.hashCode()); result = (result * PRIME) + (this.patchVersion == null ? 43 : this.patchVersion.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHome.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHome.java index 1ed3f8c3a92..09444f9c154 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHome.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHome.java @@ -37,7 +37,8 @@ public final class DbHome extends com.oracle.bmc.http.internal.ExplicitlySetBmcM "definedTags", "systemTags", "databaseSoftwareImageId", - "isUnifiedAuditingEnabled" + "isUnifiedAuditingEnabled", + "homeType" }) public DbHome( String id, @@ -57,7 +58,8 @@ public DbHome( java.util.Map> definedTags, java.util.Map> systemTags, String databaseSoftwareImageId, - Boolean isUnifiedAuditingEnabled) { + Boolean isUnifiedAuditingEnabled, + HomeType homeType) { super(); this.id = id; this.compartmentId = compartmentId; @@ -77,6 +79,7 @@ public DbHome( this.systemTags = systemTags; this.databaseSoftwareImageId = databaseSoftwareImageId; this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; + this.homeType = homeType; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -386,6 +389,24 @@ public Builder isUnifiedAuditingEnabled(Boolean isUnifiedAuditingEnabled) { this.__explicitlySet__.add("isUnifiedAuditingEnabled"); return this; } + /** + * Represents database home will be managed by oracle or customer + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("homeType") + private HomeType homeType; + + /** + * Represents database home will be managed by oracle or customer + * + * @param homeType the value to set + * @return this builder + **/ + public Builder homeType(HomeType homeType) { + this.homeType = homeType; + this.__explicitlySet__.add("homeType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -410,7 +431,8 @@ public DbHome build() { this.definedTags, this.systemTags, this.databaseSoftwareImageId, - this.isUnifiedAuditingEnabled); + this.isUnifiedAuditingEnabled, + this.homeType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -473,6 +495,9 @@ public Builder copy(DbHome model) { if (model.wasPropertyExplicitlySet("isUnifiedAuditingEnabled")) { this.isUnifiedAuditingEnabled(model.getIsUnifiedAuditingEnabled()); } + if (model.wasPropertyExplicitlySet("homeType")) { + this.homeType(model.getHomeType()); + } return this; } } @@ -808,6 +833,71 @@ public Boolean getIsUnifiedAuditingEnabled() { return isUnifiedAuditingEnabled; } + /** + * Represents database home will be managed by oracle or customer + * + **/ + public enum HomeType { + OracleManaged("ORACLE_MANAGED"), + CustomerManaged("CUSTOMER_MANAGED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(HomeType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HomeType v : HomeType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + HomeType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HomeType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'HomeType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Represents database home will be managed by oracle or customer + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("homeType") + private final HomeType homeType; + + /** + * Represents database home will be managed by oracle or customer + * + * @return the value + **/ + public HomeType getHomeType() { + return homeType; + } + @Override public String toString() { return this.toString(true); @@ -843,6 +933,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.databaseSoftwareImageId)); sb.append(", isUnifiedAuditingEnabled=") .append(String.valueOf(this.isUnifiedAuditingEnabled)); + sb.append(", homeType=").append(String.valueOf(this.homeType)); sb.append(")"); return sb.toString(); } @@ -878,6 +969,7 @@ public boolean equals(Object o) { this.databaseSoftwareImageId, other.databaseSoftwareImageId) && java.util.Objects.equals( this.isUnifiedAuditingEnabled, other.isUnifiedAuditingEnabled) + && java.util.Objects.equals(this.homeType, other.homeType) && super.equals(other); } @@ -925,6 +1017,7 @@ public int hashCode() { + (this.isUnifiedAuditingEnabled == null ? 43 : this.isUnifiedAuditingEnabled.hashCode()); + result = (result * PRIME) + (this.homeType == null ? 43 : this.homeType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeFromAgentResourceId.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeFromAgentResourceId.java index 809293668ff..74308e402a3 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeFromAgentResourceId.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeFromAgentResourceId.java @@ -40,7 +40,8 @@ public final class DbHomeFromAgentResourceId "definedTags", "systemTags", "databaseSoftwareImageId", - "isUnifiedAuditingEnabled" + "isUnifiedAuditingEnabled", + "homeType" }) public DbHomeFromAgentResourceId( String id, @@ -60,7 +61,8 @@ public DbHomeFromAgentResourceId( java.util.Map> definedTags, java.util.Map> systemTags, String databaseSoftwareImageId, - Boolean isUnifiedAuditingEnabled) { + Boolean isUnifiedAuditingEnabled, + HomeType homeType) { super(); this.id = id; this.compartmentId = compartmentId; @@ -80,6 +82,7 @@ public DbHomeFromAgentResourceId( this.systemTags = systemTags; this.databaseSoftwareImageId = databaseSoftwareImageId; this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; + this.homeType = homeType; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -389,6 +392,24 @@ public Builder isUnifiedAuditingEnabled(Boolean isUnifiedAuditingEnabled) { this.__explicitlySet__.add("isUnifiedAuditingEnabled"); return this; } + /** + * Represents database home will be managed by oracle or customer + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("homeType") + private HomeType homeType; + + /** + * Represents database home will be managed by oracle or customer + * + * @param homeType the value to set + * @return this builder + **/ + public Builder homeType(HomeType homeType) { + this.homeType = homeType; + this.__explicitlySet__.add("homeType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -413,7 +434,8 @@ public DbHomeFromAgentResourceId build() { this.definedTags, this.systemTags, this.databaseSoftwareImageId, - this.isUnifiedAuditingEnabled); + this.isUnifiedAuditingEnabled, + this.homeType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -476,6 +498,9 @@ public Builder copy(DbHomeFromAgentResourceId model) { if (model.wasPropertyExplicitlySet("isUnifiedAuditingEnabled")) { this.isUnifiedAuditingEnabled(model.getIsUnifiedAuditingEnabled()); } + if (model.wasPropertyExplicitlySet("homeType")) { + this.homeType(model.getHomeType()); + } return this; } } @@ -798,6 +823,58 @@ public Boolean getIsUnifiedAuditingEnabled() { return isUnifiedAuditingEnabled; } + /** + * Represents database home will be managed by oracle or customer + * + **/ + public enum HomeType { + OracleManaged("ORACLE_MANAGED"), + CustomerManaged("CUSTOMER_MANAGED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HomeType v : HomeType.values()) { + map.put(v.getValue(), v); + } + } + + HomeType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HomeType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid HomeType: " + key); + } + }; + /** + * Represents database home will be managed by oracle or customer + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("homeType") + private final HomeType homeType; + + /** + * Represents database home will be managed by oracle or customer + * + * @return the value + **/ + public HomeType getHomeType() { + return homeType; + } + @Override public String toString() { return this.toString(true); @@ -833,6 +910,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.databaseSoftwareImageId)); sb.append(", isUnifiedAuditingEnabled=") .append(String.valueOf(this.isUnifiedAuditingEnabled)); + sb.append(", homeType=").append(String.valueOf(this.homeType)); sb.append(")"); return sb.toString(); } @@ -868,6 +946,7 @@ public boolean equals(Object o) { this.databaseSoftwareImageId, other.databaseSoftwareImageId) && java.util.Objects.equals( this.isUnifiedAuditingEnabled, other.isUnifiedAuditingEnabled) + && java.util.Objects.equals(this.homeType, other.homeType) && super.equals(other); } @@ -915,6 +994,7 @@ public int hashCode() { + (this.isUnifiedAuditingEnabled == null ? 43 : this.isUnifiedAuditingEnabled.hashCode()); + result = (result * PRIME) + (this.homeType == null ? 43 : this.homeType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeSummary.java index db7fd932412..43769f65c7b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeSummary.java @@ -46,7 +46,8 @@ public final class DbHomeSummary extends com.oracle.bmc.http.internal.Explicitly "definedTags", "systemTags", "databaseSoftwareImageId", - "isUnifiedAuditingEnabled" + "isUnifiedAuditingEnabled", + "homeType" }) public DbHomeSummary( String id, @@ -66,7 +67,8 @@ public DbHomeSummary( java.util.Map> definedTags, java.util.Map> systemTags, String databaseSoftwareImageId, - Boolean isUnifiedAuditingEnabled) { + Boolean isUnifiedAuditingEnabled, + HomeType homeType) { super(); this.id = id; this.compartmentId = compartmentId; @@ -86,6 +88,7 @@ public DbHomeSummary( this.systemTags = systemTags; this.databaseSoftwareImageId = databaseSoftwareImageId; this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; + this.homeType = homeType; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -395,6 +398,24 @@ public Builder isUnifiedAuditingEnabled(Boolean isUnifiedAuditingEnabled) { this.__explicitlySet__.add("isUnifiedAuditingEnabled"); return this; } + /** + * Represents database home will be managed by oracle or customer + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("homeType") + private HomeType homeType; + + /** + * Represents database home will be managed by oracle or customer + * + * @param homeType the value to set + * @return this builder + **/ + public Builder homeType(HomeType homeType) { + this.homeType = homeType; + this.__explicitlySet__.add("homeType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -419,7 +440,8 @@ public DbHomeSummary build() { this.definedTags, this.systemTags, this.databaseSoftwareImageId, - this.isUnifiedAuditingEnabled); + this.isUnifiedAuditingEnabled, + this.homeType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -482,6 +504,9 @@ public Builder copy(DbHomeSummary model) { if (model.wasPropertyExplicitlySet("isUnifiedAuditingEnabled")) { this.isUnifiedAuditingEnabled(model.getIsUnifiedAuditingEnabled()); } + if (model.wasPropertyExplicitlySet("homeType")) { + this.homeType(model.getHomeType()); + } return this; } } @@ -817,6 +842,71 @@ public Boolean getIsUnifiedAuditingEnabled() { return isUnifiedAuditingEnabled; } + /** + * Represents database home will be managed by oracle or customer + * + **/ + public enum HomeType { + OracleManaged("ORACLE_MANAGED"), + CustomerManaged("CUSTOMER_MANAGED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(HomeType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HomeType v : HomeType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + HomeType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HomeType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'HomeType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Represents database home will be managed by oracle or customer + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("homeType") + private final HomeType homeType; + + /** + * Represents database home will be managed by oracle or customer + * + * @return the value + **/ + public HomeType getHomeType() { + return homeType; + } + @Override public String toString() { return this.toString(true); @@ -852,6 +942,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.databaseSoftwareImageId)); sb.append(", isUnifiedAuditingEnabled=") .append(String.valueOf(this.isUnifiedAuditingEnabled)); + sb.append(", homeType=").append(String.valueOf(this.homeType)); sb.append(")"); return sb.toString(); } @@ -887,6 +978,7 @@ public boolean equals(Object o) { this.databaseSoftwareImageId, other.databaseSoftwareImageId) && java.util.Objects.equals( this.isUnifiedAuditingEnabled, other.isUnifiedAuditingEnabled) + && java.util.Objects.equals(this.homeType, other.homeType) && super.equals(other); } @@ -934,6 +1026,7 @@ public int hashCode() { + (this.isUnifiedAuditingEnabled == null ? 43 : this.isUnifiedAuditingEnabled.hashCode()); + result = (result * PRIME) + (this.homeType == null ? 43 : this.homeType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNode.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNode.java index 72608c5ead4..f774afcc680 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNode.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNode.java @@ -31,6 +31,7 @@ public final class DbNode extends com.oracle.bmc.http.internal.ExplicitlySetBmcM "vnic2Id", "backupVnic2Id", "lifecycleState", + "availableActions", "hostname", "faultDomain", "timeCreated", @@ -64,6 +65,7 @@ public DbNode( String vnic2Id, String backupVnic2Id, LifecycleState lifecycleState, + java.util.List availableActions, String hostname, String faultDomain, java.util.Date timeCreated, @@ -96,6 +98,7 @@ public DbNode( this.vnic2Id = vnic2Id; this.backupVnic2Id = backupVnic2Id; this.lifecycleState = lifecycleState; + this.availableActions = availableActions; this.hostname = hostname; this.faultDomain = faultDomain; this.timeCreated = timeCreated; @@ -344,6 +347,22 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * Actions that can be performed on the database node, depending on its current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private java.util.List availableActions; + + /** + * Actions that can be performed on the database node, depending on its current lifecycle state. + * @param availableActions the value to set + * @return this builder + **/ + public Builder availableActions(java.util.List availableActions) { + this.availableActions = availableActions; + this.__explicitlySet__.add("availableActions"); + return this; + } /** * The host name for the database node. **/ @@ -705,6 +724,7 @@ public DbNode build() { this.vnic2Id, this.backupVnic2Id, this.lifecycleState, + this.availableActions, this.hostname, this.faultDomain, this.timeCreated, @@ -766,6 +786,9 @@ public Builder copy(DbNode model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("availableActions")) { + this.availableActions(model.getAvailableActions()); + } if (model.wasPropertyExplicitlySet("hostname")) { this.hostname(model.getHostname()); } @@ -1098,6 +1121,71 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + **/ + public enum AvailableActions { + Stop("STOP"), + Forcestop("FORCESTOP"), + Forcereset("FORCERESET"), + Start("START"), + Softreset("SOFTRESET"), + Reset("RESET"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AvailableActions.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AvailableActions v : AvailableActions.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AvailableActions(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AvailableActions create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AvailableActions', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Actions that can be performed on the database node, depending on its current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private final java.util.List availableActions; + + /** + * Actions that can be performed on the database node, depending on its current lifecycle state. + * @return the value + **/ + public java.util.List getAvailableActions() { + return availableActions; + } + /** * The host name for the database node. **/ @@ -1521,6 +1609,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", vnic2Id=").append(String.valueOf(this.vnic2Id)); sb.append(", backupVnic2Id=").append(String.valueOf(this.backupVnic2Id)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", availableActions=").append(String.valueOf(this.availableActions)); sb.append(", hostname=").append(String.valueOf(this.hostname)); sb.append(", faultDomain=").append(String.valueOf(this.faultDomain)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -1570,6 +1659,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.vnic2Id, other.vnic2Id) && java.util.Objects.equals(this.backupVnic2Id, other.backupVnic2Id) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.availableActions, other.availableActions) && java.util.Objects.equals(this.hostname, other.hostname) && java.util.Objects.equals(this.faultDomain, other.faultDomain) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -1617,6 +1707,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.availableActions == null ? 43 : this.availableActions.hashCode()); result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); result = (result * PRIME) + (this.faultDomain == null ? 43 : this.faultDomain.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNodeSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNodeSummary.java index 48b4930f13a..c6796d9ac65 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNodeSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNodeSummary.java @@ -36,6 +36,7 @@ public final class DbNodeSummary extends com.oracle.bmc.http.internal.Explicitly "vnic2Id", "backupVnic2Id", "lifecycleState", + "availableActions", "hostname", "faultDomain", "timeCreated", @@ -69,6 +70,7 @@ public DbNodeSummary( String vnic2Id, String backupVnic2Id, LifecycleState lifecycleState, + java.util.List availableActions, String hostname, String faultDomain, java.util.Date timeCreated, @@ -101,6 +103,7 @@ public DbNodeSummary( this.vnic2Id = vnic2Id; this.backupVnic2Id = backupVnic2Id; this.lifecycleState = lifecycleState; + this.availableActions = availableActions; this.hostname = hostname; this.faultDomain = faultDomain; this.timeCreated = timeCreated; @@ -349,6 +352,22 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * Actions that can be performed on the database node, depending on its current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private java.util.List availableActions; + + /** + * Actions that can be performed on the database node, depending on its current lifecycle state. + * @param availableActions the value to set + * @return this builder + **/ + public Builder availableActions(java.util.List availableActions) { + this.availableActions = availableActions; + this.__explicitlySet__.add("availableActions"); + return this; + } /** * The host name for the database node. **/ @@ -710,6 +729,7 @@ public DbNodeSummary build() { this.vnic2Id, this.backupVnic2Id, this.lifecycleState, + this.availableActions, this.hostname, this.faultDomain, this.timeCreated, @@ -771,6 +791,9 @@ public Builder copy(DbNodeSummary model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("availableActions")) { + this.availableActions(model.getAvailableActions()); + } if (model.wasPropertyExplicitlySet("hostname")) { this.hostname(model.getHostname()); } @@ -1103,6 +1126,71 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + **/ + public enum AvailableActions { + Stop("STOP"), + Forcestop("FORCESTOP"), + Forcereset("FORCERESET"), + Start("START"), + Softreset("SOFTRESET"), + Reset("RESET"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AvailableActions.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AvailableActions v : AvailableActions.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AvailableActions(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AvailableActions create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AvailableActions', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Actions that can be performed on the database node, depending on its current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private final java.util.List availableActions; + + /** + * Actions that can be performed on the database node, depending on its current lifecycle state. + * @return the value + **/ + public java.util.List getAvailableActions() { + return availableActions; + } + /** * The host name for the database node. **/ @@ -1526,6 +1614,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", vnic2Id=").append(String.valueOf(this.vnic2Id)); sb.append(", backupVnic2Id=").append(String.valueOf(this.backupVnic2Id)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", availableActions=").append(String.valueOf(this.availableActions)); sb.append(", hostname=").append(String.valueOf(this.hostname)); sb.append(", faultDomain=").append(String.valueOf(this.faultDomain)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -1575,6 +1664,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.vnic2Id, other.vnic2Id) && java.util.Objects.equals(this.backupVnic2Id, other.backupVnic2Id) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.availableActions, other.availableActions) && java.util.Objects.equals(this.hostname, other.hostname) && java.util.Objects.equals(this.faultDomain, other.faultDomain) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -1622,6 +1712,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.availableActions == null ? 43 : this.availableActions.hashCode()); result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); result = (result * PRIME) + (this.faultDomain == null ? 43 : this.faultDomain.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataLiveImageVersionDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataLiveImageVersionDetails.java new file mode 100644 index 00000000000..ba6c26c85c3 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataLiveImageVersionDetails.java @@ -0,0 +1,317 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Details about the most recent live image version applied on the VM Cluster, if any. If a full OS update was applied, the fields would be blank. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExadataLiveImageVersionDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExadataLiveImageVersionDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "updateMode", + "version", + "hasPendingUpdates", + "timeReleased" + }) + public ExadataLiveImageVersionDetails( + UpdateMode updateMode, + String version, + Boolean hasPendingUpdates, + java.util.Date timeReleased) { + super(); + this.updateMode = updateMode; + this.version = version; + this.hasPendingUpdates = hasPendingUpdates; + this.timeReleased = timeReleased; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OS live update mode performed most recently on the VM Cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private UpdateMode updateMode; + + /** + * The OS live update mode performed most recently on the VM Cluster. + * @param updateMode the value to set + * @return this builder + **/ + public Builder updateMode(UpdateMode updateMode) { + this.updateMode = updateMode; + this.__explicitlySet__.add("updateMode"); + return this; + } + /** + * Live Exadata Image Version of the Guest OS Update applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * Live Exadata Image Version of the Guest OS Update applied. + * @param version the value to set + * @return this builder + **/ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * Indicates whether OS updates that require node reboot are pending after the previous online update was applied. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hasPendingUpdates") + private Boolean hasPendingUpdates; + + /** + * Indicates whether OS updates that require node reboot are pending after the previous online update was applied. + * + * @param hasPendingUpdates the value to set + * @return this builder + **/ + public Builder hasPendingUpdates(Boolean hasPendingUpdates) { + this.hasPendingUpdates = hasPendingUpdates; + this.__explicitlySet__.add("hasPendingUpdates"); + return this; + } + /** + * The release date and time for the applied Live Exadata Image OS version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeReleased") + private java.util.Date timeReleased; + + /** + * The release date and time for the applied Live Exadata Image OS version. + * @param timeReleased the value to set + * @return this builder + **/ + public Builder timeReleased(java.util.Date timeReleased) { + this.timeReleased = timeReleased; + this.__explicitlySet__.add("timeReleased"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExadataLiveImageVersionDetails build() { + ExadataLiveImageVersionDetails model = + new ExadataLiveImageVersionDetails( + this.updateMode, + this.version, + this.hasPendingUpdates, + this.timeReleased); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExadataLiveImageVersionDetails model) { + if (model.wasPropertyExplicitlySet("updateMode")) { + this.updateMode(model.getUpdateMode()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("hasPendingUpdates")) { + this.hasPendingUpdates(model.getHasPendingUpdates()); + } + if (model.wasPropertyExplicitlySet("timeReleased")) { + this.timeReleased(model.getTimeReleased()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OS live update mode performed most recently on the VM Cluster. + **/ + public enum UpdateMode { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateMode v : UpdateMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UpdateMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UpdateMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The OS live update mode performed most recently on the VM Cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private final UpdateMode updateMode; + + /** + * The OS live update mode performed most recently on the VM Cluster. + * @return the value + **/ + public UpdateMode getUpdateMode() { + return updateMode; + } + + /** + * Live Exadata Image Version of the Guest OS Update applied. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * Live Exadata Image Version of the Guest OS Update applied. + * @return the value + **/ + public String getVersion() { + return version; + } + + /** + * Indicates whether OS updates that require node reboot are pending after the previous online update was applied. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hasPendingUpdates") + private final Boolean hasPendingUpdates; + + /** + * Indicates whether OS updates that require node reboot are pending after the previous online update was applied. + * + * @return the value + **/ + public Boolean getHasPendingUpdates() { + return hasPendingUpdates; + } + + /** + * The release date and time for the applied Live Exadata Image OS version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeReleased") + private final java.util.Date timeReleased; + + /** + * The release date and time for the applied Live Exadata Image OS version. + * @return the value + **/ + public java.util.Date getTimeReleased() { + return timeReleased; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExadataLiveImageVersionDetails("); + sb.append("super=").append(super.toString()); + sb.append("updateMode=").append(String.valueOf(this.updateMode)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", hasPendingUpdates=").append(String.valueOf(this.hasPendingUpdates)); + sb.append(", timeReleased=").append(String.valueOf(this.timeReleased)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExadataLiveImageVersionDetails)) { + return false; + } + + ExadataLiveImageVersionDetails other = (ExadataLiveImageVersionDetails) o; + return java.util.Objects.equals(this.updateMode, other.updateMode) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.hasPendingUpdates, other.hasPendingUpdates) + && java.util.Objects.equals(this.timeReleased, other.timeReleased) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.updateMode == null ? 43 : this.updateMode.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = + (result * PRIME) + + (this.hasPendingUpdates == null ? 43 : this.hasPendingUpdates.hashCode()); + result = (result * PRIME) + (this.timeReleased == null ? 43 : this.timeReleased.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java index bc3de4d726b..aafd30693ec 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java @@ -69,7 +69,9 @@ public final class ExadbVmCluster extends com.oracle.bmc.http.internal.Explicitl "memorySizeInGBs", "clusterPlacementGroupId", "subscriptionId", - "shapeAttribute" + "shapeAttribute", + "multiCloudIdentityConnectorConfigs", + "tdeKeyStoreType" }) public ExadbVmCluster( ExadataIormConfig iormConfigCache, @@ -120,7 +122,9 @@ public ExadbVmCluster( Integer memorySizeInGBs, String clusterPlacementGroupId, String subscriptionId, - ShapeAttribute shapeAttribute) { + ShapeAttribute shapeAttribute, + java.util.List multiCloudIdentityConnectorConfigs, + TdeKeyStoreType tdeKeyStoreType) { super(); this.iormConfigCache = iormConfigCache; this.id = id; @@ -171,6 +175,8 @@ public ExadbVmCluster( this.clusterPlacementGroupId = clusterPlacementGroupId; this.subscriptionId = subscriptionId; this.shapeAttribute = shapeAttribute; + this.multiCloudIdentityConnectorConfigs = multiCloudIdentityConnectorConfigs; + this.tdeKeyStoreType = tdeKeyStoreType; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -1037,6 +1043,39 @@ public Builder shapeAttribute(ShapeAttribute shapeAttribute) { this.__explicitlySet__.add("shapeAttribute"); return this; } + /** + * Details of the multi cloud identity connectors of the VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("multiCloudIdentityConnectorConfigs") + private java.util.List multiCloudIdentityConnectorConfigs; + + /** + * Details of the multi cloud identity connectors of the VM cluster. + * @param multiCloudIdentityConnectorConfigs the value to set + * @return this builder + **/ + public Builder multiCloudIdentityConnectorConfigs( + java.util.List multiCloudIdentityConnectorConfigs) { + this.multiCloudIdentityConnectorConfigs = multiCloudIdentityConnectorConfigs; + this.__explicitlySet__.add("multiCloudIdentityConnectorConfigs"); + return this; + } + /** + * TDE keystore type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tdeKeyStoreType") + private TdeKeyStoreType tdeKeyStoreType; + + /** + * TDE keystore type + * @param tdeKeyStoreType the value to set + * @return this builder + **/ + public Builder tdeKeyStoreType(TdeKeyStoreType tdeKeyStoreType) { + this.tdeKeyStoreType = tdeKeyStoreType; + this.__explicitlySet__.add("tdeKeyStoreType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -1092,7 +1131,9 @@ public ExadbVmCluster build() { this.memorySizeInGBs, this.clusterPlacementGroupId, this.subscriptionId, - this.shapeAttribute); + this.shapeAttribute, + this.multiCloudIdentityConnectorConfigs, + this.tdeKeyStoreType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -1248,6 +1289,13 @@ public Builder copy(ExadbVmCluster model) { if (model.wasPropertyExplicitlySet("shapeAttribute")) { this.shapeAttribute(model.getShapeAttribute()); } + if (model.wasPropertyExplicitlySet("multiCloudIdentityConnectorConfigs")) { + this.multiCloudIdentityConnectorConfigs( + model.getMultiCloudIdentityConnectorConfigs()); + } + if (model.wasPropertyExplicitlySet("tdeKeyStoreType")) { + this.tdeKeyStoreType(model.getTdeKeyStoreType()); + } return this; } } @@ -2223,6 +2271,84 @@ public ShapeAttribute getShapeAttribute() { return shapeAttribute; } + /** + * Details of the multi cloud identity connectors of the VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("multiCloudIdentityConnectorConfigs") + private final java.util.List multiCloudIdentityConnectorConfigs; + + /** + * Details of the multi cloud identity connectors of the VM cluster. + * @return the value + **/ + public java.util.List getMultiCloudIdentityConnectorConfigs() { + return multiCloudIdentityConnectorConfigs; + } + + /** + * TDE keystore type + **/ + public enum TdeKeyStoreType { + Azure("AZURE"), + Oci("OCI"), + Gcp("GCP"), + Aws("AWS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(TdeKeyStoreType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TdeKeyStoreType v : TdeKeyStoreType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TdeKeyStoreType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TdeKeyStoreType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TdeKeyStoreType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * TDE keystore type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tdeKeyStoreType") + private final TdeKeyStoreType tdeKeyStoreType; + + /** + * TDE keystore type + * @return the value + **/ + public TdeKeyStoreType getTdeKeyStoreType() { + return tdeKeyStoreType; + } + @Override public String toString() { return this.toString(true); @@ -2290,6 +2416,9 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.clusterPlacementGroupId)); sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(", shapeAttribute=").append(String.valueOf(this.shapeAttribute)); + sb.append(", multiCloudIdentityConnectorConfigs=") + .append(String.valueOf(this.multiCloudIdentityConnectorConfigs)); + sb.append(", tdeKeyStoreType=").append(String.valueOf(this.tdeKeyStoreType)); sb.append(")"); return sb.toString(); } @@ -2359,6 +2488,10 @@ public boolean equals(Object o) { this.clusterPlacementGroupId, other.clusterPlacementGroupId) && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals(this.shapeAttribute, other.shapeAttribute) + && java.util.Objects.equals( + this.multiCloudIdentityConnectorConfigs, + other.multiCloudIdentityConnectorConfigs) + && java.util.Objects.equals(this.tdeKeyStoreType, other.tdeKeyStoreType) && super.equals(other); } @@ -2493,6 +2626,14 @@ public int hashCode() { result = (result * PRIME) + (this.shapeAttribute == null ? 43 : this.shapeAttribute.hashCode()); + result = + (result * PRIME) + + (this.multiCloudIdentityConnectorConfigs == null + ? 43 + : this.multiCloudIdentityConnectorConfigs.hashCode()); + result = + (result * PRIME) + + (this.tdeKeyStoreType == null ? 43 : this.tdeKeyStoreType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java index c3c496f5953..b0fb15dabbc 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java @@ -71,7 +71,9 @@ public final class ExadbVmClusterSummary "memorySizeInGBs", "clusterPlacementGroupId", "subscriptionId", - "shapeAttribute" + "shapeAttribute", + "multiCloudIdentityConnectorConfigs", + "tdeKeyStoreType" }) public ExadbVmClusterSummary( String id, @@ -121,7 +123,9 @@ public ExadbVmClusterSummary( Integer memorySizeInGBs, String clusterPlacementGroupId, String subscriptionId, - ShapeAttribute shapeAttribute) { + ShapeAttribute shapeAttribute, + java.util.List multiCloudIdentityConnectorConfigs, + TdeKeyStoreType tdeKeyStoreType) { super(); this.id = id; this.compartmentId = compartmentId; @@ -171,6 +175,8 @@ public ExadbVmClusterSummary( this.clusterPlacementGroupId = clusterPlacementGroupId; this.subscriptionId = subscriptionId; this.shapeAttribute = shapeAttribute; + this.multiCloudIdentityConnectorConfigs = multiCloudIdentityConnectorConfigs; + this.tdeKeyStoreType = tdeKeyStoreType; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -1028,6 +1034,39 @@ public Builder shapeAttribute(ShapeAttribute shapeAttribute) { this.__explicitlySet__.add("shapeAttribute"); return this; } + /** + * Details of the multi cloud identity connectors of the VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("multiCloudIdentityConnectorConfigs") + private java.util.List multiCloudIdentityConnectorConfigs; + + /** + * Details of the multi cloud identity connectors of the VM cluster. + * @param multiCloudIdentityConnectorConfigs the value to set + * @return this builder + **/ + public Builder multiCloudIdentityConnectorConfigs( + java.util.List multiCloudIdentityConnectorConfigs) { + this.multiCloudIdentityConnectorConfigs = multiCloudIdentityConnectorConfigs; + this.__explicitlySet__.add("multiCloudIdentityConnectorConfigs"); + return this; + } + /** + * TDE keystore type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tdeKeyStoreType") + private TdeKeyStoreType tdeKeyStoreType; + + /** + * TDE keystore type + * @param tdeKeyStoreType the value to set + * @return this builder + **/ + public Builder tdeKeyStoreType(TdeKeyStoreType tdeKeyStoreType) { + this.tdeKeyStoreType = tdeKeyStoreType; + this.__explicitlySet__.add("tdeKeyStoreType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -1082,7 +1121,9 @@ public ExadbVmClusterSummary build() { this.memorySizeInGBs, this.clusterPlacementGroupId, this.subscriptionId, - this.shapeAttribute); + this.shapeAttribute, + this.multiCloudIdentityConnectorConfigs, + this.tdeKeyStoreType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -1235,6 +1276,13 @@ public Builder copy(ExadbVmClusterSummary model) { if (model.wasPropertyExplicitlySet("shapeAttribute")) { this.shapeAttribute(model.getShapeAttribute()); } + if (model.wasPropertyExplicitlySet("multiCloudIdentityConnectorConfigs")) { + this.multiCloudIdentityConnectorConfigs( + model.getMultiCloudIdentityConnectorConfigs()); + } + if (model.wasPropertyExplicitlySet("tdeKeyStoreType")) { + this.tdeKeyStoreType(model.getTdeKeyStoreType()); + } return this; } } @@ -2203,6 +2251,84 @@ public ShapeAttribute getShapeAttribute() { return shapeAttribute; } + /** + * Details of the multi cloud identity connectors of the VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("multiCloudIdentityConnectorConfigs") + private final java.util.List multiCloudIdentityConnectorConfigs; + + /** + * Details of the multi cloud identity connectors of the VM cluster. + * @return the value + **/ + public java.util.List getMultiCloudIdentityConnectorConfigs() { + return multiCloudIdentityConnectorConfigs; + } + + /** + * TDE keystore type + **/ + public enum TdeKeyStoreType { + Azure("AZURE"), + Oci("OCI"), + Gcp("GCP"), + Aws("AWS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(TdeKeyStoreType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TdeKeyStoreType v : TdeKeyStoreType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TdeKeyStoreType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TdeKeyStoreType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TdeKeyStoreType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * TDE keystore type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tdeKeyStoreType") + private final TdeKeyStoreType tdeKeyStoreType; + + /** + * TDE keystore type + * @return the value + **/ + public TdeKeyStoreType getTdeKeyStoreType() { + return tdeKeyStoreType; + } + @Override public String toString() { return this.toString(true); @@ -2269,6 +2395,9 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.clusterPlacementGroupId)); sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(", shapeAttribute=").append(String.valueOf(this.shapeAttribute)); + sb.append(", multiCloudIdentityConnectorConfigs=") + .append(String.valueOf(this.multiCloudIdentityConnectorConfigs)); + sb.append(", tdeKeyStoreType=").append(String.valueOf(this.tdeKeyStoreType)); sb.append(")"); return sb.toString(); } @@ -2337,6 +2466,10 @@ public boolean equals(Object o) { this.clusterPlacementGroupId, other.clusterPlacementGroupId) && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals(this.shapeAttribute, other.shapeAttribute) + && java.util.Objects.equals( + this.multiCloudIdentityConnectorConfigs, + other.multiCloudIdentityConnectorConfigs) + && java.util.Objects.equals(this.tdeKeyStoreType, other.tdeKeyStoreType) && super.equals(other); } @@ -2468,6 +2601,14 @@ public int hashCode() { result = (result * PRIME) + (this.shapeAttribute == null ? 43 : this.shapeAttribute.hashCode()); + result = + (result * PRIME) + + (this.multiCloudIdentityConnectorConfigs == null + ? 43 + : this.multiCloudIdentityConnectorConfigs.hashCode()); + result = + (result * PRIME) + + (this.tdeKeyStoreType == null ? 43 : this.tdeKeyStoreType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdateDayOfWeek.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdateDayOfWeek.java new file mode 100644 index 00000000000..ab5c5e0ee62 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdateDayOfWeek.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Day of the week. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedSoftwareUpdateDayOfWeek.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedSoftwareUpdateDayOfWeek + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"dayOfWeek"}) + public ManagedSoftwareUpdateDayOfWeek(DayOfWeek dayOfWeek) { + super(); + this.dayOfWeek = dayOfWeek; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Day of the week. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dayOfWeek") + private DayOfWeek dayOfWeek; + + /** + * Day of the week. + * + * @param dayOfWeek the value to set + * @return this builder + **/ + public Builder dayOfWeek(DayOfWeek dayOfWeek) { + this.dayOfWeek = dayOfWeek; + this.__explicitlySet__.add("dayOfWeek"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedSoftwareUpdateDayOfWeek build() { + ManagedSoftwareUpdateDayOfWeek model = + new ManagedSoftwareUpdateDayOfWeek(this.dayOfWeek); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedSoftwareUpdateDayOfWeek model) { + if (model.wasPropertyExplicitlySet("dayOfWeek")) { + this.dayOfWeek(model.getDayOfWeek()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Day of the week. + * + **/ + public enum DayOfWeek { + Sunday("SUNDAY"), + Monday("MONDAY"), + Tuesday("TUESDAY"), + Wednesday("WEDNESDAY"), + Thursday("THURSDAY"), + Friday("FRIDAY"), + Saturday("SATURDAY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DayOfWeek.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DayOfWeek v : DayOfWeek.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DayOfWeek(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DayOfWeek create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DayOfWeek', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Day of the week. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dayOfWeek") + private final DayOfWeek dayOfWeek; + + /** + * Day of the week. + * + * @return the value + **/ + public DayOfWeek getDayOfWeek() { + return dayOfWeek; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedSoftwareUpdateDayOfWeek("); + sb.append("super=").append(super.toString()); + sb.append("dayOfWeek=").append(String.valueOf(this.dayOfWeek)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedSoftwareUpdateDayOfWeek)) { + return false; + } + + ManagedSoftwareUpdateDayOfWeek other = (ManagedSoftwareUpdateDayOfWeek) o; + return java.util.Objects.equals(this.dayOfWeek, other.dayOfWeek) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.dayOfWeek == null ? 43 : this.dayOfWeek.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdateDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdateDetails.java new file mode 100644 index 00000000000..1d743e9be8f --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdateDetails.java @@ -0,0 +1,199 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * The database registered for Oracle Managed Database Software Updates. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedSoftwareUpdateDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedSoftwareUpdateDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEnrolled", "preferenceDetails", "maintenanceDetails"}) + public ManagedSoftwareUpdateDetails( + Boolean isEnrolled, + ManagedSoftwareUpdatePreferenceDetails preferenceDetails, + ManagedSoftwareUpdateMaintenanceDetails maintenanceDetails) { + super(); + this.isEnrolled = isEnrolled; + this.preferenceDetails = preferenceDetails; + this.maintenanceDetails = maintenanceDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * If true, database is registered for Oracle Managed Database Software Updates otherwise database is not registered for Oracle Managed Database Software Updates + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnrolled") + private Boolean isEnrolled; + + /** + * If true, database is registered for Oracle Managed Database Software Updates otherwise database is not registered for Oracle Managed Database Software Updates + * + * @param isEnrolled the value to set + * @return this builder + **/ + public Builder isEnrolled(Boolean isEnrolled) { + this.isEnrolled = isEnrolled; + this.__explicitlySet__.add("isEnrolled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("preferenceDetails") + private ManagedSoftwareUpdatePreferenceDetails preferenceDetails; + + public Builder preferenceDetails(ManagedSoftwareUpdatePreferenceDetails preferenceDetails) { + this.preferenceDetails = preferenceDetails; + this.__explicitlySet__.add("preferenceDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceDetails") + private ManagedSoftwareUpdateMaintenanceDetails maintenanceDetails; + + public Builder maintenanceDetails( + ManagedSoftwareUpdateMaintenanceDetails maintenanceDetails) { + this.maintenanceDetails = maintenanceDetails; + this.__explicitlySet__.add("maintenanceDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedSoftwareUpdateDetails build() { + ManagedSoftwareUpdateDetails model = + new ManagedSoftwareUpdateDetails( + this.isEnrolled, this.preferenceDetails, this.maintenanceDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedSoftwareUpdateDetails model) { + if (model.wasPropertyExplicitlySet("isEnrolled")) { + this.isEnrolled(model.getIsEnrolled()); + } + if (model.wasPropertyExplicitlySet("preferenceDetails")) { + this.preferenceDetails(model.getPreferenceDetails()); + } + if (model.wasPropertyExplicitlySet("maintenanceDetails")) { + this.maintenanceDetails(model.getMaintenanceDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * If true, database is registered for Oracle Managed Database Software Updates otherwise database is not registered for Oracle Managed Database Software Updates + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnrolled") + private final Boolean isEnrolled; + + /** + * If true, database is registered for Oracle Managed Database Software Updates otherwise database is not registered for Oracle Managed Database Software Updates + * + * @return the value + **/ + public Boolean getIsEnrolled() { + return isEnrolled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("preferenceDetails") + private final ManagedSoftwareUpdatePreferenceDetails preferenceDetails; + + public ManagedSoftwareUpdatePreferenceDetails getPreferenceDetails() { + return preferenceDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceDetails") + private final ManagedSoftwareUpdateMaintenanceDetails maintenanceDetails; + + public ManagedSoftwareUpdateMaintenanceDetails getMaintenanceDetails() { + return maintenanceDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedSoftwareUpdateDetails("); + sb.append("super=").append(super.toString()); + sb.append("isEnrolled=").append(String.valueOf(this.isEnrolled)); + sb.append(", preferenceDetails=").append(String.valueOf(this.preferenceDetails)); + sb.append(", maintenanceDetails=").append(String.valueOf(this.maintenanceDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedSoftwareUpdateDetails)) { + return false; + } + + ManagedSoftwareUpdateDetails other = (ManagedSoftwareUpdateDetails) o; + return java.util.Objects.equals(this.isEnrolled, other.isEnrolled) + && java.util.Objects.equals(this.preferenceDetails, other.preferenceDetails) + && java.util.Objects.equals(this.maintenanceDetails, other.maintenanceDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnrolled == null ? 43 : this.isEnrolled.hashCode()); + result = + (result * PRIME) + + (this.preferenceDetails == null ? 43 : this.preferenceDetails.hashCode()); + result = + (result * PRIME) + + (this.maintenanceDetails == null + ? 43 + : this.maintenanceDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdateInputDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdateInputDetails.java new file mode 100644 index 00000000000..ee2a7102d6e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdateInputDetails.java @@ -0,0 +1,168 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * The database registered for Oracle Managed Database Software Updates. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedSoftwareUpdateInputDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedSoftwareUpdateInputDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isEnrolled", "preferenceDetails"}) + public ManagedSoftwareUpdateInputDetails( + Boolean isEnrolled, ManagedSoftwareUpdatePreferenceDetails preferenceDetails) { + super(); + this.isEnrolled = isEnrolled; + this.preferenceDetails = preferenceDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * If true, database is registered for Oracle Managed Database Software Updates otherwise database is not registered for Oracle Managed Database Software Updates + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnrolled") + private Boolean isEnrolled; + + /** + * If true, database is registered for Oracle Managed Database Software Updates otherwise database is not registered for Oracle Managed Database Software Updates + * + * @param isEnrolled the value to set + * @return this builder + **/ + public Builder isEnrolled(Boolean isEnrolled) { + this.isEnrolled = isEnrolled; + this.__explicitlySet__.add("isEnrolled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("preferenceDetails") + private ManagedSoftwareUpdatePreferenceDetails preferenceDetails; + + public Builder preferenceDetails(ManagedSoftwareUpdatePreferenceDetails preferenceDetails) { + this.preferenceDetails = preferenceDetails; + this.__explicitlySet__.add("preferenceDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedSoftwareUpdateInputDetails build() { + ManagedSoftwareUpdateInputDetails model = + new ManagedSoftwareUpdateInputDetails(this.isEnrolled, this.preferenceDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedSoftwareUpdateInputDetails model) { + if (model.wasPropertyExplicitlySet("isEnrolled")) { + this.isEnrolled(model.getIsEnrolled()); + } + if (model.wasPropertyExplicitlySet("preferenceDetails")) { + this.preferenceDetails(model.getPreferenceDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * If true, database is registered for Oracle Managed Database Software Updates otherwise database is not registered for Oracle Managed Database Software Updates + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnrolled") + private final Boolean isEnrolled; + + /** + * If true, database is registered for Oracle Managed Database Software Updates otherwise database is not registered for Oracle Managed Database Software Updates + * + * @return the value + **/ + public Boolean getIsEnrolled() { + return isEnrolled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("preferenceDetails") + private final ManagedSoftwareUpdatePreferenceDetails preferenceDetails; + + public ManagedSoftwareUpdatePreferenceDetails getPreferenceDetails() { + return preferenceDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedSoftwareUpdateInputDetails("); + sb.append("super=").append(super.toString()); + sb.append("isEnrolled=").append(String.valueOf(this.isEnrolled)); + sb.append(", preferenceDetails=").append(String.valueOf(this.preferenceDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedSoftwareUpdateInputDetails)) { + return false; + } + + ManagedSoftwareUpdateInputDetails other = (ManagedSoftwareUpdateInputDetails) o; + return java.util.Objects.equals(this.isEnrolled, other.isEnrolled) + && java.util.Objects.equals(this.preferenceDetails, other.preferenceDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isEnrolled == null ? 43 : this.isEnrolled.hashCode()); + result = + (result * PRIME) + + (this.preferenceDetails == null ? 43 : this.preferenceDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdateMaintenanceDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdateMaintenanceDetails.java new file mode 100644 index 00000000000..3ec1edec47f --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdateMaintenanceDetails.java @@ -0,0 +1,510 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Provides details about actual Oracle Managed Database Software Updates scheduled time and version. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedSoftwareUpdateMaintenanceDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedSoftwareUpdateMaintenanceDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "timeScheduled", + "updateReadinessStatus", + "updateReadinessStatusDetails", + "timeOfStatusUpdate", + "updateMode", + "version", + "timeOfLastReadinessCheck" + }) + public ManagedSoftwareUpdateMaintenanceDetails( + java.util.Date timeScheduled, + UpdateReadinessStatus updateReadinessStatus, + String updateReadinessStatusDetails, + java.util.Date timeOfStatusUpdate, + UpdateMode updateMode, + String version, + java.util.Date timeOfLastReadinessCheck) { + super(); + this.timeScheduled = timeScheduled; + this.updateReadinessStatus = updateReadinessStatus; + this.updateReadinessStatusDetails = updateReadinessStatusDetails; + this.timeOfStatusUpdate = timeOfStatusUpdate; + this.updateMode = updateMode; + this.version = version; + this.timeOfLastReadinessCheck = timeOfLastReadinessCheck; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The date and time of the database was scheduled for update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * The date and time of the database was scheduled for update. + * @param timeScheduled the value to set + * @return this builder + **/ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + /** + * The managed software update readiness status + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateReadinessStatus") + private UpdateReadinessStatus updateReadinessStatus; + + /** + * The managed software update readiness status + * @param updateReadinessStatus the value to set + * @return this builder + **/ + public Builder updateReadinessStatus(UpdateReadinessStatus updateReadinessStatus) { + this.updateReadinessStatus = updateReadinessStatus; + this.__explicitlySet__.add("updateReadinessStatus"); + return this; + } + /** + * This field will contain actual cause of update readiness state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateReadinessStatusDetails") + private String updateReadinessStatusDetails; + + /** + * This field will contain actual cause of update readiness state. + * @param updateReadinessStatusDetails the value to set + * @return this builder + **/ + public Builder updateReadinessStatusDetails(String updateReadinessStatusDetails) { + this.updateReadinessStatusDetails = updateReadinessStatusDetails; + this.__explicitlySet__.add("updateReadinessStatusDetails"); + return this; + } + /** + * The date and time of when the status was updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfStatusUpdate") + private java.util.Date timeOfStatusUpdate; + + /** + * The date and time of when the status was updated. + * @param timeOfStatusUpdate the value to set + * @return this builder + **/ + public Builder timeOfStatusUpdate(java.util.Date timeOfStatusUpdate) { + this.timeOfStatusUpdate = timeOfStatusUpdate; + this.__explicitlySet__.add("timeOfStatusUpdate"); + return this; + } + /** + * Oracle Managed Database Software update method, either "ROLLING" or "NONROLLING" + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private UpdateMode updateMode; + + /** + * Oracle Managed Database Software update method, either "ROLLING" or "NONROLLING" + * + * @param updateMode the value to set + * @return this builder + **/ + public Builder updateMode(UpdateMode updateMode) { + this.updateMode = updateMode; + this.__explicitlySet__.add("updateMode"); + return this; + } + /** + * The version of the database was scheduled for update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of the database was scheduled for update. + * @param version the value to set + * @return this builder + **/ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * The date and time of the last readiness check. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfLastReadinessCheck") + private java.util.Date timeOfLastReadinessCheck; + + /** + * The date and time of the last readiness check. + * @param timeOfLastReadinessCheck the value to set + * @return this builder + **/ + public Builder timeOfLastReadinessCheck(java.util.Date timeOfLastReadinessCheck) { + this.timeOfLastReadinessCheck = timeOfLastReadinessCheck; + this.__explicitlySet__.add("timeOfLastReadinessCheck"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedSoftwareUpdateMaintenanceDetails build() { + ManagedSoftwareUpdateMaintenanceDetails model = + new ManagedSoftwareUpdateMaintenanceDetails( + this.timeScheduled, + this.updateReadinessStatus, + this.updateReadinessStatusDetails, + this.timeOfStatusUpdate, + this.updateMode, + this.version, + this.timeOfLastReadinessCheck); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedSoftwareUpdateMaintenanceDetails model) { + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("updateReadinessStatus")) { + this.updateReadinessStatus(model.getUpdateReadinessStatus()); + } + if (model.wasPropertyExplicitlySet("updateReadinessStatusDetails")) { + this.updateReadinessStatusDetails(model.getUpdateReadinessStatusDetails()); + } + if (model.wasPropertyExplicitlySet("timeOfStatusUpdate")) { + this.timeOfStatusUpdate(model.getTimeOfStatusUpdate()); + } + if (model.wasPropertyExplicitlySet("updateMode")) { + this.updateMode(model.getUpdateMode()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("timeOfLastReadinessCheck")) { + this.timeOfLastReadinessCheck(model.getTimeOfLastReadinessCheck()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The date and time of the database was scheduled for update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * The date and time of the database was scheduled for update. + * @return the value + **/ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** + * The managed software update readiness status + **/ + public enum UpdateReadinessStatus { + Scheduled("SCHEDULED"), + Succeeded("SUCCEEDED"), + ReadyForManagedUpdate("READY_FOR_MANAGED_UPDATE"), + NotReadyForManagedUpdate("NOT_READY_FOR_MANAGED_UPDATE"), + InProgress("IN_PROGRESS"), + NeedsAttention("NEEDS_ATTENTION"), + AwaitingResolution("AWAITING_RESOLUTION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateReadinessStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateReadinessStatus v : UpdateReadinessStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UpdateReadinessStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateReadinessStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UpdateReadinessStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The managed software update readiness status + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateReadinessStatus") + private final UpdateReadinessStatus updateReadinessStatus; + + /** + * The managed software update readiness status + * @return the value + **/ + public UpdateReadinessStatus getUpdateReadinessStatus() { + return updateReadinessStatus; + } + + /** + * This field will contain actual cause of update readiness state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateReadinessStatusDetails") + private final String updateReadinessStatusDetails; + + /** + * This field will contain actual cause of update readiness state. + * @return the value + **/ + public String getUpdateReadinessStatusDetails() { + return updateReadinessStatusDetails; + } + + /** + * The date and time of when the status was updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfStatusUpdate") + private final java.util.Date timeOfStatusUpdate; + + /** + * The date and time of when the status was updated. + * @return the value + **/ + public java.util.Date getTimeOfStatusUpdate() { + return timeOfStatusUpdate; + } + + /** + * Oracle Managed Database Software update method, either "ROLLING" or "NONROLLING" + * + **/ + public enum UpdateMode { + Rolling("ROLLING"), + Nonrolling("NONROLLING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateMode v : UpdateMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UpdateMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UpdateMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Oracle Managed Database Software update method, either "ROLLING" or "NONROLLING" + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private final UpdateMode updateMode; + + /** + * Oracle Managed Database Software update method, either "ROLLING" or "NONROLLING" + * + * @return the value + **/ + public UpdateMode getUpdateMode() { + return updateMode; + } + + /** + * The version of the database was scheduled for update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of the database was scheduled for update. + * @return the value + **/ + public String getVersion() { + return version; + } + + /** + * The date and time of the last readiness check. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfLastReadinessCheck") + private final java.util.Date timeOfLastReadinessCheck; + + /** + * The date and time of the last readiness check. + * @return the value + **/ + public java.util.Date getTimeOfLastReadinessCheck() { + return timeOfLastReadinessCheck; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedSoftwareUpdateMaintenanceDetails("); + sb.append("super=").append(super.toString()); + sb.append("timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", updateReadinessStatus=").append(String.valueOf(this.updateReadinessStatus)); + sb.append(", updateReadinessStatusDetails=") + .append(String.valueOf(this.updateReadinessStatusDetails)); + sb.append(", timeOfStatusUpdate=").append(String.valueOf(this.timeOfStatusUpdate)); + sb.append(", updateMode=").append(String.valueOf(this.updateMode)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", timeOfLastReadinessCheck=") + .append(String.valueOf(this.timeOfLastReadinessCheck)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedSoftwareUpdateMaintenanceDetails)) { + return false; + } + + ManagedSoftwareUpdateMaintenanceDetails other = (ManagedSoftwareUpdateMaintenanceDetails) o; + return java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.updateReadinessStatus, other.updateReadinessStatus) + && java.util.Objects.equals( + this.updateReadinessStatusDetails, other.updateReadinessStatusDetails) + && java.util.Objects.equals(this.timeOfStatusUpdate, other.timeOfStatusUpdate) + && java.util.Objects.equals(this.updateMode, other.updateMode) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals( + this.timeOfLastReadinessCheck, other.timeOfLastReadinessCheck) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = + (result * PRIME) + + (this.updateReadinessStatus == null + ? 43 + : this.updateReadinessStatus.hashCode()); + result = + (result * PRIME) + + (this.updateReadinessStatusDetails == null + ? 43 + : this.updateReadinessStatusDetails.hashCode()); + result = + (result * PRIME) + + (this.timeOfStatusUpdate == null + ? 43 + : this.timeOfStatusUpdate.hashCode()); + result = (result * PRIME) + (this.updateMode == null ? 43 : this.updateMode.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = + (result * PRIME) + + (this.timeOfLastReadinessCheck == null + ? 43 + : this.timeOfLastReadinessCheck.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdatePreferenceDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdatePreferenceDetails.java new file mode 100644 index 00000000000..880342b1d49 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ManagedSoftwareUpdatePreferenceDetails.java @@ -0,0 +1,318 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Oracle Managed Database Software Updates schedule will be created based on the provided update preferences + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManagedSoftwareUpdatePreferenceDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ManagedSoftwareUpdatePreferenceDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "daysOfWeek", + "hourOfDay", + "updateMode", + "versionSchemeDetails" + }) + public ManagedSoftwareUpdatePreferenceDetails( + java.util.List daysOfWeek, + Integer hourOfDay, + UpdateMode updateMode, + VersionSchemeDetails versionSchemeDetails) { + super(); + this.daysOfWeek = daysOfWeek; + this.hourOfDay = hourOfDay; + this.updateMode = updateMode; + this.versionSchemeDetails = versionSchemeDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The update should be applied on the database for the selected days of the week. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("daysOfWeek") + private java.util.List daysOfWeek; + + /** + * The update should be applied on the database for the selected days of the week. + * + * @param daysOfWeek the value to set + * @return this builder + **/ + public Builder daysOfWeek(java.util.List daysOfWeek) { + this.daysOfWeek = daysOfWeek; + this.__explicitlySet__.add("daysOfWeek"); + return this; + } + /** + * The update should be applied on the database for the selected hour of the day. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hourOfDay") + private Integer hourOfDay; + + /** + * The update should be applied on the database for the selected hour of the day. + * + * @param hourOfDay the value to set + * @return this builder + **/ + public Builder hourOfDay(Integer hourOfDay) { + this.hourOfDay = hourOfDay; + this.__explicitlySet__.add("hourOfDay"); + return this; + } + /** + * Oracle Managed Database Software update method, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * *IMPORTANT*: Non-rolling Database Software update update involves system down time. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private UpdateMode updateMode; + + /** + * Oracle Managed Database Software update method, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * *IMPORTANT*: Non-rolling Database Software update update involves system down time. + * + * @param updateMode the value to set + * @return this builder + **/ + public Builder updateMode(UpdateMode updateMode) { + this.updateMode = updateMode; + this.__explicitlySet__.add("updateMode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("versionSchemeDetails") + private VersionSchemeDetails versionSchemeDetails; + + public Builder versionSchemeDetails(VersionSchemeDetails versionSchemeDetails) { + this.versionSchemeDetails = versionSchemeDetails; + this.__explicitlySet__.add("versionSchemeDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManagedSoftwareUpdatePreferenceDetails build() { + ManagedSoftwareUpdatePreferenceDetails model = + new ManagedSoftwareUpdatePreferenceDetails( + this.daysOfWeek, + this.hourOfDay, + this.updateMode, + this.versionSchemeDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManagedSoftwareUpdatePreferenceDetails model) { + if (model.wasPropertyExplicitlySet("daysOfWeek")) { + this.daysOfWeek(model.getDaysOfWeek()); + } + if (model.wasPropertyExplicitlySet("hourOfDay")) { + this.hourOfDay(model.getHourOfDay()); + } + if (model.wasPropertyExplicitlySet("updateMode")) { + this.updateMode(model.getUpdateMode()); + } + if (model.wasPropertyExplicitlySet("versionSchemeDetails")) { + this.versionSchemeDetails(model.getVersionSchemeDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The update should be applied on the database for the selected days of the week. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("daysOfWeek") + private final java.util.List daysOfWeek; + + /** + * The update should be applied on the database for the selected days of the week. + * + * @return the value + **/ + public java.util.List getDaysOfWeek() { + return daysOfWeek; + } + + /** + * The update should be applied on the database for the selected hour of the day. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hourOfDay") + private final Integer hourOfDay; + + /** + * The update should be applied on the database for the selected hour of the day. + * + * @return the value + **/ + public Integer getHourOfDay() { + return hourOfDay; + } + + /** + * Oracle Managed Database Software update method, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * *IMPORTANT*: Non-rolling Database Software update update involves system down time. + * + **/ + public enum UpdateMode { + Rolling("ROLLING"), + Nonrolling("NONROLLING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateMode v : UpdateMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UpdateMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UpdateMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Oracle Managed Database Software update method, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * *IMPORTANT*: Non-rolling Database Software update update involves system down time. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private final UpdateMode updateMode; + + /** + * Oracle Managed Database Software update method, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * *IMPORTANT*: Non-rolling Database Software update update involves system down time. + * + * @return the value + **/ + public UpdateMode getUpdateMode() { + return updateMode; + } + + @com.fasterxml.jackson.annotation.JsonProperty("versionSchemeDetails") + private final VersionSchemeDetails versionSchemeDetails; + + public VersionSchemeDetails getVersionSchemeDetails() { + return versionSchemeDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManagedSoftwareUpdatePreferenceDetails("); + sb.append("super=").append(super.toString()); + sb.append("daysOfWeek=").append(String.valueOf(this.daysOfWeek)); + sb.append(", hourOfDay=").append(String.valueOf(this.hourOfDay)); + sb.append(", updateMode=").append(String.valueOf(this.updateMode)); + sb.append(", versionSchemeDetails=").append(String.valueOf(this.versionSchemeDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManagedSoftwareUpdatePreferenceDetails)) { + return false; + } + + ManagedSoftwareUpdatePreferenceDetails other = (ManagedSoftwareUpdatePreferenceDetails) o; + return java.util.Objects.equals(this.daysOfWeek, other.daysOfWeek) + && java.util.Objects.equals(this.hourOfDay, other.hourOfDay) + && java.util.Objects.equals(this.updateMode, other.updateMode) + && java.util.Objects.equals(this.versionSchemeDetails, other.versionSchemeDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.daysOfWeek == null ? 43 : this.daysOfWeek.hashCode()); + result = (result * PRIME) + (this.hourOfDay == null ? 43 : this.hourOfDay.hashCode()); + result = (result * PRIME) + (this.updateMode == null ? 43 : this.updateMode.hashCode()); + result = + (result * PRIME) + + (this.versionSchemeDetails == null + ? 43 + : this.versionSchemeDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/RegisterExadbVmClusterPkcsDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/RegisterExadbVmClusterPkcsDetails.java new file mode 100644 index 00000000000..5b3fbe299b0 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/RegisterExadbVmClusterPkcsDetails.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Details of registering PKCS11 driver. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RegisterExadbVmClusterPkcsDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RegisterExadbVmClusterPkcsDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"tdeKeyStoreType"}) + public RegisterExadbVmClusterPkcsDetails(TdeKeyStoreType tdeKeyStoreType) { + super(); + this.tdeKeyStoreType = tdeKeyStoreType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * TDE keystore type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tdeKeyStoreType") + private TdeKeyStoreType tdeKeyStoreType; + + /** + * TDE keystore type + * @param tdeKeyStoreType the value to set + * @return this builder + **/ + public Builder tdeKeyStoreType(TdeKeyStoreType tdeKeyStoreType) { + this.tdeKeyStoreType = tdeKeyStoreType; + this.__explicitlySet__.add("tdeKeyStoreType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RegisterExadbVmClusterPkcsDetails build() { + RegisterExadbVmClusterPkcsDetails model = + new RegisterExadbVmClusterPkcsDetails(this.tdeKeyStoreType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RegisterExadbVmClusterPkcsDetails model) { + if (model.wasPropertyExplicitlySet("tdeKeyStoreType")) { + this.tdeKeyStoreType(model.getTdeKeyStoreType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * TDE keystore type + **/ + public enum TdeKeyStoreType { + Azure("AZURE"), + Oci("OCI"), + Gcp("GCP"), + Aws("AWS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TdeKeyStoreType v : TdeKeyStoreType.values()) { + map.put(v.getValue(), v); + } + } + + TdeKeyStoreType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TdeKeyStoreType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid TdeKeyStoreType: " + key); + } + }; + /** + * TDE keystore type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tdeKeyStoreType") + private final TdeKeyStoreType tdeKeyStoreType; + + /** + * TDE keystore type + * @return the value + **/ + public TdeKeyStoreType getTdeKeyStoreType() { + return tdeKeyStoreType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RegisterExadbVmClusterPkcsDetails("); + sb.append("super=").append(super.toString()); + sb.append("tdeKeyStoreType=").append(String.valueOf(this.tdeKeyStoreType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RegisterExadbVmClusterPkcsDetails)) { + return false; + } + + RegisterExadbVmClusterPkcsDetails other = (RegisterExadbVmClusterPkcsDetails) o; + return java.util.Objects.equals(this.tdeKeyStoreType, other.tdeKeyStoreType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.tdeKeyStoreType == null ? 43 : this.tdeKeyStoreType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/RestartAutonomousContainerDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/RestartAutonomousContainerDatabaseDetails.java new file mode 100644 index 00000000000..eb3264d19e8 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/RestartAutonomousContainerDatabaseDetails.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Request details to restart an Autonomous Container Database with force option. + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RestartAutonomousContainerDatabaseDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RestartAutonomousContainerDatabaseDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isForceRestart"}) + public RestartAutonomousContainerDatabaseDetails(Boolean isForceRestart) { + super(); + this.isForceRestart = isForceRestart; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * If set to {@code true}, restarts the Autonomous Container Database with force option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isForceRestart") + private Boolean isForceRestart; + + /** + * If set to {@code true}, restarts the Autonomous Container Database with force option. + * @param isForceRestart the value to set + * @return this builder + **/ + public Builder isForceRestart(Boolean isForceRestart) { + this.isForceRestart = isForceRestart; + this.__explicitlySet__.add("isForceRestart"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RestartAutonomousContainerDatabaseDetails build() { + RestartAutonomousContainerDatabaseDetails model = + new RestartAutonomousContainerDatabaseDetails(this.isForceRestart); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RestartAutonomousContainerDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("isForceRestart")) { + this.isForceRestart(model.getIsForceRestart()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * If set to {@code true}, restarts the Autonomous Container Database with force option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isForceRestart") + private final Boolean isForceRestart; + + /** + * If set to {@code true}, restarts the Autonomous Container Database with force option. + * @return the value + **/ + public Boolean getIsForceRestart() { + return isForceRestart; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RestartAutonomousContainerDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("isForceRestart=").append(String.valueOf(this.isForceRestart)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RestartAutonomousContainerDatabaseDetails)) { + return false; + } + + RestartAutonomousContainerDatabaseDetails other = + (RestartAutonomousContainerDatabaseDetails) o; + return java.util.Objects.equals(this.isForceRestart, other.isForceRestart) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isForceRestart == null ? 43 : this.isForceRestart.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/RestartAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/RestartAutonomousDatabaseDetails.java new file mode 100644 index 00000000000..c534d332f54 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/RestartAutonomousDatabaseDetails.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Request details to restart an Autonomous Database with force option. + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RestartAutonomousDatabaseDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RestartAutonomousDatabaseDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isForceRestart"}) + public RestartAutonomousDatabaseDetails(Boolean isForceRestart) { + super(); + this.isForceRestart = isForceRestart; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * If set to {@code true}, restarts the Autonomous Database with force option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isForceRestart") + private Boolean isForceRestart; + + /** + * If set to {@code true}, restarts the Autonomous Database with force option. + * @param isForceRestart the value to set + * @return this builder + **/ + public Builder isForceRestart(Boolean isForceRestart) { + this.isForceRestart = isForceRestart; + this.__explicitlySet__.add("isForceRestart"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RestartAutonomousDatabaseDetails build() { + RestartAutonomousDatabaseDetails model = + new RestartAutonomousDatabaseDetails(this.isForceRestart); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RestartAutonomousDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("isForceRestart")) { + this.isForceRestart(model.getIsForceRestart()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * If set to {@code true}, restarts the Autonomous Database with force option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isForceRestart") + private final Boolean isForceRestart; + + /** + * If set to {@code true}, restarts the Autonomous Database with force option. + * @return the value + **/ + public Boolean getIsForceRestart() { + return isForceRestart; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RestartAutonomousDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("isForceRestart=").append(String.valueOf(this.isForceRestart)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RestartAutonomousDatabaseDetails)) { + return false; + } + + RestartAutonomousDatabaseDetails other = (RestartAutonomousDatabaseDetails) o; + return java.util.Objects.equals(this.isForceRestart, other.isForceRestart) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isForceRestart == null ? 43 : this.isForceRestart.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/StopAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/StopAutonomousDatabaseDetails.java new file mode 100644 index 00000000000..96b70c23b00 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/StopAutonomousDatabaseDetails.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Request details to stop an Autonomous Database with force option. + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StopAutonomousDatabaseDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class StopAutonomousDatabaseDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isForceStop"}) + public StopAutonomousDatabaseDetails(Boolean isForceStop) { + super(); + this.isForceStop = isForceStop; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * If set to {@code true}, stops the Autonomous Database with force option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isForceStop") + private Boolean isForceStop; + + /** + * If set to {@code true}, stops the Autonomous Database with force option. + * @param isForceStop the value to set + * @return this builder + **/ + public Builder isForceStop(Boolean isForceStop) { + this.isForceStop = isForceStop; + this.__explicitlySet__.add("isForceStop"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StopAutonomousDatabaseDetails build() { + StopAutonomousDatabaseDetails model = + new StopAutonomousDatabaseDetails(this.isForceStop); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StopAutonomousDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("isForceStop")) { + this.isForceStop(model.getIsForceStop()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * If set to {@code true}, stops the Autonomous Database with force option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isForceStop") + private final Boolean isForceStop; + + /** + * If set to {@code true}, stops the Autonomous Database with force option. + * @return the value + **/ + public Boolean getIsForceStop() { + return isForceStop; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StopAutonomousDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("isForceStop=").append(String.valueOf(this.isForceStop)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StopAutonomousDatabaseDetails)) { + return false; + } + + StopAutonomousDatabaseDetails other = (StopAutonomousDatabaseDetails) o; + return java.util.Objects.equals(this.isForceStop, other.isForceStop) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isForceStop == null ? 43 : this.isForceStop.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UnregisterExadbVmClusterPkcsDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UnregisterExadbVmClusterPkcsDetails.java new file mode 100644 index 00000000000..e7c5b2d119d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UnregisterExadbVmClusterPkcsDetails.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Details of unregistering PKCS11 driver. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UnregisterExadbVmClusterPkcsDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UnregisterExadbVmClusterPkcsDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"tdeKeyStoreType"}) + public UnregisterExadbVmClusterPkcsDetails(TdeKeyStoreType tdeKeyStoreType) { + super(); + this.tdeKeyStoreType = tdeKeyStoreType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * TDE keystore type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tdeKeyStoreType") + private TdeKeyStoreType tdeKeyStoreType; + + /** + * TDE keystore type + * @param tdeKeyStoreType the value to set + * @return this builder + **/ + public Builder tdeKeyStoreType(TdeKeyStoreType tdeKeyStoreType) { + this.tdeKeyStoreType = tdeKeyStoreType; + this.__explicitlySet__.add("tdeKeyStoreType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UnregisterExadbVmClusterPkcsDetails build() { + UnregisterExadbVmClusterPkcsDetails model = + new UnregisterExadbVmClusterPkcsDetails(this.tdeKeyStoreType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UnregisterExadbVmClusterPkcsDetails model) { + if (model.wasPropertyExplicitlySet("tdeKeyStoreType")) { + this.tdeKeyStoreType(model.getTdeKeyStoreType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * TDE keystore type + **/ + public enum TdeKeyStoreType { + Azure("AZURE"), + Oci("OCI"), + Gcp("GCP"), + Aws("AWS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TdeKeyStoreType v : TdeKeyStoreType.values()) { + map.put(v.getValue(), v); + } + } + + TdeKeyStoreType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TdeKeyStoreType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid TdeKeyStoreType: " + key); + } + }; + /** + * TDE keystore type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tdeKeyStoreType") + private final TdeKeyStoreType tdeKeyStoreType; + + /** + * TDE keystore type + * @return the value + **/ + public TdeKeyStoreType getTdeKeyStoreType() { + return tdeKeyStoreType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UnregisterExadbVmClusterPkcsDetails("); + sb.append("super=").append(super.toString()); + sb.append("tdeKeyStoreType=").append(String.valueOf(this.tdeKeyStoreType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UnregisterExadbVmClusterPkcsDetails)) { + return false; + } + + UnregisterExadbVmClusterPkcsDetails other = (UnregisterExadbVmClusterPkcsDetails) o; + return java.util.Objects.equals(this.tdeKeyStoreType, other.tdeKeyStoreType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.tdeKeyStoreType == null ? 43 : this.tdeKeyStoreType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/Update.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/Update.java index a8a1c71841b..2f970a3d367 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/Update.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/Update.java @@ -24,6 +24,9 @@ public final class Update extends com.oracle.bmc.http.internal.ExplicitlySetBmcM "description", "lastAction", "availableActions", + "lastUpdateMode", + "availableUpdateModes", + "oracleLinuxVersion", "updateType", "lifecycleDetails", "lifecycleState", @@ -35,6 +38,9 @@ public Update( String description, LastAction lastAction, java.util.List availableActions, + LastUpdateMode lastUpdateMode, + java.util.List availableUpdateModes, + String oracleLinuxVersion, UpdateType updateType, String lifecycleDetails, LifecycleState lifecycleState, @@ -45,6 +51,9 @@ public Update( this.description = description; this.lastAction = lastAction; this.availableActions = availableActions; + this.lastUpdateMode = lastUpdateMode; + this.availableUpdateModes = availableUpdateModes; + this.oracleLinuxVersion = oracleLinuxVersion; this.updateType = updateType; this.lifecycleDetails = lifecycleDetails; this.lifecycleState = lifecycleState; @@ -118,6 +127,55 @@ public Builder availableActions(java.util.List availableAction this.__explicitlySet__.add("availableActions"); return this; } + /** + * The previous update mode performed (only valid for OS Updates). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastUpdateMode") + private LastUpdateMode lastUpdateMode; + + /** + * The previous update mode performed (only valid for OS Updates). + * @param lastUpdateMode the value to set + * @return this builder + **/ + public Builder lastUpdateMode(LastUpdateMode lastUpdateMode) { + this.lastUpdateMode = lastUpdateMode; + this.__explicitlySet__.add("lastUpdateMode"); + return this; + } + /** + * The possible update options available (only valid for OS Update). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableUpdateModes") + private java.util.List availableUpdateModes; + + /** + * The possible update options available (only valid for OS Update). + * @param availableUpdateModes the value to set + * @return this builder + **/ + public Builder availableUpdateModes( + java.util.List availableUpdateModes) { + this.availableUpdateModes = availableUpdateModes; + this.__explicitlySet__.add("availableUpdateModes"); + return this; + } + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @param oracleLinuxVersion the value to set + * @return this builder + **/ + public Builder oracleLinuxVersion(String oracleLinuxVersion) { + this.oracleLinuxVersion = oracleLinuxVersion; + this.__explicitlySet__.add("oracleLinuxVersion"); + return this; + } /** * The type of cloud VM cluster maintenance update. **/ @@ -211,6 +269,9 @@ public Update build() { this.description, this.lastAction, this.availableActions, + this.lastUpdateMode, + this.availableUpdateModes, + this.oracleLinuxVersion, this.updateType, this.lifecycleDetails, this.lifecycleState, @@ -236,6 +297,15 @@ public Builder copy(Update model) { if (model.wasPropertyExplicitlySet("availableActions")) { this.availableActions(model.getAvailableActions()); } + if (model.wasPropertyExplicitlySet("lastUpdateMode")) { + this.lastUpdateMode(model.getLastUpdateMode()); + } + if (model.wasPropertyExplicitlySet("availableUpdateModes")) { + this.availableUpdateModes(model.getAvailableUpdateModes()); + } + if (model.wasPropertyExplicitlySet("oracleLinuxVersion")) { + this.oracleLinuxVersion(model.getOracleLinuxVersion()); + } if (model.wasPropertyExplicitlySet("updateType")) { this.updateType(model.getUpdateType()); } @@ -421,6 +491,149 @@ public java.util.List getAvailableActions() { return availableActions; } + /** + * The previous update mode performed (only valid for OS Updates). + **/ + public enum LastUpdateMode { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + PendingUpdates("PENDING_UPDATES"), + FullUpdate("FULL_UPDATE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LastUpdateMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LastUpdateMode v : LastUpdateMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LastUpdateMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LastUpdateMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LastUpdateMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The previous update mode performed (only valid for OS Updates). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastUpdateMode") + private final LastUpdateMode lastUpdateMode; + + /** + * The previous update mode performed (only valid for OS Updates). + * @return the value + **/ + public LastUpdateMode getLastUpdateMode() { + return lastUpdateMode; + } + + /** + **/ + public enum AvailableUpdateModes { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + PendingUpdates("PENDING_UPDATES"), + FullUpdate("FULL_UPDATE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AvailableUpdateModes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AvailableUpdateModes v : AvailableUpdateModes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AvailableUpdateModes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AvailableUpdateModes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AvailableUpdateModes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The possible update options available (only valid for OS Update). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableUpdateModes") + private final java.util.List availableUpdateModes; + + /** + * The possible update options available (only valid for OS Update). + * @return the value + **/ + public java.util.List getAvailableUpdateModes() { + return availableUpdateModes; + } + + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private final String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @return the value + **/ + public String getOracleLinuxVersion() { + return oracleLinuxVersion; + } + /** * The type of cloud VM cluster maintenance update. **/ @@ -610,6 +823,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", lastAction=").append(String.valueOf(this.lastAction)); sb.append(", availableActions=").append(String.valueOf(this.availableActions)); + sb.append(", lastUpdateMode=").append(String.valueOf(this.lastUpdateMode)); + sb.append(", availableUpdateModes=").append(String.valueOf(this.availableUpdateModes)); + sb.append(", oracleLinuxVersion=").append(String.valueOf(this.oracleLinuxVersion)); sb.append(", updateType=").append(String.valueOf(this.updateType)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -633,6 +849,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.lastAction, other.lastAction) && java.util.Objects.equals(this.availableActions, other.availableActions) + && java.util.Objects.equals(this.lastUpdateMode, other.lastUpdateMode) + && java.util.Objects.equals(this.availableUpdateModes, other.availableUpdateModes) + && java.util.Objects.equals(this.oracleLinuxVersion, other.oracleLinuxVersion) && java.util.Objects.equals(this.updateType, other.updateType) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -651,6 +870,19 @@ public int hashCode() { result = (result * PRIME) + (this.availableActions == null ? 43 : this.availableActions.hashCode()); + result = + (result * PRIME) + + (this.lastUpdateMode == null ? 43 : this.lastUpdateMode.hashCode()); + result = + (result * PRIME) + + (this.availableUpdateModes == null + ? 43 + : this.availableUpdateModes.hashCode()); + result = + (result * PRIME) + + (this.oracleLinuxVersion == null + ? 43 + : this.oracleLinuxVersion.hashCode()); result = (result * PRIME) + (this.updateType == null ? 43 : this.updateType.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateBaseccVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateBaseccVmClusterDetails.java new file mode 100644 index 00000000000..1094c766dd6 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateBaseccVmClusterDetails.java @@ -0,0 +1,692 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * Details for updating the BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateBaseccVmClusterDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateBaseccVmClusterDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "cpuCoreCount", + "memorySizeInGBs", + "dataStorageSizeInGBs", + "recoStorageSizeInGBs", + "licenseModel", + "sshPublicKeys", + "displayName", + "additionalVmStorageSizeInGBs", + "updateDetails", + "freeformTags", + "definedTags", + "dataCollectionOptions", + "cloudAutomationUpdateDetails" + }) + public UpdateBaseccVmClusterDetails( + Integer cpuCoreCount, + Integer memorySizeInGBs, + Integer dataStorageSizeInGBs, + Integer recoStorageSizeInGBs, + LicenseModel licenseModel, + java.util.List sshPublicKeys, + String displayName, + Integer additionalVmStorageSizeInGBs, + BaseccVmClusterUpdateDetails updateDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + DataCollectionOptions dataCollectionOptions, + CloudAutomationUpdateDetails cloudAutomationUpdateDetails) { + super(); + this.cpuCoreCount = cpuCoreCount; + this.memorySizeInGBs = memorySizeInGBs; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.recoStorageSizeInGBs = recoStorageSizeInGBs; + this.licenseModel = licenseModel; + this.sshPublicKeys = sshPublicKeys; + this.displayName = displayName; + this.additionalVmStorageSizeInGBs = additionalVmStorageSizeInGBs; + this.updateDetails = updateDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.dataCollectionOptions = dataCollectionOptions; + this.cloudAutomationUpdateDetails = cloudAutomationUpdateDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Total CPU cores for the BaseDB C@C VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount") + private Integer cpuCoreCount; + + /** + * Total CPU cores for the BaseDB C@C VM cluster. + * @param cpuCoreCount the value to set + * @return this builder + **/ + public Builder cpuCoreCount(Integer cpuCoreCount) { + this.cpuCoreCount = cpuCoreCount; + this.__explicitlySet__.add("cpuCoreCount"); + return this; + } + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private Integer memorySizeInGBs; + + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + * @param memorySizeInGBs the value to set + * @return this builder + **/ + public Builder memorySizeInGBs(Integer memorySizeInGBs) { + this.memorySizeInGBs = memorySizeInGBs; + this.__explicitlySet__.add("memorySizeInGBs"); + return this; + } + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Integer dataStorageSizeInGBs; + + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param dataStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStorageSizeInGBs") + private Integer recoStorageSizeInGBs; + + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param recoStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder recoStorageSizeInGBs(Integer recoStorageSizeInGBs) { + this.recoStorageSizeInGBs = recoStorageSizeInGBs; + this.__explicitlySet__.add("recoStorageSizeInGBs"); + return this; + } + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + * @param licenseModel the value to set + * @return this builder + **/ + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private java.util.List sshPublicKeys; + + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @param sshPublicKeys the value to set + * @return this builder + **/ + public Builder sshPublicKeys(java.util.List sshPublicKeys) { + this.sshPublicKeys = sshPublicKeys; + this.__explicitlySet__.add("sshPublicKeys"); + return this; + } + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalVmStorageSizeInGBs") + private Integer additionalVmStorageSizeInGBs; + + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @param additionalVmStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder additionalVmStorageSizeInGBs(Integer additionalVmStorageSizeInGBs) { + this.additionalVmStorageSizeInGBs = additionalVmStorageSizeInGBs; + this.__explicitlySet__.add("additionalVmStorageSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updateDetails") + private BaseccVmClusterUpdateDetails updateDetails; + + public Builder updateDetails(BaseccVmClusterUpdateDetails updateDetails) { + this.updateDetails = updateDetails; + this.__explicitlySet__.add("updateDetails"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataCollectionOptions") + private DataCollectionOptions dataCollectionOptions; + + public Builder dataCollectionOptions(DataCollectionOptions dataCollectionOptions) { + this.dataCollectionOptions = dataCollectionOptions; + this.__explicitlySet__.add("dataCollectionOptions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutomationUpdateDetails") + private CloudAutomationUpdateDetails cloudAutomationUpdateDetails; + + public Builder cloudAutomationUpdateDetails( + CloudAutomationUpdateDetails cloudAutomationUpdateDetails) { + this.cloudAutomationUpdateDetails = cloudAutomationUpdateDetails; + this.__explicitlySet__.add("cloudAutomationUpdateDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateBaseccVmClusterDetails build() { + UpdateBaseccVmClusterDetails model = + new UpdateBaseccVmClusterDetails( + this.cpuCoreCount, + this.memorySizeInGBs, + this.dataStorageSizeInGBs, + this.recoStorageSizeInGBs, + this.licenseModel, + this.sshPublicKeys, + this.displayName, + this.additionalVmStorageSizeInGBs, + this.updateDetails, + this.freeformTags, + this.definedTags, + this.dataCollectionOptions, + this.cloudAutomationUpdateDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateBaseccVmClusterDetails model) { + if (model.wasPropertyExplicitlySet("cpuCoreCount")) { + this.cpuCoreCount(model.getCpuCoreCount()); + } + if (model.wasPropertyExplicitlySet("memorySizeInGBs")) { + this.memorySizeInGBs(model.getMemorySizeInGBs()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("recoStorageSizeInGBs")) { + this.recoStorageSizeInGBs(model.getRecoStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + if (model.wasPropertyExplicitlySet("sshPublicKeys")) { + this.sshPublicKeys(model.getSshPublicKeys()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("additionalVmStorageSizeInGBs")) { + this.additionalVmStorageSizeInGBs(model.getAdditionalVmStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("updateDetails")) { + this.updateDetails(model.getUpdateDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("dataCollectionOptions")) { + this.dataCollectionOptions(model.getDataCollectionOptions()); + } + if (model.wasPropertyExplicitlySet("cloudAutomationUpdateDetails")) { + this.cloudAutomationUpdateDetails(model.getCloudAutomationUpdateDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Total CPU cores for the BaseDB C@C VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount") + private final Integer cpuCoreCount; + + /** + * Total CPU cores for the BaseDB C@C VM cluster. + * @return the value + **/ + public Integer getCpuCoreCount() { + return cpuCoreCount; + } + + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private final Integer memorySizeInGBs; + + /** + * The total memory to be allocated, in GBs, for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The minimum is 11GB for every 4 ECPU. + * + * @return the value + **/ + public Integer getMemorySizeInGBs() { + return memorySizeInGBs; + } + + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Integer dataStorageSizeInGBs; + + /** + * The DATA Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public Integer getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoStorageSizeInGBs") + private final Integer recoStorageSizeInGBs; + + /** + * The RECO Disk Group size in GB for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public Integer getRecoStorageSizeInGBs() { + return recoStorageSizeInGBs; + } + + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + **/ + public enum LicenseModel { + LicenseIncluded("LICENSE_INCLUDED"), + BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LicenseModel v : LicenseModel.values()) { + map.put(v.getValue(), v); + } + } + + LicenseModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LicenseModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LicenseModel: " + key); + } + }; + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private final LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The default is LICENSE_INCLUDED. + * + * @return the value + **/ + public LicenseModel getLicenseModel() { + return licenseModel; + } + + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private final java.util.List sshPublicKeys; + + /** + * The public key portion of one or more key pairs used for SSH access to the VMs of Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * @return the value + **/ + public java.util.List getSshPublicKeys() { + return sshPublicKeys; + } + + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. The name does not need to be unique. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalVmStorageSizeInGBs") + private final Integer additionalVmStorageSizeInGBs; + + /** + * Total /u01 partition size (GB) for the Base Database Service on Cloud@Customer (BaseDB-C@C) VM cluster. + * + * @return the value + **/ + public Integer getAdditionalVmStorageSizeInGBs() { + return additionalVmStorageSizeInGBs; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updateDetails") + private final BaseccVmClusterUpdateDetails updateDetails; + + public BaseccVmClusterUpdateDetails getUpdateDetails() { + return updateDetails; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataCollectionOptions") + private final DataCollectionOptions dataCollectionOptions; + + public DataCollectionOptions getDataCollectionOptions() { + return dataCollectionOptions; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutomationUpdateDetails") + private final CloudAutomationUpdateDetails cloudAutomationUpdateDetails; + + public CloudAutomationUpdateDetails getCloudAutomationUpdateDetails() { + return cloudAutomationUpdateDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateBaseccVmClusterDetails("); + sb.append("super=").append(super.toString()); + sb.append("cpuCoreCount=").append(String.valueOf(this.cpuCoreCount)); + sb.append(", memorySizeInGBs=").append(String.valueOf(this.memorySizeInGBs)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", recoStorageSizeInGBs=").append(String.valueOf(this.recoStorageSizeInGBs)); + sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(", sshPublicKeys=").append(String.valueOf(this.sshPublicKeys)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", additionalVmStorageSizeInGBs=") + .append(String.valueOf(this.additionalVmStorageSizeInGBs)); + sb.append(", updateDetails=").append(String.valueOf(this.updateDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", dataCollectionOptions=").append(String.valueOf(this.dataCollectionOptions)); + sb.append(", cloudAutomationUpdateDetails=") + .append(String.valueOf(this.cloudAutomationUpdateDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateBaseccVmClusterDetails)) { + return false; + } + + UpdateBaseccVmClusterDetails other = (UpdateBaseccVmClusterDetails) o; + return java.util.Objects.equals(this.cpuCoreCount, other.cpuCoreCount) + && java.util.Objects.equals(this.memorySizeInGBs, other.memorySizeInGBs) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.recoStorageSizeInGBs, other.recoStorageSizeInGBs) + && java.util.Objects.equals(this.licenseModel, other.licenseModel) + && java.util.Objects.equals(this.sshPublicKeys, other.sshPublicKeys) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals( + this.additionalVmStorageSizeInGBs, other.additionalVmStorageSizeInGBs) + && java.util.Objects.equals(this.updateDetails, other.updateDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.dataCollectionOptions, other.dataCollectionOptions) + && java.util.Objects.equals( + this.cloudAutomationUpdateDetails, other.cloudAutomationUpdateDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.cpuCoreCount == null ? 43 : this.cpuCoreCount.hashCode()); + result = + (result * PRIME) + + (this.memorySizeInGBs == null ? 43 : this.memorySizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.recoStorageSizeInGBs == null + ? 43 + : this.recoStorageSizeInGBs.hashCode()); + result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); + result = + (result * PRIME) + + (this.sshPublicKeys == null ? 43 : this.sshPublicKeys.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.additionalVmStorageSizeInGBs == null + ? 43 + : this.additionalVmStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.updateDetails == null ? 43 : this.updateDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.dataCollectionOptions == null + ? 43 + : this.dataCollectionOptions.hashCode()); + result = + (result * PRIME) + + (this.cloudAutomationUpdateDetails == null + ? 43 + : this.cloudAutomationUpdateDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java index 1c317c50218..0bb2065ca0a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java @@ -34,6 +34,7 @@ public UpdateDatabaseDetails( DatabaseStorageSizeDetails storageSizeDetails, java.util.Map freeformTags, java.util.Map> definedTags, + ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails, PatchOptions patchOptions) { super(); this.dbBackupConfig = dbBackupConfig; @@ -46,6 +47,7 @@ public UpdateDatabaseDetails( this.storageSizeDetails = storageSizeDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; this.patchOptions = patchOptions; } @@ -60,6 +62,7 @@ public UpdateDatabaseDetails( "storageSizeDetails", "freeformTags", "definedTags", + "managedSoftwareUpdateDetails", "patchOptions" }) public UpdateDatabaseDetails( @@ -71,6 +74,7 @@ public UpdateDatabaseDetails( DatabaseStorageSizeDetails storageSizeDetails, java.util.Map freeformTags, java.util.Map> definedTags, + ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails, PatchOptions patchOptions) { super(); this.dbBackupConfig = dbBackupConfig; @@ -81,6 +85,7 @@ public UpdateDatabaseDetails( this.storageSizeDetails = storageSizeDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; this.patchOptions = patchOptions; } @@ -237,6 +242,16 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("managedSoftwareUpdateDetails") + private ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails; + + public Builder managedSoftwareUpdateDetails( + ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails) { + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; + this.__explicitlySet__.add("managedSoftwareUpdateDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("patchOptions") private PatchOptions patchOptions; @@ -260,6 +275,7 @@ public UpdateDatabaseDetails build() { this.storageSizeDetails, this.freeformTags, this.definedTags, + this.managedSoftwareUpdateDetails, this.patchOptions); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -293,6 +309,9 @@ public Builder copy(UpdateDatabaseDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("managedSoftwareUpdateDetails")) { + this.managedSoftwareUpdateDetails(model.getManagedSoftwareUpdateDetails()); + } if (model.wasPropertyExplicitlySet("patchOptions")) { this.patchOptions(model.getPatchOptions()); } @@ -457,6 +476,13 @@ public java.util.Map> getDefinedTags() { return definedTags; } + @com.fasterxml.jackson.annotation.JsonProperty("managedSoftwareUpdateDetails") + private final ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails; + + public ManagedSoftwareUpdateInputDetails getManagedSoftwareUpdateDetails() { + return managedSoftwareUpdateDetails; + } + @com.fasterxml.jackson.annotation.JsonProperty("patchOptions") private final PatchOptions patchOptions; @@ -486,6 +512,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", storageSizeDetails=").append(String.valueOf(this.storageSizeDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", managedSoftwareUpdateDetails=") + .append(String.valueOf(this.managedSoftwareUpdateDetails)); sb.append(", patchOptions=").append(String.valueOf(this.patchOptions)); sb.append(")"); return sb.toString(); @@ -509,6 +537,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.storageSizeDetails, other.storageSizeDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals( + this.managedSoftwareUpdateDetails, other.managedSoftwareUpdateDetails) && java.util.Objects.equals(this.patchOptions, other.patchOptions) && super.equals(other); } @@ -541,6 +571,11 @@ public int hashCode() { : this.storageSizeDetails.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.managedSoftwareUpdateDetails == null + ? 43 + : this.managedSoftwareUpdateDetails.hashCode()); result = (result * PRIME) + (this.patchOptions == null ? 43 : this.patchOptions.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java index 3a43dae7b92..c83e6e2e112 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java @@ -20,11 +20,21 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class UpdateDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"updateId", "updateAction", "giSoftwareImageId"}) - public UpdateDetails(String updateId, UpdateAction updateAction, String giSoftwareImageId) { + @java.beans.ConstructorProperties({ + "updateId", + "updateAction", + "updateMode", + "giSoftwareImageId" + }) + public UpdateDetails( + String updateId, + UpdateAction updateAction, + UpdateMode updateMode, + String giSoftwareImageId) { super(); this.updateId = updateId; this.updateAction = updateAction; + this.updateMode = updateMode; this.giSoftwareImageId = giSoftwareImageId; } @@ -62,6 +72,22 @@ public Builder updateAction(UpdateAction updateAction) { this.__explicitlySet__.add("updateAction"); return this; } + /** + * The update mode to perform for OS Update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private UpdateMode updateMode; + + /** + * The update mode to perform for OS Update. + * @param updateMode the value to set + * @return this builder + **/ + public Builder updateMode(UpdateMode updateMode) { + this.updateMode = updateMode; + this.__explicitlySet__.add("updateMode"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a grid infrastructure software image. This is a database software image of the type {@code GRID_IMAGE}. **/ @@ -84,7 +110,11 @@ public Builder giSoftwareImageId(String giSoftwareImageId) { public UpdateDetails build() { UpdateDetails model = - new UpdateDetails(this.updateId, this.updateAction, this.giSoftwareImageId); + new UpdateDetails( + this.updateId, + this.updateAction, + this.updateMode, + this.giSoftwareImageId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -99,6 +129,9 @@ public Builder copy(UpdateDetails model) { if (model.wasPropertyExplicitlySet("updateAction")) { this.updateAction(model.getUpdateAction()); } + if (model.wasPropertyExplicitlySet("updateMode")) { + this.updateMode(model.getUpdateMode()); + } if (model.wasPropertyExplicitlySet("giSoftwareImageId")) { this.giSoftwareImageId(model.getGiSoftwareImageId()); } @@ -182,6 +215,58 @@ public UpdateAction getUpdateAction() { return updateAction; } + /** + * The update mode to perform for OS Update. + **/ + public enum UpdateMode { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + PendingUpdates("PENDING_UPDATES"), + FullUpdate("FULL_UPDATE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateMode v : UpdateMode.values()) { + map.put(v.getValue(), v); + } + } + + UpdateMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid UpdateMode: " + key); + } + }; + /** + * The update mode to perform for OS Update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private final UpdateMode updateMode; + + /** + * The update mode to perform for OS Update. + * @return the value + **/ + public UpdateMode getUpdateMode() { + return updateMode; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a grid infrastructure software image. This is a database software image of the type {@code GRID_IMAGE}. **/ @@ -212,6 +297,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("updateId=").append(String.valueOf(this.updateId)); sb.append(", updateAction=").append(String.valueOf(this.updateAction)); + sb.append(", updateMode=").append(String.valueOf(this.updateMode)); sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); sb.append(")"); return sb.toString(); @@ -229,6 +315,7 @@ public boolean equals(Object o) { UpdateDetails other = (UpdateDetails) o; return java.util.Objects.equals(this.updateId, other.updateId) && java.util.Objects.equals(this.updateAction, other.updateAction) + && java.util.Objects.equals(this.updateMode, other.updateMode) && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) && super.equals(other); } @@ -239,6 +326,7 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); + result = (result * PRIME) + (this.updateMode == null ? 43 : this.updateMode.hashCode()); result = (result * PRIME) + (this.giSoftwareImageId == null ? 43 : this.giSoftwareImageId.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntry.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntry.java index 5b7b3808cca..70127dd1089 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntry.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntry.java @@ -25,6 +25,7 @@ public final class UpdateHistoryEntry extends com.oracle.bmc.http.internal.Expli "id", "updateId", "updateAction", + "updateMode", "updateType", "lifecycleState", "lifecycleDetails", @@ -35,6 +36,7 @@ public UpdateHistoryEntry( String id, String updateId, UpdateAction updateAction, + UpdateMode updateMode, UpdateType updateType, LifecycleState lifecycleState, String lifecycleDetails, @@ -44,6 +46,7 @@ public UpdateHistoryEntry( this.id = id; this.updateId = updateId; this.updateAction = updateAction; + this.updateMode = updateMode; this.updateType = updateType; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; @@ -101,6 +104,22 @@ public Builder updateAction(UpdateAction updateAction) { this.__explicitlySet__.add("updateAction"); return this; } + /** + * The OS update mode performed using this maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private UpdateMode updateMode; + + /** + * The OS update mode performed using this maintenance update. + * @param updateMode the value to set + * @return this builder + **/ + public Builder updateMode(UpdateMode updateMode) { + this.updateMode = updateMode; + this.__explicitlySet__.add("updateMode"); + return this; + } /** * The type of cloud VM cluster maintenance update. **/ @@ -193,6 +212,7 @@ public UpdateHistoryEntry build() { this.id, this.updateId, this.updateAction, + this.updateMode, this.updateType, this.lifecycleState, this.lifecycleDetails, @@ -215,6 +235,9 @@ public Builder copy(UpdateHistoryEntry model) { if (model.wasPropertyExplicitlySet("updateAction")) { this.updateAction(model.getUpdateAction()); } + if (model.wasPropertyExplicitlySet("updateMode")) { + this.updateMode(model.getUpdateMode()); + } if (model.wasPropertyExplicitlySet("updateType")) { this.updateType(model.getUpdateType()); } @@ -337,6 +360,73 @@ public UpdateAction getUpdateAction() { return updateAction; } + /** + * The OS update mode performed using this maintenance update. + **/ + public enum UpdateMode { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + PendingUpdatesHighcvss("PENDING_UPDATES_HIGHCVSS"), + PendingUpdatesAllcvss("PENDING_UPDATES_ALLCVSS"), + PendingAllUpdates("PENDING_ALL_UPDATES"), + FullUpdate("FULL_UPDATE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateMode v : UpdateMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UpdateMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UpdateMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The OS update mode performed using this maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private final UpdateMode updateMode; + + /** + * The OS update mode performed using this maintenance update. + * @return the value + **/ + public UpdateMode getUpdateMode() { + return updateMode; + } + /** * The type of cloud VM cluster maintenance update. **/ @@ -524,6 +614,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", updateId=").append(String.valueOf(this.updateId)); sb.append(", updateAction=").append(String.valueOf(this.updateAction)); + sb.append(", updateMode=").append(String.valueOf(this.updateMode)); sb.append(", updateType=").append(String.valueOf(this.updateType)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); @@ -546,6 +637,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.updateId, other.updateId) && java.util.Objects.equals(this.updateAction, other.updateAction) + && java.util.Objects.equals(this.updateMode, other.updateMode) && java.util.Objects.equals(this.updateType, other.updateType) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) @@ -561,6 +653,7 @@ public int hashCode() { result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); + result = (result * PRIME) + (this.updateMode == null ? 43 : this.updateMode.hashCode()); result = (result * PRIME) + (this.updateType == null ? 43 : this.updateType.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntrySummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntrySummary.java index 080f62fb305..bd781c54be9 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntrySummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntrySummary.java @@ -27,6 +27,7 @@ public final class UpdateHistoryEntrySummary "id", "updateId", "updateAction", + "updateMode", "updateType", "lifecycleState", "lifecycleDetails", @@ -37,6 +38,7 @@ public UpdateHistoryEntrySummary( String id, String updateId, UpdateAction updateAction, + UpdateMode updateMode, UpdateType updateType, LifecycleState lifecycleState, String lifecycleDetails, @@ -46,6 +48,7 @@ public UpdateHistoryEntrySummary( this.id = id; this.updateId = updateId; this.updateAction = updateAction; + this.updateMode = updateMode; this.updateType = updateType; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; @@ -103,6 +106,22 @@ public Builder updateAction(UpdateAction updateAction) { this.__explicitlySet__.add("updateAction"); return this; } + /** + * The OS update mode performed using this maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private UpdateMode updateMode; + + /** + * The OS update mode performed using this maintenance update. + * @param updateMode the value to set + * @return this builder + **/ + public Builder updateMode(UpdateMode updateMode) { + this.updateMode = updateMode; + this.__explicitlySet__.add("updateMode"); + return this; + } /** * The type of cloud VM cluster maintenance update. **/ @@ -195,6 +214,7 @@ public UpdateHistoryEntrySummary build() { this.id, this.updateId, this.updateAction, + this.updateMode, this.updateType, this.lifecycleState, this.lifecycleDetails, @@ -217,6 +237,9 @@ public Builder copy(UpdateHistoryEntrySummary model) { if (model.wasPropertyExplicitlySet("updateAction")) { this.updateAction(model.getUpdateAction()); } + if (model.wasPropertyExplicitlySet("updateMode")) { + this.updateMode(model.getUpdateMode()); + } if (model.wasPropertyExplicitlySet("updateType")) { this.updateType(model.getUpdateType()); } @@ -339,6 +362,73 @@ public UpdateAction getUpdateAction() { return updateAction; } + /** + * The OS update mode performed using this maintenance update. + **/ + public enum UpdateMode { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + PendingUpdatesHighcvss("PENDING_UPDATES_HIGHCVSS"), + PendingUpdatesAllcvss("PENDING_UPDATES_ALLCVSS"), + PendingAllUpdates("PENDING_ALL_UPDATES"), + FullUpdate("FULL_UPDATE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateMode v : UpdateMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UpdateMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UpdateMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The OS update mode performed using this maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private final UpdateMode updateMode; + + /** + * The OS update mode performed using this maintenance update. + * @return the value + **/ + public UpdateMode getUpdateMode() { + return updateMode; + } + /** * The type of cloud VM cluster maintenance update. **/ @@ -526,6 +616,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", updateId=").append(String.valueOf(this.updateId)); sb.append(", updateAction=").append(String.valueOf(this.updateAction)); + sb.append(", updateMode=").append(String.valueOf(this.updateMode)); sb.append(", updateType=").append(String.valueOf(this.updateType)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); @@ -548,6 +639,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.updateId, other.updateId) && java.util.Objects.equals(this.updateAction, other.updateAction) + && java.util.Objects.equals(this.updateMode, other.updateMode) && java.util.Objects.equals(this.updateType, other.updateType) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) @@ -563,6 +655,7 @@ public int hashCode() { result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); + result = (result * PRIME) + (this.updateMode == null ? 43 : this.updateMode.hashCode()); result = (result * PRIME) + (this.updateType == null ? 43 : this.updateType.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSummary.java index 6b8d82044e1..fbe2a63ca1c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSummary.java @@ -29,6 +29,9 @@ public final class UpdateSummary extends com.oracle.bmc.http.internal.Explicitly "description", "lastAction", "availableActions", + "lastUpdateMode", + "availableUpdateModes", + "oracleLinuxVersion", "updateType", "lifecycleDetails", "lifecycleState", @@ -40,6 +43,9 @@ public UpdateSummary( String description, LastAction lastAction, java.util.List availableActions, + LastUpdateMode lastUpdateMode, + java.util.List availableUpdateModes, + String oracleLinuxVersion, UpdateType updateType, String lifecycleDetails, LifecycleState lifecycleState, @@ -50,6 +56,9 @@ public UpdateSummary( this.description = description; this.lastAction = lastAction; this.availableActions = availableActions; + this.lastUpdateMode = lastUpdateMode; + this.availableUpdateModes = availableUpdateModes; + this.oracleLinuxVersion = oracleLinuxVersion; this.updateType = updateType; this.lifecycleDetails = lifecycleDetails; this.lifecycleState = lifecycleState; @@ -123,6 +132,55 @@ public Builder availableActions(java.util.List availableAction this.__explicitlySet__.add("availableActions"); return this; } + /** + * The previous update mode performed (only valid for OS Updates). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastUpdateMode") + private LastUpdateMode lastUpdateMode; + + /** + * The previous update mode performed (only valid for OS Updates). + * @param lastUpdateMode the value to set + * @return this builder + **/ + public Builder lastUpdateMode(LastUpdateMode lastUpdateMode) { + this.lastUpdateMode = lastUpdateMode; + this.__explicitlySet__.add("lastUpdateMode"); + return this; + } + /** + * The possible update options available (only valid for OS Update). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableUpdateModes") + private java.util.List availableUpdateModes; + + /** + * The possible update options available (only valid for OS Update). + * @param availableUpdateModes the value to set + * @return this builder + **/ + public Builder availableUpdateModes( + java.util.List availableUpdateModes) { + this.availableUpdateModes = availableUpdateModes; + this.__explicitlySet__.add("availableUpdateModes"); + return this; + } + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @param oracleLinuxVersion the value to set + * @return this builder + **/ + public Builder oracleLinuxVersion(String oracleLinuxVersion) { + this.oracleLinuxVersion = oracleLinuxVersion; + this.__explicitlySet__.add("oracleLinuxVersion"); + return this; + } /** * The type of cloud VM cluster maintenance update. **/ @@ -216,6 +274,9 @@ public UpdateSummary build() { this.description, this.lastAction, this.availableActions, + this.lastUpdateMode, + this.availableUpdateModes, + this.oracleLinuxVersion, this.updateType, this.lifecycleDetails, this.lifecycleState, @@ -241,6 +302,15 @@ public Builder copy(UpdateSummary model) { if (model.wasPropertyExplicitlySet("availableActions")) { this.availableActions(model.getAvailableActions()); } + if (model.wasPropertyExplicitlySet("lastUpdateMode")) { + this.lastUpdateMode(model.getLastUpdateMode()); + } + if (model.wasPropertyExplicitlySet("availableUpdateModes")) { + this.availableUpdateModes(model.getAvailableUpdateModes()); + } + if (model.wasPropertyExplicitlySet("oracleLinuxVersion")) { + this.oracleLinuxVersion(model.getOracleLinuxVersion()); + } if (model.wasPropertyExplicitlySet("updateType")) { this.updateType(model.getUpdateType()); } @@ -426,6 +496,149 @@ public java.util.List getAvailableActions() { return availableActions; } + /** + * The previous update mode performed (only valid for OS Updates). + **/ + public enum LastUpdateMode { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + PendingUpdates("PENDING_UPDATES"), + FullUpdate("FULL_UPDATE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LastUpdateMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LastUpdateMode v : LastUpdateMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LastUpdateMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LastUpdateMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LastUpdateMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The previous update mode performed (only valid for OS Updates). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastUpdateMode") + private final LastUpdateMode lastUpdateMode; + + /** + * The previous update mode performed (only valid for OS Updates). + * @return the value + **/ + public LastUpdateMode getLastUpdateMode() { + return lastUpdateMode; + } + + /** + **/ + public enum AvailableUpdateModes { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + PendingUpdates("PENDING_UPDATES"), + FullUpdate("FULL_UPDATE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AvailableUpdateModes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AvailableUpdateModes v : AvailableUpdateModes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AvailableUpdateModes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AvailableUpdateModes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AvailableUpdateModes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The possible update options available (only valid for OS Update). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableUpdateModes") + private final java.util.List availableUpdateModes; + + /** + * The possible update options available (only valid for OS Update). + * @return the value + **/ + public java.util.List getAvailableUpdateModes() { + return availableUpdateModes; + } + + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private final String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @return the value + **/ + public String getOracleLinuxVersion() { + return oracleLinuxVersion; + } + /** * The type of cloud VM cluster maintenance update. **/ @@ -615,6 +828,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", lastAction=").append(String.valueOf(this.lastAction)); sb.append(", availableActions=").append(String.valueOf(this.availableActions)); + sb.append(", lastUpdateMode=").append(String.valueOf(this.lastUpdateMode)); + sb.append(", availableUpdateModes=").append(String.valueOf(this.availableUpdateModes)); + sb.append(", oracleLinuxVersion=").append(String.valueOf(this.oracleLinuxVersion)); sb.append(", updateType=").append(String.valueOf(this.updateType)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -638,6 +854,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.lastAction, other.lastAction) && java.util.Objects.equals(this.availableActions, other.availableActions) + && java.util.Objects.equals(this.lastUpdateMode, other.lastUpdateMode) + && java.util.Objects.equals(this.availableUpdateModes, other.availableUpdateModes) + && java.util.Objects.equals(this.oracleLinuxVersion, other.oracleLinuxVersion) && java.util.Objects.equals(this.updateType, other.updateType) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -656,6 +875,19 @@ public int hashCode() { result = (result * PRIME) + (this.availableActions == null ? 43 : this.availableActions.hashCode()); + result = + (result * PRIME) + + (this.lastUpdateMode == null ? 43 : this.lastUpdateMode.hashCode()); + result = + (result * PRIME) + + (this.availableUpdateModes == null + ? 43 + : this.availableUpdateModes.hashCode()); + result = + (result * PRIME) + + (this.oracleLinuxVersion == null + ? 43 + : this.oracleLinuxVersion.hashCode()); result = (result * PRIME) + (this.updateType == null ? 43 : this.updateType.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VersionSchemeDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VersionSchemeDetails.java new file mode 100644 index 00000000000..bfe503c700e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VersionSchemeDetails.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * The update should be applied on the database for the selected version scheme. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source", + defaultImpl = VersionSchemeDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = VersionSchemeFromVersionSeriesDetails.class, + name = "VERSION_SERIES" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class VersionSchemeDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected VersionSchemeDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VersionSchemeDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VersionSchemeDetails)) { + return false; + } + + VersionSchemeDetails other = (VersionSchemeDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The update should be applied on the database for the selected version scheme. + * + **/ + public enum Source { + VersionSeries("VERSION_SERIES"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Source.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Source v : Source.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Source(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Source create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Source', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VersionSchemeFromVersionSeriesDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VersionSchemeFromVersionSeriesDetails.java new file mode 100644 index 00000000000..9d25044e547 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VersionSchemeFromVersionSeriesDetails.java @@ -0,0 +1,281 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.model; + +/** + * The update should be applied on the database for the selected version series and preference. + * + *
+ * 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VersionSchemeFromVersionSeriesDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VersionSchemeFromVersionSeriesDetails extends VersionSchemeDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The update should be applied on the database for the selected major version series. + * The value can be provided as 23.X.X.X then 23 major version series will be considered. + *

+ * The list of supported versions can be obtained using the API for the provided shape + * /20160918/dbVersions?compartmentId=&dbSystemShape=ExaDbXS + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("majorVersion") + private String majorVersion; + + /** + * The update should be applied on the database for the selected major version series. + * The value can be provided as 23.X.X.X then 23 major version series will be considered. + *

+ * The list of supported versions can be obtained using the API for the provided shape + * /20160918/dbVersions?compartmentId=&dbSystemShape=ExaDbXS + * + * @param majorVersion the value to set + * @return this builder + **/ + public Builder majorVersion(String majorVersion) { + this.majorVersion = majorVersion; + this.__explicitlySet__.add("majorVersion"); + return this; + } + /** + * The update should be applied on the database for the selected version preference. *_N represents the LATEST version + *

+ * For Ex: The current latest version is 23.7.0.0.0, + * If versionPreference selects option as ORACLE_DB_N then oracle applies the db update with LATEST version (i.e. 23.7.0.0.0) + * If versionPreference selects option as ORACLE_DB_N_1 then oracle applies the db update with LATEST-1 version (i.e. 23.6.0.0.0) + * If versionPreference selects option as ORACLE_DB_N_2 then oracle applies the db update with LATEST-2 version (i.e. 23.5.0.0.0) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versionPreference") + private VersionPreference versionPreference; + + /** + * The update should be applied on the database for the selected version preference. *_N represents the LATEST version + *

+ * For Ex: The current latest version is 23.7.0.0.0, + * If versionPreference selects option as ORACLE_DB_N then oracle applies the db update with LATEST version (i.e. 23.7.0.0.0) + * If versionPreference selects option as ORACLE_DB_N_1 then oracle applies the db update with LATEST-1 version (i.e. 23.6.0.0.0) + * If versionPreference selects option as ORACLE_DB_N_2 then oracle applies the db update with LATEST-2 version (i.e. 23.5.0.0.0) + * + * @param versionPreference the value to set + * @return this builder + **/ + public Builder versionPreference(VersionPreference versionPreference) { + this.versionPreference = versionPreference; + this.__explicitlySet__.add("versionPreference"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VersionSchemeFromVersionSeriesDetails build() { + VersionSchemeFromVersionSeriesDetails model = + new VersionSchemeFromVersionSeriesDetails( + this.majorVersion, this.versionPreference); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VersionSchemeFromVersionSeriesDetails model) { + if (model.wasPropertyExplicitlySet("majorVersion")) { + this.majorVersion(model.getMajorVersion()); + } + if (model.wasPropertyExplicitlySet("versionPreference")) { + this.versionPreference(model.getVersionPreference()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public VersionSchemeFromVersionSeriesDetails( + String majorVersion, VersionPreference versionPreference) { + super(); + this.majorVersion = majorVersion; + this.versionPreference = versionPreference; + } + + /** + * The update should be applied on the database for the selected major version series. + * The value can be provided as 23.X.X.X then 23 major version series will be considered. + *

+ * The list of supported versions can be obtained using the API for the provided shape + * /20160918/dbVersions?compartmentId=&dbSystemShape=ExaDbXS + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("majorVersion") + private final String majorVersion; + + /** + * The update should be applied on the database for the selected major version series. + * The value can be provided as 23.X.X.X then 23 major version series will be considered. + *

+ * The list of supported versions can be obtained using the API for the provided shape + * /20160918/dbVersions?compartmentId=&dbSystemShape=ExaDbXS + * + * @return the value + **/ + public String getMajorVersion() { + return majorVersion; + } + + /** + * The update should be applied on the database for the selected version preference. *_N represents the LATEST version + *

+ * For Ex: The current latest version is 23.7.0.0.0, + * If versionPreference selects option as ORACLE_DB_N then oracle applies the db update with LATEST version (i.e. 23.7.0.0.0) + * If versionPreference selects option as ORACLE_DB_N_1 then oracle applies the db update with LATEST-1 version (i.e. 23.6.0.0.0) + * If versionPreference selects option as ORACLE_DB_N_2 then oracle applies the db update with LATEST-2 version (i.e. 23.5.0.0.0) + * + **/ + public enum VersionPreference { + OracleDbN("ORACLE_DB_N"), + OracleDbN1("ORACLE_DB_N_1"), + OracleDbN2("ORACLE_DB_N_2"), + OracleDbN3("ORACLE_DB_N_3"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(VersionPreference.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VersionPreference v : VersionPreference.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + VersionPreference(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VersionPreference create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'VersionPreference', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The update should be applied on the database for the selected version preference. *_N represents the LATEST version + *

+ * For Ex: The current latest version is 23.7.0.0.0, + * If versionPreference selects option as ORACLE_DB_N then oracle applies the db update with LATEST version (i.e. 23.7.0.0.0) + * If versionPreference selects option as ORACLE_DB_N_1 then oracle applies the db update with LATEST-1 version (i.e. 23.6.0.0.0) + * If versionPreference selects option as ORACLE_DB_N_2 then oracle applies the db update with LATEST-2 version (i.e. 23.5.0.0.0) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versionPreference") + private final VersionPreference versionPreference; + + /** + * The update should be applied on the database for the selected version preference. *_N represents the LATEST version + *

+ * For Ex: The current latest version is 23.7.0.0.0, + * If versionPreference selects option as ORACLE_DB_N then oracle applies the db update with LATEST version (i.e. 23.7.0.0.0) + * If versionPreference selects option as ORACLE_DB_N_1 then oracle applies the db update with LATEST-1 version (i.e. 23.6.0.0.0) + * If versionPreference selects option as ORACLE_DB_N_2 then oracle applies the db update with LATEST-2 version (i.e. 23.5.0.0.0) + * + * @return the value + **/ + public VersionPreference getVersionPreference() { + return versionPreference; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VersionSchemeFromVersionSeriesDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", majorVersion=").append(String.valueOf(this.majorVersion)); + sb.append(", versionPreference=").append(String.valueOf(this.versionPreference)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VersionSchemeFromVersionSeriesDetails)) { + return false; + } + + VersionSchemeFromVersionSeriesDetails other = (VersionSchemeFromVersionSeriesDetails) o; + return java.util.Objects.equals(this.majorVersion, other.majorVersion) + && java.util.Objects.equals(this.versionPreference, other.versionPreference) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.majorVersion == null ? 43 : this.majorVersion.hashCode()); + result = + (result * PRIME) + + (this.versionPreference == null ? 43 : this.versionPreference.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java index 1fd37d4b4b7..f8aab438d9e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java @@ -35,6 +35,8 @@ public final class VmCluster extends com.oracle.bmc.http.internal.ExplicitlySetB "dataStoragePercentage", "recoStoragePercentage", "sparseStoragePercentage", + "liveImageVersionDetails", + "oracleLinuxVersion", "vmClusterNetworkId", "cpusEnabled", "ocpusEnabled", @@ -78,6 +80,8 @@ public VmCluster( Integer dataStoragePercentage, Integer recoStoragePercentage, Integer sparseStoragePercentage, + ExadataLiveImageVersionDetails liveImageVersionDetails, + String oracleLinuxVersion, String vmClusterNetworkId, Integer cpusEnabled, Float ocpusEnabled, @@ -120,6 +124,8 @@ public VmCluster( this.dataStoragePercentage = dataStoragePercentage; this.recoStoragePercentage = recoStoragePercentage; this.sparseStoragePercentage = sparseStoragePercentage; + this.liveImageVersionDetails = liveImageVersionDetails; + this.oracleLinuxVersion = oracleLinuxVersion; this.vmClusterNetworkId = vmClusterNetworkId; this.cpusEnabled = cpusEnabled; this.ocpusEnabled = ocpusEnabled; @@ -385,6 +391,32 @@ public Builder sparseStoragePercentage(Integer sparseStoragePercentage) { this.__explicitlySet__.add("sparseStoragePercentage"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("liveImageVersionDetails") + private ExadataLiveImageVersionDetails liveImageVersionDetails; + + public Builder liveImageVersionDetails( + ExadataLiveImageVersionDetails liveImageVersionDetails) { + this.liveImageVersionDetails = liveImageVersionDetails; + this.__explicitlySet__.add("liveImageVersionDetails"); + return this; + } + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @param oracleLinuxVersion the value to set + * @return this builder + **/ + public Builder oracleLinuxVersion(String oracleLinuxVersion) { + this.oracleLinuxVersion = oracleLinuxVersion; + this.__explicitlySet__.add("oracleLinuxVersion"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. **/ @@ -847,6 +879,8 @@ public VmCluster build() { this.dataStoragePercentage, this.recoStoragePercentage, this.sparseStoragePercentage, + this.liveImageVersionDetails, + this.oracleLinuxVersion, this.vmClusterNetworkId, this.cpusEnabled, this.ocpusEnabled, @@ -924,6 +958,12 @@ public Builder copy(VmCluster model) { if (model.wasPropertyExplicitlySet("sparseStoragePercentage")) { this.sparseStoragePercentage(model.getSparseStoragePercentage()); } + if (model.wasPropertyExplicitlySet("liveImageVersionDetails")) { + this.liveImageVersionDetails(model.getLiveImageVersionDetails()); + } + if (model.wasPropertyExplicitlySet("oracleLinuxVersion")) { + this.oracleLinuxVersion(model.getOracleLinuxVersion()); + } if (model.wasPropertyExplicitlySet("vmClusterNetworkId")) { this.vmClusterNetworkId(model.getVmClusterNetworkId()); } @@ -1279,6 +1319,27 @@ public Integer getSparseStoragePercentage() { return sparseStoragePercentage; } + @com.fasterxml.jackson.annotation.JsonProperty("liveImageVersionDetails") + private final ExadataLiveImageVersionDetails liveImageVersionDetails; + + public ExadataLiveImageVersionDetails getLiveImageVersionDetails() { + return liveImageVersionDetails; + } + + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private final String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @return the value + **/ + public String getOracleLinuxVersion() { + return oracleLinuxVersion; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. **/ @@ -1984,6 +2045,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", recoStoragePercentage=").append(String.valueOf(this.recoStoragePercentage)); sb.append(", sparseStoragePercentage=") .append(String.valueOf(this.sparseStoragePercentage)); + sb.append(", liveImageVersionDetails=") + .append(String.valueOf(this.liveImageVersionDetails)); + sb.append(", oracleLinuxVersion=").append(String.valueOf(this.oracleLinuxVersion)); sb.append(", vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); sb.append(", cpusEnabled=").append(String.valueOf(this.cpusEnabled)); sb.append(", ocpusEnabled=").append(String.valueOf(this.ocpusEnabled)); @@ -2047,6 +2111,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.recoStoragePercentage, other.recoStoragePercentage) && java.util.Objects.equals( this.sparseStoragePercentage, other.sparseStoragePercentage) + && java.util.Objects.equals( + this.liveImageVersionDetails, other.liveImageVersionDetails) + && java.util.Objects.equals(this.oracleLinuxVersion, other.oracleLinuxVersion) && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) && java.util.Objects.equals(this.cpusEnabled, other.cpusEnabled) && java.util.Objects.equals(this.ocpusEnabled, other.ocpusEnabled) @@ -2134,6 +2201,16 @@ public int hashCode() { + (this.sparseStoragePercentage == null ? 43 : this.sparseStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.liveImageVersionDetails == null + ? 43 + : this.liveImageVersionDetails.hashCode()); + result = + (result * PRIME) + + (this.oracleLinuxVersion == null + ? 43 + : this.oracleLinuxVersion.hashCode()); result = (result * PRIME) + (this.vmClusterNetworkId == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java index e8f49ab036a..739f8d9d729 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java @@ -35,6 +35,8 @@ public final class VmClusterSummary extends com.oracle.bmc.http.internal.Explici "dataStoragePercentage", "recoStoragePercentage", "sparseStoragePercentage", + "liveImageVersionDetails", + "oracleLinuxVersion", "vmClusterNetworkId", "cpusEnabled", "ocpusEnabled", @@ -78,6 +80,8 @@ public VmClusterSummary( Integer dataStoragePercentage, Integer recoStoragePercentage, Integer sparseStoragePercentage, + ExadataLiveImageVersionDetails liveImageVersionDetails, + String oracleLinuxVersion, String vmClusterNetworkId, Integer cpusEnabled, Float ocpusEnabled, @@ -120,6 +124,8 @@ public VmClusterSummary( this.dataStoragePercentage = dataStoragePercentage; this.recoStoragePercentage = recoStoragePercentage; this.sparseStoragePercentage = sparseStoragePercentage; + this.liveImageVersionDetails = liveImageVersionDetails; + this.oracleLinuxVersion = oracleLinuxVersion; this.vmClusterNetworkId = vmClusterNetworkId; this.cpusEnabled = cpusEnabled; this.ocpusEnabled = ocpusEnabled; @@ -385,6 +391,32 @@ public Builder sparseStoragePercentage(Integer sparseStoragePercentage) { this.__explicitlySet__.add("sparseStoragePercentage"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("liveImageVersionDetails") + private ExadataLiveImageVersionDetails liveImageVersionDetails; + + public Builder liveImageVersionDetails( + ExadataLiveImageVersionDetails liveImageVersionDetails) { + this.liveImageVersionDetails = liveImageVersionDetails; + this.__explicitlySet__.add("liveImageVersionDetails"); + return this; + } + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @param oracleLinuxVersion the value to set + * @return this builder + **/ + public Builder oracleLinuxVersion(String oracleLinuxVersion) { + this.oracleLinuxVersion = oracleLinuxVersion; + this.__explicitlySet__.add("oracleLinuxVersion"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. **/ @@ -847,6 +879,8 @@ public VmClusterSummary build() { this.dataStoragePercentage, this.recoStoragePercentage, this.sparseStoragePercentage, + this.liveImageVersionDetails, + this.oracleLinuxVersion, this.vmClusterNetworkId, this.cpusEnabled, this.ocpusEnabled, @@ -924,6 +958,12 @@ public Builder copy(VmClusterSummary model) { if (model.wasPropertyExplicitlySet("sparseStoragePercentage")) { this.sparseStoragePercentage(model.getSparseStoragePercentage()); } + if (model.wasPropertyExplicitlySet("liveImageVersionDetails")) { + this.liveImageVersionDetails(model.getLiveImageVersionDetails()); + } + if (model.wasPropertyExplicitlySet("oracleLinuxVersion")) { + this.oracleLinuxVersion(model.getOracleLinuxVersion()); + } if (model.wasPropertyExplicitlySet("vmClusterNetworkId")) { this.vmClusterNetworkId(model.getVmClusterNetworkId()); } @@ -1279,6 +1319,27 @@ public Integer getSparseStoragePercentage() { return sparseStoragePercentage; } + @com.fasterxml.jackson.annotation.JsonProperty("liveImageVersionDetails") + private final ExadataLiveImageVersionDetails liveImageVersionDetails; + + public ExadataLiveImageVersionDetails getLiveImageVersionDetails() { + return liveImageVersionDetails; + } + + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private final String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @return the value + **/ + public String getOracleLinuxVersion() { + return oracleLinuxVersion; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. **/ @@ -1984,6 +2045,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", recoStoragePercentage=").append(String.valueOf(this.recoStoragePercentage)); sb.append(", sparseStoragePercentage=") .append(String.valueOf(this.sparseStoragePercentage)); + sb.append(", liveImageVersionDetails=") + .append(String.valueOf(this.liveImageVersionDetails)); + sb.append(", oracleLinuxVersion=").append(String.valueOf(this.oracleLinuxVersion)); sb.append(", vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); sb.append(", cpusEnabled=").append(String.valueOf(this.cpusEnabled)); sb.append(", ocpusEnabled=").append(String.valueOf(this.ocpusEnabled)); @@ -2047,6 +2111,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.recoStoragePercentage, other.recoStoragePercentage) && java.util.Objects.equals( this.sparseStoragePercentage, other.sparseStoragePercentage) + && java.util.Objects.equals( + this.liveImageVersionDetails, other.liveImageVersionDetails) + && java.util.Objects.equals(this.oracleLinuxVersion, other.oracleLinuxVersion) && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) && java.util.Objects.equals(this.cpusEnabled, other.cpusEnabled) && java.util.Objects.equals(this.ocpusEnabled, other.ocpusEnabled) @@ -2134,6 +2201,16 @@ public int hashCode() { + (this.sparseStoragePercentage == null ? 43 : this.sparseStoragePercentage.hashCode()); + result = + (result * PRIME) + + (this.liveImageVersionDetails == null + ? 43 + : this.liveImageVersionDetails.hashCode()); + result = + (result * PRIME) + + (this.oracleLinuxVersion == null + ? 43 + : this.oracleLinuxVersion.hashCode()); result = (result * PRIME) + (this.vmClusterNetworkId == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdate.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdate.java index 847b1769952..867e21365e0 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdate.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdate.java @@ -28,6 +28,9 @@ public final class VmClusterUpdate extends com.oracle.bmc.http.internal.Explicit "id", "description", "lastAction", + "lastUpdateMode", + "availableUpdateModes", + "oracleLinuxVersion", "availableActions", "updateType", "lifecycleDetails", @@ -39,6 +42,9 @@ public VmClusterUpdate( String id, String description, LastAction lastAction, + LastUpdateMode lastUpdateMode, + java.util.List availableUpdateModes, + String oracleLinuxVersion, java.util.List availableActions, UpdateType updateType, String lifecycleDetails, @@ -49,6 +55,9 @@ public VmClusterUpdate( this.id = id; this.description = description; this.lastAction = lastAction; + this.lastUpdateMode = lastUpdateMode; + this.availableUpdateModes = availableUpdateModes; + this.oracleLinuxVersion = oracleLinuxVersion; this.availableActions = availableActions; this.updateType = updateType; this.lifecycleDetails = lifecycleDetails; @@ -107,6 +116,55 @@ public Builder lastAction(LastAction lastAction) { this.__explicitlySet__.add("lastAction"); return this; } + /** + * The update mode performed most recently using this maintenance update (only valid for OS Update). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastUpdateMode") + private LastUpdateMode lastUpdateMode; + + /** + * The update mode performed most recently using this maintenance update (only valid for OS Update). + * @param lastUpdateMode the value to set + * @return this builder + **/ + public Builder lastUpdateMode(LastUpdateMode lastUpdateMode) { + this.lastUpdateMode = lastUpdateMode; + this.__explicitlySet__.add("lastUpdateMode"); + return this; + } + /** + * The possible update options that can be performed using this maintenance update (only valid for OS Update). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableUpdateModes") + private java.util.List availableUpdateModes; + + /** + * The possible update options that can be performed using this maintenance update (only valid for OS Update). + * @param availableUpdateModes the value to set + * @return this builder + **/ + public Builder availableUpdateModes( + java.util.List availableUpdateModes) { + this.availableUpdateModes = availableUpdateModes; + this.__explicitlySet__.add("availableUpdateModes"); + return this; + } + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @param oracleLinuxVersion the value to set + * @return this builder + **/ + public Builder oracleLinuxVersion(String oracleLinuxVersion) { + this.oracleLinuxVersion = oracleLinuxVersion; + this.__explicitlySet__.add("oracleLinuxVersion"); + return this; + } /** * The possible actions that can be performed using this maintenance update. **/ @@ -215,6 +273,9 @@ public VmClusterUpdate build() { this.id, this.description, this.lastAction, + this.lastUpdateMode, + this.availableUpdateModes, + this.oracleLinuxVersion, this.availableActions, this.updateType, this.lifecycleDetails, @@ -238,6 +299,15 @@ public Builder copy(VmClusterUpdate model) { if (model.wasPropertyExplicitlySet("lastAction")) { this.lastAction(model.getLastAction()); } + if (model.wasPropertyExplicitlySet("lastUpdateMode")) { + this.lastUpdateMode(model.getLastUpdateMode()); + } + if (model.wasPropertyExplicitlySet("availableUpdateModes")) { + this.availableUpdateModes(model.getAvailableUpdateModes()); + } + if (model.wasPropertyExplicitlySet("oracleLinuxVersion")) { + this.oracleLinuxVersion(model.getOracleLinuxVersion()); + } if (model.wasPropertyExplicitlySet("availableActions")) { this.availableActions(model.getAvailableActions()); } @@ -362,6 +432,149 @@ public LastAction getLastAction() { return lastAction; } + /** + * The update mode performed most recently using this maintenance update (only valid for OS Update). + **/ + public enum LastUpdateMode { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + PendingUpdates("PENDING_UPDATES"), + FullUpdate("FULL_UPDATE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LastUpdateMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LastUpdateMode v : LastUpdateMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LastUpdateMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LastUpdateMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LastUpdateMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The update mode performed most recently using this maintenance update (only valid for OS Update). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastUpdateMode") + private final LastUpdateMode lastUpdateMode; + + /** + * The update mode performed most recently using this maintenance update (only valid for OS Update). + * @return the value + **/ + public LastUpdateMode getLastUpdateMode() { + return lastUpdateMode; + } + + /** + **/ + public enum AvailableUpdateModes { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + PendingUpdates("PENDING_UPDATES"), + FullUpdate("FULL_UPDATE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AvailableUpdateModes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AvailableUpdateModes v : AvailableUpdateModes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AvailableUpdateModes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AvailableUpdateModes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AvailableUpdateModes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The possible update options that can be performed using this maintenance update (only valid for OS Update). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableUpdateModes") + private final java.util.List availableUpdateModes; + + /** + * The possible update options that can be performed using this maintenance update (only valid for OS Update). + * @return the value + **/ + public java.util.List getAvailableUpdateModes() { + return availableUpdateModes; + } + + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private final String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @return the value + **/ + public String getOracleLinuxVersion() { + return oracleLinuxVersion; + } + /** **/ public enum AvailableActions { @@ -612,6 +825,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", lastAction=").append(String.valueOf(this.lastAction)); + sb.append(", lastUpdateMode=").append(String.valueOf(this.lastUpdateMode)); + sb.append(", availableUpdateModes=").append(String.valueOf(this.availableUpdateModes)); + sb.append(", oracleLinuxVersion=").append(String.valueOf(this.oracleLinuxVersion)); sb.append(", availableActions=").append(String.valueOf(this.availableActions)); sb.append(", updateType=").append(String.valueOf(this.updateType)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); @@ -635,6 +851,9 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.lastAction, other.lastAction) + && java.util.Objects.equals(this.lastUpdateMode, other.lastUpdateMode) + && java.util.Objects.equals(this.availableUpdateModes, other.availableUpdateModes) + && java.util.Objects.equals(this.oracleLinuxVersion, other.oracleLinuxVersion) && java.util.Objects.equals(this.availableActions, other.availableActions) && java.util.Objects.equals(this.updateType, other.updateType) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) @@ -651,6 +870,19 @@ public int hashCode() { result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.lastAction == null ? 43 : this.lastAction.hashCode()); + result = + (result * PRIME) + + (this.lastUpdateMode == null ? 43 : this.lastUpdateMode.hashCode()); + result = + (result * PRIME) + + (this.availableUpdateModes == null + ? 43 + : this.availableUpdateModes.hashCode()); + result = + (result * PRIME) + + (this.oracleLinuxVersion == null + ? 43 + : this.oracleLinuxVersion.hashCode()); result = (result * PRIME) + (this.availableActions == null ? 43 : this.availableActions.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateDetails.java index 18908cd81b5..09077961b58 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateDetails.java @@ -23,11 +23,20 @@ public final class VmClusterUpdateDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"updateId", "updateAction", "giSoftwareImageId"}) + @java.beans.ConstructorProperties({ + "updateId", + "updateMode", + "updateAction", + "giSoftwareImageId" + }) public VmClusterUpdateDetails( - String updateId, UpdateAction updateAction, String giSoftwareImageId) { + String updateId, + UpdateMode updateMode, + UpdateAction updateAction, + String giSoftwareImageId) { super(); this.updateId = updateId; + this.updateMode = updateMode; this.updateAction = updateAction; this.giSoftwareImageId = giSoftwareImageId; } @@ -50,6 +59,22 @@ public Builder updateId(String updateId) { this.__explicitlySet__.add("updateId"); return this; } + /** + * The update mode to perform for OS Update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private UpdateMode updateMode; + + /** + * The update mode to perform for OS Update. + * @param updateMode the value to set + * @return this builder + **/ + public Builder updateMode(UpdateMode updateMode) { + this.updateMode = updateMode; + this.__explicitlySet__.add("updateMode"); + return this; + } /** * The update action to perform. **/ @@ -89,7 +114,10 @@ public Builder giSoftwareImageId(String giSoftwareImageId) { public VmClusterUpdateDetails build() { VmClusterUpdateDetails model = new VmClusterUpdateDetails( - this.updateId, this.updateAction, this.giSoftwareImageId); + this.updateId, + this.updateMode, + this.updateAction, + this.giSoftwareImageId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -101,6 +129,9 @@ public Builder copy(VmClusterUpdateDetails model) { if (model.wasPropertyExplicitlySet("updateId")) { this.updateId(model.getUpdateId()); } + if (model.wasPropertyExplicitlySet("updateMode")) { + this.updateMode(model.getUpdateMode()); + } if (model.wasPropertyExplicitlySet("updateAction")) { this.updateAction(model.getUpdateAction()); } @@ -136,6 +167,58 @@ public String getUpdateId() { return updateId; } + /** + * The update mode to perform for OS Update. + **/ + public enum UpdateMode { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + PendingUpdates("PENDING_UPDATES"), + FullUpdate("FULL_UPDATE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateMode v : UpdateMode.values()) { + map.put(v.getValue(), v); + } + } + + UpdateMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid UpdateMode: " + key); + } + }; + /** + * The update mode to perform for OS Update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private final UpdateMode updateMode; + + /** + * The update mode to perform for OS Update. + * @return the value + **/ + public UpdateMode getUpdateMode() { + return updateMode; + } + /** * The update action to perform. **/ @@ -215,6 +298,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("VmClusterUpdateDetails("); sb.append("super=").append(super.toString()); sb.append("updateId=").append(String.valueOf(this.updateId)); + sb.append(", updateMode=").append(String.valueOf(this.updateMode)); sb.append(", updateAction=").append(String.valueOf(this.updateAction)); sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); sb.append(")"); @@ -232,6 +316,7 @@ public boolean equals(Object o) { VmClusterUpdateDetails other = (VmClusterUpdateDetails) o; return java.util.Objects.equals(this.updateId, other.updateId) + && java.util.Objects.equals(this.updateMode, other.updateMode) && java.util.Objects.equals(this.updateAction, other.updateAction) && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) && super.equals(other); @@ -242,6 +327,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); + result = (result * PRIME) + (this.updateMode == null ? 43 : this.updateMode.hashCode()); result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateHistoryEntry.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateHistoryEntry.java index b778b493ffb..e67ad8e3987 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateHistoryEntry.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateHistoryEntry.java @@ -27,6 +27,7 @@ public final class VmClusterUpdateHistoryEntry "id", "updateId", "updateAction", + "updateMode", "updateType", "lifecycleState", "lifecycleDetails", @@ -37,6 +38,7 @@ public VmClusterUpdateHistoryEntry( String id, String updateId, UpdateAction updateAction, + UpdateMode updateMode, UpdateType updateType, LifecycleState lifecycleState, String lifecycleDetails, @@ -46,6 +48,7 @@ public VmClusterUpdateHistoryEntry( this.id = id; this.updateId = updateId; this.updateAction = updateAction; + this.updateMode = updateMode; this.updateType = updateType; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; @@ -103,6 +106,22 @@ public Builder updateAction(UpdateAction updateAction) { this.__explicitlySet__.add("updateAction"); return this; } + /** + * The OS update mode performed using this maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private UpdateMode updateMode; + + /** + * The OS update mode performed using this maintenance update. + * @param updateMode the value to set + * @return this builder + **/ + public Builder updateMode(UpdateMode updateMode) { + this.updateMode = updateMode; + this.__explicitlySet__.add("updateMode"); + return this; + } /** * The type of VM cluster maintenance update. **/ @@ -195,6 +214,7 @@ public VmClusterUpdateHistoryEntry build() { this.id, this.updateId, this.updateAction, + this.updateMode, this.updateType, this.lifecycleState, this.lifecycleDetails, @@ -217,6 +237,9 @@ public Builder copy(VmClusterUpdateHistoryEntry model) { if (model.wasPropertyExplicitlySet("updateAction")) { this.updateAction(model.getUpdateAction()); } + if (model.wasPropertyExplicitlySet("updateMode")) { + this.updateMode(model.getUpdateMode()); + } if (model.wasPropertyExplicitlySet("updateType")) { this.updateType(model.getUpdateType()); } @@ -338,6 +361,73 @@ public UpdateAction getUpdateAction() { return updateAction; } + /** + * The OS update mode performed using this maintenance update. + **/ + public enum UpdateMode { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + PendingUpdatesHighcvss("PENDING_UPDATES_HIGHCVSS"), + PendingUpdatesAllcvss("PENDING_UPDATES_ALLCVSS"), + PendingAllUpdates("PENDING_ALL_UPDATES"), + FullUpdate("FULL_UPDATE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateMode v : UpdateMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UpdateMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UpdateMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The OS update mode performed using this maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private final UpdateMode updateMode; + + /** + * The OS update mode performed using this maintenance update. + * @return the value + **/ + public UpdateMode getUpdateMode() { + return updateMode; + } + /** * The type of VM cluster maintenance update. **/ @@ -525,6 +615,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", updateId=").append(String.valueOf(this.updateId)); sb.append(", updateAction=").append(String.valueOf(this.updateAction)); + sb.append(", updateMode=").append(String.valueOf(this.updateMode)); sb.append(", updateType=").append(String.valueOf(this.updateType)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); @@ -547,6 +638,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.updateId, other.updateId) && java.util.Objects.equals(this.updateAction, other.updateAction) + && java.util.Objects.equals(this.updateMode, other.updateMode) && java.util.Objects.equals(this.updateType, other.updateType) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) @@ -562,6 +654,7 @@ public int hashCode() { result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); + result = (result * PRIME) + (this.updateMode == null ? 43 : this.updateMode.hashCode()); result = (result * PRIME) + (this.updateType == null ? 43 : this.updateType.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateHistoryEntrySummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateHistoryEntrySummary.java index 2910d8cb936..db8b0df7449 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateHistoryEntrySummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateHistoryEntrySummary.java @@ -27,6 +27,7 @@ public final class VmClusterUpdateHistoryEntrySummary "id", "updateId", "updateAction", + "updateMode", "updateType", "lifecycleState", "lifecycleDetails", @@ -37,6 +38,7 @@ public VmClusterUpdateHistoryEntrySummary( String id, String updateId, UpdateAction updateAction, + UpdateMode updateMode, UpdateType updateType, LifecycleState lifecycleState, String lifecycleDetails, @@ -46,6 +48,7 @@ public VmClusterUpdateHistoryEntrySummary( this.id = id; this.updateId = updateId; this.updateAction = updateAction; + this.updateMode = updateMode; this.updateType = updateType; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; @@ -103,6 +106,22 @@ public Builder updateAction(UpdateAction updateAction) { this.__explicitlySet__.add("updateAction"); return this; } + /** + * The OS update mode performed using this maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private UpdateMode updateMode; + + /** + * The OS update mode performed using this maintenance update. + * @param updateMode the value to set + * @return this builder + **/ + public Builder updateMode(UpdateMode updateMode) { + this.updateMode = updateMode; + this.__explicitlySet__.add("updateMode"); + return this; + } /** * The type of VM cluster maintenance update. **/ @@ -195,6 +214,7 @@ public VmClusterUpdateHistoryEntrySummary build() { this.id, this.updateId, this.updateAction, + this.updateMode, this.updateType, this.lifecycleState, this.lifecycleDetails, @@ -217,6 +237,9 @@ public Builder copy(VmClusterUpdateHistoryEntrySummary model) { if (model.wasPropertyExplicitlySet("updateAction")) { this.updateAction(model.getUpdateAction()); } + if (model.wasPropertyExplicitlySet("updateMode")) { + this.updateMode(model.getUpdateMode()); + } if (model.wasPropertyExplicitlySet("updateType")) { this.updateType(model.getUpdateType()); } @@ -338,6 +361,73 @@ public UpdateAction getUpdateAction() { return updateAction; } + /** + * The OS update mode performed using this maintenance update. + **/ + public enum UpdateMode { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + PendingUpdatesHighcvss("PENDING_UPDATES_HIGHCVSS"), + PendingUpdatesAllcvss("PENDING_UPDATES_ALLCVSS"), + PendingAllUpdates("PENDING_ALL_UPDATES"), + FullUpdate("FULL_UPDATE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateMode v : UpdateMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UpdateMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UpdateMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The OS update mode performed using this maintenance update. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updateMode") + private final UpdateMode updateMode; + + /** + * The OS update mode performed using this maintenance update. + * @return the value + **/ + public UpdateMode getUpdateMode() { + return updateMode; + } + /** * The type of VM cluster maintenance update. **/ @@ -525,6 +615,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", updateId=").append(String.valueOf(this.updateId)); sb.append(", updateAction=").append(String.valueOf(this.updateAction)); + sb.append(", updateMode=").append(String.valueOf(this.updateMode)); sb.append(", updateType=").append(String.valueOf(this.updateType)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); @@ -547,6 +638,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.updateId, other.updateId) && java.util.Objects.equals(this.updateAction, other.updateAction) + && java.util.Objects.equals(this.updateMode, other.updateMode) && java.util.Objects.equals(this.updateType, other.updateType) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) @@ -562,6 +654,7 @@ public int hashCode() { result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); + result = (result * PRIME) + (this.updateMode == null ? 43 : this.updateMode.hashCode()); result = (result * PRIME) + (this.updateType == null ? 43 : this.updateType.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateSummary.java index 10d00ba8ebd..304df624646 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateSummary.java @@ -31,6 +31,9 @@ public final class VmClusterUpdateSummary "id", "description", "lastAction", + "lastUpdateMode", + "availableUpdateModes", + "oracleLinuxVersion", "availableActions", "updateType", "lifecycleDetails", @@ -42,6 +45,9 @@ public VmClusterUpdateSummary( String id, String description, LastAction lastAction, + LastUpdateMode lastUpdateMode, + java.util.List availableUpdateModes, + String oracleLinuxVersion, java.util.List availableActions, UpdateType updateType, String lifecycleDetails, @@ -52,6 +58,9 @@ public VmClusterUpdateSummary( this.id = id; this.description = description; this.lastAction = lastAction; + this.lastUpdateMode = lastUpdateMode; + this.availableUpdateModes = availableUpdateModes; + this.oracleLinuxVersion = oracleLinuxVersion; this.availableActions = availableActions; this.updateType = updateType; this.lifecycleDetails = lifecycleDetails; @@ -110,6 +119,55 @@ public Builder lastAction(LastAction lastAction) { this.__explicitlySet__.add("lastAction"); return this; } + /** + * The update mode performed most recently using this maintenance update (only valid for OS Update). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastUpdateMode") + private LastUpdateMode lastUpdateMode; + + /** + * The update mode performed most recently using this maintenance update (only valid for OS Update). + * @param lastUpdateMode the value to set + * @return this builder + **/ + public Builder lastUpdateMode(LastUpdateMode lastUpdateMode) { + this.lastUpdateMode = lastUpdateMode; + this.__explicitlySet__.add("lastUpdateMode"); + return this; + } + /** + * The possible update options that can be performed using this maintenance update (only valid for OS Update). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableUpdateModes") + private java.util.List availableUpdateModes; + + /** + * The possible update options that can be performed using this maintenance update (only valid for OS Update). + * @param availableUpdateModes the value to set + * @return this builder + **/ + public Builder availableUpdateModes( + java.util.List availableUpdateModes) { + this.availableUpdateModes = availableUpdateModes; + this.__explicitlySet__.add("availableUpdateModes"); + return this; + } + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @param oracleLinuxVersion the value to set + * @return this builder + **/ + public Builder oracleLinuxVersion(String oracleLinuxVersion) { + this.oracleLinuxVersion = oracleLinuxVersion; + this.__explicitlySet__.add("oracleLinuxVersion"); + return this; + } /** * The possible actions that can be performed using this maintenance update. **/ @@ -218,6 +276,9 @@ public VmClusterUpdateSummary build() { this.id, this.description, this.lastAction, + this.lastUpdateMode, + this.availableUpdateModes, + this.oracleLinuxVersion, this.availableActions, this.updateType, this.lifecycleDetails, @@ -241,6 +302,15 @@ public Builder copy(VmClusterUpdateSummary model) { if (model.wasPropertyExplicitlySet("lastAction")) { this.lastAction(model.getLastAction()); } + if (model.wasPropertyExplicitlySet("lastUpdateMode")) { + this.lastUpdateMode(model.getLastUpdateMode()); + } + if (model.wasPropertyExplicitlySet("availableUpdateModes")) { + this.availableUpdateModes(model.getAvailableUpdateModes()); + } + if (model.wasPropertyExplicitlySet("oracleLinuxVersion")) { + this.oracleLinuxVersion(model.getOracleLinuxVersion()); + } if (model.wasPropertyExplicitlySet("availableActions")) { this.availableActions(model.getAvailableActions()); } @@ -365,6 +435,149 @@ public LastAction getLastAction() { return lastAction; } + /** + * The update mode performed most recently using this maintenance update (only valid for OS Update). + **/ + public enum LastUpdateMode { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + PendingUpdates("PENDING_UPDATES"), + FullUpdate("FULL_UPDATE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LastUpdateMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LastUpdateMode v : LastUpdateMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LastUpdateMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LastUpdateMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LastUpdateMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The update mode performed most recently using this maintenance update (only valid for OS Update). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastUpdateMode") + private final LastUpdateMode lastUpdateMode; + + /** + * The update mode performed most recently using this maintenance update (only valid for OS Update). + * @return the value + **/ + public LastUpdateMode getLastUpdateMode() { + return lastUpdateMode; + } + + /** + **/ + public enum AvailableUpdateModes { + OnlineHighcvss("ONLINE_HIGHCVSS"), + OnlineAllcvss("ONLINE_ALLCVSS"), + OnlineAllUpdates("ONLINE_ALL_UPDATES"), + PendingUpdates("PENDING_UPDATES"), + FullUpdate("FULL_UPDATE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AvailableUpdateModes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AvailableUpdateModes v : AvailableUpdateModes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AvailableUpdateModes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AvailableUpdateModes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AvailableUpdateModes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The possible update options that can be performed using this maintenance update (only valid for OS Update). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableUpdateModes") + private final java.util.List availableUpdateModes; + + /** + * The possible update options that can be performed using this maintenance update (only valid for OS Update). + * @return the value + **/ + public java.util.List getAvailableUpdateModes() { + return availableUpdateModes; + } + + /** + * Oracle Linux version for the respective Exadata Image. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleLinuxVersion") + private final String oracleLinuxVersion; + + /** + * Oracle Linux version for the respective Exadata Image. + * @return the value + **/ + public String getOracleLinuxVersion() { + return oracleLinuxVersion; + } + /** **/ public enum AvailableActions { @@ -615,6 +828,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", lastAction=").append(String.valueOf(this.lastAction)); + sb.append(", lastUpdateMode=").append(String.valueOf(this.lastUpdateMode)); + sb.append(", availableUpdateModes=").append(String.valueOf(this.availableUpdateModes)); + sb.append(", oracleLinuxVersion=").append(String.valueOf(this.oracleLinuxVersion)); sb.append(", availableActions=").append(String.valueOf(this.availableActions)); sb.append(", updateType=").append(String.valueOf(this.updateType)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); @@ -638,6 +854,9 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.lastAction, other.lastAction) + && java.util.Objects.equals(this.lastUpdateMode, other.lastUpdateMode) + && java.util.Objects.equals(this.availableUpdateModes, other.availableUpdateModes) + && java.util.Objects.equals(this.oracleLinuxVersion, other.oracleLinuxVersion) && java.util.Objects.equals(this.availableActions, other.availableActions) && java.util.Objects.equals(this.updateType, other.updateType) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) @@ -654,6 +873,19 @@ public int hashCode() { result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.lastAction == null ? 43 : this.lastAction.hashCode()); + result = + (result * PRIME) + + (this.lastUpdateMode == null ? 43 : this.lastUpdateMode.hashCode()); + result = + (result * PRIME) + + (this.availableUpdateModes == null + ? 43 + : this.availableUpdateModes.hashCode()); + result = + (result * PRIME) + + (this.oracleLinuxVersion == null + ? 43 + : this.oracleLinuxVersion.hashCode()); result = (result * PRIME) + (this.availableActions == null ? 43 : this.availableActions.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeBaseccVmClusterCompartmentRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeBaseccVmClusterCompartmentRequest.java new file mode 100644 index 00000000000..bf2da6e803f --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeBaseccVmClusterCompartmentRequest.java @@ -0,0 +1,370 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ChangeBaseccVmClusterCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ChangeBaseccVmClusterCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.ChangeBaseccVmClusterCompartmentDetails> { + + /** + * Request to move the BaseDB-C@C VM cluster to a different compartment. + */ + private com.oracle.bmc.database.model.ChangeBaseccVmClusterCompartmentDetails + changeBaseccVmClusterCompartmentDetails; + + /** + * Request to move the BaseDB-C@C VM cluster to a different compartment. + */ + public com.oracle.bmc.database.model.ChangeBaseccVmClusterCompartmentDetails + getChangeBaseccVmClusterCompartmentDetails() { + return changeBaseccVmClusterCompartmentDetails; + } + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getBaseccVmClusterId() { + return baseccVmClusterId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.ChangeBaseccVmClusterCompartmentDetails getBody$() { + return changeBaseccVmClusterCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeBaseccVmClusterCompartmentRequest, + com.oracle.bmc.database.model.ChangeBaseccVmClusterCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Request to move the BaseDB-C@C VM cluster to a different compartment. + */ + private com.oracle.bmc.database.model.ChangeBaseccVmClusterCompartmentDetails + changeBaseccVmClusterCompartmentDetails = null; + + /** + * Request to move the BaseDB-C@C VM cluster to a different compartment. + * @param changeBaseccVmClusterCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeBaseccVmClusterCompartmentDetails( + com.oracle.bmc.database.model.ChangeBaseccVmClusterCompartmentDetails + changeBaseccVmClusterCompartmentDetails) { + this.changeBaseccVmClusterCompartmentDetails = changeBaseccVmClusterCompartmentDetails; + return this; + } + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param baseccVmClusterId the value to set + * @return this builder instance + */ + public Builder baseccVmClusterId(String baseccVmClusterId) { + this.baseccVmClusterId = baseccVmClusterId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(ChangeBaseccVmClusterCompartmentRequest o) { + changeBaseccVmClusterCompartmentDetails(o.getChangeBaseccVmClusterCompartmentDetails()); + baseccVmClusterId(o.getBaseccVmClusterId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeBaseccVmClusterCompartmentRequest 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 ChangeBaseccVmClusterCompartmentRequest + */ + public ChangeBaseccVmClusterCompartmentRequest build() { + ChangeBaseccVmClusterCompartmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.database.model.ChangeBaseccVmClusterCompartmentDetails body) { + changeBaseccVmClusterCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeBaseccVmClusterCompartmentRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ChangeBaseccVmClusterCompartmentRequest + */ + public ChangeBaseccVmClusterCompartmentRequest buildWithoutInvocationCallback() { + ChangeBaseccVmClusterCompartmentRequest request = + new ChangeBaseccVmClusterCompartmentRequest(); + request.changeBaseccVmClusterCompartmentDetails = + changeBaseccVmClusterCompartmentDetails; + request.baseccVmClusterId = baseccVmClusterId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ChangeBaseccVmClusterCompartmentRequest(changeBaseccVmClusterCompartmentDetails, baseccVmClusterId, opcRetryToken, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .changeBaseccVmClusterCompartmentDetails(changeBaseccVmClusterCompartmentDetails) + .baseccVmClusterId(baseccVmClusterId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",changeBaseccVmClusterCompartmentDetails=") + .append(String.valueOf(this.changeBaseccVmClusterCompartmentDetails)); + sb.append(",baseccVmClusterId=").append(String.valueOf(this.baseccVmClusterId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeBaseccVmClusterCompartmentRequest)) { + return false; + } + + ChangeBaseccVmClusterCompartmentRequest other = (ChangeBaseccVmClusterCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.changeBaseccVmClusterCompartmentDetails, + other.changeBaseccVmClusterCompartmentDetails) + && java.util.Objects.equals(this.baseccVmClusterId, other.baseccVmClusterId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.changeBaseccVmClusterCompartmentDetails == null + ? 43 + : this.changeBaseccVmClusterCompartmentDetails.hashCode()); + result = + (result * PRIME) + + (this.baseccVmClusterId == null ? 43 : this.baseccVmClusterId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateBaseccVmClusterRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateBaseccVmClusterRequest.java new file mode 100644 index 00000000000..d806bf4d19e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateBaseccVmClusterRequest.java @@ -0,0 +1,291 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use CreateBaseccVmClusterRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateBaseccVmClusterRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.CreateBaseccVmClusterDetails> { + + /** + * Request to create a BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + */ + private com.oracle.bmc.database.model.CreateBaseccVmClusterDetails createBaseccVmClusterDetails; + + /** + * Request to create a BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + */ + public com.oracle.bmc.database.model.CreateBaseccVmClusterDetails + getCreateBaseccVmClusterDetails() { + return createBaseccVmClusterDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.CreateBaseccVmClusterDetails getBody$() { + return createBaseccVmClusterDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateBaseccVmClusterRequest, + com.oracle.bmc.database.model.CreateBaseccVmClusterDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Request to create a BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + */ + private com.oracle.bmc.database.model.CreateBaseccVmClusterDetails + createBaseccVmClusterDetails = null; + + /** + * Request to create a BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only. + * + * @param createBaseccVmClusterDetails the value to set + * @return this builder instance + */ + public Builder createBaseccVmClusterDetails( + com.oracle.bmc.database.model.CreateBaseccVmClusterDetails + createBaseccVmClusterDetails) { + this.createBaseccVmClusterDetails = createBaseccVmClusterDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateBaseccVmClusterRequest o) { + createBaseccVmClusterDetails(o.getCreateBaseccVmClusterDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateBaseccVmClusterRequest 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 CreateBaseccVmClusterRequest + */ + public CreateBaseccVmClusterRequest build() { + CreateBaseccVmClusterRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.CreateBaseccVmClusterDetails body) { + createBaseccVmClusterDetails(body); + return this; + } + + /** + * Build the instance of CreateBaseccVmClusterRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateBaseccVmClusterRequest + */ + public CreateBaseccVmClusterRequest buildWithoutInvocationCallback() { + CreateBaseccVmClusterRequest request = new CreateBaseccVmClusterRequest(); + request.createBaseccVmClusterDetails = createBaseccVmClusterDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateBaseccVmClusterRequest(createBaseccVmClusterDetails, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createBaseccVmClusterDetails(createBaseccVmClusterDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createBaseccVmClusterDetails=") + .append(String.valueOf(this.createBaseccVmClusterDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBaseccVmClusterRequest)) { + return false; + } + + CreateBaseccVmClusterRequest other = (CreateBaseccVmClusterRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createBaseccVmClusterDetails, other.createBaseccVmClusterDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createBaseccVmClusterDetails == null + ? 43 + : this.createBaseccVmClusterDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteBaseccVmClusterRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteBaseccVmClusterRequest.java new file mode 100644 index 00000000000..5b778bad505 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteBaseccVmClusterRequest.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use DeleteBaseccVmClusterRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteBaseccVmClusterRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getBaseccVmClusterId() { + return baseccVmClusterId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteBaseccVmClusterRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param baseccVmClusterId the value to set + * @return this builder instance + */ + public Builder baseccVmClusterId(String baseccVmClusterId) { + this.baseccVmClusterId = baseccVmClusterId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteBaseccVmClusterRequest o) { + baseccVmClusterId(o.getBaseccVmClusterId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteBaseccVmClusterRequest 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 DeleteBaseccVmClusterRequest + */ + public DeleteBaseccVmClusterRequest build() { + DeleteBaseccVmClusterRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteBaseccVmClusterRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteBaseccVmClusterRequest + */ + public DeleteBaseccVmClusterRequest buildWithoutInvocationCallback() { + DeleteBaseccVmClusterRequest request = new DeleteBaseccVmClusterRequest(); + request.baseccVmClusterId = baseccVmClusterId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteBaseccVmClusterRequest(baseccVmClusterId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .baseccVmClusterId(baseccVmClusterId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",baseccVmClusterId=").append(String.valueOf(this.baseccVmClusterId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteBaseccVmClusterRequest)) { + return false; + } + + DeleteBaseccVmClusterRequest other = (DeleteBaseccVmClusterRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.baseccVmClusterId, other.baseccVmClusterId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.baseccVmClusterId == null ? 43 : this.baseccVmClusterId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetBaseccVmClusterRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetBaseccVmClusterRequest.java new file mode 100644 index 00000000000..2af7354ed59 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetBaseccVmClusterRequest.java @@ -0,0 +1,199 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetBaseccVmClusterRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetBaseccVmClusterRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getBaseccVmClusterId() { + return baseccVmClusterId; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetBaseccVmClusterRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param baseccVmClusterId the value to set + * @return this builder instance + */ + public Builder baseccVmClusterId(String baseccVmClusterId) { + this.baseccVmClusterId = baseccVmClusterId; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetBaseccVmClusterRequest o) { + baseccVmClusterId(o.getBaseccVmClusterId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetBaseccVmClusterRequest 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 GetBaseccVmClusterRequest + */ + public GetBaseccVmClusterRequest build() { + GetBaseccVmClusterRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetBaseccVmClusterRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetBaseccVmClusterRequest + */ + public GetBaseccVmClusterRequest buildWithoutInvocationCallback() { + GetBaseccVmClusterRequest request = new GetBaseccVmClusterRequest(); + request.baseccVmClusterId = baseccVmClusterId; + request.opcRequestId = opcRequestId; + return request; + // new GetBaseccVmClusterRequest(baseccVmClusterId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().baseccVmClusterId(baseccVmClusterId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",baseccVmClusterId=").append(String.valueOf(this.baseccVmClusterId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetBaseccVmClusterRequest)) { + return false; + } + + GetBaseccVmClusterRequest other = (GetBaseccVmClusterRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.baseccVmClusterId, other.baseccVmClusterId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.baseccVmClusterId == null ? 43 : this.baseccVmClusterId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetBaseccVmClusterUpdateHistoryEntryRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetBaseccVmClusterUpdateHistoryEntryRequest.java new file mode 100644 index 00000000000..6e6c00c92a8 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetBaseccVmClusterUpdateHistoryEntryRequest.java @@ -0,0 +1,240 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetBaseccVmClusterUpdateHistoryEntryRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetBaseccVmClusterUpdateHistoryEntryRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getBaseccVmClusterId() { + return baseccVmClusterId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + */ + private String updateHistoryEntryId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + */ + public String getUpdateHistoryEntryId() { + return updateHistoryEntryId; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetBaseccVmClusterUpdateHistoryEntryRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param baseccVmClusterId the value to set + * @return this builder instance + */ + public Builder baseccVmClusterId(String baseccVmClusterId) { + this.baseccVmClusterId = baseccVmClusterId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + */ + private String updateHistoryEntryId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + * @param updateHistoryEntryId the value to set + * @return this builder instance + */ + public Builder updateHistoryEntryId(String updateHistoryEntryId) { + this.updateHistoryEntryId = updateHistoryEntryId; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetBaseccVmClusterUpdateHistoryEntryRequest o) { + baseccVmClusterId(o.getBaseccVmClusterId()); + updateHistoryEntryId(o.getUpdateHistoryEntryId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetBaseccVmClusterUpdateHistoryEntryRequest 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 GetBaseccVmClusterUpdateHistoryEntryRequest + */ + public GetBaseccVmClusterUpdateHistoryEntryRequest build() { + GetBaseccVmClusterUpdateHistoryEntryRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetBaseccVmClusterUpdateHistoryEntryRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetBaseccVmClusterUpdateHistoryEntryRequest + */ + public GetBaseccVmClusterUpdateHistoryEntryRequest buildWithoutInvocationCallback() { + GetBaseccVmClusterUpdateHistoryEntryRequest request = + new GetBaseccVmClusterUpdateHistoryEntryRequest(); + request.baseccVmClusterId = baseccVmClusterId; + request.updateHistoryEntryId = updateHistoryEntryId; + request.opcRequestId = opcRequestId; + return request; + // new GetBaseccVmClusterUpdateHistoryEntryRequest(baseccVmClusterId, updateHistoryEntryId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .baseccVmClusterId(baseccVmClusterId) + .updateHistoryEntryId(updateHistoryEntryId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",baseccVmClusterId=").append(String.valueOf(this.baseccVmClusterId)); + sb.append(",updateHistoryEntryId=").append(String.valueOf(this.updateHistoryEntryId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetBaseccVmClusterUpdateHistoryEntryRequest)) { + return false; + } + + GetBaseccVmClusterUpdateHistoryEntryRequest other = + (GetBaseccVmClusterUpdateHistoryEntryRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.baseccVmClusterId, other.baseccVmClusterId) + && java.util.Objects.equals(this.updateHistoryEntryId, other.updateHistoryEntryId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.baseccVmClusterId == null ? 43 : this.baseccVmClusterId.hashCode()); + result = + (result * PRIME) + + (this.updateHistoryEntryId == null + ? 43 + : this.updateHistoryEntryId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetBaseccVmClusterUpdateRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetBaseccVmClusterUpdateRequest.java new file mode 100644 index 00000000000..715968172a0 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetBaseccVmClusterUpdateRequest.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetBaseccVmClusterUpdateRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetBaseccVmClusterUpdateRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getBaseccVmClusterId() { + return baseccVmClusterId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + */ + private String updateId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + */ + public String getUpdateId() { + return updateId; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetBaseccVmClusterUpdateRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param baseccVmClusterId the value to set + * @return this builder instance + */ + public Builder baseccVmClusterId(String baseccVmClusterId) { + this.baseccVmClusterId = baseccVmClusterId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + */ + private String updateId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + * @param updateId the value to set + * @return this builder instance + */ + public Builder updateId(String updateId) { + this.updateId = updateId; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetBaseccVmClusterUpdateRequest o) { + baseccVmClusterId(o.getBaseccVmClusterId()); + updateId(o.getUpdateId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetBaseccVmClusterUpdateRequest 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 GetBaseccVmClusterUpdateRequest + */ + public GetBaseccVmClusterUpdateRequest build() { + GetBaseccVmClusterUpdateRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetBaseccVmClusterUpdateRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetBaseccVmClusterUpdateRequest + */ + public GetBaseccVmClusterUpdateRequest buildWithoutInvocationCallback() { + GetBaseccVmClusterUpdateRequest request = new GetBaseccVmClusterUpdateRequest(); + request.baseccVmClusterId = baseccVmClusterId; + request.updateId = updateId; + request.opcRequestId = opcRequestId; + return request; + // new GetBaseccVmClusterUpdateRequest(baseccVmClusterId, updateId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .baseccVmClusterId(baseccVmClusterId) + .updateId(updateId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",baseccVmClusterId=").append(String.valueOf(this.baseccVmClusterId)); + sb.append(",updateId=").append(String.valueOf(this.updateId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetBaseccVmClusterUpdateRequest)) { + return false; + } + + GetBaseccVmClusterUpdateRequest other = (GetBaseccVmClusterUpdateRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.baseccVmClusterId, other.baseccVmClusterId) + && java.util.Objects.equals(this.updateId, other.updateId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.baseccVmClusterId == null ? 43 : this.baseccVmClusterId.hashCode()); + result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListBaseccVmClusterUpdateHistoryEntriesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListBaseccVmClusterUpdateHistoryEntriesRequest.java new file mode 100644 index 00000000000..92bcec3eb69 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListBaseccVmClusterUpdateHistoryEntriesRequest.java @@ -0,0 +1,379 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ListBaseccVmClusterUpdateHistoryEntriesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListBaseccVmClusterUpdateHistoryEntriesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getBaseccVmClusterId() { + return baseccVmClusterId; + } + /** + * A filter to return only resources that match the given update type exactly. + */ + private UpdateType updateType; + + /** + * A filter to return only resources that match the given update type exactly. + **/ + public enum UpdateType { + GiUpgrade("GI_UPGRADE"), + GiPatch("GI_PATCH"), + OsUpdate("OS_UPDATE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateType v : UpdateType.values()) { + map.put(v.getValue(), v); + } + } + + UpdateType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid UpdateType: " + key); + } + }; + + /** + * A filter to return only resources that match the given update type exactly. + */ + public UpdateType getUpdateType() { + return updateType; + } + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + private com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntrySummary.LifecycleState + lifecycleState; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + public com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntrySummary.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * The maximum number of items to return per page. + */ + private Integer limit; + + /** + * The maximum number of items to return per page. + */ + public Integer getLimit() { + return limit; + } + /** + * The pagination token to continue listing from. + */ + private String page; + + /** + * The pagination token to continue listing from. + */ + public String getPage() { + return page; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListBaseccVmClusterUpdateHistoryEntriesRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param baseccVmClusterId the value to set + * @return this builder instance + */ + public Builder baseccVmClusterId(String baseccVmClusterId) { + this.baseccVmClusterId = baseccVmClusterId; + return this; + } + + /** + * A filter to return only resources that match the given update type exactly. + */ + private UpdateType updateType = null; + + /** + * A filter to return only resources that match the given update type exactly. + * @param updateType the value to set + * @return this builder instance + */ + public Builder updateType(UpdateType updateType) { + this.updateType = updateType; + return this; + } + + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + private com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntrySummary + .LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntrySummary + .LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The maximum number of items to return per page. + */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The pagination token to continue listing from. + */ + private String page = null; + + /** + * The pagination token to continue listing from. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListBaseccVmClusterUpdateHistoryEntriesRequest o) { + baseccVmClusterId(o.getBaseccVmClusterId()); + updateType(o.getUpdateType()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListBaseccVmClusterUpdateHistoryEntriesRequest 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 ListBaseccVmClusterUpdateHistoryEntriesRequest + */ + public ListBaseccVmClusterUpdateHistoryEntriesRequest build() { + ListBaseccVmClusterUpdateHistoryEntriesRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListBaseccVmClusterUpdateHistoryEntriesRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListBaseccVmClusterUpdateHistoryEntriesRequest + */ + public ListBaseccVmClusterUpdateHistoryEntriesRequest buildWithoutInvocationCallback() { + ListBaseccVmClusterUpdateHistoryEntriesRequest request = + new ListBaseccVmClusterUpdateHistoryEntriesRequest(); + request.baseccVmClusterId = baseccVmClusterId; + request.updateType = updateType; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new ListBaseccVmClusterUpdateHistoryEntriesRequest(baseccVmClusterId, updateType, lifecycleState, limit, page, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .baseccVmClusterId(baseccVmClusterId) + .updateType(updateType) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",baseccVmClusterId=").append(String.valueOf(this.baseccVmClusterId)); + sb.append(",updateType=").append(String.valueOf(this.updateType)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBaseccVmClusterUpdateHistoryEntriesRequest)) { + return false; + } + + ListBaseccVmClusterUpdateHistoryEntriesRequest other = + (ListBaseccVmClusterUpdateHistoryEntriesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.baseccVmClusterId, other.baseccVmClusterId) + && java.util.Objects.equals(this.updateType, other.updateType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.baseccVmClusterId == null ? 43 : this.baseccVmClusterId.hashCode()); + result = (result * PRIME) + (this.updateType == null ? 43 : this.updateType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListBaseccVmClusterUpdatesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListBaseccVmClusterUpdatesRequest.java new file mode 100644 index 00000000000..e0a5bfd250d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListBaseccVmClusterUpdatesRequest.java @@ -0,0 +1,374 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ListBaseccVmClusterUpdatesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListBaseccVmClusterUpdatesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getBaseccVmClusterId() { + return baseccVmClusterId; + } + /** + * A filter to return only resources that match the given update type exactly. + */ + private UpdateType updateType; + + /** + * A filter to return only resources that match the given update type exactly. + **/ + public enum UpdateType { + GiUpgrade("GI_UPGRADE"), + GiPatch("GI_PATCH"), + OsUpdate("OS_UPDATE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UpdateType v : UpdateType.values()) { + map.put(v.getValue(), v); + } + } + + UpdateType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UpdateType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid UpdateType: " + key); + } + }; + + /** + * A filter to return only resources that match the given update type exactly. + */ + public UpdateType getUpdateType() { + return updateType; + } + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + private com.oracle.bmc.database.model.BaseccVmClusterUpdateSummary.LifecycleState + lifecycleState; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + public com.oracle.bmc.database.model.BaseccVmClusterUpdateSummary.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * The maximum number of items to return per page. + */ + private Integer limit; + + /** + * The maximum number of items to return per page. + */ + public Integer getLimit() { + return limit; + } + /** + * The pagination token to continue listing from. + */ + private String page; + + /** + * The pagination token to continue listing from. + */ + public String getPage() { + return page; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListBaseccVmClusterUpdatesRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param baseccVmClusterId the value to set + * @return this builder instance + */ + public Builder baseccVmClusterId(String baseccVmClusterId) { + this.baseccVmClusterId = baseccVmClusterId; + return this; + } + + /** + * A filter to return only resources that match the given update type exactly. + */ + private UpdateType updateType = null; + + /** + * A filter to return only resources that match the given update type exactly. + * @param updateType the value to set + * @return this builder instance + */ + public Builder updateType(UpdateType updateType) { + this.updateType = updateType; + return this; + } + + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + private com.oracle.bmc.database.model.BaseccVmClusterUpdateSummary.LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.database.model.BaseccVmClusterUpdateSummary.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The maximum number of items to return per page. + */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The pagination token to continue listing from. + */ + private String page = null; + + /** + * The pagination token to continue listing from. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListBaseccVmClusterUpdatesRequest o) { + baseccVmClusterId(o.getBaseccVmClusterId()); + updateType(o.getUpdateType()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListBaseccVmClusterUpdatesRequest 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 ListBaseccVmClusterUpdatesRequest + */ + public ListBaseccVmClusterUpdatesRequest build() { + ListBaseccVmClusterUpdatesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListBaseccVmClusterUpdatesRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListBaseccVmClusterUpdatesRequest + */ + public ListBaseccVmClusterUpdatesRequest buildWithoutInvocationCallback() { + ListBaseccVmClusterUpdatesRequest request = new ListBaseccVmClusterUpdatesRequest(); + request.baseccVmClusterId = baseccVmClusterId; + request.updateType = updateType; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new ListBaseccVmClusterUpdatesRequest(baseccVmClusterId, updateType, lifecycleState, limit, page, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .baseccVmClusterId(baseccVmClusterId) + .updateType(updateType) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",baseccVmClusterId=").append(String.valueOf(this.baseccVmClusterId)); + sb.append(",updateType=").append(String.valueOf(this.updateType)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBaseccVmClusterUpdatesRequest)) { + return false; + } + + ListBaseccVmClusterUpdatesRequest other = (ListBaseccVmClusterUpdatesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.baseccVmClusterId, other.baseccVmClusterId) + && java.util.Objects.equals(this.updateType, other.updateType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.baseccVmClusterId == null ? 43 : this.baseccVmClusterId.hashCode()); + result = (result * PRIME) + (this.updateType == null ? 43 : this.updateType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListBaseccVmClustersRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListBaseccVmClustersRequest.java new file mode 100644 index 00000000000..56d861221f8 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListBaseccVmClustersRequest.java @@ -0,0 +1,584 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ListBaseccVmClustersRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListBaseccVmClustersRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * If provided, filters the results for the given Oracle Data Cloud@Customer Infrastructure. + */ + private String baseInfrastructureId; + + /** + * If provided, filters the results for the given Oracle Data Cloud@Customer Infrastructure. + */ + public String getBaseInfrastructureId() { + return baseInfrastructureId; + } + /** + * The maximum number of items to return per page. + */ + private Integer limit; + + /** + * The maximum number of items to return per page. + */ + public Integer getLimit() { + return limit; + } + /** + * The pagination token to continue listing from. + */ + private String page; + + /** + * The pagination token to continue listing from. + */ + public String getPage() { + return page; + } + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code 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 sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + private com.oracle.bmc.database.model.BaseccVmClusterSummary.LifecycleState lifecycleState; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + public com.oracle.bmc.database.model.BaseccVmClusterSummary.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only resources that match the given availability domain exactly. + */ + private String availabilityDomain; + + /** + * A filter to return only resources that match the given availability domain exactly. + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A filter to return only BaseDB-C@C VM clusters that match the given VM Cluster type exactly. + */ + private com.oracle.bmc.database.model.BaseccVmClusterSummary.VmClusterType vmClusterType; + + /** + * A filter to return only BaseDB-C@C VM clusters that match the given VM Cluster type exactly. + */ + public com.oracle.bmc.database.model.BaseccVmClusterSummary.VmClusterType getVmClusterType() { + return vmClusterType; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListBaseccVmClustersRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId = null; + + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * If provided, filters the results for the given Oracle Data Cloud@Customer Infrastructure. + */ + private String baseInfrastructureId = null; + + /** + * If provided, filters the results for the given Oracle Data Cloud@Customer Infrastructure. + * @param baseInfrastructureId the value to set + * @return this builder instance + */ + public Builder baseInfrastructureId(String baseInfrastructureId) { + this.baseInfrastructureId = baseInfrastructureId; + return this; + } + + /** + * The maximum number of items to return per page. + */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The pagination token to continue listing from. + */ + private String page = null; + + /** + * The pagination token to continue listing from. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + private com.oracle.bmc.database.model.BaseccVmClusterSummary.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.database.model.BaseccVmClusterSummary.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return only resources that match the given availability domain exactly. + */ + private String availabilityDomain = null; + + /** + * A filter to return only resources that match the given availability domain exactly. + * @param availabilityDomain the value to set + * @return this builder instance + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + return this; + } + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A filter to return only BaseDB-C@C VM clusters that match the given VM Cluster type exactly. + */ + private com.oracle.bmc.database.model.BaseccVmClusterSummary.VmClusterType vmClusterType = + null; + + /** + * A filter to return only BaseDB-C@C VM clusters that match the given VM Cluster type exactly. + * @param vmClusterType the value to set + * @return this builder instance + */ + public Builder vmClusterType( + com.oracle.bmc.database.model.BaseccVmClusterSummary.VmClusterType vmClusterType) { + this.vmClusterType = vmClusterType; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListBaseccVmClustersRequest o) { + compartmentId(o.getCompartmentId()); + baseInfrastructureId(o.getBaseInfrastructureId()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + lifecycleState(o.getLifecycleState()); + availabilityDomain(o.getAvailabilityDomain()); + displayName(o.getDisplayName()); + opcRequestId(o.getOpcRequestId()); + vmClusterType(o.getVmClusterType()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListBaseccVmClustersRequest 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 ListBaseccVmClustersRequest + */ + public ListBaseccVmClustersRequest build() { + ListBaseccVmClustersRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListBaseccVmClustersRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListBaseccVmClustersRequest + */ + public ListBaseccVmClustersRequest buildWithoutInvocationCallback() { + ListBaseccVmClustersRequest request = new ListBaseccVmClustersRequest(); + request.compartmentId = compartmentId; + request.baseInfrastructureId = baseInfrastructureId; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.lifecycleState = lifecycleState; + request.availabilityDomain = availabilityDomain; + request.displayName = displayName; + request.opcRequestId = opcRequestId; + request.vmClusterType = vmClusterType; + return request; + // new ListBaseccVmClustersRequest(compartmentId, baseInfrastructureId, limit, page, sortBy, sortOrder, lifecycleState, availabilityDomain, displayName, opcRequestId, vmClusterType); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .baseInfrastructureId(baseInfrastructureId) + .limit(limit) + .page(page) + .sortBy(sortBy) + .sortOrder(sortOrder) + .lifecycleState(lifecycleState) + .availabilityDomain(availabilityDomain) + .displayName(displayName) + .opcRequestId(opcRequestId) + .vmClusterType(vmClusterType); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",baseInfrastructureId=").append(String.valueOf(this.baseInfrastructureId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",vmClusterType=").append(String.valueOf(this.vmClusterType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBaseccVmClustersRequest)) { + return false; + } + + ListBaseccVmClustersRequest other = (ListBaseccVmClustersRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.baseInfrastructureId, other.baseInfrastructureId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.vmClusterType, other.vmClusterType); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.baseInfrastructureId == null + ? 43 + : this.baseInfrastructureId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.vmClusterType == null ? 43 : this.vmClusterType.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListGiVersionMinorVersionsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListGiVersionMinorVersionsRequest.java index 3c796dc7f9a..e1abaa2d6ee 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListGiVersionMinorVersionsRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListGiVersionMinorVersionsRequest.java @@ -58,6 +58,17 @@ public String getCompartmentId() { public String getOpcRequestId() { return opcRequestId; } + /** + * If provided, filters the results for the given Exadata Infrastructure. + */ + private String exadataInfrastructureId; + + /** + * If provided, filters the results for the given Exadata Infrastructure. + */ + public String getExadataInfrastructureId() { + return exadataInfrastructureId; + } /** * If provided, filters the results to the set of database versions which are supported for the given shape family. */ @@ -316,6 +327,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * If provided, filters the results for the given Exadata Infrastructure. + */ + private String exadataInfrastructureId = null; + + /** + * If provided, filters the results for the given Exadata Infrastructure. + * @param exadataInfrastructureId the value to set + * @return this builder instance + */ + public Builder exadataInfrastructureId(String exadataInfrastructureId) { + this.exadataInfrastructureId = exadataInfrastructureId; + return this; + } + /** * If provided, filters the results to the set of database versions which are supported for the given shape family. */ @@ -453,6 +479,7 @@ public Builder copy(ListGiVersionMinorVersionsRequest o) { availabilityDomain(o.getAvailabilityDomain()); compartmentId(o.getCompartmentId()); opcRequestId(o.getOpcRequestId()); + exadataInfrastructureId(o.getExadataInfrastructureId()); shapeFamily(o.getShapeFamily()); isGiVersionForProvisioning(o.getIsGiVersionForProvisioning()); shape(o.getShape()); @@ -496,6 +523,7 @@ public ListGiVersionMinorVersionsRequest buildWithoutInvocationCallback() { request.availabilityDomain = availabilityDomain; request.compartmentId = compartmentId; request.opcRequestId = opcRequestId; + request.exadataInfrastructureId = exadataInfrastructureId; request.shapeFamily = shapeFamily; request.isGiVersionForProvisioning = isGiVersionForProvisioning; request.shape = shape; @@ -504,7 +532,7 @@ public ListGiVersionMinorVersionsRequest buildWithoutInvocationCallback() { request.limit = limit; request.page = page; return request; - // new ListGiVersionMinorVersionsRequest(version, availabilityDomain, compartmentId, opcRequestId, shapeFamily, isGiVersionForProvisioning, shape, sortBy, sortOrder, limit, page); + // new ListGiVersionMinorVersionsRequest(version, availabilityDomain, compartmentId, opcRequestId, exadataInfrastructureId, shapeFamily, isGiVersionForProvisioning, shape, sortBy, sortOrder, limit, page); } } @@ -518,6 +546,7 @@ public Builder toBuilder() { .availabilityDomain(availabilityDomain) .compartmentId(compartmentId) .opcRequestId(opcRequestId) + .exadataInfrastructureId(exadataInfrastructureId) .shapeFamily(shapeFamily) .isGiVersionForProvisioning(isGiVersionForProvisioning) .shape(shape) @@ -544,6 +573,7 @@ public String toString() { sb.append(",availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",exadataInfrastructureId=").append(String.valueOf(this.exadataInfrastructureId)); sb.append(",shapeFamily=").append(String.valueOf(this.shapeFamily)); sb.append(",isGiVersionForProvisioning=") .append(String.valueOf(this.isGiVersionForProvisioning)); @@ -571,6 +601,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.exadataInfrastructureId, other.exadataInfrastructureId) && java.util.Objects.equals(this.shapeFamily, other.shapeFamily) && java.util.Objects.equals( this.isGiVersionForProvisioning, other.isGiVersionForProvisioning) @@ -595,6 +627,11 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.exadataInfrastructureId == null + ? 43 + : this.exadataInfrastructureId.hashCode()); result = (result * PRIME) + (this.shapeFamily == null ? 43 : this.shapeFamily.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/RegisterExadbVmClusterPkcsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RegisterExadbVmClusterPkcsRequest.java new file mode 100644 index 00000000000..d887d3abdfc --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RegisterExadbVmClusterPkcsRequest.java @@ -0,0 +1,367 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use RegisterExadbVmClusterPkcsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RegisterExadbVmClusterPkcsRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.RegisterExadbVmClusterPkcsDetails> { + + /** + * The Exadata VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + */ + private String exadbVmClusterId; + + /** + * The Exadata VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + */ + public String getExadbVmClusterId() { + return exadbVmClusterId; + } + /** + * Details of registering PKCS11 driver. + */ + private com.oracle.bmc.database.model.RegisterExadbVmClusterPkcsDetails + registerExadbVmClusterPkcsDetails; + + /** + * Details of registering PKCS11 driver. + */ + public com.oracle.bmc.database.model.RegisterExadbVmClusterPkcsDetails + getRegisterExadbVmClusterPkcsDetails() { + return registerExadbVmClusterPkcsDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.RegisterExadbVmClusterPkcsDetails getBody$() { + return registerExadbVmClusterPkcsDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RegisterExadbVmClusterPkcsRequest, + com.oracle.bmc.database.model.RegisterExadbVmClusterPkcsDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Exadata VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + */ + private String exadbVmClusterId = null; + + /** + * The Exadata VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + * @param exadbVmClusterId the value to set + * @return this builder instance + */ + public Builder exadbVmClusterId(String exadbVmClusterId) { + this.exadbVmClusterId = exadbVmClusterId; + return this; + } + + /** + * Details of registering PKCS11 driver. + */ + private com.oracle.bmc.database.model.RegisterExadbVmClusterPkcsDetails + registerExadbVmClusterPkcsDetails = null; + + /** + * Details of registering PKCS11 driver. + * @param registerExadbVmClusterPkcsDetails the value to set + * @return this builder instance + */ + public Builder registerExadbVmClusterPkcsDetails( + com.oracle.bmc.database.model.RegisterExadbVmClusterPkcsDetails + registerExadbVmClusterPkcsDetails) { + this.registerExadbVmClusterPkcsDetails = registerExadbVmClusterPkcsDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(RegisterExadbVmClusterPkcsRequest o) { + exadbVmClusterId(o.getExadbVmClusterId()); + registerExadbVmClusterPkcsDetails(o.getRegisterExadbVmClusterPkcsDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RegisterExadbVmClusterPkcsRequest 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 RegisterExadbVmClusterPkcsRequest + */ + public RegisterExadbVmClusterPkcsRequest build() { + RegisterExadbVmClusterPkcsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.RegisterExadbVmClusterPkcsDetails body) { + registerExadbVmClusterPkcsDetails(body); + return this; + } + + /** + * Build the instance of RegisterExadbVmClusterPkcsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RegisterExadbVmClusterPkcsRequest + */ + public RegisterExadbVmClusterPkcsRequest buildWithoutInvocationCallback() { + RegisterExadbVmClusterPkcsRequest request = new RegisterExadbVmClusterPkcsRequest(); + request.exadbVmClusterId = exadbVmClusterId; + request.registerExadbVmClusterPkcsDetails = registerExadbVmClusterPkcsDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new RegisterExadbVmClusterPkcsRequest(exadbVmClusterId, registerExadbVmClusterPkcsDetails, opcRetryToken, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .exadbVmClusterId(exadbVmClusterId) + .registerExadbVmClusterPkcsDetails(registerExadbVmClusterPkcsDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",exadbVmClusterId=").append(String.valueOf(this.exadbVmClusterId)); + sb.append(",registerExadbVmClusterPkcsDetails=") + .append(String.valueOf(this.registerExadbVmClusterPkcsDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RegisterExadbVmClusterPkcsRequest)) { + return false; + } + + RegisterExadbVmClusterPkcsRequest other = (RegisterExadbVmClusterPkcsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.exadbVmClusterId, other.exadbVmClusterId) + && java.util.Objects.equals( + this.registerExadbVmClusterPkcsDetails, + other.registerExadbVmClusterPkcsDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.exadbVmClusterId == null ? 43 : this.exadbVmClusterId.hashCode()); + result = + (result * PRIME) + + (this.registerExadbVmClusterPkcsDetails == null + ? 43 + : this.registerExadbVmClusterPkcsDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/RescheduleManagedDbSoftwareUpdateRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RescheduleManagedDbSoftwareUpdateRequest.java new file mode 100644 index 00000000000..a0a91d8a618 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RescheduleManagedDbSoftwareUpdateRequest.java @@ -0,0 +1,300 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use RescheduleManagedDbSoftwareUpdateRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RescheduleManagedDbSoftwareUpdateRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String databaseId; + + /** + * The database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getDatabaseId() { + return databaseId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RescheduleManagedDbSoftwareUpdateRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String databaseId = null; + + /** + * The database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param databaseId the value to set + * @return this builder instance + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(RescheduleManagedDbSoftwareUpdateRequest o) { + databaseId(o.getDatabaseId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RescheduleManagedDbSoftwareUpdateRequest 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 RescheduleManagedDbSoftwareUpdateRequest + */ + public RescheduleManagedDbSoftwareUpdateRequest build() { + RescheduleManagedDbSoftwareUpdateRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of RescheduleManagedDbSoftwareUpdateRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RescheduleManagedDbSoftwareUpdateRequest + */ + public RescheduleManagedDbSoftwareUpdateRequest buildWithoutInvocationCallback() { + RescheduleManagedDbSoftwareUpdateRequest request = + new RescheduleManagedDbSoftwareUpdateRequest(); + request.databaseId = databaseId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new RescheduleManagedDbSoftwareUpdateRequest(databaseId, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .databaseId(databaseId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",databaseId=").append(String.valueOf(this.databaseId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RescheduleManagedDbSoftwareUpdateRequest)) { + return false; + } + + RescheduleManagedDbSoftwareUpdateRequest other = + (RescheduleManagedDbSoftwareUpdateRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousContainerDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousContainerDatabaseRequest.java index e089303e5c6..0e8ded8e002 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousContainerDatabaseRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousContainerDatabaseRequest.java @@ -10,7 +10,8 @@ */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") public class RestartAutonomousContainerDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest { + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails> { /** * The Autonomous Container Database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). @@ -53,10 +54,34 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** + * Request details to restart the Autonomous Container Database with force option. + */ + private com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails + restartAutonomousContainerDatabaseDetails; + + /** + * Request details to restart the Autonomous Container Database with force option. + */ + public com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails + getRestartAutonomousContainerDatabaseDetails() { + return restartAutonomousContainerDatabaseDetails; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails getBody$() { + return restartAutonomousContainerDatabaseDetails; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - RestartAutonomousContainerDatabaseRequest, java.lang.Void> { + RestartAutonomousContainerDatabaseRequest, + com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -114,6 +139,25 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Request details to restart the Autonomous Container Database with force option. + */ + private com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails + restartAutonomousContainerDatabaseDetails = null; + + /** + * Request details to restart the Autonomous Container Database with force option. + * @param restartAutonomousContainerDatabaseDetails the value to set + * @return this builder instance + */ + public Builder restartAutonomousContainerDatabaseDetails( + com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails + restartAutonomousContainerDatabaseDetails) { + this.restartAutonomousContainerDatabaseDetails = + restartAutonomousContainerDatabaseDetails; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -145,6 +189,8 @@ public Builder copy(RestartAutonomousContainerDatabaseRequest o) { autonomousContainerDatabaseId(o.getAutonomousContainerDatabaseId()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + restartAutonomousContainerDatabaseDetails( + o.getRestartAutonomousContainerDatabaseDetails()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -167,6 +213,18 @@ public RestartAutonomousContainerDatabaseRequest build() { return request; } + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails body) { + restartAutonomousContainerDatabaseDetails(body); + return this; + } + /** * Build the instance of RestartAutonomousContainerDatabaseRequest as configured by this builder * @@ -181,8 +239,10 @@ public RestartAutonomousContainerDatabaseRequest buildWithoutInvocationCallback( request.autonomousContainerDatabaseId = autonomousContainerDatabaseId; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.restartAutonomousContainerDatabaseDetails = + restartAutonomousContainerDatabaseDetails; return request; - // new RestartAutonomousContainerDatabaseRequest(autonomousContainerDatabaseId, ifMatch, opcRequestId); + // new RestartAutonomousContainerDatabaseRequest(autonomousContainerDatabaseId, ifMatch, opcRequestId, restartAutonomousContainerDatabaseDetails); } } @@ -194,7 +254,9 @@ public Builder toBuilder() { return new Builder() .autonomousContainerDatabaseId(autonomousContainerDatabaseId) .ifMatch(ifMatch) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .restartAutonomousContainerDatabaseDetails( + restartAutonomousContainerDatabaseDetails); } /** @@ -214,6 +276,8 @@ public String toString() { .append(String.valueOf(this.autonomousContainerDatabaseId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",restartAutonomousContainerDatabaseDetails=") + .append(String.valueOf(this.restartAutonomousContainerDatabaseDetails)); sb.append(")"); return sb.toString(); } @@ -233,7 +297,10 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.autonomousContainerDatabaseId, other.autonomousContainerDatabaseId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.restartAutonomousContainerDatabaseDetails, + other.restartAutonomousContainerDatabaseDetails); } @Override @@ -247,6 +314,11 @@ public int hashCode() { : this.autonomousContainerDatabaseId.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.restartAutonomousContainerDatabaseDetails == null + ? 43 + : this.restartAutonomousContainerDatabaseDetails.hashCode()); return result; } } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousDatabaseRequest.java index 4196c98c15d..7a886549788 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousDatabaseRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousDatabaseRequest.java @@ -10,7 +10,8 @@ */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") public class RestartAutonomousDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest { + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails> { /** * The database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). @@ -51,6 +52,19 @@ public String getIfMatch() { public Boolean getIsOnlineRestart() { return isOnlineRestart; } + /** + * Request details to restart the Autonomous Database with force option. + */ + private com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails + restartAutonomousDatabaseDetails; + + /** + * Request details to restart the Autonomous Database with force option. + */ + public com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails + getRestartAutonomousDatabaseDetails() { + return restartAutonomousDatabaseDetails; + } /** * Indicates that the request is a dry run, if set to "true". A dry run request does not actually * creating or updating a resource and is used only to perform validation on the submitted data. @@ -67,9 +81,20 @@ public Boolean getOpcDryRun() { return opcDryRun; } + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails getBody$() { + return restartAutonomousDatabaseDetails; + } + public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - RestartAutonomousDatabaseRequest, java.lang.Void> { + RestartAutonomousDatabaseRequest, + com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -125,6 +150,24 @@ public Builder isOnlineRestart(Boolean isOnlineRestart) { return this; } + /** + * Request details to restart the Autonomous Database with force option. + */ + private com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails + restartAutonomousDatabaseDetails = null; + + /** + * Request details to restart the Autonomous Database with force option. + * @param restartAutonomousDatabaseDetails the value to set + * @return this builder instance + */ + public Builder restartAutonomousDatabaseDetails( + com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails + restartAutonomousDatabaseDetails) { + this.restartAutonomousDatabaseDetails = restartAutonomousDatabaseDetails; + return this; + } + /** * Indicates that the request is a dry run, if set to "true". A dry run request does not actually * creating or updating a resource and is used only to perform validation on the submitted data. @@ -175,6 +218,7 @@ public Builder copy(RestartAutonomousDatabaseRequest o) { autonomousDatabaseId(o.getAutonomousDatabaseId()); ifMatch(o.getIfMatch()); isOnlineRestart(o.getIsOnlineRestart()); + restartAutonomousDatabaseDetails(o.getRestartAutonomousDatabaseDetails()); opcDryRun(o.getOpcDryRun()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -198,6 +242,17 @@ public RestartAutonomousDatabaseRequest build() { return request; } + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails body) { + restartAutonomousDatabaseDetails(body); + return this; + } + /** * Build the instance of RestartAutonomousDatabaseRequest as configured by this builder * @@ -211,9 +266,10 @@ public RestartAutonomousDatabaseRequest buildWithoutInvocationCallback() { request.autonomousDatabaseId = autonomousDatabaseId; request.ifMatch = ifMatch; request.isOnlineRestart = isOnlineRestart; + request.restartAutonomousDatabaseDetails = restartAutonomousDatabaseDetails; request.opcDryRun = opcDryRun; return request; - // new RestartAutonomousDatabaseRequest(autonomousDatabaseId, ifMatch, isOnlineRestart, opcDryRun); + // new RestartAutonomousDatabaseRequest(autonomousDatabaseId, ifMatch, isOnlineRestart, restartAutonomousDatabaseDetails, opcDryRun); } } @@ -226,6 +282,7 @@ public Builder toBuilder() { .autonomousDatabaseId(autonomousDatabaseId) .ifMatch(ifMatch) .isOnlineRestart(isOnlineRestart) + .restartAutonomousDatabaseDetails(restartAutonomousDatabaseDetails) .opcDryRun(opcDryRun); } @@ -245,6 +302,8 @@ public String toString() { sb.append(",autonomousDatabaseId=").append(String.valueOf(this.autonomousDatabaseId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",isOnlineRestart=").append(String.valueOf(this.isOnlineRestart)); + sb.append(",restartAutonomousDatabaseDetails=") + .append(String.valueOf(this.restartAutonomousDatabaseDetails)); sb.append(",opcDryRun=").append(String.valueOf(this.opcDryRun)); sb.append(")"); return sb.toString(); @@ -264,6 +323,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.autonomousDatabaseId, other.autonomousDatabaseId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.isOnlineRestart, other.isOnlineRestart) + && java.util.Objects.equals( + this.restartAutonomousDatabaseDetails, + other.restartAutonomousDatabaseDetails) && java.util.Objects.equals(this.opcDryRun, other.opcDryRun); } @@ -280,6 +342,11 @@ public int hashCode() { result = (result * PRIME) + (this.isOnlineRestart == null ? 43 : this.isOnlineRestart.hashCode()); + result = + (result * PRIME) + + (this.restartAutonomousDatabaseDetails == null + ? 43 + : this.restartAutonomousDatabaseDetails.hashCode()); result = (result * PRIME) + (this.opcDryRun == null ? 43 : this.opcDryRun.hashCode()); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousVmClusterOrdsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousVmClusterOrdsRequest.java new file mode 100644 index 00000000000..fd659a15e9a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousVmClusterOrdsRequest.java @@ -0,0 +1,303 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use RestartAutonomousVmClusterOrdsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RestartAutonomousVmClusterOrdsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The autonomous VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String autonomousVmClusterId; + + /** + * The autonomous VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getAutonomousVmClusterId() { + return autonomousVmClusterId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RestartAutonomousVmClusterOrdsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The autonomous VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String autonomousVmClusterId = null; + + /** + * The autonomous VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param autonomousVmClusterId the value to set + * @return this builder instance + */ + public Builder autonomousVmClusterId(String autonomousVmClusterId) { + this.autonomousVmClusterId = autonomousVmClusterId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(RestartAutonomousVmClusterOrdsRequest o) { + autonomousVmClusterId(o.getAutonomousVmClusterId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RestartAutonomousVmClusterOrdsRequest 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 RestartAutonomousVmClusterOrdsRequest + */ + public RestartAutonomousVmClusterOrdsRequest build() { + RestartAutonomousVmClusterOrdsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of RestartAutonomousVmClusterOrdsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RestartAutonomousVmClusterOrdsRequest + */ + public RestartAutonomousVmClusterOrdsRequest buildWithoutInvocationCallback() { + RestartAutonomousVmClusterOrdsRequest request = + new RestartAutonomousVmClusterOrdsRequest(); + request.autonomousVmClusterId = autonomousVmClusterId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new RestartAutonomousVmClusterOrdsRequest(autonomousVmClusterId, opcRetryToken, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .autonomousVmClusterId(autonomousVmClusterId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",autonomousVmClusterId=").append(String.valueOf(this.autonomousVmClusterId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RestartAutonomousVmClusterOrdsRequest)) { + return false; + } + + RestartAutonomousVmClusterOrdsRequest other = (RestartAutonomousVmClusterOrdsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.autonomousVmClusterId, other.autonomousVmClusterId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.autonomousVmClusterId == null + ? 43 + : this.autonomousVmClusterId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartCloudAutonomousVmClusterOrdsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartCloudAutonomousVmClusterOrdsRequest.java new file mode 100644 index 00000000000..6f32c9e6e7c --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartCloudAutonomousVmClusterOrdsRequest.java @@ -0,0 +1,306 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use RestartCloudAutonomousVmClusterOrdsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RestartCloudAutonomousVmClusterOrdsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Cloud VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String cloudAutonomousVmClusterId; + + /** + * The Cloud VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getCloudAutonomousVmClusterId() { + return cloudAutonomousVmClusterId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RestartCloudAutonomousVmClusterOrdsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Cloud VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String cloudAutonomousVmClusterId = null; + + /** + * The Cloud VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param cloudAutonomousVmClusterId the value to set + * @return this builder instance + */ + public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { + this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(RestartCloudAutonomousVmClusterOrdsRequest o) { + cloudAutonomousVmClusterId(o.getCloudAutonomousVmClusterId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RestartCloudAutonomousVmClusterOrdsRequest 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 RestartCloudAutonomousVmClusterOrdsRequest + */ + public RestartCloudAutonomousVmClusterOrdsRequest build() { + RestartCloudAutonomousVmClusterOrdsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of RestartCloudAutonomousVmClusterOrdsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RestartCloudAutonomousVmClusterOrdsRequest + */ + public RestartCloudAutonomousVmClusterOrdsRequest buildWithoutInvocationCallback() { + RestartCloudAutonomousVmClusterOrdsRequest request = + new RestartCloudAutonomousVmClusterOrdsRequest(); + request.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new RestartCloudAutonomousVmClusterOrdsRequest(cloudAutonomousVmClusterId, opcRetryToken, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .cloudAutonomousVmClusterId(cloudAutonomousVmClusterId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",cloudAutonomousVmClusterId=") + .append(String.valueOf(this.cloudAutonomousVmClusterId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RestartCloudAutonomousVmClusterOrdsRequest)) { + return false; + } + + RestartCloudAutonomousVmClusterOrdsRequest other = + (RestartCloudAutonomousVmClusterOrdsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.cloudAutonomousVmClusterId == null + ? 43 + : this.cloudAutonomousVmClusterId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/StopAutonomousDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/StopAutonomousDatabaseRequest.java index b0e2362f99f..8b3a47dc3d6 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/StopAutonomousDatabaseRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/StopAutonomousDatabaseRequest.java @@ -10,7 +10,8 @@ */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") public class StopAutonomousDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest { + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.StopAutonomousDatabaseDetails> { /** * The database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). @@ -53,6 +54,19 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** + * Request details to stop the Autonomous Database with force option. + */ + private com.oracle.bmc.database.model.StopAutonomousDatabaseDetails + stopAutonomousDatabaseDetails; + + /** + * Request details to stop the Autonomous Database with force option. + */ + public com.oracle.bmc.database.model.StopAutonomousDatabaseDetails + getStopAutonomousDatabaseDetails() { + return stopAutonomousDatabaseDetails; + } /** * Indicates that the request is a dry run, if set to "true". A dry run request does not actually * creating or updating a resource and is used only to perform validation on the submitted data. @@ -69,9 +83,20 @@ public Boolean getOpcDryRun() { return opcDryRun; } + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.StopAutonomousDatabaseDetails getBody$() { + return stopAutonomousDatabaseDetails; + } + public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - StopAutonomousDatabaseRequest, java.lang.Void> { + StopAutonomousDatabaseRequest, + com.oracle.bmc.database.model.StopAutonomousDatabaseDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -129,6 +154,24 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Request details to stop the Autonomous Database with force option. + */ + private com.oracle.bmc.database.model.StopAutonomousDatabaseDetails + stopAutonomousDatabaseDetails = null; + + /** + * Request details to stop the Autonomous Database with force option. + * @param stopAutonomousDatabaseDetails the value to set + * @return this builder instance + */ + public Builder stopAutonomousDatabaseDetails( + com.oracle.bmc.database.model.StopAutonomousDatabaseDetails + stopAutonomousDatabaseDetails) { + this.stopAutonomousDatabaseDetails = stopAutonomousDatabaseDetails; + return this; + } + /** * Indicates that the request is a dry run, if set to "true". A dry run request does not actually * creating or updating a resource and is used only to perform validation on the submitted data. @@ -179,6 +222,7 @@ public Builder copy(StopAutonomousDatabaseRequest o) { autonomousDatabaseId(o.getAutonomousDatabaseId()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + stopAutonomousDatabaseDetails(o.getStopAutonomousDatabaseDetails()); opcDryRun(o.getOpcDryRun()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -202,6 +246,17 @@ public StopAutonomousDatabaseRequest build() { return request; } + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.StopAutonomousDatabaseDetails body) { + stopAutonomousDatabaseDetails(body); + return this; + } + /** * Build the instance of StopAutonomousDatabaseRequest as configured by this builder * @@ -215,9 +270,10 @@ public StopAutonomousDatabaseRequest buildWithoutInvocationCallback() { request.autonomousDatabaseId = autonomousDatabaseId; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.stopAutonomousDatabaseDetails = stopAutonomousDatabaseDetails; request.opcDryRun = opcDryRun; return request; - // new StopAutonomousDatabaseRequest(autonomousDatabaseId, ifMatch, opcRequestId, opcDryRun); + // new StopAutonomousDatabaseRequest(autonomousDatabaseId, ifMatch, opcRequestId, stopAutonomousDatabaseDetails, opcDryRun); } } @@ -230,6 +286,7 @@ public Builder toBuilder() { .autonomousDatabaseId(autonomousDatabaseId) .ifMatch(ifMatch) .opcRequestId(opcRequestId) + .stopAutonomousDatabaseDetails(stopAutonomousDatabaseDetails) .opcDryRun(opcDryRun); } @@ -249,6 +306,8 @@ public String toString() { sb.append(",autonomousDatabaseId=").append(String.valueOf(this.autonomousDatabaseId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",stopAutonomousDatabaseDetails=") + .append(String.valueOf(this.stopAutonomousDatabaseDetails)); sb.append(",opcDryRun=").append(String.valueOf(this.opcDryRun)); sb.append(")"); return sb.toString(); @@ -268,6 +327,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.autonomousDatabaseId, other.autonomousDatabaseId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.stopAutonomousDatabaseDetails, other.stopAutonomousDatabaseDetails) && java.util.Objects.equals(this.opcDryRun, other.opcDryRun); } @@ -282,6 +343,11 @@ public int hashCode() { : this.autonomousDatabaseId.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.stopAutonomousDatabaseDetails == null + ? 43 + : this.stopAutonomousDatabaseDetails.hashCode()); result = (result * PRIME) + (this.opcDryRun == null ? 43 : this.opcDryRun.hashCode()); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/UnregisterExadbVmClusterPkcsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UnregisterExadbVmClusterPkcsRequest.java new file mode 100644 index 00000000000..ef0b8b47878 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UnregisterExadbVmClusterPkcsRequest.java @@ -0,0 +1,368 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use UnregisterExadbVmClusterPkcsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UnregisterExadbVmClusterPkcsRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.UnregisterExadbVmClusterPkcsDetails> { + + /** + * The Exadata VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + */ + private String exadbVmClusterId; + + /** + * The Exadata VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + */ + public String getExadbVmClusterId() { + return exadbVmClusterId; + } + /** + * Details of unregistering PKCS11 driver. + */ + private com.oracle.bmc.database.model.UnregisterExadbVmClusterPkcsDetails + unregisterExadbVmClusterPkcsDetails; + + /** + * Details of unregistering PKCS11 driver. + */ + public com.oracle.bmc.database.model.UnregisterExadbVmClusterPkcsDetails + getUnregisterExadbVmClusterPkcsDetails() { + return unregisterExadbVmClusterPkcsDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.UnregisterExadbVmClusterPkcsDetails getBody$() { + return unregisterExadbVmClusterPkcsDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UnregisterExadbVmClusterPkcsRequest, + com.oracle.bmc.database.model.UnregisterExadbVmClusterPkcsDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Exadata VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + */ + private String exadbVmClusterId = null; + + /** + * The Exadata VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + * @param exadbVmClusterId the value to set + * @return this builder instance + */ + public Builder exadbVmClusterId(String exadbVmClusterId) { + this.exadbVmClusterId = exadbVmClusterId; + return this; + } + + /** + * Details of unregistering PKCS11 driver. + */ + private com.oracle.bmc.database.model.UnregisterExadbVmClusterPkcsDetails + unregisterExadbVmClusterPkcsDetails = null; + + /** + * Details of unregistering PKCS11 driver. + * @param unregisterExadbVmClusterPkcsDetails the value to set + * @return this builder instance + */ + public Builder unregisterExadbVmClusterPkcsDetails( + com.oracle.bmc.database.model.UnregisterExadbVmClusterPkcsDetails + unregisterExadbVmClusterPkcsDetails) { + this.unregisterExadbVmClusterPkcsDetails = unregisterExadbVmClusterPkcsDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(UnregisterExadbVmClusterPkcsRequest o) { + exadbVmClusterId(o.getExadbVmClusterId()); + unregisterExadbVmClusterPkcsDetails(o.getUnregisterExadbVmClusterPkcsDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UnregisterExadbVmClusterPkcsRequest 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 UnregisterExadbVmClusterPkcsRequest + */ + public UnregisterExadbVmClusterPkcsRequest build() { + UnregisterExadbVmClusterPkcsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.database.model.UnregisterExadbVmClusterPkcsDetails body) { + unregisterExadbVmClusterPkcsDetails(body); + return this; + } + + /** + * Build the instance of UnregisterExadbVmClusterPkcsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UnregisterExadbVmClusterPkcsRequest + */ + public UnregisterExadbVmClusterPkcsRequest buildWithoutInvocationCallback() { + UnregisterExadbVmClusterPkcsRequest request = new UnregisterExadbVmClusterPkcsRequest(); + request.exadbVmClusterId = exadbVmClusterId; + request.unregisterExadbVmClusterPkcsDetails = unregisterExadbVmClusterPkcsDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UnregisterExadbVmClusterPkcsRequest(exadbVmClusterId, unregisterExadbVmClusterPkcsDetails, opcRetryToken, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .exadbVmClusterId(exadbVmClusterId) + .unregisterExadbVmClusterPkcsDetails(unregisterExadbVmClusterPkcsDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",exadbVmClusterId=").append(String.valueOf(this.exadbVmClusterId)); + sb.append(",unregisterExadbVmClusterPkcsDetails=") + .append(String.valueOf(this.unregisterExadbVmClusterPkcsDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UnregisterExadbVmClusterPkcsRequest)) { + return false; + } + + UnregisterExadbVmClusterPkcsRequest other = (UnregisterExadbVmClusterPkcsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.exadbVmClusterId, other.exadbVmClusterId) + && java.util.Objects.equals( + this.unregisterExadbVmClusterPkcsDetails, + other.unregisterExadbVmClusterPkcsDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.exadbVmClusterId == null ? 43 : this.exadbVmClusterId.hashCode()); + result = + (result * PRIME) + + (this.unregisterExadbVmClusterPkcsDetails == null + ? 43 + : this.unregisterExadbVmClusterPkcsDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateBaseccVmClusterRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateBaseccVmClusterRequest.java new file mode 100644 index 00000000000..8266e2b25f0 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateBaseccVmClusterRequest.java @@ -0,0 +1,311 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use UpdateBaseccVmClusterRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateBaseccVmClusterRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.UpdateBaseccVmClusterDetails> { + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getBaseccVmClusterId() { + return baseccVmClusterId; + } + /** + * Request to update the attributes of a BaseDB-C@C VM cluster. + */ + private com.oracle.bmc.database.model.UpdateBaseccVmClusterDetails updateBaseccVmClusterDetails; + + /** + * Request to update the attributes of a BaseDB-C@C VM cluster. + */ + public com.oracle.bmc.database.model.UpdateBaseccVmClusterDetails + getUpdateBaseccVmClusterDetails() { + return updateBaseccVmClusterDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.UpdateBaseccVmClusterDetails getBody$() { + return updateBaseccVmClusterDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateBaseccVmClusterRequest, + com.oracle.bmc.database.model.UpdateBaseccVmClusterDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String baseccVmClusterId = null; + + /** + * The BaseDB-C@C VM cluster [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param baseccVmClusterId the value to set + * @return this builder instance + */ + public Builder baseccVmClusterId(String baseccVmClusterId) { + this.baseccVmClusterId = baseccVmClusterId; + return this; + } + + /** + * Request to update the attributes of a BaseDB-C@C VM cluster. + */ + private com.oracle.bmc.database.model.UpdateBaseccVmClusterDetails + updateBaseccVmClusterDetails = null; + + /** + * Request to update the attributes of a BaseDB-C@C VM cluster. + * @param updateBaseccVmClusterDetails the value to set + * @return this builder instance + */ + public Builder updateBaseccVmClusterDetails( + com.oracle.bmc.database.model.UpdateBaseccVmClusterDetails + updateBaseccVmClusterDetails) { + this.updateBaseccVmClusterDetails = updateBaseccVmClusterDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateBaseccVmClusterRequest o) { + baseccVmClusterId(o.getBaseccVmClusterId()); + updateBaseccVmClusterDetails(o.getUpdateBaseccVmClusterDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateBaseccVmClusterRequest 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 UpdateBaseccVmClusterRequest + */ + public UpdateBaseccVmClusterRequest build() { + UpdateBaseccVmClusterRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.UpdateBaseccVmClusterDetails body) { + updateBaseccVmClusterDetails(body); + return this; + } + + /** + * Build the instance of UpdateBaseccVmClusterRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateBaseccVmClusterRequest + */ + public UpdateBaseccVmClusterRequest buildWithoutInvocationCallback() { + UpdateBaseccVmClusterRequest request = new UpdateBaseccVmClusterRequest(); + request.baseccVmClusterId = baseccVmClusterId; + request.updateBaseccVmClusterDetails = updateBaseccVmClusterDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateBaseccVmClusterRequest(baseccVmClusterId, updateBaseccVmClusterDetails, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .baseccVmClusterId(baseccVmClusterId) + .updateBaseccVmClusterDetails(updateBaseccVmClusterDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",baseccVmClusterId=").append(String.valueOf(this.baseccVmClusterId)); + sb.append(",updateBaseccVmClusterDetails=") + .append(String.valueOf(this.updateBaseccVmClusterDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateBaseccVmClusterRequest)) { + return false; + } + + UpdateBaseccVmClusterRequest other = (UpdateBaseccVmClusterRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.baseccVmClusterId, other.baseccVmClusterId) + && java.util.Objects.equals( + this.updateBaseccVmClusterDetails, other.updateBaseccVmClusterDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.baseccVmClusterId == null ? 43 : this.baseccVmClusterId.hashCode()); + result = + (result * PRIME) + + (this.updateBaseccVmClusterDetails == null + ? 43 + : this.updateBaseccVmClusterDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeBaseccVmClusterCompartmentResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeBaseccVmClusterCompartmentResponse.java new file mode 100644 index 00000000000..d7ef98f1404 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeBaseccVmClusterCompartmentResponse.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ChangeBaseccVmClusterCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier of the work request. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeBaseccVmClusterCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier of the work request. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeBaseccVmClusterCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeBaseccVmClusterCompartmentResponse build() { + return new ChangeBaseccVmClusterCompartmentResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeBaseccVmClusterCompartmentResponse)) { + return false; + } + + ChangeBaseccVmClusterCompartmentResponse other = + (ChangeBaseccVmClusterCompartmentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateBaseccVmClusterResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateBaseccVmClusterResponse.java new file mode 100644 index 00000000000..b52ec2579eb --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateBaseccVmClusterResponse.java @@ -0,0 +1,255 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateBaseccVmClusterResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned BaseccVmCluster instance. + */ + private com.oracle.bmc.database.model.BaseccVmCluster baseccVmCluster; + + /** + * The returned BaseccVmCluster instance. + * @return the value + */ + public com.oracle.bmc.database.model.BaseccVmCluster getBaseccVmCluster() { + return baseccVmCluster; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "baseccVmCluster" + }) + private CreateBaseccVmClusterResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.BaseccVmCluster baseccVmCluster) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.baseccVmCluster = baseccVmCluster; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned BaseccVmCluster instance. + */ + private com.oracle.bmc.database.model.BaseccVmCluster baseccVmCluster; + + /** + * The returned BaseccVmCluster instance. + * @param baseccVmCluster the value to set + * @return this builder + */ + public Builder baseccVmCluster( + com.oracle.bmc.database.model.BaseccVmCluster baseccVmCluster) { + this.baseccVmCluster = baseccVmCluster; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateBaseccVmClusterResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + baseccVmCluster(o.getBaseccVmCluster()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateBaseccVmClusterResponse build() { + return new CreateBaseccVmClusterResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + baseccVmCluster); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",baseccVmCluster=").append(String.valueOf(baseccVmCluster)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBaseccVmClusterResponse)) { + return false; + } + + CreateBaseccVmClusterResponse other = (CreateBaseccVmClusterResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.baseccVmCluster, other.baseccVmCluster); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.baseccVmCluster == null ? 43 : this.baseccVmCluster.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteBaseccVmClusterResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteBaseccVmClusterResponse.java new file mode 100644 index 00000000000..b3407917d2d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteBaseccVmClusterResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteBaseccVmClusterResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteBaseccVmClusterResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteBaseccVmClusterResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteBaseccVmClusterResponse build() { + return new DeleteBaseccVmClusterResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteBaseccVmClusterResponse)) { + return false; + } + + DeleteBaseccVmClusterResponse other = (DeleteBaseccVmClusterResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetBaseccVmClusterResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetBaseccVmClusterResponse.java new file mode 100644 index 00000000000..d2dc10673bd --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetBaseccVmClusterResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetBaseccVmClusterResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned BaseccVmCluster instance. + */ + private com.oracle.bmc.database.model.BaseccVmCluster baseccVmCluster; + + /** + * The returned BaseccVmCluster instance. + * @return the value + */ + public com.oracle.bmc.database.model.BaseccVmCluster getBaseccVmCluster() { + return baseccVmCluster; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "baseccVmCluster" + }) + private GetBaseccVmClusterResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.BaseccVmCluster baseccVmCluster) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.baseccVmCluster = baseccVmCluster; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned BaseccVmCluster instance. + */ + private com.oracle.bmc.database.model.BaseccVmCluster baseccVmCluster; + + /** + * The returned BaseccVmCluster instance. + * @param baseccVmCluster the value to set + * @return this builder + */ + public Builder baseccVmCluster( + com.oracle.bmc.database.model.BaseccVmCluster baseccVmCluster) { + this.baseccVmCluster = baseccVmCluster; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetBaseccVmClusterResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + baseccVmCluster(o.getBaseccVmCluster()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetBaseccVmClusterResponse build() { + return new GetBaseccVmClusterResponse( + __httpStatusCode__, headers, etag, opcRequestId, baseccVmCluster); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",baseccVmCluster=").append(String.valueOf(baseccVmCluster)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetBaseccVmClusterResponse)) { + return false; + } + + GetBaseccVmClusterResponse other = (GetBaseccVmClusterResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.baseccVmCluster, other.baseccVmCluster); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.baseccVmCluster == null ? 43 : this.baseccVmCluster.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetBaseccVmClusterUpdateHistoryEntryResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetBaseccVmClusterUpdateHistoryEntryResponse.java new file mode 100644 index 00000000000..62862f19003 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetBaseccVmClusterUpdateHistoryEntryResponse.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetBaseccVmClusterUpdateHistoryEntryResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned BaseccVmClusterUpdateHistoryEntry instance. + */ + private com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntry + baseccVmClusterUpdateHistoryEntry; + + /** + * The returned BaseccVmClusterUpdateHistoryEntry instance. + * @return the value + */ + public com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntry + getBaseccVmClusterUpdateHistoryEntry() { + return baseccVmClusterUpdateHistoryEntry; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "baseccVmClusterUpdateHistoryEntry" + }) + private GetBaseccVmClusterUpdateHistoryEntryResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntry + baseccVmClusterUpdateHistoryEntry) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.baseccVmClusterUpdateHistoryEntry = baseccVmClusterUpdateHistoryEntry; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned BaseccVmClusterUpdateHistoryEntry instance. + */ + private com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntry + baseccVmClusterUpdateHistoryEntry; + + /** + * The returned BaseccVmClusterUpdateHistoryEntry instance. + * @param baseccVmClusterUpdateHistoryEntry the value to set + * @return this builder + */ + public Builder baseccVmClusterUpdateHistoryEntry( + com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntry + baseccVmClusterUpdateHistoryEntry) { + this.baseccVmClusterUpdateHistoryEntry = baseccVmClusterUpdateHistoryEntry; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetBaseccVmClusterUpdateHistoryEntryResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + baseccVmClusterUpdateHistoryEntry(o.getBaseccVmClusterUpdateHistoryEntry()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetBaseccVmClusterUpdateHistoryEntryResponse build() { + return new GetBaseccVmClusterUpdateHistoryEntryResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + baseccVmClusterUpdateHistoryEntry); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",baseccVmClusterUpdateHistoryEntry=") + .append(String.valueOf(baseccVmClusterUpdateHistoryEntry)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetBaseccVmClusterUpdateHistoryEntryResponse)) { + return false; + } + + GetBaseccVmClusterUpdateHistoryEntryResponse other = + (GetBaseccVmClusterUpdateHistoryEntryResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.baseccVmClusterUpdateHistoryEntry, + other.baseccVmClusterUpdateHistoryEntry); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.baseccVmClusterUpdateHistoryEntry == null + ? 43 + : this.baseccVmClusterUpdateHistoryEntry.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetBaseccVmClusterUpdateResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetBaseccVmClusterUpdateResponse.java new file mode 100644 index 00000000000..39596a905c5 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetBaseccVmClusterUpdateResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetBaseccVmClusterUpdateResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned BaseccVmClusterUpdate instance. + */ + private com.oracle.bmc.database.model.BaseccVmClusterUpdate baseccVmClusterUpdate; + + /** + * The returned BaseccVmClusterUpdate instance. + * @return the value + */ + public com.oracle.bmc.database.model.BaseccVmClusterUpdate getBaseccVmClusterUpdate() { + return baseccVmClusterUpdate; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "baseccVmClusterUpdate" + }) + private GetBaseccVmClusterUpdateResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.database.model.BaseccVmClusterUpdate baseccVmClusterUpdate) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.baseccVmClusterUpdate = baseccVmClusterUpdate; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned BaseccVmClusterUpdate instance. + */ + private com.oracle.bmc.database.model.BaseccVmClusterUpdate baseccVmClusterUpdate; + + /** + * The returned BaseccVmClusterUpdate instance. + * @param baseccVmClusterUpdate the value to set + * @return this builder + */ + public Builder baseccVmClusterUpdate( + com.oracle.bmc.database.model.BaseccVmClusterUpdate baseccVmClusterUpdate) { + this.baseccVmClusterUpdate = baseccVmClusterUpdate; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetBaseccVmClusterUpdateResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + baseccVmClusterUpdate(o.getBaseccVmClusterUpdate()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetBaseccVmClusterUpdateResponse build() { + return new GetBaseccVmClusterUpdateResponse( + __httpStatusCode__, headers, opcRequestId, baseccVmClusterUpdate); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",baseccVmClusterUpdate=").append(String.valueOf(baseccVmClusterUpdate)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetBaseccVmClusterUpdateResponse)) { + return false; + } + + GetBaseccVmClusterUpdateResponse other = (GetBaseccVmClusterUpdateResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.baseccVmClusterUpdate, other.baseccVmClusterUpdate); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.baseccVmClusterUpdate == null + ? 43 + : this.baseccVmClusterUpdate.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListBaseccVmClusterUpdateHistoryEntriesResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListBaseccVmClusterUpdateHistoryEntriesResponse.java new file mode 100644 index 00000000000..5e2045a0dfb --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListBaseccVmClusterUpdateHistoryEntriesResponse.java @@ -0,0 +1,233 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListBaseccVmClusterUpdateHistoryEntriesResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * A list of com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntrySummary instances. + */ + private java.util.List + items; + + /** + * A list of com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntrySummary instances. + * @return the value + */ + public java.util.List + getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "items" + }) + private ListBaseccVmClusterUpdateHistoryEntriesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + java.util.List + items) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.items = items; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * A list of com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntrySummary instances. + */ + private java.util.List< + com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntrySummary> + items; + + /** + * A list of com.oracle.bmc.database.model.BaseccVmClusterUpdateHistoryEntrySummary instances. + * @param items the value to set + * @return this builder + */ + public Builder items( + java.util.List< + com.oracle.bmc.database.model + .BaseccVmClusterUpdateHistoryEntrySummary> + items) { + this.items = items; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListBaseccVmClusterUpdateHistoryEntriesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListBaseccVmClusterUpdateHistoryEntriesResponse build() { + return new ListBaseccVmClusterUpdateHistoryEntriesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, items); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",items=").append(String.valueOf(items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBaseccVmClusterUpdateHistoryEntriesResponse)) { + return false; + } + + ListBaseccVmClusterUpdateHistoryEntriesResponse other = + (ListBaseccVmClusterUpdateHistoryEntriesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.items, other.items); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListBaseccVmClusterUpdatesResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListBaseccVmClusterUpdatesResponse.java new file mode 100644 index 00000000000..57a9967fe34 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListBaseccVmClusterUpdatesResponse.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListBaseccVmClusterUpdatesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * A list of com.oracle.bmc.database.model.BaseccVmClusterUpdateSummary instances. + */ + private java.util.List items; + + /** + * A list of com.oracle.bmc.database.model.BaseccVmClusterUpdateSummary instances. + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "items" + }) + private ListBaseccVmClusterUpdatesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + java.util.List items) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.items = items; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * A list of com.oracle.bmc.database.model.BaseccVmClusterUpdateSummary instances. + */ + private java.util.List items; + + /** + * A list of com.oracle.bmc.database.model.BaseccVmClusterUpdateSummary instances. + * @param items the value to set + * @return this builder + */ + public Builder items( + java.util.List items) { + this.items = items; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListBaseccVmClusterUpdatesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListBaseccVmClusterUpdatesResponse build() { + return new ListBaseccVmClusterUpdatesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, items); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",items=").append(String.valueOf(items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBaseccVmClusterUpdatesResponse)) { + return false; + } + + ListBaseccVmClusterUpdatesResponse other = (ListBaseccVmClusterUpdatesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.items, other.items); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListBaseccVmClustersResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListBaseccVmClustersResponse.java new file mode 100644 index 00000000000..5b0246a708b --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListBaseccVmClustersResponse.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListBaseccVmClustersResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * A list of com.oracle.bmc.database.model.BaseccVmClusterSummary instances. + */ + private java.util.List items; + + /** + * A list of com.oracle.bmc.database.model.BaseccVmClusterSummary instances. + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "items" + }) + private ListBaseccVmClustersResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + java.util.List items) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.items = items; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * A list of com.oracle.bmc.database.model.BaseccVmClusterSummary instances. + */ + private java.util.List items; + + /** + * A list of com.oracle.bmc.database.model.BaseccVmClusterSummary instances. + * @param items the value to set + * @return this builder + */ + public Builder items( + java.util.List items) { + this.items = items; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListBaseccVmClustersResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListBaseccVmClustersResponse build() { + return new ListBaseccVmClustersResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, items); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",items=").append(String.valueOf(items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBaseccVmClustersResponse)) { + return false; + } + + ListBaseccVmClustersResponse other = (ListBaseccVmClustersResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.items, other.items); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/RegisterExadbVmClusterPkcsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/RegisterExadbVmClusterPkcsResponse.java new file mode 100644 index 00000000000..97ce3687c97 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/RegisterExadbVmClusterPkcsResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RegisterExadbVmClusterPkcsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RegisterExadbVmClusterPkcsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RegisterExadbVmClusterPkcsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RegisterExadbVmClusterPkcsResponse build() { + return new RegisterExadbVmClusterPkcsResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RegisterExadbVmClusterPkcsResponse)) { + return false; + } + + RegisterExadbVmClusterPkcsResponse other = (RegisterExadbVmClusterPkcsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/RescheduleManagedDbSoftwareUpdateResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/RescheduleManagedDbSoftwareUpdateResponse.java new file mode 100644 index 00000000000..512f4fc39ee --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/RescheduleManagedDbSoftwareUpdateResponse.java @@ -0,0 +1,249 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RescheduleManagedDbSoftwareUpdateResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned Database instance. + */ + private com.oracle.bmc.database.model.Database database; + + /** + * The returned Database instance. + * @return the value + */ + public com.oracle.bmc.database.model.Database getDatabase() { + return database; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "database" + }) + private RescheduleManagedDbSoftwareUpdateResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + com.oracle.bmc.database.model.Database database) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.database = database; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned Database instance. + */ + private com.oracle.bmc.database.model.Database database; + + /** + * The returned Database instance. + * @param database the value to set + * @return this builder + */ + public Builder database(com.oracle.bmc.database.model.Database database) { + this.database = database; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RescheduleManagedDbSoftwareUpdateResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + database(o.getDatabase()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RescheduleManagedDbSoftwareUpdateResponse build() { + return new RescheduleManagedDbSoftwareUpdateResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId, etag, database); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",database=").append(String.valueOf(database)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RescheduleManagedDbSoftwareUpdateResponse)) { + return false; + } + + RescheduleManagedDbSoftwareUpdateResponse other = + (RescheduleManagedDbSoftwareUpdateResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.database, other.database); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/RestartAutonomousVmClusterOrdsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/RestartAutonomousVmClusterOrdsResponse.java new file mode 100644 index 00000000000..2eca6e47c6a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/RestartAutonomousVmClusterOrdsResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RestartAutonomousVmClusterOrdsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RestartAutonomousVmClusterOrdsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RestartAutonomousVmClusterOrdsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RestartAutonomousVmClusterOrdsResponse build() { + return new RestartAutonomousVmClusterOrdsResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RestartAutonomousVmClusterOrdsResponse)) { + return false; + } + + RestartAutonomousVmClusterOrdsResponse other = (RestartAutonomousVmClusterOrdsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/RestartCloudAutonomousVmClusterOrdsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/RestartCloudAutonomousVmClusterOrdsResponse.java new file mode 100644 index 00000000000..fd14a4aa4ab --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/RestartCloudAutonomousVmClusterOrdsResponse.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RestartCloudAutonomousVmClusterOrdsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RestartCloudAutonomousVmClusterOrdsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RestartCloudAutonomousVmClusterOrdsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RestartCloudAutonomousVmClusterOrdsResponse build() { + return new RestartCloudAutonomousVmClusterOrdsResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RestartCloudAutonomousVmClusterOrdsResponse)) { + return false; + } + + RestartCloudAutonomousVmClusterOrdsResponse other = + (RestartCloudAutonomousVmClusterOrdsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/UnregisterExadbVmClusterPkcsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UnregisterExadbVmClusterPkcsResponse.java new file mode 100644 index 00000000000..b069581c630 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UnregisterExadbVmClusterPkcsResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UnregisterExadbVmClusterPkcsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UnregisterExadbVmClusterPkcsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UnregisterExadbVmClusterPkcsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UnregisterExadbVmClusterPkcsResponse build() { + return new UnregisterExadbVmClusterPkcsResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UnregisterExadbVmClusterPkcsResponse)) { + return false; + } + + UnregisterExadbVmClusterPkcsResponse other = (UnregisterExadbVmClusterPkcsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateBaseccVmClusterResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateBaseccVmClusterResponse.java new file mode 100644 index 00000000000..b1fe3f5bd3d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateBaseccVmClusterResponse.java @@ -0,0 +1,255 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateBaseccVmClusterResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned BaseccVmCluster instance. + */ + private com.oracle.bmc.database.model.BaseccVmCluster baseccVmCluster; + + /** + * The returned BaseccVmCluster instance. + * @return the value + */ + public com.oracle.bmc.database.model.BaseccVmCluster getBaseccVmCluster() { + return baseccVmCluster; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "baseccVmCluster" + }) + private UpdateBaseccVmClusterResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.BaseccVmCluster baseccVmCluster) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.baseccVmCluster = baseccVmCluster; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned BaseccVmCluster instance. + */ + private com.oracle.bmc.database.model.BaseccVmCluster baseccVmCluster; + + /** + * The returned BaseccVmCluster instance. + * @param baseccVmCluster the value to set + * @return this builder + */ + public Builder baseccVmCluster( + com.oracle.bmc.database.model.BaseccVmCluster baseccVmCluster) { + this.baseccVmCluster = baseccVmCluster; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateBaseccVmClusterResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + baseccVmCluster(o.getBaseccVmCluster()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateBaseccVmClusterResponse build() { + return new UpdateBaseccVmClusterResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + baseccVmCluster); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",baseccVmCluster=").append(String.valueOf(baseccVmCluster)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateBaseccVmClusterResponse)) { + return false; + } + + UpdateBaseccVmClusterResponse other = (UpdateBaseccVmClusterResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.baseccVmCluster, other.baseccVmCluster); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.baseccVmCluster == null ? 43 : this.baseccVmCluster.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index c789458123f..d5a6ff67648 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-databasemanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 3ac5748a49b..5fc7ac65078 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-databasemigration @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index 002bcc0da6c..f42894fa41b 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-databasetools @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-databasetoolsruntime/pom.xml b/bmc-databasetoolsruntime/pom.xml index 192305ce3c6..ff97edc3f5c 100644 --- a/bmc-databasetoolsruntime/pom.xml +++ b/bmc-databasetoolsruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-databasetoolsruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index aea3c8f57ff..ddc82b7a4f3 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-datacatalog @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-datacc/pom.xml b/bmc-datacc/pom.xml new file mode 100644 index 00000000000..5f71f9bbe74 --- /dev/null +++ b/bmc-datacc/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 2.95.0 + ../pom.xml + + oci-java-sdk-datacc + Oracle Cloud Infrastructure SDK - Datacc + This project contains the SDK used for Oracle Cloud Infrastructure Datacc + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 2.95.0 + + + \ No newline at end of file diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/Baseinfra.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/Baseinfra.java new file mode 100644 index 00000000000..28227c49986 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/Baseinfra.java @@ -0,0 +1,631 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc; + +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; + +/** + * API for Database Infrastructure Cloud@Customer Service. Use this API to manage Database Infrastructure VM clusters, Application VMs, and related resources. + * + * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public interface Baseinfra extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Activate an Database Infrastructure using the specified details. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ActivateInfrastructure API. + */ + ActivateInfrastructureResponse activateInfrastructure(ActivateInfrastructureRequest request); + + /** + * Change the Database Infrastructure Cloud@Customer Compartment to the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ChangeInfrastructureCompartment API. + */ + ChangeInfrastructureCompartmentResponse changeInfrastructureCompartment( + ChangeInfrastructureCompartmentRequest request); + + /** + * Change the VM cluster network Compartment to the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ChangeVmClusterNetworkCompartment API. + */ + ChangeVmClusterNetworkCompartmentResponse changeVmClusterNetworkCompartment( + ChangeVmClusterNetworkCompartmentRequest request); + + /** + * Change the VM instance on Database Infrastructure Compartment to the specified [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ChangeVmInstanceCompartment API. + */ + ChangeVmInstanceCompartmentResponse changeVmInstanceCompartment( + ChangeVmInstanceCompartmentRequest request); + + /** + * Create a Database Infrastructure using the specified details. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateInfrastructure API. + */ + CreateInfrastructureResponse createInfrastructure(CreateInfrastructureRequest request); + + /** + * Create an VM cluster on Database Infrastructure network using the specified details. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateVmClusterNetwork API. + */ + CreateVmClusterNetworkResponse createVmClusterNetwork(CreateVmClusterNetworkRequest request); + + /** + * Create an VM instance on Database Infrastructure using the specified details. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateVmInstance API. + */ + CreateVmInstanceResponse createVmInstance(CreateVmInstanceRequest request); + + /** + * Delete the Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). It must be called once the resource usage is complete. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteInfrastructure API. + */ + DeleteInfrastructureResponse deleteInfrastructure(DeleteInfrastructureRequest request); + + /** + * Delete the VM cluster network on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). It must be called once the resource usage is complete. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteVmClusterNetwork API. + */ + DeleteVmClusterNetworkResponse deleteVmClusterNetwork(DeleteVmClusterNetworkRequest request); + + /** + * Delete the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). It must be called once the resource usage is complete. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteVmInstance API. + */ + DeleteVmInstanceResponse deleteVmInstance(DeleteVmInstanceRequest request); + + /** + * Downloads the configuration file for the specified Database Infrastructure Cloud@Customer. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DownloadInfrastructureConfigFile API. + */ + DownloadInfrastructureConfigFileResponse downloadInfrastructureConfigFile( + DownloadInfrastructureConfigFileRequest request); + + /** + * Downloads the validation script for the specified Database Infrastructure Cloud@Customer. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DownloadInfrastructureValidationScript API. + */ + DownloadInfrastructureValidationScriptResponse downloadInfrastructureValidationScript( + DownloadInfrastructureValidationScriptRequest request); + + /** + * Generates an VM cluster network configuration using the specified details. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GenerateRecommendedVmClusterNetwork API. + */ + GenerateRecommendedVmClusterNetworkResponse generateRecommendedVmClusterNetwork( + GenerateRecommendedVmClusterNetworkRequest request); + + /** + * Obtain the Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetInfrastructure API. + */ + GetInfrastructureResponse getInfrastructure(GetInfrastructureRequest request); + + /** + * Get the available scale options for the infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetInfrastructureScaleOption API. + */ + GetInfrastructureScaleOptionResponse getInfrastructureScaleOption( + GetInfrastructureScaleOptionRequest request); + + /** + * Gets information about the specified [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetMaintenanceExecution API. + */ + GetMaintenanceExecutionResponse getMaintenanceExecution(GetMaintenanceExecutionRequest request); + + /** + * Gets information about the specified [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetMaintenanceRun API. + */ + GetMaintenanceRunResponse getMaintenanceRun(GetMaintenanceRunRequest request); + + /** + * Obtain the VM cluster network on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetVmClusterNetwork API. + */ + GetVmClusterNetworkResponse getVmClusterNetwork(GetVmClusterNetworkRequest request); + + /** + * Obtain the VM instance on Database Infrastructure that has the specified [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetVmInstance API. + */ + GetVmInstanceResponse getVmInstance(GetVmInstanceRequest request); + + /** + * Get the status of the work request having the specified work request [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetWorkRequest API. + */ + GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + + /** + * Obtain a list of Database Infrastructures. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListInfrastructures API. + */ + ListInfrastructuresResponse listInfrastructures(ListInfrastructuresRequest request); + + /** + * Gets a list of the maintenance executions in the specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListMaintenanceExecutions API. + */ + ListMaintenanceExecutionsResponse listMaintenanceExecutions( + ListMaintenanceExecutionsRequest request); + + /** + * Gets a list of the maintenance runs in the specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListMaintenanceRuns API. + */ + ListMaintenanceRunsResponse listMaintenanceRuns(ListMaintenanceRunsRequest request); + + /** + * Obtain a list of VM cluster networks on Database Infrastructure. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListVmClusterNetworks API. + */ + ListVmClusterNetworksResponse listVmClusterNetworks(ListVmClusterNetworksRequest request); + + /** + * Obtain a list of VM instances. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListVmInstances API. + */ + ListVmInstancesResponse listVmInstances(ListVmInstancesRequest request); + + /** + * View the list of errors for the work request that have the specified work request [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequestErrors API. + */ + ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); + + /** + * View the log entries for the work request that have the specified work request [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequestLogs API. + */ + ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request); + + /** + * View a list of work request details in the specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequests API. + */ + ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + + /** + * Migrate the VM instance on Database Infrastructure that has the specified [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use MigrateVmInstance API. + */ + MigrateVmInstanceResponse migrateVmInstance(MigrateVmInstanceRequest request); + + /** + * Reschedules the specified maintenance run by providing a new `timeScheduled` value. + * Only maintenance runs in eligible states may be rescheduled. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RescheduleMaintenanceRun API. + */ + RescheduleMaintenanceRunResponse rescheduleMaintenanceRun( + RescheduleMaintenanceRunRequest request); + + /** + * Restart the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RestartVmInstance API. + */ + RestartVmInstanceResponse restartVmInstance(RestartVmInstanceRequest request); + + /** + * Scale storage for the specified infrastructure using the specified details. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ScaleInfrastructureStorage API. + */ + ScaleInfrastructureStorageResponse scaleInfrastructureStorage( + ScaleInfrastructureStorageRequest request); + + /** + * Scale the VM instance on Database Infrastructure that has the specified [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ScaleVmInstance API. + */ + ScaleVmInstanceResponse scaleVmInstance(ScaleVmInstanceRequest request); + + /** + * Start the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use StartVmInstance API. + */ + StartVmInstanceResponse startVmInstance(StartVmInstanceRequest request); + + /** + * Stop the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use StopVmInstance API. + */ + StopVmInstanceResponse stopVmInstance(StopVmInstanceRequest request); + + /** + * Update the Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateInfrastructure API. + */ + UpdateInfrastructureResponse updateInfrastructure(UpdateInfrastructureRequest request); + + /** + * Update maintenance run attributes. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateMaintenanceRun API. + */ + UpdateMaintenanceRunResponse updateMaintenanceRun(UpdateMaintenanceRunRequest request); + + /** + * Update the VM cluster network on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateVmClusterNetwork API. + */ + UpdateVmClusterNetworkResponse updateVmClusterNetwork(UpdateVmClusterNetworkRequest request); + + /** + * Update the VM instance on Database Infrastructure that has the specified [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateVmInstance API. + */ + UpdateVmInstanceResponse updateVmInstance(UpdateVmInstanceRequest request); + + /** + * Validate an Database Infrastructure using the specified details. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ValidateInfrastructure API. + */ + ValidateInfrastructureResponse validateInfrastructure(ValidateInfrastructureRequest request); + + /** + * Validates an VM cluster network on Database Infrastructure. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ValidateVmClusterNetwork API. + */ + ValidateVmClusterNetworkResponse validateVmClusterNetwork( + ValidateVmClusterNetworkRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + BaseinfraWaiters getWaiters(); + + /** + * Gets the pre-configured paginators available for list operations in this service which may return multiple + * pages of data. These paginators provide an {@link java.lang.Iterable} interface so that service responses, or + * resources/records, can be iterated through without having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + BaseinfraPaginators getPaginators(); +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraAsync.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraAsync.java new file mode 100644 index 00000000000..b42c19fec29 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraAsync.java @@ -0,0 +1,768 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc; + +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; + +/** + * API for Database Infrastructure Cloud@Customer Service. Use this API to manage Database Infrastructure VM clusters, Application VMs, and related resources. + * + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public interface BaseinfraAsync extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Activate an Database Infrastructure using the specified details. + * + * + * @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 activateInfrastructure( + ActivateInfrastructureRequest request, + com.oracle.bmc.responses.AsyncHandler< + ActivateInfrastructureRequest, ActivateInfrastructureResponse> + handler); + + /** + * Change the Database Infrastructure Cloud@Customer Compartment to the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 + changeInfrastructureCompartment( + ChangeInfrastructureCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeInfrastructureCompartmentRequest, + ChangeInfrastructureCompartmentResponse> + handler); + + /** + * Change the VM cluster network Compartment to the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 + changeVmClusterNetworkCompartment( + ChangeVmClusterNetworkCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeVmClusterNetworkCompartmentRequest, + ChangeVmClusterNetworkCompartmentResponse> + handler); + + /** + * Change the VM instance on Database Infrastructure Compartment to the specified [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 changeVmInstanceCompartment( + ChangeVmInstanceCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeVmInstanceCompartmentRequest, ChangeVmInstanceCompartmentResponse> + handler); + + /** + * Create a Database Infrastructure using the specified details. + * + * + * @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 createInfrastructure( + CreateInfrastructureRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateInfrastructureRequest, CreateInfrastructureResponse> + handler); + + /** + * Create an VM cluster on Database Infrastructure network using the specified details. + * + * + * @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 createVmClusterNetwork( + CreateVmClusterNetworkRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> + handler); + + /** + * Create an VM instance on Database Infrastructure using the specified details. + * + * + * @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 createVmInstance( + CreateVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Delete the Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). It must be called once the resource usage is complete. + * + * + * @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 deleteInfrastructure( + DeleteInfrastructureRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteInfrastructureRequest, DeleteInfrastructureResponse> + handler); + + /** + * Delete the VM cluster network on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). It must be called once the resource usage is complete. + * + * + * @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 deleteVmClusterNetwork( + DeleteVmClusterNetworkRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> + handler); + + /** + * Delete the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). It must be called once the resource usage is complete. + * + * + * @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 deleteVmInstance( + DeleteVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Downloads the configuration file for the specified Database Infrastructure Cloud@Customer. + * + * @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 + downloadInfrastructureConfigFile( + DownloadInfrastructureConfigFileRequest request, + com.oracle.bmc.responses.AsyncHandler< + DownloadInfrastructureConfigFileRequest, + DownloadInfrastructureConfigFileResponse> + handler); + + /** + * Downloads the validation script for the specified Database Infrastructure Cloud@Customer. + * + * @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 + downloadInfrastructureValidationScript( + DownloadInfrastructureValidationScriptRequest request, + com.oracle.bmc.responses.AsyncHandler< + DownloadInfrastructureValidationScriptRequest, + DownloadInfrastructureValidationScriptResponse> + handler); + + /** + * Generates an VM cluster network configuration using the specified details. + * + * + * @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 + generateRecommendedVmClusterNetwork( + GenerateRecommendedVmClusterNetworkRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateRecommendedVmClusterNetworkRequest, + GenerateRecommendedVmClusterNetworkResponse> + handler); + + /** + * Obtain the Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 getInfrastructure( + GetInfrastructureRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetInfrastructureRequest, GetInfrastructureResponse> + handler); + + /** + * Get the available scale options for the infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 getInfrastructureScaleOption( + GetInfrastructureScaleOptionRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetInfrastructureScaleOptionRequest, + GetInfrastructureScaleOptionResponse> + handler); + + /** + * Gets information about the specified [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @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 getMaintenanceExecution( + GetMaintenanceExecutionRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse> + handler); + + /** + * Gets information about the specified [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @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 getMaintenanceRun( + GetMaintenanceRunRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetMaintenanceRunRequest, GetMaintenanceRunResponse> + handler); + + /** + * Obtain the VM cluster network on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 getVmClusterNetwork( + GetVmClusterNetworkRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetVmClusterNetworkRequest, GetVmClusterNetworkResponse> + handler); + + /** + * Obtain the VM instance on Database Infrastructure that has the specified [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 getVmInstance( + GetVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Get the status of the work request having the specified work request [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @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 getWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Obtain a list of Database Infrastructures. + * + * + * @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 listInfrastructures( + ListInfrastructuresRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListInfrastructuresRequest, ListInfrastructuresResponse> + handler); + + /** + * Gets a list of the maintenance executions in the specified compartment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listMaintenanceExecutions( + ListMaintenanceExecutionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListMaintenanceExecutionsRequest, ListMaintenanceExecutionsResponse> + handler); + + /** + * Gets a list of the maintenance runs in the specified compartment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listMaintenanceRuns( + ListMaintenanceRunsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListMaintenanceRunsRequest, ListMaintenanceRunsResponse> + handler); + + /** + * Obtain a list of VM cluster networks on Database Infrastructure. + * + * + * @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 listVmClusterNetworks( + ListVmClusterNetworksRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListVmClusterNetworksRequest, ListVmClusterNetworksResponse> + handler); + + /** + * Obtain a list of VM instances. + * + * + * @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 listVmInstances( + ListVmInstancesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * View the list of errors for the work request that have the specified work request [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler); + + /** + * View the log entries for the work request that have the specified work request [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 listWorkRequestLogs( + ListWorkRequestLogsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler); + + /** + * View a list of work request details in the specified compartment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Migrate the VM instance on Database Infrastructure that has the specified [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 migrateVmInstance( + MigrateVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler< + MigrateVmInstanceRequest, MigrateVmInstanceResponse> + handler); + + /** + * Reschedules the specified maintenance run by providing a new `timeScheduled` value. + * Only maintenance runs in eligible states may be rescheduled. + * + * + * @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 rescheduleMaintenanceRun( + RescheduleMaintenanceRunRequest request, + com.oracle.bmc.responses.AsyncHandler< + RescheduleMaintenanceRunRequest, RescheduleMaintenanceRunResponse> + handler); + + /** + * Restart the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 restartVmInstance( + RestartVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler< + RestartVmInstanceRequest, RestartVmInstanceResponse> + handler); + + /** + * Scale storage for the specified infrastructure using the specified details. + * + * + * @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 scaleInfrastructureStorage( + ScaleInfrastructureStorageRequest request, + com.oracle.bmc.responses.AsyncHandler< + ScaleInfrastructureStorageRequest, ScaleInfrastructureStorageResponse> + handler); + + /** + * Scale the VM instance on Database Infrastructure that has the specified [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 scaleVmInstance( + ScaleVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Start the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 startVmInstance( + StartVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Stop the VM instance on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 stopVmInstance( + StopVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Update the Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 updateInfrastructure( + UpdateInfrastructureRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateInfrastructureRequest, UpdateInfrastructureResponse> + handler); + + /** + * Update maintenance run attributes. + * + * + * @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 updateMaintenanceRun( + UpdateMaintenanceRunRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateMaintenanceRunRequest, UpdateMaintenanceRunResponse> + handler); + + /** + * Update the VM cluster network on Database Infrastructure that has the specified + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 updateVmClusterNetwork( + UpdateVmClusterNetworkRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateVmClusterNetworkRequest, UpdateVmClusterNetworkResponse> + handler); + + /** + * Update the VM instance on Database Infrastructure that has the specified [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * + * @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 updateVmInstance( + UpdateVmInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Validate an Database Infrastructure using the specified details. + * + * + * @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 validateInfrastructure( + ValidateInfrastructureRequest request, + com.oracle.bmc.responses.AsyncHandler< + ValidateInfrastructureRequest, ValidateInfrastructureResponse> + handler); + + /** + * Validates an VM cluster network on Database Infrastructure. + * + * + * @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 validateVmClusterNetwork( + ValidateVmClusterNetworkRequest request, + com.oracle.bmc.responses.AsyncHandler< + ValidateVmClusterNetworkRequest, ValidateVmClusterNetworkResponse> + handler); +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraAsyncClient.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraAsyncClient.java new file mode 100644 index 00000000000..b8fb6f1779c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraAsyncClient.java @@ -0,0 +1,2436 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc; + +import com.oracle.bmc.datacc.internal.http.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * Async client implementation for Baseinfra service.
+ * There are two ways to use async client: + * 1. Use AsyncHandler: using AsyncHandler, if the response to the call is an {@link java.io.InputStream}, like + * getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, + * because the stream will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or the AsyncHandler, + * but not both. If the Future is used, the caller should pass in null as the AsyncHandler. If the AsyncHandler + * is used, it is still safe to use the Future to determine whether or not the request was completed via + * Future.isDone/isCancelled.
+ * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class BaseinfraAsyncClient implements BaseinfraAsync { + /** + * Service instance for Baseinfra. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(BaseinfraClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://datacc.{region}.ocp.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BaseinfraAsyncClient.class); + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public BaseinfraAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public BaseinfraAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public BaseinfraAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + */ + public BaseinfraAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + new java.util.ArrayList()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + */ + public BaseinfraAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + additionalClientConfigurators, + null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public BaseinfraAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory + .createDefaultRequestSignerFactories(), + additionalClientConfigurators, + endpoint); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public BaseinfraAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public BaseinfraAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.clientConfigurationToUse = configuration; + + this.refreshClient(); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.http.ApacheUtils.getStreamWarningMessage( + "BaseinfraAsyncClient", + "downloadInfrastructureConfigFile,downloadInfrastructureValidationScript")); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public BaseinfraAsyncClient build( + @javax.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + if (authenticationDetailsProvider == null) { + throw new NullPointerException( + "authenticationDetailsProvider is marked non-null but is null"); + } + return new BaseinfraAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint); + } + } + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future activateInfrastructure( + ActivateInfrastructureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ActivateInfrastructureRequest, ActivateInfrastructureResponse> + handler) { + LOG.trace("Called async activateInfrastructure"); + final ActivateInfrastructureRequest interceptedRequest = + ActivateInfrastructureConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ActivateInfrastructureConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ActivateInfrastructure", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ActivateInfrastructureConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ActivateInfrastructureRequest, ActivateInfrastructureResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ActivateInfrastructureRequest, ActivateInfrastructureResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getActivateInfrastructureDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ActivateInfrastructureRequest, ActivateInfrastructureResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + changeInfrastructureCompartment( + ChangeInfrastructureCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeInfrastructureCompartmentRequest, + ChangeInfrastructureCompartmentResponse> + handler) { + LOG.trace("Called async changeInfrastructureCompartment"); + final ChangeInfrastructureCompartmentRequest interceptedRequest = + ChangeInfrastructureCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeInfrastructureCompartmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "ChangeInfrastructureCompartment", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeInfrastructureCompartmentResponse> + transformer = + ChangeInfrastructureCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeInfrastructureCompartmentRequest, + ChangeInfrastructureCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeInfrastructureCompartmentRequest, + ChangeInfrastructureCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeInfrastructureCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeInfrastructureCompartmentRequest, + ChangeInfrastructureCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + changeVmClusterNetworkCompartment( + ChangeVmClusterNetworkCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeVmClusterNetworkCompartmentRequest, + ChangeVmClusterNetworkCompartmentResponse> + handler) { + LOG.trace("Called async changeVmClusterNetworkCompartment"); + final ChangeVmClusterNetworkCompartmentRequest interceptedRequest = + ChangeVmClusterNetworkCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeVmClusterNetworkCompartmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "ChangeVmClusterNetworkCompartment", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeVmClusterNetworkCompartmentResponse> + transformer = + ChangeVmClusterNetworkCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeVmClusterNetworkCompartmentRequest, + ChangeVmClusterNetworkCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeVmClusterNetworkCompartmentRequest, + ChangeVmClusterNetworkCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeVmClusterNetworkCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeVmClusterNetworkCompartmentRequest, + ChangeVmClusterNetworkCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + changeVmInstanceCompartment( + ChangeVmInstanceCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeVmInstanceCompartmentRequest, + ChangeVmInstanceCompartmentResponse> + handler) { + LOG.trace("Called async changeVmInstanceCompartment"); + final ChangeVmInstanceCompartmentRequest interceptedRequest = + ChangeVmInstanceCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeVmInstanceCompartmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "ChangeVmInstanceCompartment", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeVmInstanceCompartmentResponse> + transformer = + ChangeVmInstanceCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeVmInstanceCompartmentRequest, ChangeVmInstanceCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeVmInstanceCompartmentRequest, + ChangeVmInstanceCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeVmInstanceCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeVmInstanceCompartmentRequest, ChangeVmInstanceCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future createInfrastructure( + CreateInfrastructureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateInfrastructureRequest, CreateInfrastructureResponse> + handler) { + LOG.trace("Called async createInfrastructure"); + final CreateInfrastructureRequest interceptedRequest = + CreateInfrastructureConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateInfrastructureConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "CreateInfrastructure", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + CreateInfrastructureConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateInfrastructureRequest, CreateInfrastructureResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateInfrastructureRequest, CreateInfrastructureResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateInfrastructureDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateInfrastructureRequest, CreateInfrastructureResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future createVmClusterNetwork( + CreateVmClusterNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> + handler) { + LOG.trace("Called async createVmClusterNetwork"); + final CreateVmClusterNetworkRequest interceptedRequest = + CreateVmClusterNetworkConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "CreateVmClusterNetwork", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + CreateVmClusterNetworkConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateVmClusterNetworkDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future createVmInstance( + CreateVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateVmInstanceRequest, CreateVmInstanceResponse> + handler) { + LOG.trace("Called async createVmInstance"); + final CreateVmInstanceRequest interceptedRequest = + CreateVmInstanceConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateVmInstanceConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "CreateVmInstance", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + CreateVmInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateVmInstanceRequest, CreateVmInstanceResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateVmInstanceDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateVmInstanceRequest, CreateVmInstanceResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteInfrastructure( + DeleteInfrastructureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteInfrastructureRequest, DeleteInfrastructureResponse> + handler) { + LOG.trace("Called async deleteInfrastructure"); + final DeleteInfrastructureRequest interceptedRequest = + DeleteInfrastructureConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteInfrastructureConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "DeleteInfrastructure", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + DeleteInfrastructureConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteInfrastructureRequest, DeleteInfrastructureResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteInfrastructureRequest, DeleteInfrastructureResponse>, + 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< + DeleteInfrastructureRequest, DeleteInfrastructureResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteVmClusterNetwork( + DeleteVmClusterNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> + handler) { + LOG.trace("Called async deleteVmClusterNetwork"); + final DeleteVmClusterNetworkRequest interceptedRequest = + DeleteVmClusterNetworkConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "DeleteVmClusterNetwork", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + DeleteVmClusterNetworkConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse>, + 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< + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteVmInstance( + DeleteVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteVmInstanceRequest, DeleteVmInstanceResponse> + handler) { + LOG.trace("Called async deleteVmInstance"); + final DeleteVmInstanceRequest interceptedRequest = + DeleteVmInstanceConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteVmInstanceConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "DeleteVmInstance", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + DeleteVmInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteVmInstanceRequest, DeleteVmInstanceResponse>, + 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< + DeleteVmInstanceRequest, DeleteVmInstanceResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + downloadInfrastructureConfigFile( + DownloadInfrastructureConfigFileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DownloadInfrastructureConfigFileRequest, + DownloadInfrastructureConfigFileResponse> + handler) { + LOG.trace("Called async downloadInfrastructureConfigFile"); + final DownloadInfrastructureConfigFileRequest interceptedRequest = + DownloadInfrastructureConfigFileConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DownloadInfrastructureConfigFileConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "DownloadInfrastructureConfigFile", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, DownloadInfrastructureConfigFileResponse> + transformer = + DownloadInfrastructureConfigFileConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DownloadInfrastructureConfigFileRequest, + DownloadInfrastructureConfigFileResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DownloadInfrastructureConfigFileRequest, + DownloadInfrastructureConfigFileResponse>, + 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< + DownloadInfrastructureConfigFileRequest, + DownloadInfrastructureConfigFileResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + downloadInfrastructureValidationScript( + DownloadInfrastructureValidationScriptRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DownloadInfrastructureValidationScriptRequest, + DownloadInfrastructureValidationScriptResponse> + handler) { + LOG.trace("Called async downloadInfrastructureValidationScript"); + final DownloadInfrastructureValidationScriptRequest interceptedRequest = + DownloadInfrastructureValidationScriptConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DownloadInfrastructureValidationScriptConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "DownloadInfrastructureValidationScript", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, DownloadInfrastructureValidationScriptResponse> + transformer = + DownloadInfrastructureValidationScriptConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DownloadInfrastructureValidationScriptRequest, + DownloadInfrastructureValidationScriptResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DownloadInfrastructureValidationScriptRequest, + DownloadInfrastructureValidationScriptResponse>, + 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< + DownloadInfrastructureValidationScriptRequest, + DownloadInfrastructureValidationScriptResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + generateRecommendedVmClusterNetwork( + GenerateRecommendedVmClusterNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateRecommendedVmClusterNetworkRequest, + GenerateRecommendedVmClusterNetworkResponse> + handler) { + LOG.trace("Called async generateRecommendedVmClusterNetwork"); + final GenerateRecommendedVmClusterNetworkRequest interceptedRequest = + GenerateRecommendedVmClusterNetworkConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateRecommendedVmClusterNetworkConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "GenerateRecommendedVmClusterNetwork", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, GenerateRecommendedVmClusterNetworkResponse> + transformer = + GenerateRecommendedVmClusterNetworkConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GenerateRecommendedVmClusterNetworkRequest, + GenerateRecommendedVmClusterNetworkResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GenerateRecommendedVmClusterNetworkRequest, + GenerateRecommendedVmClusterNetworkResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getGenerateRecommendedVmClusterNetworkDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GenerateRecommendedVmClusterNetworkRequest, + GenerateRecommendedVmClusterNetworkResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getInfrastructure( + GetInfrastructureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetInfrastructureRequest, GetInfrastructureResponse> + handler) { + LOG.trace("Called async getInfrastructure"); + final GetInfrastructureRequest interceptedRequest = + GetInfrastructureConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetInfrastructureConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "GetInfrastructure", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + GetInfrastructureConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetInfrastructureRequest, GetInfrastructureResponse>, + 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< + GetInfrastructureRequest, GetInfrastructureResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getInfrastructureScaleOption( + GetInfrastructureScaleOptionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetInfrastructureScaleOptionRequest, + GetInfrastructureScaleOptionResponse> + handler) { + LOG.trace("Called async getInfrastructureScaleOption"); + final GetInfrastructureScaleOptionRequest interceptedRequest = + GetInfrastructureScaleOptionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetInfrastructureScaleOptionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "GetInfrastructureScaleOption", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, GetInfrastructureScaleOptionResponse> + transformer = + GetInfrastructureScaleOptionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetInfrastructureScaleOptionRequest, GetInfrastructureScaleOptionResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetInfrastructureScaleOptionRequest, + GetInfrastructureScaleOptionResponse>, + 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< + GetInfrastructureScaleOptionRequest, GetInfrastructureScaleOptionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getMaintenanceExecution( + GetMaintenanceExecutionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse> + handler) { + LOG.trace("Called async getMaintenanceExecution"); + final GetMaintenanceExecutionRequest interceptedRequest = + GetMaintenanceExecutionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetMaintenanceExecutionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "GetMaintenanceExecution", ib.getRequestUri().toString(), ""); + final java.util.function.Function< + javax.ws.rs.core.Response, GetMaintenanceExecutionResponse> + transformer = + GetMaintenanceExecutionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse>, + 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< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getMaintenanceRun( + GetMaintenanceRunRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetMaintenanceRunRequest, GetMaintenanceRunResponse> + handler) { + LOG.trace("Called async getMaintenanceRun"); + final GetMaintenanceRunRequest interceptedRequest = + GetMaintenanceRunConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetMaintenanceRunConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "GetMaintenanceRun", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + GetMaintenanceRunConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetMaintenanceRunRequest, GetMaintenanceRunResponse>, + 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< + GetMaintenanceRunRequest, GetMaintenanceRunResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getVmClusterNetwork( + GetVmClusterNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetVmClusterNetworkRequest, GetVmClusterNetworkResponse> + handler) { + LOG.trace("Called async getVmClusterNetwork"); + final GetVmClusterNetworkRequest interceptedRequest = + GetVmClusterNetworkConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "GetVmClusterNetwork", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + GetVmClusterNetworkConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetVmClusterNetworkRequest, GetVmClusterNetworkResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetVmClusterNetworkRequest, GetVmClusterNetworkResponse>, + 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< + GetVmClusterNetworkRequest, GetVmClusterNetworkResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getVmInstance( + GetVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getVmInstance"); + final GetVmInstanceRequest interceptedRequest = + GetVmInstanceConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetVmInstanceConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "GetVmInstance", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + GetVmInstanceConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetVmInstanceRequest, GetVmInstanceResponse>, + 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< + GetVmInstanceRequest, GetVmInstanceResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse> + handler) { + LOG.trace("Called async getWorkRequest"); + final GetWorkRequestRequest interceptedRequest = + GetWorkRequestConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetWorkRequestConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "GetWorkRequest", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse>, + 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< + GetWorkRequestRequest, GetWorkRequestResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listInfrastructures( + ListInfrastructuresRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListInfrastructuresRequest, ListInfrastructuresResponse> + handler) { + LOG.trace("Called async listInfrastructures"); + final ListInfrastructuresRequest interceptedRequest = + ListInfrastructuresConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListInfrastructuresConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ListInfrastructures", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ListInfrastructuresConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListInfrastructuresRequest, ListInfrastructuresResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListInfrastructuresRequest, ListInfrastructuresResponse>, + 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< + ListInfrastructuresRequest, ListInfrastructuresResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listMaintenanceExecutions( + ListMaintenanceExecutionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListMaintenanceExecutionsRequest, ListMaintenanceExecutionsResponse> + handler) { + LOG.trace("Called async listMaintenanceExecutions"); + final ListMaintenanceExecutionsRequest interceptedRequest = + ListMaintenanceExecutionsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListMaintenanceExecutionsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "ListMaintenanceExecutions", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ListMaintenanceExecutionsResponse> + transformer = + ListMaintenanceExecutionsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListMaintenanceExecutionsRequest, ListMaintenanceExecutionsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListMaintenanceExecutionsRequest, + ListMaintenanceExecutionsResponse>, + 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< + ListMaintenanceExecutionsRequest, ListMaintenanceExecutionsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listMaintenanceRuns( + ListMaintenanceRunsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListMaintenanceRunsRequest, ListMaintenanceRunsResponse> + handler) { + LOG.trace("Called async listMaintenanceRuns"); + final ListMaintenanceRunsRequest interceptedRequest = + ListMaintenanceRunsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListMaintenanceRunsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ListMaintenanceRuns", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ListMaintenanceRunsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListMaintenanceRunsRequest, ListMaintenanceRunsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListMaintenanceRunsRequest, ListMaintenanceRunsResponse>, + 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< + ListMaintenanceRunsRequest, ListMaintenanceRunsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listVmClusterNetworks( + ListVmClusterNetworksRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListVmClusterNetworksRequest, ListVmClusterNetworksResponse> + handler) { + LOG.trace("Called async listVmClusterNetworks"); + final ListVmClusterNetworksRequest interceptedRequest = + ListVmClusterNetworksConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListVmClusterNetworksConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ListVmClusterNetworks", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ListVmClusterNetworksConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListVmClusterNetworksRequest, ListVmClusterNetworksResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListVmClusterNetworksRequest, ListVmClusterNetworksResponse>, + 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< + ListVmClusterNetworksRequest, ListVmClusterNetworksResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listVmInstances( + ListVmInstancesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListVmInstancesRequest, ListVmInstancesResponse> + handler) { + LOG.trace("Called async listVmInstances"); + final ListVmInstancesRequest interceptedRequest = + ListVmInstancesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListVmInstancesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ListVmInstances", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ListVmInstancesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListVmInstancesRequest, ListVmInstancesResponse>, + 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< + ListVmInstancesRequest, ListVmInstancesResponse>( + (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, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler) { + LOG.trace("Called async listWorkRequestErrors"); + final ListWorkRequestErrorsRequest interceptedRequest = + ListWorkRequestErrorsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ListWorkRequestErrors", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ListWorkRequestErrorsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>, + 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< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler) { + LOG.trace("Called async listWorkRequestLogs"); + final ListWorkRequestLogsRequest interceptedRequest = + ListWorkRequestLogsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ListWorkRequestLogsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>, + 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< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse> + handler) { + LOG.trace("Called async listWorkRequests"); + final ListWorkRequestsRequest interceptedRequest = + ListWorkRequestsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ListWorkRequests", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ListWorkRequestsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse>, + 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< + ListWorkRequestsRequest, ListWorkRequestsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future migrateVmInstance( + MigrateVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + MigrateVmInstanceRequest, MigrateVmInstanceResponse> + handler) { + LOG.trace("Called async migrateVmInstance"); + final MigrateVmInstanceRequest interceptedRequest = + MigrateVmInstanceConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + MigrateVmInstanceConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "MigrateVmInstance", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + MigrateVmInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + MigrateVmInstanceRequest, MigrateVmInstanceResponse>, + 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< + MigrateVmInstanceRequest, MigrateVmInstanceResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future rescheduleMaintenanceRun( + RescheduleMaintenanceRunRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RescheduleMaintenanceRunRequest, RescheduleMaintenanceRunResponse> + handler) { + LOG.trace("Called async rescheduleMaintenanceRun"); + final RescheduleMaintenanceRunRequest interceptedRequest = + RescheduleMaintenanceRunConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RescheduleMaintenanceRunConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "RescheduleMaintenanceRun", ib.getRequestUri().toString(), ""); + final java.util.function.Function< + javax.ws.rs.core.Response, RescheduleMaintenanceRunResponse> + transformer = + RescheduleMaintenanceRunConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RescheduleMaintenanceRunRequest, RescheduleMaintenanceRunResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RescheduleMaintenanceRunRequest, RescheduleMaintenanceRunResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRescheduleMaintenanceRunDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + RescheduleMaintenanceRunRequest, RescheduleMaintenanceRunResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future restartVmInstance( + RestartVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RestartVmInstanceRequest, RestartVmInstanceResponse> + handler) { + LOG.trace("Called async restartVmInstance"); + final RestartVmInstanceRequest interceptedRequest = + RestartVmInstanceConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RestartVmInstanceConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "RestartVmInstance", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + RestartVmInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RestartVmInstanceRequest, RestartVmInstanceResponse>, + 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< + RestartVmInstanceRequest, RestartVmInstanceResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + scaleInfrastructureStorage( + ScaleInfrastructureStorageRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ScaleInfrastructureStorageRequest, + ScaleInfrastructureStorageResponse> + handler) { + LOG.trace("Called async scaleInfrastructureStorage"); + final ScaleInfrastructureStorageRequest interceptedRequest = + ScaleInfrastructureStorageConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ScaleInfrastructureStorageConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "ScaleInfrastructureStorage", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ScaleInfrastructureStorageResponse> + transformer = + ScaleInfrastructureStorageConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ScaleInfrastructureStorageRequest, ScaleInfrastructureStorageResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ScaleInfrastructureStorageRequest, + ScaleInfrastructureStorageResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getScaleInfrastructureStorageDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ScaleInfrastructureStorageRequest, ScaleInfrastructureStorageResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future scaleVmInstance( + ScaleVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ScaleVmInstanceRequest, ScaleVmInstanceResponse> + handler) { + LOG.trace("Called async scaleVmInstance"); + final ScaleVmInstanceRequest interceptedRequest = + ScaleVmInstanceConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ScaleVmInstanceConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ScaleVmInstance", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ScaleVmInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ScaleVmInstanceRequest, ScaleVmInstanceResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getScaleVmInstanceDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ScaleVmInstanceRequest, ScaleVmInstanceResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future startVmInstance( + StartVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + StartVmInstanceRequest, StartVmInstanceResponse> + handler) { + LOG.trace("Called async startVmInstance"); + final StartVmInstanceRequest interceptedRequest = + StartVmInstanceConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + StartVmInstanceConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "StartVmInstance", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + StartVmInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + StartVmInstanceRequest, StartVmInstanceResponse>, + 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< + StartVmInstanceRequest, StartVmInstanceResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future stopVmInstance( + StopVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + StopVmInstanceRequest, StopVmInstanceResponse> + handler) { + LOG.trace("Called async stopVmInstance"); + final StopVmInstanceRequest interceptedRequest = + StopVmInstanceConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + StopVmInstanceConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "StopVmInstance", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + StopVmInstanceConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + StopVmInstanceRequest, StopVmInstanceResponse>, + 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< + StopVmInstanceRequest, StopVmInstanceResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateInfrastructure( + UpdateInfrastructureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateInfrastructureRequest, UpdateInfrastructureResponse> + handler) { + LOG.trace("Called async updateInfrastructure"); + final UpdateInfrastructureRequest interceptedRequest = + UpdateInfrastructureConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateInfrastructureConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "UpdateInfrastructure", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + UpdateInfrastructureConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateInfrastructureRequest, UpdateInfrastructureResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateInfrastructureRequest, UpdateInfrastructureResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateInfrastructureDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateInfrastructureRequest, UpdateInfrastructureResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateMaintenanceRun( + UpdateMaintenanceRunRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateMaintenanceRunRequest, UpdateMaintenanceRunResponse> + handler) { + LOG.trace("Called async updateMaintenanceRun"); + final UpdateMaintenanceRunRequest interceptedRequest = + UpdateMaintenanceRunConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateMaintenanceRunConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "UpdateMaintenanceRun", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + UpdateMaintenanceRunConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateMaintenanceRunRequest, UpdateMaintenanceRunResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateMaintenanceRunRequest, UpdateMaintenanceRunResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateMaintenanceRunDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateMaintenanceRunRequest, UpdateMaintenanceRunResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateVmClusterNetwork( + UpdateVmClusterNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateVmClusterNetworkRequest, UpdateVmClusterNetworkResponse> + handler) { + LOG.trace("Called async updateVmClusterNetwork"); + final UpdateVmClusterNetworkRequest interceptedRequest = + UpdateVmClusterNetworkConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "UpdateVmClusterNetwork", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + UpdateVmClusterNetworkConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateVmClusterNetworkRequest, UpdateVmClusterNetworkResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateVmClusterNetworkRequest, UpdateVmClusterNetworkResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateVmClusterNetworkDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateVmClusterNetworkRequest, UpdateVmClusterNetworkResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateVmInstance( + UpdateVmInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateVmInstanceRequest, UpdateVmInstanceResponse> + handler) { + LOG.trace("Called async updateVmInstance"); + final UpdateVmInstanceRequest interceptedRequest = + UpdateVmInstanceConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateVmInstanceConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "UpdateVmInstance", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + UpdateVmInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateVmInstanceRequest, UpdateVmInstanceResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateVmInstanceDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateVmInstanceRequest, UpdateVmInstanceResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future validateInfrastructure( + ValidateInfrastructureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateInfrastructureRequest, ValidateInfrastructureResponse> + handler) { + LOG.trace("Called async validateInfrastructure"); + final ValidateInfrastructureRequest interceptedRequest = + ValidateInfrastructureConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ValidateInfrastructureConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ValidateInfrastructure", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ValidateInfrastructureConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ValidateInfrastructureRequest, ValidateInfrastructureResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ValidateInfrastructureRequest, ValidateInfrastructureResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getValidateInfrastructureDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ValidateInfrastructureRequest, ValidateInfrastructureResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future validateVmClusterNetwork( + ValidateVmClusterNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateVmClusterNetworkRequest, ValidateVmClusterNetworkResponse> + handler) { + LOG.trace("Called async validateVmClusterNetwork"); + final ValidateVmClusterNetworkRequest interceptedRequest = + ValidateVmClusterNetworkConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ValidateVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ValidateVmClusterNetwork", ib.getRequestUri().toString(), ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ValidateVmClusterNetworkResponse> + transformer = + ValidateVmClusterNetworkConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ValidateVmClusterNetworkRequest, ValidateVmClusterNetworkResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ValidateVmClusterNetworkRequest, ValidateVmClusterNetworkResponse>, + 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< + ValidateVmClusterNetworkRequest, ValidateVmClusterNetworkResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraClient.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraClient.java new file mode 100644 index 00000000000..135022dd10f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraClient.java @@ -0,0 +1,2111 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc; + +import com.oracle.bmc.datacc.internal.http.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.CircuitBreakerUtils; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class BaseinfraClient implements Baseinfra { + /** + * Service instance for Baseinfra. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(BaseinfraClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://datacc.{region}.ocp.{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; + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BaseinfraClient.class); + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + private final BaseinfraWaiters waiters; + + private final BaseinfraPaginators paginators; + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + circuitBreakerConfiguration; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public BaseinfraClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public BaseinfraClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public BaseinfraClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + */ + public BaseinfraClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + new java.util.ArrayList()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + */ + public BaseinfraClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + additionalClientConfigurators, + null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public BaseinfraClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory + .createDefaultRequestSignerFactories(), + additionalClientConfigurators, + endpoint); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public BaseinfraClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor + */ + public BaseinfraClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + executorService, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * Use the {@link Builder} to get access to all these parameters. + * + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + protected BaseinfraClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + this.restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + + this.clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + userCircuitBreakerConfiguration = + CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( + configuration); + if (userCircuitBreakerConfiguration == null) { + this.circuitBreakerConfiguration = + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; + } else { + this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; + } + + this.refreshClient(); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("Baseinfra-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new BaseinfraWaiters(executorService, this); + + this.paginators = new BaseinfraPaginators(this); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.http.ApacheUtils.getStreamWarningMessage( + "BaseinfraClient", + "downloadInfrastructureConfigFile,downloadInfrastructureValidationScript")); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public BaseinfraClient build( + @javax.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + if (authenticationDetailsProvider == null) { + throw new NullPointerException( + "authenticationDetailsProvider is marked non-null but is null"); + } + return new BaseinfraClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + executorService, + restClientFactoryBuilder); + } + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient, + null, + this.circuitBreakerConfiguration); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public ActivateInfrastructureResponse activateInfrastructure( + ActivateInfrastructureRequest request) { + LOG.trace("Called activateInfrastructure"); + final ActivateInfrastructureRequest interceptedRequest = + ActivateInfrastructureConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ActivateInfrastructureConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ActivateInfrastructure", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ActivateInfrastructureConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getActivateInfrastructureDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ChangeInfrastructureCompartmentResponse changeInfrastructureCompartment( + ChangeInfrastructureCompartmentRequest request) { + LOG.trace("Called changeInfrastructureCompartment"); + final ChangeInfrastructureCompartmentRequest interceptedRequest = + ChangeInfrastructureCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeInfrastructureCompartmentConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "ChangeInfrastructureCompartment", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeInfrastructureCompartmentResponse> + transformer = + ChangeInfrastructureCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getChangeInfrastructureCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ChangeVmClusterNetworkCompartmentResponse changeVmClusterNetworkCompartment( + ChangeVmClusterNetworkCompartmentRequest request) { + LOG.trace("Called changeVmClusterNetworkCompartment"); + final ChangeVmClusterNetworkCompartmentRequest interceptedRequest = + ChangeVmClusterNetworkCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeVmClusterNetworkCompartmentConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "ChangeVmClusterNetworkCompartment", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeVmClusterNetworkCompartmentResponse> + transformer = + ChangeVmClusterNetworkCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getChangeVmClusterNetworkCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ChangeVmInstanceCompartmentResponse changeVmInstanceCompartment( + ChangeVmInstanceCompartmentRequest request) { + LOG.trace("Called changeVmInstanceCompartment"); + final ChangeVmInstanceCompartmentRequest interceptedRequest = + ChangeVmInstanceCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeVmInstanceCompartmentConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "ChangeVmInstanceCompartment", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + ChangeVmInstanceCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getChangeVmInstanceCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateInfrastructureResponse createInfrastructure(CreateInfrastructureRequest request) { + LOG.trace("Called createInfrastructure"); + final CreateInfrastructureRequest interceptedRequest = + CreateInfrastructureConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateInfrastructureConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "CreateInfrastructure", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + CreateInfrastructureConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateInfrastructureDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateVmClusterNetworkResponse createVmClusterNetwork( + CreateVmClusterNetworkRequest request) { + LOG.trace("Called createVmClusterNetwork"); + final CreateVmClusterNetworkRequest interceptedRequest = + CreateVmClusterNetworkConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "CreateVmClusterNetwork", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + CreateVmClusterNetworkConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateVmClusterNetworkDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateVmInstanceResponse createVmInstance(CreateVmInstanceRequest request) { + LOG.trace("Called createVmInstance"); + final CreateVmInstanceRequest interceptedRequest = + CreateVmInstanceConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateVmInstanceConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "CreateVmInstance", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + CreateVmInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateVmInstanceDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteInfrastructureResponse deleteInfrastructure(DeleteInfrastructureRequest request) { + LOG.trace("Called deleteInfrastructure"); + final DeleteInfrastructureRequest interceptedRequest = + DeleteInfrastructureConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteInfrastructureConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "DeleteInfrastructure", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + DeleteInfrastructureConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteVmClusterNetworkResponse deleteVmClusterNetwork( + DeleteVmClusterNetworkRequest request) { + LOG.trace("Called deleteVmClusterNetwork"); + final DeleteVmClusterNetworkRequest interceptedRequest = + DeleteVmClusterNetworkConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "DeleteVmClusterNetwork", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + DeleteVmClusterNetworkConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteVmInstanceResponse deleteVmInstance(DeleteVmInstanceRequest request) { + LOG.trace("Called deleteVmInstance"); + final DeleteVmInstanceRequest interceptedRequest = + DeleteVmInstanceConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteVmInstanceConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "DeleteVmInstance", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + DeleteVmInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DownloadInfrastructureConfigFileResponse downloadInfrastructureConfigFile( + DownloadInfrastructureConfigFileRequest request) { + LOG.trace("Called downloadInfrastructureConfigFile"); + final DownloadInfrastructureConfigFileRequest interceptedRequest = + DownloadInfrastructureConfigFileConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DownloadInfrastructureConfigFileConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "DownloadInfrastructureConfigFile", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, DownloadInfrastructureConfigFileResponse> + transformer = + DownloadInfrastructureConfigFileConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DownloadInfrastructureValidationScriptResponse downloadInfrastructureValidationScript( + DownloadInfrastructureValidationScriptRequest request) { + LOG.trace("Called downloadInfrastructureValidationScript"); + final DownloadInfrastructureValidationScriptRequest interceptedRequest = + DownloadInfrastructureValidationScriptConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DownloadInfrastructureValidationScriptConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "DownloadInfrastructureValidationScript", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, DownloadInfrastructureValidationScriptResponse> + transformer = + DownloadInfrastructureValidationScriptConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GenerateRecommendedVmClusterNetworkResponse generateRecommendedVmClusterNetwork( + GenerateRecommendedVmClusterNetworkRequest request) { + LOG.trace("Called generateRecommendedVmClusterNetwork"); + final GenerateRecommendedVmClusterNetworkRequest interceptedRequest = + GenerateRecommendedVmClusterNetworkConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateRecommendedVmClusterNetworkConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "GenerateRecommendedVmClusterNetwork", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, GenerateRecommendedVmClusterNetworkResponse> + transformer = + GenerateRecommendedVmClusterNetworkConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getGenerateRecommendedVmClusterNetworkDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetInfrastructureResponse getInfrastructure(GetInfrastructureRequest request) { + LOG.trace("Called getInfrastructure"); + final GetInfrastructureRequest interceptedRequest = + GetInfrastructureConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetInfrastructureConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "GetInfrastructure", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + GetInfrastructureConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetInfrastructureScaleOptionResponse getInfrastructureScaleOption( + GetInfrastructureScaleOptionRequest request) { + LOG.trace("Called getInfrastructureScaleOption"); + final GetInfrastructureScaleOptionRequest interceptedRequest = + GetInfrastructureScaleOptionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetInfrastructureScaleOptionConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "GetInfrastructureScaleOption", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + GetInfrastructureScaleOptionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetMaintenanceExecutionResponse getMaintenanceExecution( + GetMaintenanceExecutionRequest request) { + LOG.trace("Called getMaintenanceExecution"); + final GetMaintenanceExecutionRequest interceptedRequest = + GetMaintenanceExecutionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetMaintenanceExecutionConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "GetMaintenanceExecution", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + GetMaintenanceExecutionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetMaintenanceRunResponse getMaintenanceRun(GetMaintenanceRunRequest request) { + LOG.trace("Called getMaintenanceRun"); + final GetMaintenanceRunRequest interceptedRequest = + GetMaintenanceRunConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetMaintenanceRunConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "GetMaintenanceRun", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + GetMaintenanceRunConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetVmClusterNetworkResponse getVmClusterNetwork(GetVmClusterNetworkRequest request) { + LOG.trace("Called getVmClusterNetwork"); + final GetVmClusterNetworkRequest interceptedRequest = + GetVmClusterNetworkConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "GetVmClusterNetwork", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + GetVmClusterNetworkConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetVmInstanceResponse getVmInstance(GetVmInstanceRequest request) { + LOG.trace("Called getVmInstance"); + final GetVmInstanceRequest interceptedRequest = + GetVmInstanceConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetVmInstanceConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "GetVmInstance", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = + GetVmInstanceConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + LOG.trace("Called getWorkRequest"); + final GetWorkRequestRequest interceptedRequest = + GetWorkRequestConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetWorkRequestConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "GetWorkRequest", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = + GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListInfrastructuresResponse listInfrastructures(ListInfrastructuresRequest request) { + LOG.trace("Called listInfrastructures"); + final ListInfrastructuresRequest interceptedRequest = + ListInfrastructuresConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListInfrastructuresConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ListInfrastructures", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ListInfrastructuresConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListMaintenanceExecutionsResponse listMaintenanceExecutions( + ListMaintenanceExecutionsRequest request) { + LOG.trace("Called listMaintenanceExecutions"); + final ListMaintenanceExecutionsRequest interceptedRequest = + ListMaintenanceExecutionsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListMaintenanceExecutionsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "ListMaintenanceExecutions", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + ListMaintenanceExecutionsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListMaintenanceRunsResponse listMaintenanceRuns(ListMaintenanceRunsRequest request) { + LOG.trace("Called listMaintenanceRuns"); + final ListMaintenanceRunsRequest interceptedRequest = + ListMaintenanceRunsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListMaintenanceRunsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ListMaintenanceRuns", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ListMaintenanceRunsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListVmClusterNetworksResponse listVmClusterNetworks( + ListVmClusterNetworksRequest request) { + LOG.trace("Called listVmClusterNetworks"); + final ListVmClusterNetworksRequest interceptedRequest = + ListVmClusterNetworksConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListVmClusterNetworksConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ListVmClusterNetworks", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ListVmClusterNetworksConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListVmInstancesResponse listVmInstances(ListVmInstancesRequest request) { + LOG.trace("Called listVmInstances"); + final ListVmInstancesRequest interceptedRequest = + ListVmInstancesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListVmInstancesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ListVmInstances", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ListVmInstancesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + LOG.trace("Called listWorkRequestErrors"); + final ListWorkRequestErrorsRequest interceptedRequest = + ListWorkRequestErrorsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ListWorkRequestErrors", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ListWorkRequestErrorsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { + LOG.trace("Called listWorkRequestLogs"); + final ListWorkRequestLogsRequest interceptedRequest = + ListWorkRequestLogsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ListWorkRequestLogsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { + LOG.trace("Called listWorkRequests"); + final ListWorkRequestsRequest interceptedRequest = + ListWorkRequestsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ListWorkRequests", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ListWorkRequestsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public MigrateVmInstanceResponse migrateVmInstance(MigrateVmInstanceRequest request) { + LOG.trace("Called migrateVmInstance"); + final MigrateVmInstanceRequest interceptedRequest = + MigrateVmInstanceConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + MigrateVmInstanceConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "MigrateVmInstance", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + MigrateVmInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public RescheduleMaintenanceRunResponse rescheduleMaintenanceRun( + RescheduleMaintenanceRunRequest request) { + LOG.trace("Called rescheduleMaintenanceRun"); + final RescheduleMaintenanceRunRequest interceptedRequest = + RescheduleMaintenanceRunConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RescheduleMaintenanceRunConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "RescheduleMaintenanceRun", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + RescheduleMaintenanceRunConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getRescheduleMaintenanceRunDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public RestartVmInstanceResponse restartVmInstance(RestartVmInstanceRequest request) { + LOG.trace("Called restartVmInstance"); + final RestartVmInstanceRequest interceptedRequest = + RestartVmInstanceConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RestartVmInstanceConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "RestartVmInstance", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + RestartVmInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ScaleInfrastructureStorageResponse scaleInfrastructureStorage( + ScaleInfrastructureStorageRequest request) { + LOG.trace("Called scaleInfrastructureStorage"); + final ScaleInfrastructureStorageRequest interceptedRequest = + ScaleInfrastructureStorageConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ScaleInfrastructureStorageConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", + "ScaleInfrastructureStorage", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + ScaleInfrastructureStorageConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getScaleInfrastructureStorageDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ScaleVmInstanceResponse scaleVmInstance(ScaleVmInstanceRequest request) { + LOG.trace("Called scaleVmInstance"); + final ScaleVmInstanceRequest interceptedRequest = + ScaleVmInstanceConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ScaleVmInstanceConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ScaleVmInstance", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ScaleVmInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getScaleVmInstanceDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public StartVmInstanceResponse startVmInstance(StartVmInstanceRequest request) { + LOG.trace("Called startVmInstance"); + final StartVmInstanceRequest interceptedRequest = + StartVmInstanceConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + StartVmInstanceConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "StartVmInstance", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + StartVmInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public StopVmInstanceResponse stopVmInstance(StopVmInstanceRequest request) { + LOG.trace("Called stopVmInstance"); + final StopVmInstanceRequest interceptedRequest = + StopVmInstanceConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + StopVmInstanceConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "StopVmInstance", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = + StopVmInstanceConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateInfrastructureResponse updateInfrastructure(UpdateInfrastructureRequest request) { + LOG.trace("Called updateInfrastructure"); + final UpdateInfrastructureRequest interceptedRequest = + UpdateInfrastructureConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateInfrastructureConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "UpdateInfrastructure", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + UpdateInfrastructureConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateInfrastructureDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateMaintenanceRunResponse updateMaintenanceRun(UpdateMaintenanceRunRequest request) { + LOG.trace("Called updateMaintenanceRun"); + final UpdateMaintenanceRunRequest interceptedRequest = + UpdateMaintenanceRunConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateMaintenanceRunConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "UpdateMaintenanceRun", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + UpdateMaintenanceRunConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateMaintenanceRunDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateVmClusterNetworkResponse updateVmClusterNetwork( + UpdateVmClusterNetworkRequest request) { + LOG.trace("Called updateVmClusterNetwork"); + final UpdateVmClusterNetworkRequest interceptedRequest = + UpdateVmClusterNetworkConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "UpdateVmClusterNetwork", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + UpdateVmClusterNetworkConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateVmClusterNetworkDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateVmInstanceResponse updateVmInstance(UpdateVmInstanceRequest request) { + LOG.trace("Called updateVmInstance"); + final UpdateVmInstanceRequest interceptedRequest = + UpdateVmInstanceConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateVmInstanceConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "UpdateVmInstance", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + UpdateVmInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateVmInstanceDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ValidateInfrastructureResponse validateInfrastructure( + ValidateInfrastructureRequest request) { + LOG.trace("Called validateInfrastructure"); + final ValidateInfrastructureRequest interceptedRequest = + ValidateInfrastructureConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ValidateInfrastructureConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ValidateInfrastructure", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ValidateInfrastructureConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getValidateInfrastructureDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ValidateVmClusterNetworkResponse validateVmClusterNetwork( + ValidateVmClusterNetworkRequest request) { + LOG.trace("Called validateVmClusterNetwork"); + final ValidateVmClusterNetworkRequest interceptedRequest = + ValidateVmClusterNetworkConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ValidateVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Baseinfra", "ValidateVmClusterNetwork", ib.getRequestUri().toString(), ""); + java.util.function.Function + transformer = + ValidateVmClusterNetworkConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public BaseinfraWaiters getWaiters() { + return waiters; + } + + @Override + public BaseinfraPaginators getPaginators() { + return paginators; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraPaginators.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraPaginators.java new file mode 100644 index 00000000000..7025d3254f7 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraPaginators.java @@ -0,0 +1,943 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc; + +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of Baseinfra where multiple pages of data may be fetched. + * Two styles of iteration are supported: + * + *

    + *
  • Iterating over the Response objects returned by the list operation. These are referred to as ResponseIterators, and the methods are suffixed with ResponseIterator. For example: listUsersResponseIterator
  • + *
  • Iterating over the resources/records being listed. These are referred to as RecordIterators, and the methods are suffixed with RecordIterator. For example: listUsersRecordIterator
  • + *
+ * + * These iterables abstract away the need to write code to manually handle pagination via looping and using the page tokens. + * They will automatically fetch more data from the service when required. + * + * As an example, if we were using the ListUsers operation in IdentityService, then the {@link java.lang.Iterable} returned by calling a + * ResponseIterator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. + * In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class BaseinfraPaginators { + private final Baseinfra client; + + public BaseinfraPaginators(Baseinfra client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listInfrastructures 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 listInfrastructuresResponseIterator( + final ListInfrastructuresRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListInfrastructuresRequest.Builder, ListInfrastructuresRequest, + ListInfrastructuresResponse>( + new java.util.function.Supplier() { + @Override + public ListInfrastructuresRequest.Builder get() { + return ListInfrastructuresRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListInfrastructuresResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInfrastructuresRequest.Builder>, + ListInfrastructuresRequest>() { + @Override + public ListInfrastructuresRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInfrastructuresRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListInfrastructuresRequest, ListInfrastructuresResponse>() { + @Override + public ListInfrastructuresResponse apply(ListInfrastructuresRequest request) { + return client.listInfrastructures(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacc.model.InfrastructureSummary} objects + * contained in responses from the listInfrastructures 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.datacc.model.InfrastructureSummary} objects + * contained in responses received from the service. + */ + public Iterable + listInfrastructuresRecordIterator(final ListInfrastructuresRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListInfrastructuresRequest.Builder, ListInfrastructuresRequest, + ListInfrastructuresResponse, com.oracle.bmc.datacc.model.InfrastructureSummary>( + new java.util.function.Supplier() { + @Override + public ListInfrastructuresRequest.Builder get() { + return ListInfrastructuresRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListInfrastructuresResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInfrastructuresRequest.Builder>, + ListInfrastructuresRequest>() { + @Override + public ListInfrastructuresRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInfrastructuresRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListInfrastructuresRequest, ListInfrastructuresResponse>() { + @Override + public ListInfrastructuresResponse apply(ListInfrastructuresRequest request) { + return client.listInfrastructures(request); + } + }, + new java.util.function.Function< + ListInfrastructuresResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListInfrastructuresResponse response) { + return response.getInfrastructureCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listMaintenanceExecutions 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 listMaintenanceExecutionsResponseIterator( + final ListMaintenanceExecutionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListMaintenanceExecutionsRequest.Builder, ListMaintenanceExecutionsRequest, + ListMaintenanceExecutionsResponse>( + new java.util.function.Supplier() { + @Override + public ListMaintenanceExecutionsRequest.Builder get() { + return ListMaintenanceExecutionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMaintenanceExecutionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceExecutionsRequest.Builder>, + ListMaintenanceExecutionsRequest>() { + @Override + public ListMaintenanceExecutionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceExecutionsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListMaintenanceExecutionsRequest, ListMaintenanceExecutionsResponse>() { + @Override + public ListMaintenanceExecutionsResponse apply( + ListMaintenanceExecutionsRequest request) { + return client.listMaintenanceExecutions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacc.model.MaintenanceExecutionSummary} objects + * contained in responses from the listMaintenanceExecutions 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.datacc.model.MaintenanceExecutionSummary} objects + * contained in responses received from the service. + */ + public Iterable + listMaintenanceExecutionsRecordIterator( + final ListMaintenanceExecutionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListMaintenanceExecutionsRequest.Builder, ListMaintenanceExecutionsRequest, + ListMaintenanceExecutionsResponse, + com.oracle.bmc.datacc.model.MaintenanceExecutionSummary>( + new java.util.function.Supplier() { + @Override + public ListMaintenanceExecutionsRequest.Builder get() { + return ListMaintenanceExecutionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMaintenanceExecutionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceExecutionsRequest.Builder>, + ListMaintenanceExecutionsRequest>() { + @Override + public ListMaintenanceExecutionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceExecutionsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListMaintenanceExecutionsRequest, ListMaintenanceExecutionsResponse>() { + @Override + public ListMaintenanceExecutionsResponse apply( + ListMaintenanceExecutionsRequest request) { + return client.listMaintenanceExecutions(request); + } + }, + new java.util.function.Function< + ListMaintenanceExecutionsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListMaintenanceExecutionsResponse response) { + return response.getMaintenanceExecutionCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listMaintenanceRuns 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 listMaintenanceRunsResponseIterator( + final ListMaintenanceRunsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListMaintenanceRunsRequest.Builder, ListMaintenanceRunsRequest, + ListMaintenanceRunsResponse>( + new java.util.function.Supplier() { + @Override + public ListMaintenanceRunsRequest.Builder get() { + return ListMaintenanceRunsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMaintenanceRunsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceRunsRequest.Builder>, + ListMaintenanceRunsRequest>() { + @Override + public ListMaintenanceRunsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceRunsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListMaintenanceRunsRequest, ListMaintenanceRunsResponse>() { + @Override + public ListMaintenanceRunsResponse apply(ListMaintenanceRunsRequest request) { + return client.listMaintenanceRuns(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacc.model.MaintenanceRunSummary} objects + * contained in responses from the listMaintenanceRuns 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.datacc.model.MaintenanceRunSummary} objects + * contained in responses received from the service. + */ + public Iterable + listMaintenanceRunsRecordIterator(final ListMaintenanceRunsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListMaintenanceRunsRequest.Builder, ListMaintenanceRunsRequest, + ListMaintenanceRunsResponse, com.oracle.bmc.datacc.model.MaintenanceRunSummary>( + new java.util.function.Supplier() { + @Override + public ListMaintenanceRunsRequest.Builder get() { + return ListMaintenanceRunsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMaintenanceRunsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceRunsRequest.Builder>, + ListMaintenanceRunsRequest>() { + @Override + public ListMaintenanceRunsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceRunsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListMaintenanceRunsRequest, ListMaintenanceRunsResponse>() { + @Override + public ListMaintenanceRunsResponse apply(ListMaintenanceRunsRequest request) { + return client.listMaintenanceRuns(request); + } + }, + new java.util.function.Function< + ListMaintenanceRunsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListMaintenanceRunsResponse response) { + return response.getMaintenanceRunCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listVmClusterNetworks 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 listVmClusterNetworksResponseIterator( + final ListVmClusterNetworksRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListVmClusterNetworksRequest.Builder, ListVmClusterNetworksRequest, + ListVmClusterNetworksResponse>( + new java.util.function.Supplier() { + @Override + public ListVmClusterNetworksRequest.Builder get() { + return ListVmClusterNetworksRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVmClusterNetworksResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmClusterNetworksRequest.Builder>, + ListVmClusterNetworksRequest>() { + @Override + public ListVmClusterNetworksRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmClusterNetworksRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListVmClusterNetworksRequest, ListVmClusterNetworksResponse>() { + @Override + public ListVmClusterNetworksResponse apply( + ListVmClusterNetworksRequest request) { + return client.listVmClusterNetworks(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacc.model.VmClusterNetworkSummary} objects + * contained in responses from the listVmClusterNetworks 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.datacc.model.VmClusterNetworkSummary} objects + * contained in responses received from the service. + */ + public Iterable + listVmClusterNetworksRecordIterator(final ListVmClusterNetworksRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListVmClusterNetworksRequest.Builder, ListVmClusterNetworksRequest, + ListVmClusterNetworksResponse, com.oracle.bmc.datacc.model.VmClusterNetworkSummary>( + new java.util.function.Supplier() { + @Override + public ListVmClusterNetworksRequest.Builder get() { + return ListVmClusterNetworksRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVmClusterNetworksResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmClusterNetworksRequest.Builder>, + ListVmClusterNetworksRequest>() { + @Override + public ListVmClusterNetworksRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmClusterNetworksRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListVmClusterNetworksRequest, ListVmClusterNetworksResponse>() { + @Override + public ListVmClusterNetworksResponse apply( + ListVmClusterNetworksRequest request) { + return client.listVmClusterNetworks(request); + } + }, + new java.util.function.Function< + ListVmClusterNetworksResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListVmClusterNetworksResponse response) { + return response.getVmClusterNetworkCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listVmInstances 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 listVmInstancesResponseIterator( + final ListVmInstancesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListVmInstancesRequest.Builder, ListVmInstancesRequest, ListVmInstancesResponse>( + new java.util.function.Supplier() { + @Override + public ListVmInstancesRequest.Builder get() { + return ListVmInstancesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVmInstancesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmInstancesRequest.Builder>, + ListVmInstancesRequest>() { + @Override + public ListVmInstancesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmInstancesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListVmInstancesResponse apply(ListVmInstancesRequest request) { + return client.listVmInstances(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacc.model.VmInstanceSummary} objects + * contained in responses from the listVmInstances 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.datacc.model.VmInstanceSummary} objects + * contained in responses received from the service. + */ + public Iterable listVmInstancesRecordIterator( + final ListVmInstancesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListVmInstancesRequest.Builder, ListVmInstancesRequest, ListVmInstancesResponse, + com.oracle.bmc.datacc.model.VmInstanceSummary>( + new java.util.function.Supplier() { + @Override + public ListVmInstancesRequest.Builder get() { + return ListVmInstancesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVmInstancesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmInstancesRequest.Builder>, + ListVmInstancesRequest>() { + @Override + public ListVmInstancesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVmInstancesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListVmInstancesResponse apply(ListVmInstancesRequest request) { + return client.listVmInstances(request); + } + }, + new java.util.function.Function< + ListVmInstancesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListVmInstancesResponse response) { + return response.getVmInstanceCollection().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. + * + * @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 listWorkRequestErrorsResponseIterator( + final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestErrorsRequest.Builder, ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacc.model.WorkRequestError} objects + * contained in responses from the listWorkRequestErrors 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.datacc.model.WorkRequestError} objects + * contained in responses received from the service. + */ + public Iterable + listWorkRequestErrorsRecordIterator(final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestErrorsRequest.Builder, ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse, com.oracle.bmc.datacc.model.WorkRequestError>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }, + new java.util.function.Function< + ListWorkRequestErrorsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListWorkRequestErrorsResponse response) { + return response.getWorkRequestErrorCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listWorkRequestLogs 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 listWorkRequestLogsResponseIterator( + final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestLogsRequest.Builder, ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacc.model.WorkRequestLogEntry} objects + * contained in responses from the listWorkRequestLogs 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.datacc.model.WorkRequestLogEntry} objects + * contained in responses received from the service. + */ + public Iterable + listWorkRequestLogsRecordIterator(final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestLogsRequest.Builder, ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse, com.oracle.bmc.datacc.model.WorkRequestLogEntry>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }, + new java.util.function.Function< + ListWorkRequestLogsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListWorkRequestLogsResponse response) { + return response.getWorkRequestLogEntryCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listWorkRequests 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 listWorkRequestsResponseIterator( + final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacc.model.WorkRequest} objects + * contained in responses from the listWorkRequests 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.datacc.model.WorkRequest} objects + * contained in responses received from the service. + */ + public Iterable listWorkRequestsRecordIterator( + final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse, + com.oracle.bmc.datacc.model.WorkRequest>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }, + new java.util.function.Function< + ListWorkRequestsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListWorkRequestsResponse response) { + return response.getWorkRequestCollection().getItems(); + } + }); + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraWaiters.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraWaiters.java new file mode 100644 index 00000000000..540a7963ce9 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/BaseinfraWaiters.java @@ -0,0 +1,601 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc; + +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of Baseinfra. + *

+ * The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class BaseinfraWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final Baseinfra client; + + public BaseinfraWaiters( + java.util.concurrent.ExecutorService executorService, Baseinfra client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @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 + forInfrastructure( + GetInfrastructureRequest request, + com.oracle.bmc.datacc.model.InfrastructureLifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forInfrastructure( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forInfrastructure( + GetInfrastructureRequest request, + com.oracle.bmc.datacc.model.InfrastructureLifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forInfrastructure( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forInfrastructure( + GetInfrastructureRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datacc.model.InfrastructureLifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forInfrastructure( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Infrastructure. + private com.oracle.bmc.waiter.Waiter + forInfrastructure( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetInfrastructureRequest request, + final com.oracle.bmc.datacc.model.InfrastructureLifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetInfrastructureRequest, GetInfrastructureResponse>() { + @Override + public GetInfrastructureResponse apply( + GetInfrastructureRequest request) { + return client.getInfrastructure(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetInfrastructureResponse response) { + return targetStatesSet.contains( + response.getInfrastructure().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.datacc.model.InfrastructureLifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @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< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse> + forMaintenanceExecution( + GetMaintenanceExecutionRequest request, + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forMaintenanceExecution( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse> + forMaintenanceExecution( + GetMaintenanceExecutionRequest request, + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forMaintenanceExecution( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse> + forMaintenanceExecution( + GetMaintenanceExecutionRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forMaintenanceExecution( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for MaintenanceExecution. + private com.oracle.bmc.waiter.Waiter< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse> + forMaintenanceExecution( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetMaintenanceExecutionRequest request, + final com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetMaintenanceExecutionRequest, GetMaintenanceExecutionResponse>() { + @Override + public GetMaintenanceExecutionResponse apply( + GetMaintenanceExecutionRequest request) { + return client.getMaintenanceExecution(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetMaintenanceExecutionResponse response) { + return targetStatesSet.contains( + response.getMaintenanceExecution().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @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 + forMaintenanceRun( + GetMaintenanceRunRequest request, + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forMaintenanceRun( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forMaintenanceRun( + GetMaintenanceRunRequest request, + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forMaintenanceRun( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forMaintenanceRun( + GetMaintenanceRunRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forMaintenanceRun( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for MaintenanceRun. + private com.oracle.bmc.waiter.Waiter + forMaintenanceRun( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetMaintenanceRunRequest request, + final com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetMaintenanceRunRequest, GetMaintenanceRunResponse>() { + @Override + public GetMaintenanceRunResponse apply( + GetMaintenanceRunRequest request) { + return client.getMaintenanceRun(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetMaintenanceRunResponse response) { + return targetStatesSet.contains( + response.getMaintenanceRun().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @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 + forVmClusterNetwork( + GetVmClusterNetworkRequest request, + com.oracle.bmc.datacc.model.VmClusterNetworkLifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forVmClusterNetwork( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forVmClusterNetwork( + GetVmClusterNetworkRequest request, + com.oracle.bmc.datacc.model.VmClusterNetworkLifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forVmClusterNetwork( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forVmClusterNetwork( + GetVmClusterNetworkRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datacc.model.VmClusterNetworkLifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forVmClusterNetwork( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for VmClusterNetwork. + private com.oracle.bmc.waiter.Waiter + forVmClusterNetwork( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetVmClusterNetworkRequest request, + final com.oracle.bmc.datacc.model.VmClusterNetworkLifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetVmClusterNetworkRequest, GetVmClusterNetworkResponse>() { + @Override + public GetVmClusterNetworkResponse apply( + GetVmClusterNetworkRequest request) { + return client.getVmClusterNetwork(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetVmClusterNetworkResponse response) { + return targetStatesSet.contains( + response.getVmClusterNetwork().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.datacc.model.VmClusterNetworkLifecycleState + .Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @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 forVmInstance( + GetVmInstanceRequest request, + com.oracle.bmc.datacc.model.VmInstanceLifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forVmInstance( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forVmInstance( + GetVmInstanceRequest request, + com.oracle.bmc.datacc.model.VmInstanceLifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forVmInstance( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forVmInstance( + GetVmInstanceRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datacc.model.VmInstanceLifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forVmInstance( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for VmInstance. + private com.oracle.bmc.waiter.Waiter forVmInstance( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetVmInstanceRequest request, + final com.oracle.bmc.datacc.model.VmInstanceLifecycleState... targetStates) { + final java.util.Set targetStatesSet = + new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetVmInstanceRequest, GetVmInstanceResponse>() { + @Override + public GetVmInstanceResponse apply(GetVmInstanceRequest request) { + return client.getVmInstance(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetVmInstanceResponse response) { + return targetStatesSet.contains( + response.getVmInstance().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.datacc.model.VmInstanceLifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. + * + * @param request the request to send + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest(GetWorkRequestRequest request) { + return forWorkRequest(com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@linkcom.oracle.bmc.waiter. DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + return forWorkRequest( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request); + } + + // Helper method to create a new Waiter for WorkRequest. + private com.oracle.bmc.waiter.Waiter + forWorkRequest( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetWorkRequestRequest request) { + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetWorkRequestRequest, GetWorkRequestResponse>() { + @Override + public GetWorkRequestResponse apply(GetWorkRequestRequest request) { + return client.getWorkRequest(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetWorkRequestResponse response) { + // work requests are complete once the time finished is available + return response.getWorkRequest().getTimeFinished() != null; + } + }, + false), + request); + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/SdkClientsMetadata.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/SdkClientsMetadata.java new file mode 100644 index 00000000000..521b782ff61 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/SdkClientsMetadata.java @@ -0,0 +1,11 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc; + +import com.oracle.bmc.SdkClients; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +@SdkClients({BaseinfraAsyncClient.class, BaseinfraClient.class}) +public final class SdkClientsMetadata {} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ActivateInfrastructureConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ActivateInfrastructureConverter.java new file mode 100644 index 00000000000..57aa19cdfcb --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ActivateInfrastructureConverter.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ActivateInfrastructureConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ActivateInfrastructureConverter.class); + + public static com.oracle.bmc.datacc.requests.ActivateInfrastructureRequest interceptRequest( + com.oracle.bmc.datacc.requests.ActivateInfrastructureRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ActivateInfrastructureRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getActivateInfrastructureDetails(), + "activateInfrastructureDetails is required"); + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("infrastructures") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getInfrastructureId())) + .path("actions") + .path("activate"); + + 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.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ActivateInfrastructureResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ActivateInfrastructureResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ActivateInfrastructureResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ActivateInfrastructureResponse>() { + @Override + public com.oracle.bmc.datacc.responses.ActivateInfrastructureResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ActivateInfrastructureResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.Infrastructure>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.Infrastructure + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.Infrastructure + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.Infrastructure> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.ActivateInfrastructureResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .ActivateInfrastructureResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.infrastructure(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.ActivateInfrastructureResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ChangeInfrastructureCompartmentConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ChangeInfrastructureCompartmentConverter.java new file mode 100644 index 00000000000..b4aa0703c47 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ChangeInfrastructureCompartmentConverter.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeInfrastructureCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ChangeInfrastructureCompartmentConverter.class); + + public static com.oracle.bmc.datacc.requests.ChangeInfrastructureCompartmentRequest + interceptRequest( + com.oracle.bmc.datacc.requests.ChangeInfrastructureCompartmentRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ChangeInfrastructureCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + Validate.notNull( + request.getChangeInfrastructureCompartmentDetails(), + "changeInfrastructureCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("infrastructures") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getInfrastructureId())) + .path("actions") + .path("changeCompartment"); + + 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.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ChangeInfrastructureCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ChangeInfrastructureCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ChangeInfrastructureCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses + .ChangeInfrastructureCompartmentResponse>() { + @Override + public com.oracle.bmc.datacc.responses + .ChangeInfrastructureCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ChangeInfrastructureCompartmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.datacc.responses + .ChangeInfrastructureCompartmentResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .ChangeInfrastructureCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses + .ChangeInfrastructureCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ChangeVmClusterNetworkCompartmentConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ChangeVmClusterNetworkCompartmentConverter.java new file mode 100644 index 00000000000..42dfd1b8947 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ChangeVmClusterNetworkCompartmentConverter.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeVmClusterNetworkCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ChangeVmClusterNetworkCompartmentConverter.class); + + public static com.oracle.bmc.datacc.requests.ChangeVmClusterNetworkCompartmentRequest + interceptRequest( + com.oracle.bmc.datacc.requests.ChangeVmClusterNetworkCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ChangeVmClusterNetworkCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + Validate.notNull( + request.getChangeVmClusterNetworkCompartmentDetails(), + "changeVmClusterNetworkCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmClusterNetworks") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVmClusterNetworkId())) + .path("actions") + .path("changeCompartment"); + + 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.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ChangeVmClusterNetworkCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ChangeVmClusterNetworkCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ChangeVmClusterNetworkCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses + .ChangeVmClusterNetworkCompartmentResponse>() { + @Override + public com.oracle.bmc.datacc.responses + .ChangeVmClusterNetworkCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ChangeVmClusterNetworkCompartmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.datacc.responses + .ChangeVmClusterNetworkCompartmentResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .ChangeVmClusterNetworkCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses + .ChangeVmClusterNetworkCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ChangeVmInstanceCompartmentConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ChangeVmInstanceCompartmentConverter.java new file mode 100644 index 00000000000..c443c9feccb --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ChangeVmInstanceCompartmentConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeVmInstanceCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ChangeVmInstanceCompartmentConverter.class); + + public static com.oracle.bmc.datacc.requests.ChangeVmInstanceCompartmentRequest + interceptRequest( + com.oracle.bmc.datacc.requests.ChangeVmInstanceCompartmentRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ChangeVmInstanceCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + Validate.notNull( + request.getChangeVmInstanceCompartmentDetails(), + "changeVmInstanceCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVmInstanceId())) + .path("actions") + .path("changeCompartment"); + + 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.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ChangeVmInstanceCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ChangeVmInstanceCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ChangeVmInstanceCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses + .ChangeVmInstanceCompartmentResponse>() { + @Override + public com.oracle.bmc.datacc.responses + .ChangeVmInstanceCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ChangeVmInstanceCompartmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.datacc.responses.ChangeVmInstanceCompartmentResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .ChangeVmInstanceCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.ChangeVmInstanceCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/CreateInfrastructureConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/CreateInfrastructureConverter.java new file mode 100644 index 00000000000..1630b5419c4 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/CreateInfrastructureConverter.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateInfrastructureConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CreateInfrastructureConverter.class); + + public static com.oracle.bmc.datacc.requests.CreateInfrastructureRequest interceptRequest( + com.oracle.bmc.datacc.requests.CreateInfrastructureRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.CreateInfrastructureRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateInfrastructureDetails(), + "createInfrastructureDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20251101").path("infrastructures"); + + 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 (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.CreateInfrastructureResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.CreateInfrastructureResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.CreateInfrastructureResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.CreateInfrastructureResponse>() { + @Override + public com.oracle.bmc.datacc.responses.CreateInfrastructureResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.CreateInfrastructureResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.Infrastructure>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.Infrastructure + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.Infrastructure + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.Infrastructure> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.CreateInfrastructureResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .CreateInfrastructureResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.infrastructure(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.CreateInfrastructureResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/CreateVmClusterNetworkConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/CreateVmClusterNetworkConverter.java new file mode 100644 index 00000000000..bbcc1a55817 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/CreateVmClusterNetworkConverter.java @@ -0,0 +1,166 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateVmClusterNetworkConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CreateVmClusterNetworkConverter.class); + + public static com.oracle.bmc.datacc.requests.CreateVmClusterNetworkRequest interceptRequest( + com.oracle.bmc.datacc.requests.CreateVmClusterNetworkRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.CreateVmClusterNetworkRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateVmClusterNetworkDetails(), + "createVmClusterNetworkDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20251101").path("vmClusterNetworks"); + + 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 (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.CreateVmClusterNetworkResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.CreateVmClusterNetworkResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.CreateVmClusterNetworkResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.CreateVmClusterNetworkResponse>() { + @Override + public com.oracle.bmc.datacc.responses.CreateVmClusterNetworkResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.CreateVmClusterNetworkResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .VmClusterNetwork>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.VmClusterNetwork + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.VmClusterNetwork + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.VmClusterNetwork> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.CreateVmClusterNetworkResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .CreateVmClusterNetworkResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.vmClusterNetwork(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.CreateVmClusterNetworkResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/CreateVmInstanceConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/CreateVmInstanceConverter.java new file mode 100644 index 00000000000..17440332897 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/CreateVmInstanceConverter.java @@ -0,0 +1,161 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateVmInstanceConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CreateVmInstanceConverter.class); + + public static com.oracle.bmc.datacc.requests.CreateVmInstanceRequest interceptRequest( + com.oracle.bmc.datacc.requests.CreateVmInstanceRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.CreateVmInstanceRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateVmInstanceDetails(), "createVmInstanceDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20251101").path("vmInstances"); + + 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 (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.CreateVmInstanceResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.CreateVmInstanceResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.CreateVmInstanceResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.CreateVmInstanceResponse>() { + @Override + public com.oracle.bmc.datacc.responses.CreateVmInstanceResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.CreateVmInstanceResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.VmInstance>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.VmInstance.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.VmInstance.class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.VmInstance> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.CreateVmInstanceResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .CreateVmInstanceResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.vmInstance(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.CreateVmInstanceResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DeleteInfrastructureConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DeleteInfrastructureConverter.java new file mode 100644 index 00000000000..7ef3874a096 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DeleteInfrastructureConverter.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteInfrastructureConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteInfrastructureConverter.class); + + public static com.oracle.bmc.datacc.requests.DeleteInfrastructureRequest interceptRequest( + com.oracle.bmc.datacc.requests.DeleteInfrastructureRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.DeleteInfrastructureRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("infrastructures") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getInfrastructureId())); + + if (request.getIsForceDeleteInfrastructure() != null) { + target = + target.queryParam( + "isForceDeleteInfrastructure", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsForceDeleteInfrastructure())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DeleteInfrastructureResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DeleteInfrastructureResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DeleteInfrastructureResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DeleteInfrastructureResponse>() { + @Override + public com.oracle.bmc.datacc.responses.DeleteInfrastructureResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.DeleteInfrastructureResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.datacc.responses.DeleteInfrastructureResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .DeleteInfrastructureResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.datacc.responses.DeleteInfrastructureResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DeleteVmClusterNetworkConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DeleteVmClusterNetworkConverter.java new file mode 100644 index 00000000000..7f73530f517 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DeleteVmClusterNetworkConverter.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteVmClusterNetworkConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteVmClusterNetworkConverter.class); + + public static com.oracle.bmc.datacc.requests.DeleteVmClusterNetworkRequest interceptRequest( + com.oracle.bmc.datacc.requests.DeleteVmClusterNetworkRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.DeleteVmClusterNetworkRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmClusterNetworks") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVmClusterNetworkId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DeleteVmClusterNetworkResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DeleteVmClusterNetworkResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DeleteVmClusterNetworkResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DeleteVmClusterNetworkResponse>() { + @Override + public com.oracle.bmc.datacc.responses.DeleteVmClusterNetworkResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.DeleteVmClusterNetworkResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.datacc.responses.DeleteVmClusterNetworkResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .DeleteVmClusterNetworkResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.datacc.responses.DeleteVmClusterNetworkResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DeleteVmInstanceConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DeleteVmInstanceConverter.java new file mode 100644 index 00000000000..a3a0d4beb5f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DeleteVmInstanceConverter.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteVmInstanceConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteVmInstanceConverter.class); + + public static com.oracle.bmc.datacc.requests.DeleteVmInstanceRequest interceptRequest( + com.oracle.bmc.datacc.requests.DeleteVmInstanceRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.DeleteVmInstanceRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVmInstanceId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DeleteVmInstanceResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DeleteVmInstanceResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DeleteVmInstanceResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DeleteVmInstanceResponse>() { + @Override + public com.oracle.bmc.datacc.responses.DeleteVmInstanceResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.DeleteVmInstanceResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.datacc.responses.DeleteVmInstanceResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .DeleteVmInstanceResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.datacc.responses.DeleteVmInstanceResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DownloadInfrastructureConfigFileConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DownloadInfrastructureConfigFileConverter.java new file mode 100644 index 00000000000..099d5e98bb1 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DownloadInfrastructureConfigFileConverter.java @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DownloadInfrastructureConfigFileConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DownloadInfrastructureConfigFileConverter.class); + + public static com.oracle.bmc.datacc.requests.DownloadInfrastructureConfigFileRequest + interceptRequest( + com.oracle.bmc.datacc.requests.DownloadInfrastructureConfigFileRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.DownloadInfrastructureConfigFileRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("infrastructures") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getInfrastructureId())) + .path("actions") + .path("downloadConfigFile"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept("application/octet-stream"); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DownloadInfrastructureConfigFileResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DownloadInfrastructureConfigFileResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DownloadInfrastructureConfigFileResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses + .DownloadInfrastructureConfigFileResponse>() { + @Override + public com.oracle.bmc.datacc.responses + .DownloadInfrastructureConfigFileResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.DownloadInfrastructureConfigFileResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.io.InputStream>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + java.io.InputStream.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + java.io.InputStream.class); + } + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses + .DownloadInfrastructureConfigFileResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .DownloadInfrastructureConfigFileResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.inputStream(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> contentLengthHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-length"); + if (contentLengthHeader.isPresent()) { + builder.contentLength( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-length", + contentLengthHeader.get().get(0), + Long.class)); + } + + java.util.Optional> lastModifiedHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "last-modified"); + if (lastModifiedHeader.isPresent()) { + builder.lastModified( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "last-modified", + lastModifiedHeader.get().get(0), + java.util.Date.class)); + } + + com.oracle.bmc.datacc.responses + .DownloadInfrastructureConfigFileResponse + responseWrapper = builder.build(); + + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DownloadInfrastructureValidationScriptConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DownloadInfrastructureValidationScriptConverter.java new file mode 100644 index 00000000000..343a3b2d1cf --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/DownloadInfrastructureValidationScriptConverter.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DownloadInfrastructureValidationScriptConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + DownloadInfrastructureValidationScriptConverter.class); + + public static com.oracle.bmc.datacc.requests.DownloadInfrastructureValidationScriptRequest + interceptRequest( + com.oracle.bmc.datacc.requests.DownloadInfrastructureValidationScriptRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.DownloadInfrastructureValidationScriptRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("infrastructures") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getInfrastructureId())) + .path("actions") + .path("downloadValidationScript"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept("application/octet-stream"); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DownloadInfrastructureValidationScriptResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.DownloadInfrastructureValidationScriptResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses + .DownloadInfrastructureValidationScriptResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses + .DownloadInfrastructureValidationScriptResponse>() { + @Override + public com.oracle.bmc.datacc.responses + .DownloadInfrastructureValidationScriptResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.DownloadInfrastructureValidationScriptResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.io.InputStream>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + java.io.InputStream.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + java.io.InputStream.class); + } + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses + .DownloadInfrastructureValidationScriptResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .DownloadInfrastructureValidationScriptResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.inputStream(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> contentLengthHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-length"); + if (contentLengthHeader.isPresent()) { + builder.contentLength( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-length", + contentLengthHeader.get().get(0), + Long.class)); + } + + java.util.Optional> lastModifiedHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "last-modified"); + if (lastModifiedHeader.isPresent()) { + builder.lastModified( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "last-modified", + lastModifiedHeader.get().get(0), + java.util.Date.class)); + } + + com.oracle.bmc.datacc.responses + .DownloadInfrastructureValidationScriptResponse + responseWrapper = builder.build(); + + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GenerateRecommendedVmClusterNetworkConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GenerateRecommendedVmClusterNetworkConverter.java new file mode 100644 index 00000000000..bb59ee0ac8a --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GenerateRecommendedVmClusterNetworkConverter.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GenerateRecommendedVmClusterNetworkConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GenerateRecommendedVmClusterNetworkConverter.class); + + public static com.oracle.bmc.datacc.requests.GenerateRecommendedVmClusterNetworkRequest + interceptRequest( + com.oracle.bmc.datacc.requests.GenerateRecommendedVmClusterNetworkRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.GenerateRecommendedVmClusterNetworkRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getGenerateRecommendedVmClusterNetworkDetails(), + "generateRecommendedVmClusterNetworkDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmClusterNetworks") + .path("actions") + .path("generateRecommendedVmClusterNetwork"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GenerateRecommendedVmClusterNetworkResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GenerateRecommendedVmClusterNetworkResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GenerateRecommendedVmClusterNetworkResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses + .GenerateRecommendedVmClusterNetworkResponse>() { + @Override + public com.oracle.bmc.datacc.responses + .GenerateRecommendedVmClusterNetworkResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.GenerateRecommendedVmClusterNetworkResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .CreateVmClusterNetworkDetails>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .CreateVmClusterNetworkDetails + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .CreateVmClusterNetworkDetails + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .CreateVmClusterNetworkDetails> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses + .GenerateRecommendedVmClusterNetworkResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .GenerateRecommendedVmClusterNetworkResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.createVmClusterNetworkDetails(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses + .GenerateRecommendedVmClusterNetworkResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetInfrastructureConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetInfrastructureConverter.java new file mode 100644 index 00000000000..559519f6e36 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetInfrastructureConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetInfrastructureConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetInfrastructureConverter.class); + + public static com.oracle.bmc.datacc.requests.GetInfrastructureRequest interceptRequest( + com.oracle.bmc.datacc.requests.GetInfrastructureRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.GetInfrastructureRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("infrastructures") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getInfrastructureId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetInfrastructureResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetInfrastructureResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetInfrastructureResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetInfrastructureResponse>() { + @Override + public com.oracle.bmc.datacc.responses.GetInfrastructureResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.GetInfrastructureResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.Infrastructure>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.Infrastructure + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.Infrastructure + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.Infrastructure> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.GetInfrastructureResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .GetInfrastructureResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.infrastructure(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.GetInfrastructureResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetInfrastructureScaleOptionConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetInfrastructureScaleOptionConverter.java new file mode 100644 index 00000000000..d1b5dd1360a --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetInfrastructureScaleOptionConverter.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetInfrastructureScaleOptionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetInfrastructureScaleOptionConverter.class); + + public static com.oracle.bmc.datacc.requests.GetInfrastructureScaleOptionRequest + interceptRequest( + com.oracle.bmc.datacc.requests.GetInfrastructureScaleOptionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.GetInfrastructureScaleOptionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("infrastructures") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getInfrastructureId())) + .path("scaleOptions"); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetInfrastructureScaleOptionResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetInfrastructureScaleOptionResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetInfrastructureScaleOptionResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses + .GetInfrastructureScaleOptionResponse>() { + @Override + public com.oracle.bmc.datacc.responses + .GetInfrastructureScaleOptionResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.GetInfrastructureScaleOptionResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .InfrastructureScaleOption>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .InfrastructureScaleOption + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .InfrastructureScaleOption + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .InfrastructureScaleOption> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.GetInfrastructureScaleOptionResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .GetInfrastructureScaleOptionResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.infrastructureScaleOption(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.GetInfrastructureScaleOptionResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetMaintenanceExecutionConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetMaintenanceExecutionConverter.java new file mode 100644 index 00000000000..7cc191660eb --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetMaintenanceExecutionConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetMaintenanceExecutionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetMaintenanceExecutionConverter.class); + + public static com.oracle.bmc.datacc.requests.GetMaintenanceExecutionRequest interceptRequest( + com.oracle.bmc.datacc.requests.GetMaintenanceExecutionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.GetMaintenanceExecutionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getMaintenanceExecutionId(), "maintenanceExecutionId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("maintenanceExecutions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMaintenanceExecutionId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetMaintenanceExecutionResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetMaintenanceExecutionResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetMaintenanceExecutionResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetMaintenanceExecutionResponse>() { + @Override + public com.oracle.bmc.datacc.responses.GetMaintenanceExecutionResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.GetMaintenanceExecutionResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .MaintenanceExecution>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.MaintenanceExecution + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.MaintenanceExecution + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.MaintenanceExecution> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.GetMaintenanceExecutionResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .GetMaintenanceExecutionResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.maintenanceExecution(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.GetMaintenanceExecutionResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetMaintenanceRunConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetMaintenanceRunConverter.java new file mode 100644 index 00000000000..752da426b4a --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetMaintenanceRunConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetMaintenanceRunConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetMaintenanceRunConverter.class); + + public static com.oracle.bmc.datacc.requests.GetMaintenanceRunRequest interceptRequest( + com.oracle.bmc.datacc.requests.GetMaintenanceRunRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.GetMaintenanceRunRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getMaintenanceRunId(), "maintenanceRunId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("maintenanceRuns") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMaintenanceRunId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetMaintenanceRunResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetMaintenanceRunResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetMaintenanceRunResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetMaintenanceRunResponse>() { + @Override + public com.oracle.bmc.datacc.responses.GetMaintenanceRunResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.GetMaintenanceRunResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.MaintenanceRun>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.MaintenanceRun + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.MaintenanceRun + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.MaintenanceRun> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.GetMaintenanceRunResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .GetMaintenanceRunResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.maintenanceRun(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.GetMaintenanceRunResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetVmClusterNetworkConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetVmClusterNetworkConverter.java new file mode 100644 index 00000000000..2e2c5fc6fac --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetVmClusterNetworkConverter.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetVmClusterNetworkConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetVmClusterNetworkConverter.class); + + public static com.oracle.bmc.datacc.requests.GetVmClusterNetworkRequest interceptRequest( + com.oracle.bmc.datacc.requests.GetVmClusterNetworkRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.GetVmClusterNetworkRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmClusterNetworks") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVmClusterNetworkId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetVmClusterNetworkResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetVmClusterNetworkResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetVmClusterNetworkResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetVmClusterNetworkResponse>() { + @Override + public com.oracle.bmc.datacc.responses.GetVmClusterNetworkResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.GetVmClusterNetworkResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .VmClusterNetwork>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.VmClusterNetwork + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.VmClusterNetwork + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.VmClusterNetwork> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.GetVmClusterNetworkResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .GetVmClusterNetworkResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.vmClusterNetwork(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.GetVmClusterNetworkResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetVmInstanceConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetVmInstanceConverter.java new file mode 100644 index 00000000000..7512a81dacc --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetVmInstanceConverter.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetVmInstanceConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetVmInstanceConverter.class); + + public static com.oracle.bmc.datacc.requests.GetVmInstanceRequest interceptRequest( + com.oracle.bmc.datacc.requests.GetVmInstanceRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.GetVmInstanceRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVmInstanceId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetVmInstanceResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetVmInstanceResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetVmInstanceResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetVmInstanceResponse>() { + @Override + public com.oracle.bmc.datacc.responses.GetVmInstanceResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.GetVmInstanceResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.VmInstance>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.VmInstance.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.VmInstance.class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.VmInstance> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.GetVmInstanceResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .GetVmInstanceResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.vmInstance(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.GetVmInstanceResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetWorkRequestConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetWorkRequestConverter.java new file mode 100644 index 00000000000..3b5eb8e4a57 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/GetWorkRequestConverter.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetWorkRequestConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetWorkRequestConverter.class); + + public static com.oracle.bmc.datacc.requests.GetWorkRequestRequest interceptRequest( + com.oracle.bmc.datacc.requests.GetWorkRequestRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.GetWorkRequestRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetWorkRequestResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetWorkRequestResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetWorkRequestResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.GetWorkRequestResponse>() { + @Override + public com.oracle.bmc.datacc.responses.GetWorkRequestResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.GetWorkRequestResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.WorkRequest>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.WorkRequest.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.WorkRequest.class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.WorkRequest> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.GetWorkRequestResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .GetWorkRequestResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequest(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> retryAfterHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "retry-after"); + if (retryAfterHeader.isPresent()) { + builder.retryAfter( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "retry-after", + retryAfterHeader.get().get(0), + Integer.class)); + } + + com.oracle.bmc.datacc.responses.GetWorkRequestResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListInfrastructuresConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListInfrastructuresConverter.java new file mode 100644 index 00000000000..f2a2d61e579 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListInfrastructuresConverter.java @@ -0,0 +1,197 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListInfrastructuresConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListInfrastructuresConverter.class); + + public static com.oracle.bmc.datacc.requests.ListInfrastructuresRequest interceptRequest( + com.oracle.bmc.datacc.requests.ListInfrastructuresRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ListInfrastructuresRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20251101").path("infrastructures"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "lifecycleState", + request.getLifecycleState(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListInfrastructuresResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListInfrastructuresResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListInfrastructuresResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListInfrastructuresResponse>() { + @Override + public com.oracle.bmc.datacc.responses.ListInfrastructuresResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ListInfrastructuresResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .InfrastructureCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .InfrastructureCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .InfrastructureCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .InfrastructureCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.ListInfrastructuresResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .ListInfrastructuresResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.infrastructureCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.datacc.responses.ListInfrastructuresResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListMaintenanceExecutionsConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListMaintenanceExecutionsConverter.java new file mode 100644 index 00000000000..3bf4627f2f5 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListMaintenanceExecutionsConverter.java @@ -0,0 +1,262 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListMaintenanceExecutionsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListMaintenanceExecutionsConverter.class); + + public static com.oracle.bmc.datacc.requests.ListMaintenanceExecutionsRequest interceptRequest( + com.oracle.bmc.datacc.requests.ListMaintenanceExecutionsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ListMaintenanceExecutionsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20251101").path("maintenanceExecutions"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getInfrastructureId() != null) { + target = + target.queryParam( + "infrastructureId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getInfrastructureId())); + } + + if (request.getTargetResourceType() != null) { + target = + target.queryParam( + "targetResourceType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTargetResourceType().getValue())); + } + + if (request.getMaintenanceType() != null) { + target = + target.queryParam( + "maintenanceType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getMaintenanceType().getValue())); + } + + if (request.getMaintenanceRunId() != null) { + target = + target.queryParam( + "maintenanceRunId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getMaintenanceRunId())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getMaintenanceSubtype() != null) { + target = + target.queryParam( + "maintenanceSubtype", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getMaintenanceSubtype().getValue())); + } + + if (request.getTimeAcceptedLessThanOrEqualTo() != null) { + target = + target.queryParam( + "timeAcceptedLessThanOrEqualTo", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeAcceptedLessThanOrEqualTo())); + } + + if (request.getTimeAcceptedGreaterThanOrEqualTo() != null) { + target = + target.queryParam( + "timeAcceptedGreaterThanOrEqualTo", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeAcceptedGreaterThanOrEqualTo())); + } + + if (request.getType() != null) { + target = + target.queryParam( + "type", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getType().getValue())); + } + + 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())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListMaintenanceExecutionsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListMaintenanceExecutionsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListMaintenanceExecutionsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses + .ListMaintenanceExecutionsResponse>() { + @Override + public com.oracle.bmc.datacc.responses.ListMaintenanceExecutionsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ListMaintenanceExecutionsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .MaintenanceExecutionCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .MaintenanceExecutionCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .MaintenanceExecutionCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .MaintenanceExecutionCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.ListMaintenanceExecutionsResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .ListMaintenanceExecutionsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.maintenanceExecutionCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.datacc.responses.ListMaintenanceExecutionsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListMaintenanceRunsConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListMaintenanceRunsConverter.java new file mode 100644 index 00000000000..32866b7dd5b --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListMaintenanceRunsConverter.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListMaintenanceRunsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListMaintenanceRunsConverter.class); + + public static com.oracle.bmc.datacc.requests.ListMaintenanceRunsRequest interceptRequest( + com.oracle.bmc.datacc.requests.ListMaintenanceRunsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ListMaintenanceRunsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20251101").path("maintenanceRuns"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getInfrastructureId() != null) { + target = + target.queryParam( + "infrastructureId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getInfrastructureId())); + } + + if (request.getTargetResourceType() != null) { + target = + target.queryParam( + "targetResourceType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTargetResourceType().getValue())); + } + + if (request.getMaintenanceType() != null) { + target = + target.queryParam( + "maintenanceType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getMaintenanceType().getValue())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getMaintenanceSubtype() != null) { + target = + target.queryParam( + "maintenanceSubtype", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getMaintenanceSubtype().getValue())); + } + + if (request.getTimeAcceptedLessThanOrEqualTo() != null) { + target = + target.queryParam( + "timeAcceptedLessThanOrEqualTo", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeAcceptedLessThanOrEqualTo())); + } + + if (request.getTimeAcceptedGreaterThanOrEqualTo() != null) { + target = + target.queryParam( + "timeAcceptedGreaterThanOrEqualTo", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeAcceptedGreaterThanOrEqualTo())); + } + + 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())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListMaintenanceRunsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListMaintenanceRunsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListMaintenanceRunsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListMaintenanceRunsResponse>() { + @Override + public com.oracle.bmc.datacc.responses.ListMaintenanceRunsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ListMaintenanceRunsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .MaintenanceRunCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .MaintenanceRunCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .MaintenanceRunCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .MaintenanceRunCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.ListMaintenanceRunsResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .ListMaintenanceRunsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.maintenanceRunCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.datacc.responses.ListMaintenanceRunsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListVmClusterNetworksConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListVmClusterNetworksConverter.java new file mode 100644 index 00000000000..ddef34ec616 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListVmClusterNetworksConverter.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListVmClusterNetworksConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListVmClusterNetworksConverter.class); + + public static com.oracle.bmc.datacc.requests.ListVmClusterNetworksRequest interceptRequest( + com.oracle.bmc.datacc.requests.ListVmClusterNetworksRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ListVmClusterNetworksRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20251101").path("vmClusterNetworks"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "lifecycleState", + request.getLifecycleState(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getIsScanEnabled() != null) { + target = + target.queryParam( + "isScanEnabled", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsScanEnabled())); + } + + 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())); + } + + if (request.getInfrastructureId() != null) { + target = + target.queryParam( + "infrastructureId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getInfrastructureId())); + } + + if (request.getNodeCount() != null) { + target = + target.queryParam( + "nodeCount", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getNodeCount())); + } + + if (request.getVmNetworkConsumerType() != null) { + target = + target.queryParam( + "vmNetworkConsumerType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getVmNetworkConsumerType().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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListVmClusterNetworksResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListVmClusterNetworksResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListVmClusterNetworksResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListVmClusterNetworksResponse>() { + @Override + public com.oracle.bmc.datacc.responses.ListVmClusterNetworksResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ListVmClusterNetworksResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .VmClusterNetworkCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .VmClusterNetworkCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .VmClusterNetworkCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .VmClusterNetworkCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.ListVmClusterNetworksResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .ListVmClusterNetworksResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.vmClusterNetworkCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.datacc.responses.ListVmClusterNetworksResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListVmInstancesConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListVmInstancesConverter.java new file mode 100644 index 00000000000..a6bd7f1ee55 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListVmInstancesConverter.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListVmInstancesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListVmInstancesConverter.class); + + public static com.oracle.bmc.datacc.requests.ListVmInstancesRequest interceptRequest( + com.oracle.bmc.datacc.requests.ListVmInstancesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ListVmInstancesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20251101").path("vmInstances"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "lifecycleState", + request.getLifecycleState(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + 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())); + } + + if (request.getInfrastructureId() != null) { + target = + target.queryParam( + "infrastructureId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getInfrastructureId())); + } + + if (request.getBaseServerId() != null) { + target = + target.queryParam( + "baseServerId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getBaseServerId())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListVmInstancesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListVmInstancesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListVmInstancesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListVmInstancesResponse>() { + @Override + public com.oracle.bmc.datacc.responses.ListVmInstancesResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ListVmInstancesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .VmInstanceCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.VmInstanceCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.VmInstanceCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.VmInstanceCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.ListVmInstancesResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .ListVmInstancesResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.vmInstanceCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.datacc.responses.ListVmInstancesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListWorkRequestErrorsConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListWorkRequestErrorsConverter.java new file mode 100644 index 00000000000..30dd62b31ec --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListWorkRequestErrorsConverter.java @@ -0,0 +1,173 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestErrorsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListWorkRequestErrorsConverter.class); + + public static com.oracle.bmc.datacc.requests.ListWorkRequestErrorsRequest interceptRequest( + com.oracle.bmc.datacc.requests.ListWorkRequestErrorsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ListWorkRequestErrorsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())) + .path("errors"); + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListWorkRequestErrorsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListWorkRequestErrorsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListWorkRequestErrorsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListWorkRequestErrorsResponse>() { + @Override + public com.oracle.bmc.datacc.responses.ListWorkRequestErrorsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ListWorkRequestErrorsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .WorkRequestErrorCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .WorkRequestErrorCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .WorkRequestErrorCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .WorkRequestErrorCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.ListWorkRequestErrorsResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .ListWorkRequestErrorsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequestErrorCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.datacc.responses.ListWorkRequestErrorsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListWorkRequestLogsConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListWorkRequestLogsConverter.java new file mode 100644 index 00000000000..dc7eb14e156 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListWorkRequestLogsConverter.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestLogsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListWorkRequestLogsConverter.class); + + public static com.oracle.bmc.datacc.requests.ListWorkRequestLogsRequest interceptRequest( + com.oracle.bmc.datacc.requests.ListWorkRequestLogsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ListWorkRequestLogsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())) + .path("logs"); + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListWorkRequestLogsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListWorkRequestLogsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListWorkRequestLogsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListWorkRequestLogsResponse>() { + @Override + public com.oracle.bmc.datacc.responses.ListWorkRequestLogsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ListWorkRequestLogsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .WorkRequestLogEntryCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .WorkRequestLogEntryCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .WorkRequestLogEntryCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .WorkRequestLogEntryCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.ListWorkRequestLogsResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .ListWorkRequestLogsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequestLogEntryCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.datacc.responses.ListWorkRequestLogsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListWorkRequestsConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListWorkRequestsConverter.java new file mode 100644 index 00000000000..d984bec350c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ListWorkRequestsConverter.java @@ -0,0 +1,171 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListWorkRequestsConverter.class); + + public static com.oracle.bmc.datacc.requests.ListWorkRequestsRequest interceptRequest( + com.oracle.bmc.datacc.requests.ListWorkRequestsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ListWorkRequestsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20251101").path("workRequests"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getResourceId() != null) { + target = + target.queryParam( + "resourceId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getResourceId())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListWorkRequestsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListWorkRequestsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListWorkRequestsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ListWorkRequestsResponse>() { + @Override + public com.oracle.bmc.datacc.responses.ListWorkRequestsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ListWorkRequestsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .WorkRequestCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .WorkRequestCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model + .WorkRequestCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.WorkRequestCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.ListWorkRequestsResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .ListWorkRequestsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequestCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.datacc.responses.ListWorkRequestsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/MigrateVmInstanceConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/MigrateVmInstanceConverter.java new file mode 100644 index 00000000000..2d5124a1e70 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/MigrateVmInstanceConverter.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class MigrateVmInstanceConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MigrateVmInstanceConverter.class); + + public static com.oracle.bmc.datacc.requests.MigrateVmInstanceRequest interceptRequest( + com.oracle.bmc.datacc.requests.MigrateVmInstanceRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.MigrateVmInstanceRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVmInstanceId())) + .path("actions") + .path("migrate"); + + 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.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.MigrateVmInstanceResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.MigrateVmInstanceResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.MigrateVmInstanceResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.MigrateVmInstanceResponse>() { + @Override + public com.oracle.bmc.datacc.responses.MigrateVmInstanceResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.MigrateVmInstanceResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.datacc.responses.MigrateVmInstanceResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .MigrateVmInstanceResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.MigrateVmInstanceResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/RescheduleMaintenanceRunConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/RescheduleMaintenanceRunConverter.java new file mode 100644 index 00000000000..f841df72f43 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/RescheduleMaintenanceRunConverter.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class RescheduleMaintenanceRunConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RescheduleMaintenanceRunConverter.class); + + public static com.oracle.bmc.datacc.requests.RescheduleMaintenanceRunRequest interceptRequest( + com.oracle.bmc.datacc.requests.RescheduleMaintenanceRunRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.RescheduleMaintenanceRunRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getMaintenanceRunId(), "maintenanceRunId must not be blank"); + Validate.notNull( + request.getRescheduleMaintenanceRunDetails(), + "rescheduleMaintenanceRunDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("maintenanceRuns") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMaintenanceRunId())) + .path("actions") + .path("reschedule"); + + 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()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.RescheduleMaintenanceRunResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.RescheduleMaintenanceRunResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.RescheduleMaintenanceRunResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses + .RescheduleMaintenanceRunResponse>() { + @Override + public com.oracle.bmc.datacc.responses.RescheduleMaintenanceRunResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.RescheduleMaintenanceRunResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.MaintenanceRun>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.MaintenanceRun + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.MaintenanceRun + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.MaintenanceRun> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.RescheduleMaintenanceRunResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .RescheduleMaintenanceRunResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.maintenanceRun(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.RescheduleMaintenanceRunResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/RestartVmInstanceConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/RestartVmInstanceConverter.java new file mode 100644 index 00000000000..a8ff260f8ca --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/RestartVmInstanceConverter.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class RestartVmInstanceConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RestartVmInstanceConverter.class); + + public static com.oracle.bmc.datacc.requests.RestartVmInstanceRequest interceptRequest( + com.oracle.bmc.datacc.requests.RestartVmInstanceRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.RestartVmInstanceRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVmInstanceId())) + .path("actions") + .path("restart"); + + 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.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.RestartVmInstanceResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.RestartVmInstanceResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.RestartVmInstanceResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.RestartVmInstanceResponse>() { + @Override + public com.oracle.bmc.datacc.responses.RestartVmInstanceResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.RestartVmInstanceResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.datacc.responses.RestartVmInstanceResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .RestartVmInstanceResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.RestartVmInstanceResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ScaleInfrastructureStorageConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ScaleInfrastructureStorageConverter.java new file mode 100644 index 00000000000..421723b3d99 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ScaleInfrastructureStorageConverter.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ScaleInfrastructureStorageConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ScaleInfrastructureStorageConverter.class); + + public static com.oracle.bmc.datacc.requests.ScaleInfrastructureStorageRequest interceptRequest( + com.oracle.bmc.datacc.requests.ScaleInfrastructureStorageRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ScaleInfrastructureStorageRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getScaleInfrastructureStorageDetails(), + "scaleInfrastructureStorageDetails is required"); + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("infrastructures") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getInfrastructureId())) + .path("actions") + .path("scaleStorage"); + + 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.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ScaleInfrastructureStorageResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ScaleInfrastructureStorageResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ScaleInfrastructureStorageResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses + .ScaleInfrastructureStorageResponse>() { + @Override + public com.oracle.bmc.datacc.responses + .ScaleInfrastructureStorageResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ScaleInfrastructureStorageResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.datacc.responses.ScaleInfrastructureStorageResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .ScaleInfrastructureStorageResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.ScaleInfrastructureStorageResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ScaleVmInstanceConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ScaleVmInstanceConverter.java new file mode 100644 index 00000000000..3ddbb86c05f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ScaleVmInstanceConverter.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ScaleVmInstanceConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ScaleVmInstanceConverter.class); + + public static com.oracle.bmc.datacc.requests.ScaleVmInstanceRequest interceptRequest( + com.oracle.bmc.datacc.requests.ScaleVmInstanceRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ScaleVmInstanceRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getScaleVmInstanceDetails(), "scaleVmInstanceDetails is required"); + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVmInstanceId())) + .path("actions") + .path("scale"); + + 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.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ScaleVmInstanceResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ScaleVmInstanceResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ScaleVmInstanceResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ScaleVmInstanceResponse>() { + @Override + public com.oracle.bmc.datacc.responses.ScaleVmInstanceResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ScaleVmInstanceResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.datacc.responses.ScaleVmInstanceResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .ScaleVmInstanceResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.ScaleVmInstanceResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/StartVmInstanceConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/StartVmInstanceConverter.java new file mode 100644 index 00000000000..64c5ff91e40 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/StartVmInstanceConverter.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class StartVmInstanceConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(StartVmInstanceConverter.class); + + public static com.oracle.bmc.datacc.requests.StartVmInstanceRequest interceptRequest( + com.oracle.bmc.datacc.requests.StartVmInstanceRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.StartVmInstanceRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVmInstanceId())) + .path("actions") + .path("start"); + + 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.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.StartVmInstanceResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.StartVmInstanceResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.StartVmInstanceResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.StartVmInstanceResponse>() { + @Override + public com.oracle.bmc.datacc.responses.StartVmInstanceResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.StartVmInstanceResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.datacc.responses.StartVmInstanceResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .StartVmInstanceResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.StartVmInstanceResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/StopVmInstanceConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/StopVmInstanceConverter.java new file mode 100644 index 00000000000..10277b98858 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/StopVmInstanceConverter.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class StopVmInstanceConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(StopVmInstanceConverter.class); + + public static com.oracle.bmc.datacc.requests.StopVmInstanceRequest interceptRequest( + com.oracle.bmc.datacc.requests.StopVmInstanceRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.StopVmInstanceRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVmInstanceId())) + .path("actions") + .path("stop"); + + 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.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.StopVmInstanceResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.StopVmInstanceResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.StopVmInstanceResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.StopVmInstanceResponse>() { + @Override + public com.oracle.bmc.datacc.responses.StopVmInstanceResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.StopVmInstanceResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.datacc.responses.StopVmInstanceResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .StopVmInstanceResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.StopVmInstanceResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/UpdateInfrastructureConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/UpdateInfrastructureConverter.java new file mode 100644 index 00000000000..5f7a81ee310 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/UpdateInfrastructureConverter.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateInfrastructureConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateInfrastructureConverter.class); + + public static com.oracle.bmc.datacc.requests.UpdateInfrastructureRequest interceptRequest( + com.oracle.bmc.datacc.requests.UpdateInfrastructureRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.UpdateInfrastructureRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getUpdateInfrastructureDetails(), + "updateInfrastructureDetails is required"); + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("infrastructures") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getInfrastructureId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateInfrastructureResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateInfrastructureResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateInfrastructureResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateInfrastructureResponse>() { + @Override + public com.oracle.bmc.datacc.responses.UpdateInfrastructureResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.UpdateInfrastructureResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.Infrastructure>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.Infrastructure + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.Infrastructure + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.Infrastructure> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.UpdateInfrastructureResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .UpdateInfrastructureResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.infrastructure(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.UpdateInfrastructureResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/UpdateMaintenanceRunConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/UpdateMaintenanceRunConverter.java new file mode 100644 index 00000000000..472850016ac --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/UpdateMaintenanceRunConverter.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateMaintenanceRunConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateMaintenanceRunConverter.class); + + public static com.oracle.bmc.datacc.requests.UpdateMaintenanceRunRequest interceptRequest( + com.oracle.bmc.datacc.requests.UpdateMaintenanceRunRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.UpdateMaintenanceRunRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getUpdateMaintenanceRunDetails(), + "updateMaintenanceRunDetails is required"); + Validate.notBlank(request.getMaintenanceRunId(), "maintenanceRunId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("maintenanceRuns") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMaintenanceRunId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateMaintenanceRunResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateMaintenanceRunResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateMaintenanceRunResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateMaintenanceRunResponse>() { + @Override + public com.oracle.bmc.datacc.responses.UpdateMaintenanceRunResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.UpdateMaintenanceRunResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.MaintenanceRun>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.MaintenanceRun + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.MaintenanceRun + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.MaintenanceRun> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.UpdateMaintenanceRunResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .UpdateMaintenanceRunResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.maintenanceRun(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.UpdateMaintenanceRunResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/UpdateVmClusterNetworkConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/UpdateVmClusterNetworkConverter.java new file mode 100644 index 00000000000..220fb0dcca0 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/UpdateVmClusterNetworkConverter.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateVmClusterNetworkConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateVmClusterNetworkConverter.class); + + public static com.oracle.bmc.datacc.requests.UpdateVmClusterNetworkRequest interceptRequest( + com.oracle.bmc.datacc.requests.UpdateVmClusterNetworkRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.UpdateVmClusterNetworkRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getUpdateVmClusterNetworkDetails(), + "updateVmClusterNetworkDetails is required"); + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmClusterNetworks") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVmClusterNetworkId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateVmClusterNetworkResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateVmClusterNetworkResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateVmClusterNetworkResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateVmClusterNetworkResponse>() { + @Override + public com.oracle.bmc.datacc.responses.UpdateVmClusterNetworkResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.UpdateVmClusterNetworkResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model + .VmClusterNetwork>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.VmClusterNetwork + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.VmClusterNetwork + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.VmClusterNetwork> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.UpdateVmClusterNetworkResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .UpdateVmClusterNetworkResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.vmClusterNetwork(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.UpdateVmClusterNetworkResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/UpdateVmInstanceConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/UpdateVmInstanceConverter.java new file mode 100644 index 00000000000..b37c9aa5f25 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/UpdateVmInstanceConverter.java @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateVmInstanceConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateVmInstanceConverter.class); + + public static com.oracle.bmc.datacc.requests.UpdateVmInstanceRequest interceptRequest( + com.oracle.bmc.datacc.requests.UpdateVmInstanceRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.UpdateVmInstanceRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getUpdateVmInstanceDetails(), "updateVmInstanceDetails is required"); + Validate.notBlank(request.getVmInstanceId(), "vmInstanceId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVmInstanceId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateVmInstanceResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateVmInstanceResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateVmInstanceResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.UpdateVmInstanceResponse>() { + @Override + public com.oracle.bmc.datacc.responses.UpdateVmInstanceResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.UpdateVmInstanceResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.VmInstance>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.VmInstance.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.VmInstance.class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.VmInstance> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.UpdateVmInstanceResponse.Builder + builder = + com.oracle.bmc.datacc.responses + .UpdateVmInstanceResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.vmInstance(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.UpdateVmInstanceResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ValidateInfrastructureConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ValidateInfrastructureConverter.java new file mode 100644 index 00000000000..0ac7fbfe5b5 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ValidateInfrastructureConverter.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ValidateInfrastructureConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ValidateInfrastructureConverter.class); + + public static com.oracle.bmc.datacc.requests.ValidateInfrastructureRequest interceptRequest( + com.oracle.bmc.datacc.requests.ValidateInfrastructureRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ValidateInfrastructureRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getValidateInfrastructureDetails(), + "validateInfrastructureDetails is required"); + Validate.notBlank(request.getInfrastructureId(), "infrastructureId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("infrastructures") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getInfrastructureId())) + .path("actions") + .path("validate"); + + 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.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ValidateInfrastructureResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ValidateInfrastructureResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ValidateInfrastructureResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ValidateInfrastructureResponse>() { + @Override + public com.oracle.bmc.datacc.responses.ValidateInfrastructureResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ValidateInfrastructureResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.Infrastructure>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.Infrastructure + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datacc.model.Infrastructure + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datacc.model.Infrastructure> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datacc.responses.ValidateInfrastructureResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .ValidateInfrastructureResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.infrastructure(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.ValidateInfrastructureResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ValidateVmClusterNetworkConverter.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ValidateVmClusterNetworkConverter.java new file mode 100644 index 00000000000..d9e14748660 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/internal/http/ValidateVmClusterNetworkConverter.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacc.model.*; +import com.oracle.bmc.datacc.requests.*; +import com.oracle.bmc.datacc.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ValidateVmClusterNetworkConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ValidateVmClusterNetworkConverter.class); + + public static com.oracle.bmc.datacc.requests.ValidateVmClusterNetworkRequest interceptRequest( + com.oracle.bmc.datacc.requests.ValidateVmClusterNetworkRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datacc.requests.ValidateVmClusterNetworkRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20251101") + .path("vmClusterNetworks") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getVmClusterNetworkId())) + .path("actions") + .path("validateVmClusterNetwork"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ValidateVmClusterNetworkResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ValidateVmClusterNetworkResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses.ValidateVmClusterNetworkResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datacc.responses + .ValidateVmClusterNetworkResponse>() { + @Override + public com.oracle.bmc.datacc.responses.ValidateVmClusterNetworkResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datacc.responses.ValidateVmClusterNetworkResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.datacc.responses.ValidateVmClusterNetworkResponse + .Builder + builder = + com.oracle.bmc.datacc.responses + .ValidateVmClusterNetworkResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datacc.responses.ValidateVmClusterNetworkResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/AcfsCapacityDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/AcfsCapacityDetails.java new file mode 100644 index 00000000000..003a1a88d58 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/AcfsCapacityDetails.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for creating local storage for VM Clusters and application VMs. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AcfsCapacityDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AcfsCapacityDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"totalSpaceInGbs", "freeSpaceInGbs"}) + public AcfsCapacityDetails(Double totalSpaceInGbs, Double freeSpaceInGbs) { + super(); + this.totalSpaceInGbs = totalSpaceInGbs; + this.freeSpaceInGbs = freeSpaceInGbs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The total amount of logical disk space available, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalSpaceInGbs") + private Double totalSpaceInGbs; + + /** + * The total amount of logical disk space available, in gigabytes (GB). + * @param totalSpaceInGbs the value to set + * @return this builder + **/ + public Builder totalSpaceInGbs(Double totalSpaceInGbs) { + this.totalSpaceInGbs = totalSpaceInGbs; + this.__explicitlySet__.add("totalSpaceInGbs"); + return this; + } + /** + * The total amount of logical disk space that is currently available for use, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeSpaceInGbs") + private Double freeSpaceInGbs; + + /** + * The total amount of logical disk space that is currently available for use, in gigabytes (GB). + * @param freeSpaceInGbs the value to set + * @return this builder + **/ + public Builder freeSpaceInGbs(Double freeSpaceInGbs) { + this.freeSpaceInGbs = freeSpaceInGbs; + this.__explicitlySet__.add("freeSpaceInGbs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AcfsCapacityDetails build() { + AcfsCapacityDetails model = + new AcfsCapacityDetails(this.totalSpaceInGbs, this.freeSpaceInGbs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AcfsCapacityDetails model) { + if (model.wasPropertyExplicitlySet("totalSpaceInGbs")) { + this.totalSpaceInGbs(model.getTotalSpaceInGbs()); + } + if (model.wasPropertyExplicitlySet("freeSpaceInGbs")) { + this.freeSpaceInGbs(model.getFreeSpaceInGbs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The total amount of logical disk space available, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalSpaceInGbs") + private final Double totalSpaceInGbs; + + /** + * The total amount of logical disk space available, in gigabytes (GB). + * @return the value + **/ + public Double getTotalSpaceInGbs() { + return totalSpaceInGbs; + } + + /** + * The total amount of logical disk space that is currently available for use, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeSpaceInGbs") + private final Double freeSpaceInGbs; + + /** + * The total amount of logical disk space that is currently available for use, in gigabytes (GB). + * @return the value + **/ + public Double getFreeSpaceInGbs() { + return freeSpaceInGbs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AcfsCapacityDetails("); + sb.append("super=").append(super.toString()); + sb.append("totalSpaceInGbs=").append(String.valueOf(this.totalSpaceInGbs)); + sb.append(", freeSpaceInGbs=").append(String.valueOf(this.freeSpaceInGbs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AcfsCapacityDetails)) { + return false; + } + + AcfsCapacityDetails other = (AcfsCapacityDetails) o; + return java.util.Objects.equals(this.totalSpaceInGbs, other.totalSpaceInGbs) + && java.util.Objects.equals(this.freeSpaceInGbs, other.freeSpaceInGbs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.totalSpaceInGbs == null ? 43 : this.totalSpaceInGbs.hashCode()); + result = + (result * PRIME) + + (this.freeSpaceInGbs == null ? 43 : this.freeSpaceInGbs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ActionType.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ActionType.java new file mode 100644 index 00000000000..98d047a0e64 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ActionType.java @@ -0,0 +1,61 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Possible types of actions. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum ActionType { + Created("CREATED"), + Updated("UPDATED"), + Deleted("DELETED"), + InProgress("IN_PROGRESS"), + Failed("FAILED"), + Related("RELATED"), + CanceledCreate("CANCELED_CREATE"), + CanceledUpdate("CANCELED_UPDATE"), + CanceledDelete("CANCELED_DELETE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ActionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ActionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ActivateInfrastructureDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ActivateInfrastructureDetails.java new file mode 100644 index 00000000000..c1677d56299 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ActivateInfrastructureDetails.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * The activation details for the Database Infrastructure. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ActivateInfrastructureDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ActivateInfrastructureDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"activationZipFile"}) + public ActivateInfrastructureDetails(byte[] activationZipFile) { + super(); + this.activationZipFile = activationZipFile; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The activation zip file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("activationZipFile") + private byte[] activationZipFile; + + /** + * The activation zip file. + * @param activationZipFile the value to set + * @return this builder + **/ + public Builder activationZipFile(byte[] activationZipFile) { + this.activationZipFile = activationZipFile; + this.__explicitlySet__.add("activationZipFile"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ActivateInfrastructureDetails build() { + ActivateInfrastructureDetails model = + new ActivateInfrastructureDetails(this.activationZipFile); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ActivateInfrastructureDetails model) { + if (model.wasPropertyExplicitlySet("activationZipFile")) { + this.activationZipFile(model.getActivationZipFile()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The activation zip file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("activationZipFile") + private final byte[] activationZipFile; + + /** + * The activation zip file. + * @return the value + **/ + public byte[] getActivationZipFile() { + return activationZipFile; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ActivateInfrastructureDetails("); + sb.append("super=").append(super.toString()); + sb.append("activationZipFile=") + .append( + (includeByteArrayContents + ? java.util.Arrays.toString(this.activationZipFile) + : (String.valueOf(this.activationZipFile) + + (this.activationZipFile != null + ? " (byte[" + this.activationZipFile.length + "])" + : "")))); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateInfrastructureDetails)) { + return false; + } + + ActivateInfrastructureDetails other = (ActivateInfrastructureDetails) o; + return java.util.Arrays.equals(this.activationZipFile, other.activationZipFile) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + java.util.Arrays.hashCode(this.activationZipFile); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/BasePatchingMode.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/BasePatchingMode.java new file mode 100644 index 00000000000..6b9da4ecbe1 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/BasePatchingMode.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Cloud Database Infrastructure node patching method. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum BasePatchingMode { + Rolling("ROLLING"), + Nonrolling("NONROLLING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BasePatchingMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BasePatchingMode v : BasePatchingMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BasePatchingMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BasePatchingMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BasePatchingMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeInfrastructureCompartmentDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeInfrastructureCompartmentDetails.java new file mode 100644 index 00000000000..6010cd583a5 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeInfrastructureCompartmentDetails.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Updated compartment details. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeInfrastructureCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeInfrastructureCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeInfrastructureCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which the Database Infrastructure Cloud@Customer is moving. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which the Database Infrastructure Cloud@Customer is moving. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeInfrastructureCompartmentDetails build() { + ChangeInfrastructureCompartmentDetails model = + new ChangeInfrastructureCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeInfrastructureCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which the Database Infrastructure Cloud@Customer is moving. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which the Database Infrastructure Cloud@Customer is moving. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeInfrastructureCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeInfrastructureCompartmentDetails)) { + return false; + } + + ChangeInfrastructureCompartmentDetails other = (ChangeInfrastructureCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeVmClusterNetworkCompartmentDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeVmClusterNetworkCompartmentDetails.java new file mode 100644 index 00000000000..2f6761fa817 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeVmClusterNetworkCompartmentDetails.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Updated compartment details. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeVmClusterNetworkCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeVmClusterNetworkCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeVmClusterNetworkCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which the VM cluster network is moving. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which the VM cluster network is moving. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeVmClusterNetworkCompartmentDetails build() { + ChangeVmClusterNetworkCompartmentDetails model = + new ChangeVmClusterNetworkCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeVmClusterNetworkCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which the VM cluster network is moving. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which the VM cluster network is moving. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeVmClusterNetworkCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeVmClusterNetworkCompartmentDetails)) { + return false; + } + + ChangeVmClusterNetworkCompartmentDetails other = + (ChangeVmClusterNetworkCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeVmInstanceCompartmentDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeVmInstanceCompartmentDetails.java new file mode 100644 index 00000000000..ec190cdc621 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ChangeVmInstanceCompartmentDetails.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Updated compartment details. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeVmInstanceCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeVmInstanceCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeVmInstanceCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which the VM instance is moving. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which the VM instance is moving. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeVmInstanceCompartmentDetails build() { + ChangeVmInstanceCompartmentDetails model = + new ChangeVmInstanceCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeVmInstanceCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which the VM instance is moving. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which the VM instance is moving. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeVmInstanceCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeVmInstanceCompartmentDetails)) { + return false; + } + + ChangeVmInstanceCompartmentDetails other = (ChangeVmInstanceCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ComputeCapacityDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ComputeCapacityDetails.java new file mode 100644 index 00000000000..1e1d321af78 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ComputeCapacityDetails.java @@ -0,0 +1,439 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Capacity details of the Database Infrastructure. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ComputeCapacityDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ComputeCapacityDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "totalCores", + "allocatedCores", + "reservedCores", + "availableCores", + "totalMemoryInGBs", + "usedMemoryInGBs", + "reservedMemoryInGBs", + "availableMemoryInGBs" + }) + public ComputeCapacityDetails( + Integer totalCores, + Integer allocatedCores, + Integer reservedCores, + Integer availableCores, + Long totalMemoryInGBs, + Long usedMemoryInGBs, + Long reservedMemoryInGBs, + Long availableMemoryInGBs) { + super(); + this.totalCores = totalCores; + this.allocatedCores = allocatedCores; + this.reservedCores = reservedCores; + this.availableCores = availableCores; + this.totalMemoryInGBs = totalMemoryInGBs; + this.usedMemoryInGBs = usedMemoryInGBs; + this.reservedMemoryInGBs = reservedMemoryInGBs; + this.availableMemoryInGBs = availableMemoryInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Total CPU cores count. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalCores") + private Integer totalCores; + + /** + * Total CPU cores count. + * @param totalCores the value to set + * @return this builder + **/ + public Builder totalCores(Integer totalCores) { + this.totalCores = totalCores; + this.__explicitlySet__.add("totalCores"); + return this; + } + /** + * Total CPU cores count allocated.. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allocatedCores") + private Integer allocatedCores; + + /** + * Total CPU cores count allocated.. + * @param allocatedCores the value to set + * @return this builder + **/ + public Builder allocatedCores(Integer allocatedCores) { + this.allocatedCores = allocatedCores; + this.__explicitlySet__.add("allocatedCores"); + return this; + } + /** + * Total Reserved CPU cores count. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reservedCores") + private Integer reservedCores; + + /** + * Total Reserved CPU cores count. + * @param reservedCores the value to set + * @return this builder + **/ + public Builder reservedCores(Integer reservedCores) { + this.reservedCores = reservedCores; + this.__explicitlySet__.add("reservedCores"); + return this; + } + /** + * Total available CPU cores count. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableCores") + private Integer availableCores; + + /** + * Total available CPU cores count. + * @param availableCores the value to set + * @return this builder + **/ + public Builder availableCores(Integer availableCores) { + this.availableCores = availableCores; + this.__explicitlySet__.add("availableCores"); + return this; + } + /** + * Total memory allocated, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalMemoryInGBs") + private Long totalMemoryInGBs; + + /** + * Total memory allocated, in gigabytes (GB). + * @param totalMemoryInGBs the value to set + * @return this builder + **/ + public Builder totalMemoryInGBs(Long totalMemoryInGBs) { + this.totalMemoryInGBs = totalMemoryInGBs; + this.__explicitlySet__.add("totalMemoryInGBs"); + return this; + } + /** + * Memory allocated to Oracle database virtual machine cluster or Instance, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("usedMemoryInGBs") + private Long usedMemoryInGBs; + + /** + * Memory allocated to Oracle database virtual machine cluster or Instance, in gigabytes (GB). + * @param usedMemoryInGBs the value to set + * @return this builder + **/ + public Builder usedMemoryInGBs(Long usedMemoryInGBs) { + this.usedMemoryInGBs = usedMemoryInGBs; + this.__explicitlySet__.add("usedMemoryInGBs"); + return this; + } + /** + * Reserved memory, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reservedMemoryInGBs") + private Long reservedMemoryInGBs; + + /** + * Reserved memory, in gigabytes (GB). + * @param reservedMemoryInGBs the value to set + * @return this builder + **/ + public Builder reservedMemoryInGBs(Long reservedMemoryInGBs) { + this.reservedMemoryInGBs = reservedMemoryInGBs; + this.__explicitlySet__.add("reservedMemoryInGBs"); + return this; + } + /** + * Available memory, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableMemoryInGBs") + private Long availableMemoryInGBs; + + /** + * Available memory, in gigabytes (GB). + * @param availableMemoryInGBs the value to set + * @return this builder + **/ + public Builder availableMemoryInGBs(Long availableMemoryInGBs) { + this.availableMemoryInGBs = availableMemoryInGBs; + this.__explicitlySet__.add("availableMemoryInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComputeCapacityDetails build() { + ComputeCapacityDetails model = + new ComputeCapacityDetails( + this.totalCores, + this.allocatedCores, + this.reservedCores, + this.availableCores, + this.totalMemoryInGBs, + this.usedMemoryInGBs, + this.reservedMemoryInGBs, + this.availableMemoryInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComputeCapacityDetails model) { + if (model.wasPropertyExplicitlySet("totalCores")) { + this.totalCores(model.getTotalCores()); + } + if (model.wasPropertyExplicitlySet("allocatedCores")) { + this.allocatedCores(model.getAllocatedCores()); + } + if (model.wasPropertyExplicitlySet("reservedCores")) { + this.reservedCores(model.getReservedCores()); + } + if (model.wasPropertyExplicitlySet("availableCores")) { + this.availableCores(model.getAvailableCores()); + } + if (model.wasPropertyExplicitlySet("totalMemoryInGBs")) { + this.totalMemoryInGBs(model.getTotalMemoryInGBs()); + } + if (model.wasPropertyExplicitlySet("usedMemoryInGBs")) { + this.usedMemoryInGBs(model.getUsedMemoryInGBs()); + } + if (model.wasPropertyExplicitlySet("reservedMemoryInGBs")) { + this.reservedMemoryInGBs(model.getReservedMemoryInGBs()); + } + if (model.wasPropertyExplicitlySet("availableMemoryInGBs")) { + this.availableMemoryInGBs(model.getAvailableMemoryInGBs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Total CPU cores count. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalCores") + private final Integer totalCores; + + /** + * Total CPU cores count. + * @return the value + **/ + public Integer getTotalCores() { + return totalCores; + } + + /** + * Total CPU cores count allocated.. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("allocatedCores") + private final Integer allocatedCores; + + /** + * Total CPU cores count allocated.. + * @return the value + **/ + public Integer getAllocatedCores() { + return allocatedCores; + } + + /** + * Total Reserved CPU cores count. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reservedCores") + private final Integer reservedCores; + + /** + * Total Reserved CPU cores count. + * @return the value + **/ + public Integer getReservedCores() { + return reservedCores; + } + + /** + * Total available CPU cores count. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableCores") + private final Integer availableCores; + + /** + * Total available CPU cores count. + * @return the value + **/ + public Integer getAvailableCores() { + return availableCores; + } + + /** + * Total memory allocated, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalMemoryInGBs") + private final Long totalMemoryInGBs; + + /** + * Total memory allocated, in gigabytes (GB). + * @return the value + **/ + public Long getTotalMemoryInGBs() { + return totalMemoryInGBs; + } + + /** + * Memory allocated to Oracle database virtual machine cluster or Instance, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("usedMemoryInGBs") + private final Long usedMemoryInGBs; + + /** + * Memory allocated to Oracle database virtual machine cluster or Instance, in gigabytes (GB). + * @return the value + **/ + public Long getUsedMemoryInGBs() { + return usedMemoryInGBs; + } + + /** + * Reserved memory, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reservedMemoryInGBs") + private final Long reservedMemoryInGBs; + + /** + * Reserved memory, in gigabytes (GB). + * @return the value + **/ + public Long getReservedMemoryInGBs() { + return reservedMemoryInGBs; + } + + /** + * Available memory, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableMemoryInGBs") + private final Long availableMemoryInGBs; + + /** + * Available memory, in gigabytes (GB). + * @return the value + **/ + public Long getAvailableMemoryInGBs() { + return availableMemoryInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComputeCapacityDetails("); + sb.append("super=").append(super.toString()); + sb.append("totalCores=").append(String.valueOf(this.totalCores)); + sb.append(", allocatedCores=").append(String.valueOf(this.allocatedCores)); + sb.append(", reservedCores=").append(String.valueOf(this.reservedCores)); + sb.append(", availableCores=").append(String.valueOf(this.availableCores)); + sb.append(", totalMemoryInGBs=").append(String.valueOf(this.totalMemoryInGBs)); + sb.append(", usedMemoryInGBs=").append(String.valueOf(this.usedMemoryInGBs)); + sb.append(", reservedMemoryInGBs=").append(String.valueOf(this.reservedMemoryInGBs)); + sb.append(", availableMemoryInGBs=").append(String.valueOf(this.availableMemoryInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComputeCapacityDetails)) { + return false; + } + + ComputeCapacityDetails other = (ComputeCapacityDetails) o; + return java.util.Objects.equals(this.totalCores, other.totalCores) + && java.util.Objects.equals(this.allocatedCores, other.allocatedCores) + && java.util.Objects.equals(this.reservedCores, other.reservedCores) + && java.util.Objects.equals(this.availableCores, other.availableCores) + && java.util.Objects.equals(this.totalMemoryInGBs, other.totalMemoryInGBs) + && java.util.Objects.equals(this.usedMemoryInGBs, other.usedMemoryInGBs) + && java.util.Objects.equals(this.reservedMemoryInGBs, other.reservedMemoryInGBs) + && java.util.Objects.equals(this.availableMemoryInGBs, other.availableMemoryInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.totalCores == null ? 43 : this.totalCores.hashCode()); + result = + (result * PRIME) + + (this.allocatedCores == null ? 43 : this.allocatedCores.hashCode()); + result = + (result * PRIME) + + (this.reservedCores == null ? 43 : this.reservedCores.hashCode()); + result = + (result * PRIME) + + (this.availableCores == null ? 43 : this.availableCores.hashCode()); + result = + (result * PRIME) + + (this.totalMemoryInGBs == null ? 43 : this.totalMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.usedMemoryInGBs == null ? 43 : this.usedMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.reservedMemoryInGBs == null + ? 43 + : this.reservedMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.availableMemoryInGBs == null + ? 43 + : this.availableMemoryInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateInfrastructureDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateInfrastructureDetails.java new file mode 100644 index 00000000000..2d29fa42555 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateInfrastructureDetails.java @@ -0,0 +1,1240 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Request to create Database Infrastructure 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateInfrastructureDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateInfrastructureDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "description", + "compartmentId", + "displayName", + "systemModel", + "shape", + "cloudControlPlaneServer1", + "cloudControlPlaneServer2", + "netmask", + "gateway", + "adminNetworkcidr", + "dataDiskPercentage", + "contacts", + "dnsServers", + "ntpServers", + "clientNetworkBondingMode", + "backupNetworkBondingMode", + "cpsNetworkBondingMode", + "clientNetworkBondingInterface", + "backupNetworkBondingInterface", + "cpsNetworkBondingInterface", + "acfsFileSystemStorageInGbs", + "corporateProxy", + "vlanId", + "maintenanceWindow", + "freeformTags", + "definedTags" + }) + public CreateInfrastructureDetails( + String description, + String compartmentId, + String displayName, + SystemModelEnum systemModel, + ShapeEnum shape, + String cloudControlPlaneServer1, + String cloudControlPlaneServer2, + String netmask, + String gateway, + String adminNetworkcidr, + Integer dataDiskPercentage, + java.util.List contacts, + java.util.List dnsServers, + java.util.List ntpServers, + NetworkBondingMode clientNetworkBondingMode, + NetworkBondingMode backupNetworkBondingMode, + NetworkBondingMode cpsNetworkBondingMode, + NetworkBondingInterfaceEnum clientNetworkBondingInterface, + NetworkBondingInterfaceEnum backupNetworkBondingInterface, + NetworkBondingInterfaceEnum cpsNetworkBondingInterface, + Double acfsFileSystemStorageInGbs, + String corporateProxy, + String vlanId, + MaintenanceWindow maintenanceWindow, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.description = description; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.systemModel = systemModel; + this.shape = shape; + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.netmask = netmask; + this.gateway = gateway; + this.adminNetworkcidr = adminNetworkcidr; + this.dataDiskPercentage = dataDiskPercentage; + this.contacts = contacts; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.corporateProxy = corporateProxy; + this.vlanId = vlanId; + this.maintenanceWindow = maintenanceWindow; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Database Infrastructure description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Database Infrastructure description. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + * @param systemModel the value to set + * @return this builder + **/ + public Builder systemModel(SystemModelEnum systemModel) { + this.systemModel = systemModel; + this.__explicitlySet__.add("systemModel"); + return this; + } + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + * @param shape the value to set + * @return this builder + **/ + public Builder shape(ShapeEnum shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** + * The IP address for the first control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * @param cloudControlPlaneServer1 the value to set + * @return this builder + **/ + public Builder cloudControlPlaneServer1(String cloudControlPlaneServer1) { + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.__explicitlySet__.add("cloudControlPlaneServer1"); + return this; + } + /** + * The IP address for the second control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * @param cloudControlPlaneServer2 the value to set + * @return this builder + **/ + public Builder cloudControlPlaneServer2(String cloudControlPlaneServer2) { + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.__explicitlySet__.add("cloudControlPlaneServer2"); + return this; + } + /** + * The netmask for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The netmask for the control plane network. + * @param netmask the value to set + * @return this builder + **/ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** + * The gateway for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The gateway for the control plane network. + * @param gateway the value to set + * @return this builder + **/ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + * @param adminNetworkcidr the value to set + * @return this builder + **/ + public Builder adminNetworkcidr(String adminNetworkcidr) { + this.adminNetworkcidr = adminNetworkcidr; + this.__explicitlySet__.add("adminNetworkcidr"); + return this; + } + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get assiged to RECO disk group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataDiskPercentage") + private Integer dataDiskPercentage; + + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get assiged to RECO disk group + * @param dataDiskPercentage the value to set + * @return this builder + **/ + public Builder dataDiskPercentage(Integer dataDiskPercentage) { + this.dataDiskPercentage = dataDiskPercentage; + this.__explicitlySet__.add("dataDiskPercentage"); + return this; + } + /** + * The list of contacts for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * @param contacts the value to set + * @return this builder + **/ + public Builder contacts(java.util.List contacts) { + this.contacts = contacts; + this.__explicitlySet__.add("contacts"); + return this; + } + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @param dnsServers the value to set + * @return this builder + **/ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @param ntpServers the value to set + * @return this builder + **/ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** + * The network bonding mode for Client networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * @param clientNetworkBondingMode the value to set + * @return this builder + **/ + public Builder clientNetworkBondingMode(NetworkBondingMode clientNetworkBondingMode) { + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.__explicitlySet__.add("clientNetworkBondingMode"); + return this; + } + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * @param backupNetworkBondingMode the value to set + * @return this builder + **/ + public Builder backupNetworkBondingMode(NetworkBondingMode backupNetworkBondingMode) { + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.__explicitlySet__.add("backupNetworkBondingMode"); + return this; + } + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * @param cpsNetworkBondingMode the value to set + * @return this builder + **/ + public Builder cpsNetworkBondingMode(NetworkBondingMode cpsNetworkBondingMode) { + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.__explicitlySet__.add("cpsNetworkBondingMode"); + return this; + } + /** + * The network bonding interface for client network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * @param clientNetworkBondingInterface the value to set + * @return this builder + **/ + public Builder clientNetworkBondingInterface( + NetworkBondingInterfaceEnum clientNetworkBondingInterface) { + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.__explicitlySet__.add("clientNetworkBondingInterface"); + return this; + } + /** + * The network bonding interface for backup network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * @param backupNetworkBondingInterface the value to set + * @return this builder + **/ + public Builder backupNetworkBondingInterface( + NetworkBondingInterfaceEnum backupNetworkBondingInterface) { + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.__explicitlySet__.add("backupNetworkBondingInterface"); + return this; + } + /** + * The network bonding interface for CPS network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * @param cpsNetworkBondingInterface the value to set + * @return this builder + **/ + public Builder cpsNetworkBondingInterface( + NetworkBondingInterfaceEnum cpsNetworkBondingInterface) { + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.__explicitlySet__.add("cpsNetworkBondingInterface"); + return this; + } + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + * @param acfsFileSystemStorageInGbs the value to set + * @return this builder + **/ + public Builder acfsFileSystemStorageInGbs(Double acfsFileSystemStorageInGbs) { + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.__explicitlySet__.add("acfsFileSystemStorageInGbs"); + return this; + } + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + * @param corporateProxy the value to set + * @return this builder + **/ + public Builder corporateProxy(String corporateProxy) { + this.corporateProxy = corporateProxy; + this.__explicitlySet__.add("corporateProxy"); + return this; + } + /** + * The CPS network VLAN ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private String vlanId; + + /** + * The CPS network VLAN ID. + * @param vlanId the value to set + * @return this builder + **/ + public Builder vlanId(String vlanId) { + this.vlanId = vlanId; + this.__explicitlySet__.add("vlanId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private MaintenanceWindow maintenanceWindow; + + public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { + this.maintenanceWindow = maintenanceWindow; + this.__explicitlySet__.add("maintenanceWindow"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + 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 CreateInfrastructureDetails build() { + CreateInfrastructureDetails model = + new CreateInfrastructureDetails( + this.description, + this.compartmentId, + this.displayName, + this.systemModel, + this.shape, + this.cloudControlPlaneServer1, + this.cloudControlPlaneServer2, + this.netmask, + this.gateway, + this.adminNetworkcidr, + this.dataDiskPercentage, + this.contacts, + this.dnsServers, + this.ntpServers, + this.clientNetworkBondingMode, + this.backupNetworkBondingMode, + this.cpsNetworkBondingMode, + this.clientNetworkBondingInterface, + this.backupNetworkBondingInterface, + this.cpsNetworkBondingInterface, + this.acfsFileSystemStorageInGbs, + this.corporateProxy, + this.vlanId, + this.maintenanceWindow, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateInfrastructureDetails model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("systemModel")) { + this.systemModel(model.getSystemModel()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer1")) { + this.cloudControlPlaneServer1(model.getCloudControlPlaneServer1()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer2")) { + this.cloudControlPlaneServer2(model.getCloudControlPlaneServer2()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("adminNetworkcidr")) { + this.adminNetworkcidr(model.getAdminNetworkcidr()); + } + if (model.wasPropertyExplicitlySet("dataDiskPercentage")) { + this.dataDiskPercentage(model.getDataDiskPercentage()); + } + if (model.wasPropertyExplicitlySet("contacts")) { + this.contacts(model.getContacts()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingMode")) { + this.clientNetworkBondingMode(model.getClientNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingMode")) { + this.backupNetworkBondingMode(model.getBackupNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingMode")) { + this.cpsNetworkBondingMode(model.getCpsNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingInterface")) { + this.clientNetworkBondingInterface(model.getClientNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingInterface")) { + this.backupNetworkBondingInterface(model.getBackupNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingInterface")) { + this.cpsNetworkBondingInterface(model.getCpsNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("acfsFileSystemStorageInGbs")) { + this.acfsFileSystemStorageInGbs(model.getAcfsFileSystemStorageInGbs()); + } + if (model.wasPropertyExplicitlySet("corporateProxy")) { + this.corporateProxy(model.getCorporateProxy()); + } + if (model.wasPropertyExplicitlySet("vlanId")) { + this.vlanId(model.getVlanId()); + } + if (model.wasPropertyExplicitlySet("maintenanceWindow")) { + this.maintenanceWindow(model.getMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Database Infrastructure description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Database Infrastructure description. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private final SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + * @return the value + **/ + public SystemModelEnum getSystemModel() { + return systemModel; + } + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + * @return the value + **/ + public ShapeEnum getShape() { + return shape; + } + + /** + * The IP address for the first control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private final String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * @return the value + **/ + public String getCloudControlPlaneServer1() { + return cloudControlPlaneServer1; + } + + /** + * The IP address for the second control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private final String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * @return the value + **/ + public String getCloudControlPlaneServer2() { + return cloudControlPlaneServer2; + } + + /** + * The netmask for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The netmask for the control plane network. + * @return the value + **/ + public String getNetmask() { + return netmask; + } + + /** + * The gateway for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The gateway for the control plane network. + * @return the value + **/ + public String getGateway() { + return gateway; + } + + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private final String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + * @return the value + **/ + public String getAdminNetworkcidr() { + return adminNetworkcidr; + } + + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get assiged to RECO disk group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataDiskPercentage") + private final Integer dataDiskPercentage; + + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get assiged to RECO disk group + * @return the value + **/ + public Integer getDataDiskPercentage() { + return dataDiskPercentage; + } + + /** + * The list of contacts for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private final java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * @return the value + **/ + public java.util.List getContacts() { + return contacts; + } + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private final NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingMode getClientNetworkBondingMode() { + return clientNetworkBondingMode; + } + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private final NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingMode getBackupNetworkBondingMode() { + return backupNetworkBondingMode; + } + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private final NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingMode getCpsNetworkBondingMode() { + return cpsNetworkBondingMode; + } + + /** + * The network bonding interface for client network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private final NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingInterfaceEnum getClientNetworkBondingInterface() { + return clientNetworkBondingInterface; + } + + /** + * The network bonding interface for backup network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private final NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingInterfaceEnum getBackupNetworkBondingInterface() { + return backupNetworkBondingInterface; + } + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private final NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingInterfaceEnum getCpsNetworkBondingInterface() { + return cpsNetworkBondingInterface; + } + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private final Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + * @return the value + **/ + public Double getAcfsFileSystemStorageInGbs() { + return acfsFileSystemStorageInGbs; + } + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private final String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + * @return the value + **/ + public String getCorporateProxy() { + return corporateProxy; + } + + /** + * The CPS network VLAN ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private final String vlanId; + + /** + * The CPS network VLAN ID. + * @return the value + **/ + public String getVlanId() { + return vlanId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private final MaintenanceWindow maintenanceWindow; + + public MaintenanceWindow getMaintenanceWindow() { + return maintenanceWindow; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateInfrastructureDetails("); + sb.append("super=").append(super.toString()); + sb.append("description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", systemModel=").append(String.valueOf(this.systemModel)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", cloudControlPlaneServer1=") + .append(String.valueOf(this.cloudControlPlaneServer1)); + sb.append(", cloudControlPlaneServer2=") + .append(String.valueOf(this.cloudControlPlaneServer2)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", adminNetworkcidr=").append(String.valueOf(this.adminNetworkcidr)); + sb.append(", dataDiskPercentage=").append(String.valueOf(this.dataDiskPercentage)); + sb.append(", contacts=").append(String.valueOf(this.contacts)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", clientNetworkBondingMode=") + .append(String.valueOf(this.clientNetworkBondingMode)); + sb.append(", backupNetworkBondingMode=") + .append(String.valueOf(this.backupNetworkBondingMode)); + sb.append(", cpsNetworkBondingMode=").append(String.valueOf(this.cpsNetworkBondingMode)); + sb.append(", clientNetworkBondingInterface=") + .append(String.valueOf(this.clientNetworkBondingInterface)); + sb.append(", backupNetworkBondingInterface=") + .append(String.valueOf(this.backupNetworkBondingInterface)); + sb.append(", cpsNetworkBondingInterface=") + .append(String.valueOf(this.cpsNetworkBondingInterface)); + sb.append(", acfsFileSystemStorageInGbs=") + .append(String.valueOf(this.acfsFileSystemStorageInGbs)); + sb.append(", corporateProxy=").append(String.valueOf(this.corporateProxy)); + sb.append(", vlanId=").append(String.valueOf(this.vlanId)); + sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateInfrastructureDetails)) { + return false; + } + + CreateInfrastructureDetails other = (CreateInfrastructureDetails) o; + return java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.systemModel, other.systemModel) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals( + this.cloudControlPlaneServer1, other.cloudControlPlaneServer1) + && java.util.Objects.equals( + this.cloudControlPlaneServer2, other.cloudControlPlaneServer2) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.adminNetworkcidr, other.adminNetworkcidr) + && java.util.Objects.equals(this.dataDiskPercentage, other.dataDiskPercentage) + && java.util.Objects.equals(this.contacts, other.contacts) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals( + this.clientNetworkBondingMode, other.clientNetworkBondingMode) + && java.util.Objects.equals( + this.backupNetworkBondingMode, other.backupNetworkBondingMode) + && java.util.Objects.equals(this.cpsNetworkBondingMode, other.cpsNetworkBondingMode) + && java.util.Objects.equals( + this.clientNetworkBondingInterface, other.clientNetworkBondingInterface) + && java.util.Objects.equals( + this.backupNetworkBondingInterface, other.backupNetworkBondingInterface) + && java.util.Objects.equals( + this.cpsNetworkBondingInterface, other.cpsNetworkBondingInterface) + && java.util.Objects.equals( + this.acfsFileSystemStorageInGbs, other.acfsFileSystemStorageInGbs) + && java.util.Objects.equals(this.corporateProxy, other.corporateProxy) + && java.util.Objects.equals(this.vlanId, other.vlanId) + && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.systemModel == null ? 43 : this.systemModel.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer1 == null + ? 43 + : this.cloudControlPlaneServer1.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer2 == null + ? 43 + : this.cloudControlPlaneServer2.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = + (result * PRIME) + + (this.adminNetworkcidr == null ? 43 : this.adminNetworkcidr.hashCode()); + result = + (result * PRIME) + + (this.dataDiskPercentage == null + ? 43 + : this.dataDiskPercentage.hashCode()); + result = (result * PRIME) + (this.contacts == null ? 43 : this.contacts.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingMode == null + ? 43 + : this.clientNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingMode == null + ? 43 + : this.backupNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingMode == null + ? 43 + : this.cpsNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingInterface == null + ? 43 + : this.clientNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingInterface == null + ? 43 + : this.backupNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingInterface == null + ? 43 + : this.cpsNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.acfsFileSystemStorageInGbs == null + ? 43 + : this.acfsFileSystemStorageInGbs.hashCode()); + result = + (result * PRIME) + + (this.corporateProxy == null ? 43 : this.corporateProxy.hashCode()); + result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateVmClusterNetworkDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateVmClusterNetworkDetails.java new file mode 100644 index 00000000000..85770944abd --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateVmClusterNetworkDetails.java @@ -0,0 +1,649 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Details for an VM cluster network. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateVmClusterNetworkDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateVmClusterNetworkDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "infrastructureId", + "displayName", + "nodeCount", + "scans", + "listenerPort", + "listenerPortSsl", + "dnsServers", + "ntpServers", + "vmNetworks", + "consumerType", + "freeformTags", + "definedTags" + }) + public CreateVmClusterNetworkDetails( + String compartmentId, + String infrastructureId, + String displayName, + Integer nodeCount, + java.util.List scans, + Integer listenerPort, + Integer listenerPortSsl, + java.util.List dnsServers, + java.util.List ntpServers, + java.util.List vmNetworks, + VmNetworkConsumerType consumerType, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.infrastructureId = infrastructureId; + this.displayName = displayName; + this.nodeCount = nodeCount; + this.scans = scans; + this.listenerPort = listenerPort; + this.listenerPortSsl = listenerPortSsl; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.vmNetworks = vmNetworks; + this.consumerType = consumerType; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder + **/ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Count of virtual machines in this VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * @param nodeCount the value to set + * @return this builder + **/ + public Builder nodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + this.__explicitlySet__.add("nodeCount"); + return this; + } + /** + * The SCAN details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private java.util.List scans; + + /** + * The SCAN details. + * @param scans the value to set + * @return this builder + **/ + public Builder scans(java.util.List scans) { + this.scans = scans; + this.__explicitlySet__.add("scans"); + return this; + } + /** + * The listener TCP/IP port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener TCP/IP port. + * @param listenerPort the value to set + * @return this builder + **/ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** + * The listener TCP/IP SSL port. Default is 2484. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. Default is 2484. + * @param listenerPortSsl the value to set + * @return this builder + **/ + public Builder listenerPortSsl(Integer listenerPortSsl) { + this.listenerPortSsl = listenerPortSsl; + this.__explicitlySet__.add("listenerPortSsl"); + return this; + } + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @param dnsServers the value to set + * @return this builder + **/ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @param ntpServers the value to set + * @return this builder + **/ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** + * Details of the client and backup networks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * @param vmNetworks the value to set + * @return this builder + **/ + public Builder vmNetworks(java.util.List vmNetworks) { + this.vmNetworks = vmNetworks; + this.__explicitlySet__.add("vmNetworks"); + return this; + } + /** + * Consumer type for the VM cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("consumerType") + private VmNetworkConsumerType consumerType; + + /** + * Consumer type for the VM cluster network. + * @param consumerType the value to set + * @return this builder + **/ + public Builder consumerType(VmNetworkConsumerType consumerType) { + this.consumerType = consumerType; + this.__explicitlySet__.add("consumerType"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + 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 CreateVmClusterNetworkDetails build() { + CreateVmClusterNetworkDetails model = + new CreateVmClusterNetworkDetails( + this.compartmentId, + this.infrastructureId, + this.displayName, + this.nodeCount, + this.scans, + this.listenerPort, + this.listenerPortSsl, + this.dnsServers, + this.ntpServers, + this.vmNetworks, + this.consumerType, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateVmClusterNetworkDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("nodeCount")) { + this.nodeCount(model.getNodeCount()); + } + if (model.wasPropertyExplicitlySet("scans")) { + this.scans(model.getScans()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortSsl")) { + this.listenerPortSsl(model.getListenerPortSsl()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("vmNetworks")) { + this.vmNetworks(model.getVmNetworks()); + } + if (model.wasPropertyExplicitlySet("consumerType")) { + this.consumerType(model.getConsumerType()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @return the value + **/ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Count of virtual machines in this VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private final Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * @return the value + **/ + public Integer getNodeCount() { + return nodeCount; + } + + /** + * The SCAN details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private final java.util.List scans; + + /** + * The SCAN details. + * @return the value + **/ + public java.util.List getScans() { + return scans; + } + + /** + * The listener TCP/IP port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener TCP/IP port. + * @return the value + **/ + public Integer getListenerPort() { + return listenerPort; + } + + /** + * The listener TCP/IP SSL port. Default is 2484. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private final Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. Default is 2484. + * @return the value + **/ + public Integer getListenerPortSsl() { + return listenerPortSsl; + } + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** + * Details of the client and backup networks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private final java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * @return the value + **/ + public java.util.List getVmNetworks() { + return vmNetworks; + } + + /** + * Consumer type for the VM cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("consumerType") + private final VmNetworkConsumerType consumerType; + + /** + * Consumer type for the VM cluster network. + * @return the value + **/ + public VmNetworkConsumerType getConsumerType() { + return consumerType; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateVmClusterNetworkDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); + sb.append(", scans=").append(String.valueOf(this.scans)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortSsl=").append(String.valueOf(this.listenerPortSsl)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", vmNetworks=").append(String.valueOf(this.vmNetworks)); + sb.append(", consumerType=").append(String.valueOf(this.consumerType)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVmClusterNetworkDetails)) { + return false; + } + + CreateVmClusterNetworkDetails other = (CreateVmClusterNetworkDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.nodeCount, other.nodeCount) + && java.util.Objects.equals(this.scans, other.scans) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortSsl, other.listenerPortSsl) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals(this.vmNetworks, other.vmNetworks) + && java.util.Objects.equals(this.consumerType, other.consumerType) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.nodeCount == null ? 43 : this.nodeCount.hashCode()); + result = (result * PRIME) + (this.scans == null ? 43 : this.scans.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortSsl == null ? 43 : this.listenerPortSsl.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = (result * PRIME) + (this.vmNetworks == null ? 43 : this.vmNetworks.hashCode()); + result = (result * PRIME) + (this.consumerType == null ? 43 : this.consumerType.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateVmInstanceDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateVmInstanceDetails.java new file mode 100644 index 00000000000..73884246785 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/CreateVmInstanceDetails.java @@ -0,0 +1,1214 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Create VM instance details. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateVmInstanceDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateVmInstanceDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "description", + "infrastructureId", + "cpusEnabled", + "memorySizeInGBs", + "bootStorageSizeInGBs", + "dataStorageSizeInGBs", + "imageId", + "serverId", + "sshPublicKeys", + "domainName", + "timeZone", + "dnsServers", + "ntpServers", + "hostname", + "ipAddress", + "netmask", + "gateway", + "vlanId", + "userdata", + "metadata", + "vmNetworkId", + "definedTags", + "freeformTags", + "systemTags" + }) + public CreateVmInstanceDetails( + String compartmentId, + String displayName, + String description, + String infrastructureId, + Integer cpusEnabled, + Double memorySizeInGBs, + Double bootStorageSizeInGBs, + Double dataStorageSizeInGBs, + String imageId, + String serverId, + java.util.List sshPublicKeys, + String domainName, + String timeZone, + java.util.List dnsServers, + java.util.List ntpServers, + String hostname, + String ipAddress, + String netmask, + String gateway, + String vlanId, + String userdata, + java.util.Map metadata, + String vmNetworkId, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.infrastructureId = infrastructureId; + this.cpusEnabled = cpusEnabled; + this.memorySizeInGBs = memorySizeInGBs; + this.bootStorageSizeInGBs = bootStorageSizeInGBs; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.imageId = imageId; + this.serverId = serverId; + this.sshPublicKeys = sshPublicKeys; + this.domainName = domainName; + this.timeZone = timeZone; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.hostname = hostname; + this.ipAddress = ipAddress; + this.netmask = netmask; + this.gateway = gateway; + this.vlanId = vlanId; + this.userdata = userdata; + this.metadata = metadata; + this.vmNetworkId = vmNetworkId; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM + * instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM + * instance. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * VM instance description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * VM instance description. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder + **/ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The number of CPU cores enabled for each VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private Integer cpusEnabled; + + /** + * The number of CPU cores enabled for each VM instance. + * @param cpusEnabled the value to set + * @return this builder + **/ + public Builder cpusEnabled(Integer cpusEnabled) { + this.cpusEnabled = cpusEnabled; + this.__explicitlySet__.add("cpusEnabled"); + return this; + } + /** + * The memory to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * @param memorySizeInGBs the value to set + * @return this builder + **/ + public Builder memorySizeInGBs(Double memorySizeInGBs) { + this.memorySizeInGBs = memorySizeInGBs; + this.__explicitlySet__.add("memorySizeInGBs"); + return this; + } + /** + * Boot storage memory to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bootStorageSizeInGBs") + private Double bootStorageSizeInGBs; + + /** + * Boot storage memory to be allocated in GBs. + * @param bootStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder bootStorageSizeInGBs(Double bootStorageSizeInGBs) { + this.bootStorageSizeInGBs = bootStorageSizeInGBs; + this.__explicitlySet__.add("bootStorageSizeInGBs"); + return this; + } + /** + * Data storage to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Double dataStorageSizeInGBs; + + /** + * Data storage to be allocated in GBs. + * @param dataStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder dataStorageSizeInGBs(Double dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM custom instance uploaded. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("imageId") + private String imageId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM custom instance uploaded. + * @param imageId the value to set + * @return this builder + **/ + public Builder imageId(String imageId) { + this.imageId = imageId; + this.__explicitlySet__.add("imageId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node on which VM instance should be launched. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serverId") + private String serverId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node on which VM instance should be launched. + * @param serverId the value to set + * @return this builder + **/ + public Builder serverId(String serverId) { + this.serverId = serverId; + this.__explicitlySet__.add("serverId"); + return this; + } + /** + * List of public key used for SSH access to the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private java.util.List sshPublicKeys; + + /** + * List of public key used for SSH access to the VM instance. + * @param sshPublicKeys the value to set + * @return this builder + **/ + public Builder sshPublicKeys(java.util.List sshPublicKeys) { + this.sshPublicKeys = sshPublicKeys; + this.__explicitlySet__.add("sshPublicKeys"); + return this; + } + /** + * The domain name of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private String domainName; + + /** + * The domain name of the VM instance. + * @param domainName the value to set + * @return this builder + **/ + public Builder domainName(String domainName) { + this.domainName = domainName; + this.__explicitlySet__.add("domainName"); + return this; + } + /** + * The time zone to use for the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + /** + * The time zone to use for the VM instance. + * @param timeZone the value to set + * @return this builder + **/ + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @param dnsServers the value to set + * @return this builder + **/ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @param ntpServers the value to set + * @return this builder + **/ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** + * The host name of the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private String hostname; + + /** + * The host name of the instance. + * @param hostname the value to set + * @return this builder + **/ + public Builder hostname(String hostname) { + this.hostname = hostname; + this.__explicitlySet__.add("hostname"); + return this; + } + /** + * The IP address of the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipAddress") + private String ipAddress; + + /** + * The IP address of the instance. + * @param ipAddress the value to set + * @return this builder + **/ + public Builder ipAddress(String ipAddress) { + this.ipAddress = ipAddress; + this.__explicitlySet__.add("ipAddress"); + return this; + } + /** + * The netmask of the VM instance network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The netmask of the VM instance network. + * @param netmask the value to set + * @return this builder + **/ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** + * The gateway IP address of the VM instance network + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The gateway IP address of the VM instance network + * @param gateway the value to set + * @return this builder + **/ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** + * The network VLAN ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private String vlanId; + + /** + * The network VLAN ID. + * @param vlanId the value to set + * @return this builder + **/ + public Builder vlanId(String vlanId) { + this.vlanId = vlanId; + this.__explicitlySet__.add("vlanId"); + return this; + } + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. + * For information about how to take advantage of user data, see the [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userdata") + private String userdata; + + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. + * For information about how to take advantage of user data, see the [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + * + * @param userdata the value to set + * @return this builder + **/ + public Builder userdata(String userdata) { + this.userdata = userdata; + this.__explicitlySet__.add("userdata"); + return this; + } + /** + * Custom metadata key/value pairs which can be used to: + * - Provide information to [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system initialization tasks. + * - Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Custom metadata key/value pairs which can be used to: + * - Provide information to [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system initialization tasks. + * - Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration. + * + * @param metadata the value to set + * @return this builder + **/ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM Network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworkId") + private String vmNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM Network. + * @param vmNetworkId the value to set + * @return this builder + **/ + public Builder vmNetworkId(String vmNetworkId) { + this.vmNetworkId = vmNetworkId; + this.__explicitlySet__.add("vmNetworkId"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateVmInstanceDetails build() { + CreateVmInstanceDetails model = + new CreateVmInstanceDetails( + this.compartmentId, + this.displayName, + this.description, + this.infrastructureId, + this.cpusEnabled, + this.memorySizeInGBs, + this.bootStorageSizeInGBs, + this.dataStorageSizeInGBs, + this.imageId, + this.serverId, + this.sshPublicKeys, + this.domainName, + this.timeZone, + this.dnsServers, + this.ntpServers, + this.hostname, + this.ipAddress, + this.netmask, + this.gateway, + this.vlanId, + this.userdata, + this.metadata, + this.vmNetworkId, + this.definedTags, + this.freeformTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateVmInstanceDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("cpusEnabled")) { + this.cpusEnabled(model.getCpusEnabled()); + } + if (model.wasPropertyExplicitlySet("memorySizeInGBs")) { + this.memorySizeInGBs(model.getMemorySizeInGBs()); + } + if (model.wasPropertyExplicitlySet("bootStorageSizeInGBs")) { + this.bootStorageSizeInGBs(model.getBootStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("imageId")) { + this.imageId(model.getImageId()); + } + if (model.wasPropertyExplicitlySet("serverId")) { + this.serverId(model.getServerId()); + } + if (model.wasPropertyExplicitlySet("sshPublicKeys")) { + this.sshPublicKeys(model.getSshPublicKeys()); + } + if (model.wasPropertyExplicitlySet("domainName")) { + this.domainName(model.getDomainName()); + } + if (model.wasPropertyExplicitlySet("timeZone")) { + this.timeZone(model.getTimeZone()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("hostname")) { + this.hostname(model.getHostname()); + } + if (model.wasPropertyExplicitlySet("ipAddress")) { + this.ipAddress(model.getIpAddress()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("vlanId")) { + this.vlanId(model.getVlanId()); + } + if (model.wasPropertyExplicitlySet("userdata")) { + this.userdata(model.getUserdata()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("vmNetworkId")) { + this.vmNetworkId(model.getVmNetworkId()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM + * instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM + * instance. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * VM instance description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * VM instance description. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @return the value + **/ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * The number of CPU cores enabled for each VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private final Integer cpusEnabled; + + /** + * The number of CPU cores enabled for each VM instance. + * @return the value + **/ + public Integer getCpusEnabled() { + return cpusEnabled; + } + + /** + * The memory to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private final Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * @return the value + **/ + public Double getMemorySizeInGBs() { + return memorySizeInGBs; + } + + /** + * Boot storage memory to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bootStorageSizeInGBs") + private final Double bootStorageSizeInGBs; + + /** + * Boot storage memory to be allocated in GBs. + * @return the value + **/ + public Double getBootStorageSizeInGBs() { + return bootStorageSizeInGBs; + } + + /** + * Data storage to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Double dataStorageSizeInGBs; + + /** + * Data storage to be allocated in GBs. + * @return the value + **/ + public Double getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM custom instance uploaded. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("imageId") + private final String imageId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM custom instance uploaded. + * @return the value + **/ + public String getImageId() { + return imageId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node on which VM instance should be launched. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serverId") + private final String serverId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node on which VM instance should be launched. + * @return the value + **/ + public String getServerId() { + return serverId; + } + + /** + * List of public key used for SSH access to the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private final java.util.List sshPublicKeys; + + /** + * List of public key used for SSH access to the VM instance. + * @return the value + **/ + public java.util.List getSshPublicKeys() { + return sshPublicKeys; + } + + /** + * The domain name of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private final String domainName; + + /** + * The domain name of the VM instance. + * @return the value + **/ + public String getDomainName() { + return domainName; + } + + /** + * The time zone to use for the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private final String timeZone; + + /** + * The time zone to use for the VM instance. + * @return the value + **/ + public String getTimeZone() { + return timeZone; + } + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** + * The host name of the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private final String hostname; + + /** + * The host name of the instance. + * @return the value + **/ + public String getHostname() { + return hostname; + } + + /** + * The IP address of the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipAddress") + private final String ipAddress; + + /** + * The IP address of the instance. + * @return the value + **/ + public String getIpAddress() { + return ipAddress; + } + + /** + * The netmask of the VM instance network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The netmask of the VM instance network. + * @return the value + **/ + public String getNetmask() { + return netmask; + } + + /** + * The gateway IP address of the VM instance network + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The gateway IP address of the VM instance network + * @return the value + **/ + public String getGateway() { + return gateway; + } + + /** + * The network VLAN ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private final String vlanId; + + /** + * The network VLAN ID. + * @return the value + **/ + public String getVlanId() { + return vlanId; + } + + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. + * For information about how to take advantage of user data, see the [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userdata") + private final String userdata; + + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. + * For information about how to take advantage of user data, see the [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + * + * @return the value + **/ + public String getUserdata() { + return userdata; + } + + /** + * Custom metadata key/value pairs which can be used to: + * - Provide information to [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system initialization tasks. + * - Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Custom metadata key/value pairs which can be used to: + * - Provide information to [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system initialization tasks. + * - Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration. + * + * @return the value + **/ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM Network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworkId") + private final String vmNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM Network. + * @return the value + **/ + public String getVmNetworkId() { + return vmNetworkId; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateVmInstanceDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", cpusEnabled=").append(String.valueOf(this.cpusEnabled)); + sb.append(", memorySizeInGBs=").append(String.valueOf(this.memorySizeInGBs)); + sb.append(", bootStorageSizeInGBs=").append(String.valueOf(this.bootStorageSizeInGBs)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", imageId=").append(String.valueOf(this.imageId)); + sb.append(", serverId=").append(String.valueOf(this.serverId)); + sb.append(", sshPublicKeys=").append(String.valueOf(this.sshPublicKeys)); + sb.append(", domainName=").append(String.valueOf(this.domainName)); + sb.append(", timeZone=").append(String.valueOf(this.timeZone)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", hostname=").append(String.valueOf(this.hostname)); + sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", vlanId=").append(String.valueOf(this.vlanId)); + sb.append(", userdata=").append(String.valueOf(this.userdata)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", vmNetworkId=").append(String.valueOf(this.vmNetworkId)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVmInstanceDetails)) { + return false; + } + + CreateVmInstanceDetails other = (CreateVmInstanceDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.cpusEnabled, other.cpusEnabled) + && java.util.Objects.equals(this.memorySizeInGBs, other.memorySizeInGBs) + && java.util.Objects.equals(this.bootStorageSizeInGBs, other.bootStorageSizeInGBs) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.imageId, other.imageId) + && java.util.Objects.equals(this.serverId, other.serverId) + && java.util.Objects.equals(this.sshPublicKeys, other.sshPublicKeys) + && java.util.Objects.equals(this.domainName, other.domainName) + && java.util.Objects.equals(this.timeZone, other.timeZone) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals(this.hostname, other.hostname) + && java.util.Objects.equals(this.ipAddress, other.ipAddress) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.vlanId, other.vlanId) + && java.util.Objects.equals(this.userdata, other.userdata) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.vmNetworkId, other.vmNetworkId) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.cpusEnabled == null ? 43 : this.cpusEnabled.hashCode()); + result = + (result * PRIME) + + (this.memorySizeInGBs == null ? 43 : this.memorySizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.bootStorageSizeInGBs == null + ? 43 + : this.bootStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = (result * PRIME) + (this.imageId == null ? 43 : this.imageId.hashCode()); + result = (result * PRIME) + (this.serverId == null ? 43 : this.serverId.hashCode()); + result = + (result * PRIME) + + (this.sshPublicKeys == null ? 43 : this.sshPublicKeys.hashCode()); + result = (result * PRIME) + (this.domainName == null ? 43 : this.domainName.hashCode()); + result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); + result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.hashCode()); + result = (result * PRIME) + (this.userdata == null ? 43 : this.userdata.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.vmNetworkId == null ? 43 : this.vmNetworkId.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/DiskGroupCapacityDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/DiskGroupCapacityDetails.java new file mode 100644 index 00000000000..15dbc16e2f5 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/DiskGroupCapacityDetails.java @@ -0,0 +1,269 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Capacity details of the storage disk group. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DiskGroupCapacityDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DiskGroupCapacityDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "storageType", + "totalSpaceInGbs", + "reservedSpaceInGbs", + "freeSpaceInGbs" + }) + public DiskGroupCapacityDetails( + String storageType, + Double totalSpaceInGbs, + Double reservedSpaceInGbs, + Double freeSpaceInGbs) { + super(); + this.storageType = storageType; + this.totalSpaceInGbs = totalSpaceInGbs; + this.reservedSpaceInGbs = reservedSpaceInGbs; + this.freeSpaceInGbs = freeSpaceInGbs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The storage type for the Cloud Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageType") + private String storageType; + + /** + * The storage type for the Cloud Database Infrastructure. + * @param storageType the value to set + * @return this builder + **/ + public Builder storageType(String storageType) { + this.storageType = storageType; + this.__explicitlySet__.add("storageType"); + return this; + } + /** + * The total amount of logical disk space available, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalSpaceInGbs") + private Double totalSpaceInGbs; + + /** + * The total amount of logical disk space available, in gigabytes (GB). + * @param totalSpaceInGbs the value to set + * @return this builder + **/ + public Builder totalSpaceInGbs(Double totalSpaceInGbs) { + this.totalSpaceInGbs = totalSpaceInGbs; + this.__explicitlySet__.add("totalSpaceInGbs"); + return this; + } + /** + * The total amount of logical disk space that is reserved for system use, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reservedSpaceInGbs") + private Double reservedSpaceInGbs; + + /** + * The total amount of logical disk space that is reserved for system use, in gigabytes (GB). + * @param reservedSpaceInGbs the value to set + * @return this builder + **/ + public Builder reservedSpaceInGbs(Double reservedSpaceInGbs) { + this.reservedSpaceInGbs = reservedSpaceInGbs; + this.__explicitlySet__.add("reservedSpaceInGbs"); + return this; + } + /** + * The total amount of logical disk space that is currently available for use, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeSpaceInGbs") + private Double freeSpaceInGbs; + + /** + * The total amount of logical disk space that is currently available for use, in gigabytes (GB). + * @param freeSpaceInGbs the value to set + * @return this builder + **/ + public Builder freeSpaceInGbs(Double freeSpaceInGbs) { + this.freeSpaceInGbs = freeSpaceInGbs; + this.__explicitlySet__.add("freeSpaceInGbs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DiskGroupCapacityDetails build() { + DiskGroupCapacityDetails model = + new DiskGroupCapacityDetails( + this.storageType, + this.totalSpaceInGbs, + this.reservedSpaceInGbs, + this.freeSpaceInGbs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DiskGroupCapacityDetails model) { + if (model.wasPropertyExplicitlySet("storageType")) { + this.storageType(model.getStorageType()); + } + if (model.wasPropertyExplicitlySet("totalSpaceInGbs")) { + this.totalSpaceInGbs(model.getTotalSpaceInGbs()); + } + if (model.wasPropertyExplicitlySet("reservedSpaceInGbs")) { + this.reservedSpaceInGbs(model.getReservedSpaceInGbs()); + } + if (model.wasPropertyExplicitlySet("freeSpaceInGbs")) { + this.freeSpaceInGbs(model.getFreeSpaceInGbs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The storage type for the Cloud Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageType") + private final String storageType; + + /** + * The storage type for the Cloud Database Infrastructure. + * @return the value + **/ + public String getStorageType() { + return storageType; + } + + /** + * The total amount of logical disk space available, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalSpaceInGbs") + private final Double totalSpaceInGbs; + + /** + * The total amount of logical disk space available, in gigabytes (GB). + * @return the value + **/ + public Double getTotalSpaceInGbs() { + return totalSpaceInGbs; + } + + /** + * The total amount of logical disk space that is reserved for system use, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reservedSpaceInGbs") + private final Double reservedSpaceInGbs; + + /** + * The total amount of logical disk space that is reserved for system use, in gigabytes (GB). + * @return the value + **/ + public Double getReservedSpaceInGbs() { + return reservedSpaceInGbs; + } + + /** + * The total amount of logical disk space that is currently available for use, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeSpaceInGbs") + private final Double freeSpaceInGbs; + + /** + * The total amount of logical disk space that is currently available for use, in gigabytes (GB). + * @return the value + **/ + public Double getFreeSpaceInGbs() { + return freeSpaceInGbs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DiskGroupCapacityDetails("); + sb.append("super=").append(super.toString()); + sb.append("storageType=").append(String.valueOf(this.storageType)); + sb.append(", totalSpaceInGbs=").append(String.valueOf(this.totalSpaceInGbs)); + sb.append(", reservedSpaceInGbs=").append(String.valueOf(this.reservedSpaceInGbs)); + sb.append(", freeSpaceInGbs=").append(String.valueOf(this.freeSpaceInGbs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DiskGroupCapacityDetails)) { + return false; + } + + DiskGroupCapacityDetails other = (DiskGroupCapacityDetails) o; + return java.util.Objects.equals(this.storageType, other.storageType) + && java.util.Objects.equals(this.totalSpaceInGbs, other.totalSpaceInGbs) + && java.util.Objects.equals(this.reservedSpaceInGbs, other.reservedSpaceInGbs) + && java.util.Objects.equals(this.freeSpaceInGbs, other.freeSpaceInGbs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.storageType == null ? 43 : this.storageType.hashCode()); + result = + (result * PRIME) + + (this.totalSpaceInGbs == null ? 43 : this.totalSpaceInGbs.hashCode()); + result = + (result * PRIME) + + (this.reservedSpaceInGbs == null + ? 43 + : this.reservedSpaceInGbs.hashCode()); + result = + (result * PRIME) + + (this.freeSpaceInGbs == null ? 43 : this.freeSpaceInGbs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/GenerateRecommendedVmClusterNetworkDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/GenerateRecommendedVmClusterNetworkDetails.java new file mode 100644 index 00000000000..196502bb491 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/GenerateRecommendedVmClusterNetworkDetails.java @@ -0,0 +1,570 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Generates a recommended VM cluster network configuration for VM cluster. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GenerateRecommendedVmClusterNetworkDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class GenerateRecommendedVmClusterNetworkDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "infrastructureId", + "compartmentId", + "displayName", + "nodeCount", + "listenerPort", + "listenerPortSsl", + "vmNetworks", + "dnsServers", + "ntpServers", + "definedTags", + "freeformTags" + }) + public GenerateRecommendedVmClusterNetworkDetails( + String infrastructureId, + String compartmentId, + String displayName, + Integer nodeCount, + Integer listenerPort, + Integer listenerPortSsl, + java.util.List vmNetworks, + java.util.List dnsServers, + java.util.List ntpServers, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.infrastructureId = infrastructureId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.nodeCount = nodeCount; + this.listenerPort = listenerPort; + this.listenerPortSsl = listenerPortSsl; + this.vmNetworks = vmNetworks; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder + **/ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Count of virtual machines in this VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * @param nodeCount the value to set + * @return this builder + **/ + public Builder nodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + this.__explicitlySet__.add("nodeCount"); + return this; + } + /** + * The listener TCP/IP port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener TCP/IP port. + * @param listenerPort the value to set + * @return this builder + **/ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** + * The listener TCP/IP SSL port. Default is 2484. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. Default is 2484. + * @param listenerPortSsl the value to set + * @return this builder + **/ + public Builder listenerPortSsl(Integer listenerPortSsl) { + this.listenerPortSsl = listenerPortSsl; + this.__explicitlySet__.add("listenerPortSsl"); + return this; + } + /** + * Details of the client and backup networks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * @param vmNetworks the value to set + * @return this builder + **/ + public Builder vmNetworks(java.util.List vmNetworks) { + this.vmNetworks = vmNetworks; + this.__explicitlySet__.add("vmNetworks"); + return this; + } + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @param dnsServers the value to set + * @return this builder + **/ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @param ntpServers the value to set + * @return this builder + **/ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GenerateRecommendedVmClusterNetworkDetails build() { + GenerateRecommendedVmClusterNetworkDetails model = + new GenerateRecommendedVmClusterNetworkDetails( + this.infrastructureId, + this.compartmentId, + this.displayName, + this.nodeCount, + this.listenerPort, + this.listenerPortSsl, + this.vmNetworks, + this.dnsServers, + this.ntpServers, + this.definedTags, + this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GenerateRecommendedVmClusterNetworkDetails model) { + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("nodeCount")) { + this.nodeCount(model.getNodeCount()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortSsl")) { + this.listenerPortSsl(model.getListenerPortSsl()); + } + if (model.wasPropertyExplicitlySet("vmNetworks")) { + this.vmNetworks(model.getVmNetworks()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @return the value + **/ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Count of virtual machines in this VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private final Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * @return the value + **/ + public Integer getNodeCount() { + return nodeCount; + } + + /** + * The listener TCP/IP port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener TCP/IP port. + * @return the value + **/ + public Integer getListenerPort() { + return listenerPort; + } + + /** + * The listener TCP/IP SSL port. Default is 2484. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private final Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. Default is 2484. + * @return the value + **/ + public Integer getListenerPortSsl() { + return listenerPortSsl; + } + + /** + * Details of the client and backup networks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private final java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * @return the value + **/ + public java.util.List getVmNetworks() { + return vmNetworks; + } + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GenerateRecommendedVmClusterNetworkDetails("); + sb.append("super=").append(super.toString()); + sb.append("infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortSsl=").append(String.valueOf(this.listenerPortSsl)); + sb.append(", vmNetworks=").append(String.valueOf(this.vmNetworks)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateRecommendedVmClusterNetworkDetails)) { + return false; + } + + GenerateRecommendedVmClusterNetworkDetails other = + (GenerateRecommendedVmClusterNetworkDetails) o; + return java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.nodeCount, other.nodeCount) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortSsl, other.listenerPortSsl) + && java.util.Objects.equals(this.vmNetworks, other.vmNetworks) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.nodeCount == null ? 43 : this.nodeCount.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortSsl == null ? 43 : this.listenerPortSsl.hashCode()); + result = (result * PRIME) + (this.vmNetworks == null ? 43 : this.vmNetworks.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfoVmNetworkDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfoVmNetworkDetails.java new file mode 100644 index 00000000000..ad7d89b6cc6 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfoVmNetworkDetails.java @@ -0,0 +1,381 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Details of the client or backup networks in an VM cluster. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InfoVmNetworkDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InfoVmNetworkDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "vlanId", + "networkType", + "netmask", + "gateway", + "domainName", + "prefix", + "startingIp" + }) + public InfoVmNetworkDetails( + String vlanId, + VmClusterNetworkType networkType, + String netmask, + String gateway, + String domainName, + String prefix, + String startingIp) { + super(); + this.vlanId = vlanId; + this.networkType = networkType; + this.netmask = netmask; + this.gateway = gateway; + this.domainName = domainName; + this.prefix = prefix; + this.startingIp = startingIp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The network VLAN ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private String vlanId; + + /** + * The network VLAN ID. + * @param vlanId the value to set + * @return this builder + **/ + public Builder vlanId(String vlanId) { + this.vlanId = vlanId; + this.__explicitlySet__.add("vlanId"); + return this; + } + /** + * The network type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkType") + private VmClusterNetworkType networkType; + + /** + * The network type. + * @param networkType the value to set + * @return this builder + **/ + public Builder networkType(VmClusterNetworkType networkType) { + this.networkType = networkType; + this.__explicitlySet__.add("networkType"); + return this; + } + /** + * The network netmask. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The network netmask. + * @param netmask the value to set + * @return this builder + **/ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** + * The network gateway. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The network gateway. + * @param gateway the value to set + * @return this builder + **/ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** + * The network domain name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private String domainName; + + /** + * The network domain name. + * @param domainName the value to set + * @return this builder + **/ + public Builder domainName(String domainName) { + this.domainName = domainName; + this.__explicitlySet__.add("domainName"); + return this; + } + /** + * The network domain name prefix. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * The network domain name prefix. + * @param prefix the value to set + * @return this builder + **/ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + /** + * Starting ip address of the virtual machines. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("startingIp") + private String startingIp; + + /** + * Starting ip address of the virtual machines. + * @param startingIp the value to set + * @return this builder + **/ + public Builder startingIp(String startingIp) { + this.startingIp = startingIp; + this.__explicitlySet__.add("startingIp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InfoVmNetworkDetails build() { + InfoVmNetworkDetails model = + new InfoVmNetworkDetails( + this.vlanId, + this.networkType, + this.netmask, + this.gateway, + this.domainName, + this.prefix, + this.startingIp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InfoVmNetworkDetails model) { + if (model.wasPropertyExplicitlySet("vlanId")) { + this.vlanId(model.getVlanId()); + } + if (model.wasPropertyExplicitlySet("networkType")) { + this.networkType(model.getNetworkType()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("domainName")) { + this.domainName(model.getDomainName()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("startingIp")) { + this.startingIp(model.getStartingIp()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The network VLAN ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private final String vlanId; + + /** + * The network VLAN ID. + * @return the value + **/ + public String getVlanId() { + return vlanId; + } + + /** + * The network type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkType") + private final VmClusterNetworkType networkType; + + /** + * The network type. + * @return the value + **/ + public VmClusterNetworkType getNetworkType() { + return networkType; + } + + /** + * The network netmask. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The network netmask. + * @return the value + **/ + public String getNetmask() { + return netmask; + } + + /** + * The network gateway. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The network gateway. + * @return the value + **/ + public String getGateway() { + return gateway; + } + + /** + * The network domain name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private final String domainName; + + /** + * The network domain name. + * @return the value + **/ + public String getDomainName() { + return domainName; + } + + /** + * The network domain name prefix. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * The network domain name prefix. + * @return the value + **/ + public String getPrefix() { + return prefix; + } + + /** + * Starting ip address of the virtual machines. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("startingIp") + private final String startingIp; + + /** + * Starting ip address of the virtual machines. + * @return the value + **/ + public String getStartingIp() { + return startingIp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InfoVmNetworkDetails("); + sb.append("super=").append(super.toString()); + sb.append("vlanId=").append(String.valueOf(this.vlanId)); + sb.append(", networkType=").append(String.valueOf(this.networkType)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", domainName=").append(String.valueOf(this.domainName)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", startingIp=").append(String.valueOf(this.startingIp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InfoVmNetworkDetails)) { + return false; + } + + InfoVmNetworkDetails other = (InfoVmNetworkDetails) o; + return java.util.Objects.equals(this.vlanId, other.vlanId) + && java.util.Objects.equals(this.networkType, other.networkType) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.domainName, other.domainName) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.startingIp, other.startingIp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.hashCode()); + result = (result * PRIME) + (this.networkType == null ? 43 : this.networkType.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = (result * PRIME) + (this.domainName == null ? 43 : this.domainName.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = (result * PRIME) + (this.startingIp == null ? 43 : this.startingIp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/Infrastructure.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/Infrastructure.java new file mode 100644 index 00000000000..ca6d8bc9421 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/Infrastructure.java @@ -0,0 +1,2120 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Details about Database Infrastructure 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Infrastructure.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class Infrastructure extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "description", + "compartmentId", + "displayName", + "systemModel", + "version", + "shape", + "cloudControlPlaneServer1", + "cloudControlPlaneServer2", + "netmask", + "gateway", + "adminNetworkcidr", + "dataDiskPercentage", + "recoDiskPercentage", + "contacts", + "dnsServers", + "ntpServers", + "clientNetworkBondingMode", + "backupNetworkBondingMode", + "cpsNetworkBondingMode", + "clientNetworkBondingInterface", + "backupNetworkBondingInterface", + "cpsNetworkBondingInterface", + "acfsFileSystemStorageInGbs", + "acfsFileSystemUsedStorageInGbs", + "corporateProxy", + "vlanId", + "freeformTags", + "definedTags", + "systemTags", + "maintenanceWindow", + "timeCreated", + "timeUpdated", + "timeLastStateUpdated", + "timeActivated", + "timeValidated", + "lifecycleState", + "lifecycleStateDetails", + "rackSerialNumber", + "servers", + "computeCapacity", + "storageCapacity", + "systemStorageCapacity", + "networkAdapterConfiguration", + "subscriptionPlanNumber", + "ssdConfigurationRequested" + }) + public Infrastructure( + String id, + String description, + String compartmentId, + String displayName, + SystemModelEnum systemModel, + String version, + ShapeEnum shape, + String cloudControlPlaneServer1, + String cloudControlPlaneServer2, + String netmask, + String gateway, + String adminNetworkcidr, + Integer dataDiskPercentage, + Integer recoDiskPercentage, + java.util.List contacts, + java.util.List dnsServers, + java.util.List ntpServers, + NetworkBondingMode clientNetworkBondingMode, + NetworkBondingMode backupNetworkBondingMode, + NetworkBondingMode cpsNetworkBondingMode, + NetworkBondingInterfaceEnum clientNetworkBondingInterface, + NetworkBondingInterfaceEnum backupNetworkBondingInterface, + NetworkBondingInterfaceEnum cpsNetworkBondingInterface, + Double acfsFileSystemStorageInGbs, + Double acfsFileSystemUsedStorageInGbs, + String corporateProxy, + String vlanId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + MaintenanceWindow maintenanceWindow, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeLastStateUpdated, + java.util.Date timeActivated, + java.util.Date timeValidated, + InfrastructureLifecycleState lifecycleState, + String lifecycleStateDetails, + String rackSerialNumber, + java.util.List servers, + ComputeCapacityDetails computeCapacity, + java.util.List storageCapacity, + SystemStorageCapacityDetails systemStorageCapacity, + String networkAdapterConfiguration, + String subscriptionPlanNumber, + ShapeEnum ssdConfigurationRequested) { + super(); + this.id = id; + this.description = description; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.systemModel = systemModel; + this.version = version; + this.shape = shape; + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.netmask = netmask; + this.gateway = gateway; + this.adminNetworkcidr = adminNetworkcidr; + this.dataDiskPercentage = dataDiskPercentage; + this.recoDiskPercentage = recoDiskPercentage; + this.contacts = contacts; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.acfsFileSystemUsedStorageInGbs = acfsFileSystemUsedStorageInGbs; + this.corporateProxy = corporateProxy; + this.vlanId = vlanId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.maintenanceWindow = maintenanceWindow; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeLastStateUpdated = timeLastStateUpdated; + this.timeActivated = timeActivated; + this.timeValidated = timeValidated; + this.lifecycleState = lifecycleState; + this.lifecycleStateDetails = lifecycleStateDetails; + this.rackSerialNumber = rackSerialNumber; + this.servers = servers; + this.computeCapacity = computeCapacity; + this.storageCapacity = storageCapacity; + this.systemStorageCapacity = systemStorageCapacity; + this.networkAdapterConfiguration = networkAdapterConfiguration; + this.subscriptionPlanNumber = subscriptionPlanNumber; + this.ssdConfigurationRequested = ssdConfigurationRequested; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Database Infrastructure description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Database Infrastructure description. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + * @param systemModel the value to set + * @return this builder + **/ + public Builder systemModel(SystemModelEnum systemModel) { + this.systemModel = systemModel; + this.__explicitlySet__.add("systemModel"); + return this; + } + /** + * The version of the system software on the Database Infrastructure. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of the system software on the Database Infrastructure. + * + * @param version the value to set + * @return this builder + **/ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + * @param shape the value to set + * @return this builder + **/ + public Builder shape(ShapeEnum shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** + * The IP address for the first control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * @param cloudControlPlaneServer1 the value to set + * @return this builder + **/ + public Builder cloudControlPlaneServer1(String cloudControlPlaneServer1) { + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.__explicitlySet__.add("cloudControlPlaneServer1"); + return this; + } + /** + * The IP address for the second control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * @param cloudControlPlaneServer2 the value to set + * @return this builder + **/ + public Builder cloudControlPlaneServer2(String cloudControlPlaneServer2) { + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.__explicitlySet__.add("cloudControlPlaneServer2"); + return this; + } + /** + * The netmask for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The netmask for the control plane network. + * @param netmask the value to set + * @return this builder + **/ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** + * The gateway for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The gateway for the control plane network. + * @param gateway the value to set + * @return this builder + **/ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + * @param adminNetworkcidr the value to set + * @return this builder + **/ + public Builder adminNetworkcidr(String adminNetworkcidr) { + this.adminNetworkcidr = adminNetworkcidr; + this.__explicitlySet__.add("adminNetworkcidr"); + return this; + } + /** + * Percentage of disk space assigned for DATA disk group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataDiskPercentage") + private Integer dataDiskPercentage; + + /** + * Percentage of disk space assigned for DATA disk group. + * @param dataDiskPercentage the value to set + * @return this builder + **/ + public Builder dataDiskPercentage(Integer dataDiskPercentage) { + this.dataDiskPercentage = dataDiskPercentage; + this.__explicitlySet__.add("dataDiskPercentage"); + return this; + } + /** + * Percentage of disk space assigned for RECO disk group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoDiskPercentage") + private Integer recoDiskPercentage; + + /** + * Percentage of disk space assigned for RECO disk group. + * @param recoDiskPercentage the value to set + * @return this builder + **/ + public Builder recoDiskPercentage(Integer recoDiskPercentage) { + this.recoDiskPercentage = recoDiskPercentage; + this.__explicitlySet__.add("recoDiskPercentage"); + return this; + } + /** + * The list of contacts for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * @param contacts the value to set + * @return this builder + **/ + public Builder contacts(java.util.List contacts) { + this.contacts = contacts; + this.__explicitlySet__.add("contacts"); + return this; + } + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @param dnsServers the value to set + * @return this builder + **/ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @param ntpServers the value to set + * @return this builder + **/ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** + * The network bonding mode for Client networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * @param clientNetworkBondingMode the value to set + * @return this builder + **/ + public Builder clientNetworkBondingMode(NetworkBondingMode clientNetworkBondingMode) { + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.__explicitlySet__.add("clientNetworkBondingMode"); + return this; + } + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * @param backupNetworkBondingMode the value to set + * @return this builder + **/ + public Builder backupNetworkBondingMode(NetworkBondingMode backupNetworkBondingMode) { + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.__explicitlySet__.add("backupNetworkBondingMode"); + return this; + } + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * @param cpsNetworkBondingMode the value to set + * @return this builder + **/ + public Builder cpsNetworkBondingMode(NetworkBondingMode cpsNetworkBondingMode) { + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.__explicitlySet__.add("cpsNetworkBondingMode"); + return this; + } + /** + * The network bonding interface for client network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * @param clientNetworkBondingInterface the value to set + * @return this builder + **/ + public Builder clientNetworkBondingInterface( + NetworkBondingInterfaceEnum clientNetworkBondingInterface) { + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.__explicitlySet__.add("clientNetworkBondingInterface"); + return this; + } + /** + * The network bonding interface for backup network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * @param backupNetworkBondingInterface the value to set + * @return this builder + **/ + public Builder backupNetworkBondingInterface( + NetworkBondingInterfaceEnum backupNetworkBondingInterface) { + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.__explicitlySet__.add("backupNetworkBondingInterface"); + return this; + } + /** + * The network bonding interface for CPS network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * @param cpsNetworkBondingInterface the value to set + * @return this builder + **/ + public Builder cpsNetworkBondingInterface( + NetworkBondingInterfaceEnum cpsNetworkBondingInterface) { + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.__explicitlySet__.add("cpsNetworkBondingInterface"); + return this; + } + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + * @param acfsFileSystemStorageInGbs the value to set + * @return this builder + **/ + public Builder acfsFileSystemStorageInGbs(Double acfsFileSystemStorageInGbs) { + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.__explicitlySet__.add("acfsFileSystemStorageInGbs"); + return this; + } + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for creating local storage for VM Clusters and application VMs. + * This attribute is deprecated and will be removed in a subsequent release. Please read from systemStorageCapacity instead. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemUsedStorageInGbs") + private Double acfsFileSystemUsedStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for creating local storage for VM Clusters and application VMs. + * This attribute is deprecated and will be removed in a subsequent release. Please read from systemStorageCapacity instead. + * + * @param acfsFileSystemUsedStorageInGbs the value to set + * @return this builder + **/ + public Builder acfsFileSystemUsedStorageInGbs(Double acfsFileSystemUsedStorageInGbs) { + this.acfsFileSystemUsedStorageInGbs = acfsFileSystemUsedStorageInGbs; + this.__explicitlySet__.add("acfsFileSystemUsedStorageInGbs"); + return this; + } + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + * @param corporateProxy the value to set + * @return this builder + **/ + public Builder corporateProxy(String corporateProxy) { + this.corporateProxy = corporateProxy; + this.__explicitlySet__.add("corporateProxy"); + return this; + } + /** + * The CPS network VLAN ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private String vlanId; + + /** + * The CPS network VLAN ID. + * @param vlanId the value to set + * @return this builder + **/ + public Builder vlanId(String vlanId) { + this.vlanId = vlanId; + this.__explicitlySet__.add("vlanId"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private MaintenanceWindow maintenanceWindow; + + public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { + this.maintenanceWindow = maintenanceWindow; + this.__explicitlySet__.add("maintenanceWindow"); + return this; + } + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The time, in RFC3339 format, when the lifecycle state was last updated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastStateUpdated") + private java.util.Date timeLastStateUpdated; + + /** + * The time, in RFC3339 format, when the lifecycle state was last updated. + * + * @param timeLastStateUpdated the value to set + * @return this builder + **/ + public Builder timeLastStateUpdated(java.util.Date timeLastStateUpdated) { + this.timeLastStateUpdated = timeLastStateUpdated; + this.__explicitlySet__.add("timeLastStateUpdated"); + return this; + } + /** + * The time, in RFC3339 format, when the Database Infrastructure was activated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeActivated") + private java.util.Date timeActivated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure was activated. + * + * @param timeActivated the value to set + * @return this builder + **/ + public Builder timeActivated(java.util.Date timeActivated) { + this.timeActivated = timeActivated; + this.__explicitlySet__.add("timeActivated"); + return this; + } + /** + * The time, in RFC3339 format, when the Database Infrastructure network was validated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeValidated") + private java.util.Date timeValidated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure network was validated. + * + * @param timeValidated the value to set + * @return this builder + **/ + public Builder timeValidated(java.util.Date timeValidated) { + this.timeValidated = timeValidated; + this.__explicitlySet__.add("timeValidated"); + return this; + } + /** + * The current state of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private InfrastructureLifecycleState lifecycleState; + + /** + * The current state of the Database Infrastructure. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(InfrastructureLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Lifecycle state details of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + /** + * Lifecycle state details of the Database Infrastructure. + * @param lifecycleStateDetails the value to set + * @return this builder + **/ + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + /** + * The serial number for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rackSerialNumber") + private String rackSerialNumber; + + /** + * The serial number for the Database Infrastructure. + * @param rackSerialNumber the value to set + * @return this builder + **/ + public Builder rackSerialNumber(String rackSerialNumber) { + this.rackSerialNumber = rackSerialNumber; + this.__explicitlySet__.add("rackSerialNumber"); + return this; + } + /** + * A list of Database Infrastructure nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("servers") + private java.util.List servers; + + /** + * A list of Database Infrastructure nodes. + * @param servers the value to set + * @return this builder + **/ + public Builder servers(java.util.List servers) { + this.servers = servers; + this.__explicitlySet__.add("servers"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacity") + private ComputeCapacityDetails computeCapacity; + + public Builder computeCapacity(ComputeCapacityDetails computeCapacity) { + this.computeCapacity = computeCapacity; + this.__explicitlySet__.add("computeCapacity"); + return this; + } + /** + * Capacity details of the Storage disk group. + * This attribute is deprecated and will be removed in a subsequent release. Please + * use systemStorageCapacity instead. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageCapacity") + private java.util.List storageCapacity; + + /** + * Capacity details of the Storage disk group. + * This attribute is deprecated and will be removed in a subsequent release. Please + * use systemStorageCapacity instead. + * + * @param storageCapacity the value to set + * @return this builder + **/ + public Builder storageCapacity(java.util.List storageCapacity) { + this.storageCapacity = storageCapacity; + this.__explicitlySet__.add("storageCapacity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemStorageCapacity") + private SystemStorageCapacityDetails systemStorageCapacity; + + public Builder systemStorageCapacity(SystemStorageCapacityDetails systemStorageCapacity) { + this.systemStorageCapacity = systemStorageCapacity; + this.__explicitlySet__.add("systemStorageCapacity"); + return this; + } + /** + * The network adapter, transceiver and cable configuration for the client and backup networks. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkAdapterConfiguration") + private String networkAdapterConfiguration; + + /** + * The network adapter, transceiver and cable configuration for the client and backup networks. + * + * @param networkAdapterConfiguration the value to set + * @return this builder + **/ + public Builder networkAdapterConfiguration(String networkAdapterConfiguration) { + this.networkAdapterConfiguration = networkAdapterConfiguration; + this.__explicitlySet__.add("networkAdapterConfiguration"); + return this; + } + /** + * The unique identifier for the subscription plan number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionPlanNumber") + private String subscriptionPlanNumber; + + /** + * The unique identifier for the subscription plan number. + * @param subscriptionPlanNumber the value to set + * @return this builder + **/ + public Builder subscriptionPlanNumber(String subscriptionPlanNumber) { + this.subscriptionPlanNumber = subscriptionPlanNumber; + this.__explicitlySet__.add("subscriptionPlanNumber"); + return this; + } + /** + * SSD configuration requested for the infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ssdConfigurationRequested") + private ShapeEnum ssdConfigurationRequested; + + /** + * SSD configuration requested for the infrastructure. + * @param ssdConfigurationRequested the value to set + * @return this builder + **/ + public Builder ssdConfigurationRequested(ShapeEnum ssdConfigurationRequested) { + this.ssdConfigurationRequested = ssdConfigurationRequested; + this.__explicitlySet__.add("ssdConfigurationRequested"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Infrastructure build() { + Infrastructure model = + new Infrastructure( + this.id, + this.description, + this.compartmentId, + this.displayName, + this.systemModel, + this.version, + this.shape, + this.cloudControlPlaneServer1, + this.cloudControlPlaneServer2, + this.netmask, + this.gateway, + this.adminNetworkcidr, + this.dataDiskPercentage, + this.recoDiskPercentage, + this.contacts, + this.dnsServers, + this.ntpServers, + this.clientNetworkBondingMode, + this.backupNetworkBondingMode, + this.cpsNetworkBondingMode, + this.clientNetworkBondingInterface, + this.backupNetworkBondingInterface, + this.cpsNetworkBondingInterface, + this.acfsFileSystemStorageInGbs, + this.acfsFileSystemUsedStorageInGbs, + this.corporateProxy, + this.vlanId, + this.freeformTags, + this.definedTags, + this.systemTags, + this.maintenanceWindow, + this.timeCreated, + this.timeUpdated, + this.timeLastStateUpdated, + this.timeActivated, + this.timeValidated, + this.lifecycleState, + this.lifecycleStateDetails, + this.rackSerialNumber, + this.servers, + this.computeCapacity, + this.storageCapacity, + this.systemStorageCapacity, + this.networkAdapterConfiguration, + this.subscriptionPlanNumber, + this.ssdConfigurationRequested); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Infrastructure model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("systemModel")) { + this.systemModel(model.getSystemModel()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer1")) { + this.cloudControlPlaneServer1(model.getCloudControlPlaneServer1()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer2")) { + this.cloudControlPlaneServer2(model.getCloudControlPlaneServer2()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("adminNetworkcidr")) { + this.adminNetworkcidr(model.getAdminNetworkcidr()); + } + if (model.wasPropertyExplicitlySet("dataDiskPercentage")) { + this.dataDiskPercentage(model.getDataDiskPercentage()); + } + if (model.wasPropertyExplicitlySet("recoDiskPercentage")) { + this.recoDiskPercentage(model.getRecoDiskPercentage()); + } + if (model.wasPropertyExplicitlySet("contacts")) { + this.contacts(model.getContacts()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingMode")) { + this.clientNetworkBondingMode(model.getClientNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingMode")) { + this.backupNetworkBondingMode(model.getBackupNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingMode")) { + this.cpsNetworkBondingMode(model.getCpsNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingInterface")) { + this.clientNetworkBondingInterface(model.getClientNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingInterface")) { + this.backupNetworkBondingInterface(model.getBackupNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingInterface")) { + this.cpsNetworkBondingInterface(model.getCpsNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("acfsFileSystemStorageInGbs")) { + this.acfsFileSystemStorageInGbs(model.getAcfsFileSystemStorageInGbs()); + } + if (model.wasPropertyExplicitlySet("acfsFileSystemUsedStorageInGbs")) { + this.acfsFileSystemUsedStorageInGbs(model.getAcfsFileSystemUsedStorageInGbs()); + } + if (model.wasPropertyExplicitlySet("corporateProxy")) { + this.corporateProxy(model.getCorporateProxy()); + } + if (model.wasPropertyExplicitlySet("vlanId")) { + this.vlanId(model.getVlanId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("maintenanceWindow")) { + this.maintenanceWindow(model.getMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeLastStateUpdated")) { + this.timeLastStateUpdated(model.getTimeLastStateUpdated()); + } + if (model.wasPropertyExplicitlySet("timeActivated")) { + this.timeActivated(model.getTimeActivated()); + } + if (model.wasPropertyExplicitlySet("timeValidated")) { + this.timeValidated(model.getTimeValidated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { + this.lifecycleStateDetails(model.getLifecycleStateDetails()); + } + if (model.wasPropertyExplicitlySet("rackSerialNumber")) { + this.rackSerialNumber(model.getRackSerialNumber()); + } + if (model.wasPropertyExplicitlySet("servers")) { + this.servers(model.getServers()); + } + if (model.wasPropertyExplicitlySet("computeCapacity")) { + this.computeCapacity(model.getComputeCapacity()); + } + if (model.wasPropertyExplicitlySet("storageCapacity")) { + this.storageCapacity(model.getStorageCapacity()); + } + if (model.wasPropertyExplicitlySet("systemStorageCapacity")) { + this.systemStorageCapacity(model.getSystemStorageCapacity()); + } + if (model.wasPropertyExplicitlySet("networkAdapterConfiguration")) { + this.networkAdapterConfiguration(model.getNetworkAdapterConfiguration()); + } + if (model.wasPropertyExplicitlySet("subscriptionPlanNumber")) { + this.subscriptionPlanNumber(model.getSubscriptionPlanNumber()); + } + if (model.wasPropertyExplicitlySet("ssdConfigurationRequested")) { + this.ssdConfigurationRequested(model.getSsdConfigurationRequested()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Database Infrastructure description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Database Infrastructure description. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private final SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + * @return the value + **/ + public SystemModelEnum getSystemModel() { + return systemModel; + } + + /** + * The version of the system software on the Database Infrastructure. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of the system software on the Database Infrastructure. + * + * @return the value + **/ + public String getVersion() { + return version; + } + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + * @return the value + **/ + public ShapeEnum getShape() { + return shape; + } + + /** + * The IP address for the first control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private final String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * @return the value + **/ + public String getCloudControlPlaneServer1() { + return cloudControlPlaneServer1; + } + + /** + * The IP address for the second control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private final String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * @return the value + **/ + public String getCloudControlPlaneServer2() { + return cloudControlPlaneServer2; + } + + /** + * The netmask for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The netmask for the control plane network. + * @return the value + **/ + public String getNetmask() { + return netmask; + } + + /** + * The gateway for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The gateway for the control plane network. + * @return the value + **/ + public String getGateway() { + return gateway; + } + + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private final String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + * @return the value + **/ + public String getAdminNetworkcidr() { + return adminNetworkcidr; + } + + /** + * Percentage of disk space assigned for DATA disk group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataDiskPercentage") + private final Integer dataDiskPercentage; + + /** + * Percentage of disk space assigned for DATA disk group. + * @return the value + **/ + public Integer getDataDiskPercentage() { + return dataDiskPercentage; + } + + /** + * Percentage of disk space assigned for RECO disk group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoDiskPercentage") + private final Integer recoDiskPercentage; + + /** + * Percentage of disk space assigned for RECO disk group. + * @return the value + **/ + public Integer getRecoDiskPercentage() { + return recoDiskPercentage; + } + + /** + * The list of contacts for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private final java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * @return the value + **/ + public java.util.List getContacts() { + return contacts; + } + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private final NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingMode getClientNetworkBondingMode() { + return clientNetworkBondingMode; + } + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private final NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingMode getBackupNetworkBondingMode() { + return backupNetworkBondingMode; + } + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private final NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingMode getCpsNetworkBondingMode() { + return cpsNetworkBondingMode; + } + + /** + * The network bonding interface for client network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private final NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingInterfaceEnum getClientNetworkBondingInterface() { + return clientNetworkBondingInterface; + } + + /** + * The network bonding interface for backup network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private final NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingInterfaceEnum getBackupNetworkBondingInterface() { + return backupNetworkBondingInterface; + } + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private final NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingInterfaceEnum getCpsNetworkBondingInterface() { + return cpsNetworkBondingInterface; + } + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private final Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + * @return the value + **/ + public Double getAcfsFileSystemStorageInGbs() { + return acfsFileSystemStorageInGbs; + } + + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for creating local storage for VM Clusters and application VMs. + * This attribute is deprecated and will be removed in a subsequent release. Please read from systemStorageCapacity instead. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemUsedStorageInGbs") + private final Double acfsFileSystemUsedStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for creating local storage for VM Clusters and application VMs. + * This attribute is deprecated and will be removed in a subsequent release. Please read from systemStorageCapacity instead. + * + * @return the value + **/ + public Double getAcfsFileSystemUsedStorageInGbs() { + return acfsFileSystemUsedStorageInGbs; + } + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private final String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + * @return the value + **/ + public String getCorporateProxy() { + return corporateProxy; + } + + /** + * The CPS network VLAN ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private final String vlanId; + + /** + * The CPS network VLAN ID. + * @return the value + **/ + public String getVlanId() { + return vlanId; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private final MaintenanceWindow maintenanceWindow; + + public MaintenanceWindow getMaintenanceWindow() { + return maintenanceWindow; + } + + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted datetime string. + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime string. + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The time, in RFC3339 format, when the lifecycle state was last updated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastStateUpdated") + private final java.util.Date timeLastStateUpdated; + + /** + * The time, in RFC3339 format, when the lifecycle state was last updated. + * + * @return the value + **/ + public java.util.Date getTimeLastStateUpdated() { + return timeLastStateUpdated; + } + + /** + * The time, in RFC3339 format, when the Database Infrastructure was activated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeActivated") + private final java.util.Date timeActivated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure was activated. + * + * @return the value + **/ + public java.util.Date getTimeActivated() { + return timeActivated; + } + + /** + * The time, in RFC3339 format, when the Database Infrastructure network was validated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeValidated") + private final java.util.Date timeValidated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure network was validated. + * + * @return the value + **/ + public java.util.Date getTimeValidated() { + return timeValidated; + } + + /** + * The current state of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final InfrastructureLifecycleState lifecycleState; + + /** + * The current state of the Database Infrastructure. + * @return the value + **/ + public InfrastructureLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Lifecycle state details of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private final String lifecycleStateDetails; + + /** + * Lifecycle state details of the Database Infrastructure. + * @return the value + **/ + public String getLifecycleStateDetails() { + return lifecycleStateDetails; + } + + /** + * The serial number for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rackSerialNumber") + private final String rackSerialNumber; + + /** + * The serial number for the Database Infrastructure. + * @return the value + **/ + public String getRackSerialNumber() { + return rackSerialNumber; + } + + /** + * A list of Database Infrastructure nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("servers") + private final java.util.List servers; + + /** + * A list of Database Infrastructure nodes. + * @return the value + **/ + public java.util.List getServers() { + return servers; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacity") + private final ComputeCapacityDetails computeCapacity; + + public ComputeCapacityDetails getComputeCapacity() { + return computeCapacity; + } + + /** + * Capacity details of the Storage disk group. + * This attribute is deprecated and will be removed in a subsequent release. Please + * use systemStorageCapacity instead. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageCapacity") + private final java.util.List storageCapacity; + + /** + * Capacity details of the Storage disk group. + * This attribute is deprecated and will be removed in a subsequent release. Please + * use systemStorageCapacity instead. + * + * @return the value + **/ + public java.util.List getStorageCapacity() { + return storageCapacity; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemStorageCapacity") + private final SystemStorageCapacityDetails systemStorageCapacity; + + public SystemStorageCapacityDetails getSystemStorageCapacity() { + return systemStorageCapacity; + } + + /** + * The network adapter, transceiver and cable configuration for the client and backup networks. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkAdapterConfiguration") + private final String networkAdapterConfiguration; + + /** + * The network adapter, transceiver and cable configuration for the client and backup networks. + * + * @return the value + **/ + public String getNetworkAdapterConfiguration() { + return networkAdapterConfiguration; + } + + /** + * The unique identifier for the subscription plan number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionPlanNumber") + private final String subscriptionPlanNumber; + + /** + * The unique identifier for the subscription plan number. + * @return the value + **/ + public String getSubscriptionPlanNumber() { + return subscriptionPlanNumber; + } + + /** + * SSD configuration requested for the infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ssdConfigurationRequested") + private final ShapeEnum ssdConfigurationRequested; + + /** + * SSD configuration requested for the infrastructure. + * @return the value + **/ + public ShapeEnum getSsdConfigurationRequested() { + return ssdConfigurationRequested; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Infrastructure("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", systemModel=").append(String.valueOf(this.systemModel)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", cloudControlPlaneServer1=") + .append(String.valueOf(this.cloudControlPlaneServer1)); + sb.append(", cloudControlPlaneServer2=") + .append(String.valueOf(this.cloudControlPlaneServer2)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", adminNetworkcidr=").append(String.valueOf(this.adminNetworkcidr)); + sb.append(", dataDiskPercentage=").append(String.valueOf(this.dataDiskPercentage)); + sb.append(", recoDiskPercentage=").append(String.valueOf(this.recoDiskPercentage)); + sb.append(", contacts=").append(String.valueOf(this.contacts)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", clientNetworkBondingMode=") + .append(String.valueOf(this.clientNetworkBondingMode)); + sb.append(", backupNetworkBondingMode=") + .append(String.valueOf(this.backupNetworkBondingMode)); + sb.append(", cpsNetworkBondingMode=").append(String.valueOf(this.cpsNetworkBondingMode)); + sb.append(", clientNetworkBondingInterface=") + .append(String.valueOf(this.clientNetworkBondingInterface)); + sb.append(", backupNetworkBondingInterface=") + .append(String.valueOf(this.backupNetworkBondingInterface)); + sb.append(", cpsNetworkBondingInterface=") + .append(String.valueOf(this.cpsNetworkBondingInterface)); + sb.append(", acfsFileSystemStorageInGbs=") + .append(String.valueOf(this.acfsFileSystemStorageInGbs)); + sb.append(", acfsFileSystemUsedStorageInGbs=") + .append(String.valueOf(this.acfsFileSystemUsedStorageInGbs)); + sb.append(", corporateProxy=").append(String.valueOf(this.corporateProxy)); + sb.append(", vlanId=").append(String.valueOf(this.vlanId)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeLastStateUpdated=").append(String.valueOf(this.timeLastStateUpdated)); + sb.append(", timeActivated=").append(String.valueOf(this.timeActivated)); + sb.append(", timeValidated=").append(String.valueOf(this.timeValidated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", rackSerialNumber=").append(String.valueOf(this.rackSerialNumber)); + sb.append(", servers=").append(String.valueOf(this.servers)); + sb.append(", computeCapacity=").append(String.valueOf(this.computeCapacity)); + sb.append(", storageCapacity=").append(String.valueOf(this.storageCapacity)); + sb.append(", systemStorageCapacity=").append(String.valueOf(this.systemStorageCapacity)); + sb.append(", networkAdapterConfiguration=") + .append(String.valueOf(this.networkAdapterConfiguration)); + sb.append(", subscriptionPlanNumber=").append(String.valueOf(this.subscriptionPlanNumber)); + sb.append(", ssdConfigurationRequested=") + .append(String.valueOf(this.ssdConfigurationRequested)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Infrastructure)) { + return false; + } + + Infrastructure other = (Infrastructure) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.systemModel, other.systemModel) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals( + this.cloudControlPlaneServer1, other.cloudControlPlaneServer1) + && java.util.Objects.equals( + this.cloudControlPlaneServer2, other.cloudControlPlaneServer2) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.adminNetworkcidr, other.adminNetworkcidr) + && java.util.Objects.equals(this.dataDiskPercentage, other.dataDiskPercentage) + && java.util.Objects.equals(this.recoDiskPercentage, other.recoDiskPercentage) + && java.util.Objects.equals(this.contacts, other.contacts) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals( + this.clientNetworkBondingMode, other.clientNetworkBondingMode) + && java.util.Objects.equals( + this.backupNetworkBondingMode, other.backupNetworkBondingMode) + && java.util.Objects.equals(this.cpsNetworkBondingMode, other.cpsNetworkBondingMode) + && java.util.Objects.equals( + this.clientNetworkBondingInterface, other.clientNetworkBondingInterface) + && java.util.Objects.equals( + this.backupNetworkBondingInterface, other.backupNetworkBondingInterface) + && java.util.Objects.equals( + this.cpsNetworkBondingInterface, other.cpsNetworkBondingInterface) + && java.util.Objects.equals( + this.acfsFileSystemStorageInGbs, other.acfsFileSystemStorageInGbs) + && java.util.Objects.equals( + this.acfsFileSystemUsedStorageInGbs, other.acfsFileSystemUsedStorageInGbs) + && java.util.Objects.equals(this.corporateProxy, other.corporateProxy) + && java.util.Objects.equals(this.vlanId, other.vlanId) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeLastStateUpdated, other.timeLastStateUpdated) + && java.util.Objects.equals(this.timeActivated, other.timeActivated) + && java.util.Objects.equals(this.timeValidated, other.timeValidated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.rackSerialNumber, other.rackSerialNumber) + && java.util.Objects.equals(this.servers, other.servers) + && java.util.Objects.equals(this.computeCapacity, other.computeCapacity) + && java.util.Objects.equals(this.storageCapacity, other.storageCapacity) + && java.util.Objects.equals(this.systemStorageCapacity, other.systemStorageCapacity) + && java.util.Objects.equals( + this.networkAdapterConfiguration, other.networkAdapterConfiguration) + && java.util.Objects.equals( + this.subscriptionPlanNumber, other.subscriptionPlanNumber) + && java.util.Objects.equals( + this.ssdConfigurationRequested, other.ssdConfigurationRequested) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.systemModel == null ? 43 : this.systemModel.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer1 == null + ? 43 + : this.cloudControlPlaneServer1.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer2 == null + ? 43 + : this.cloudControlPlaneServer2.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = + (result * PRIME) + + (this.adminNetworkcidr == null ? 43 : this.adminNetworkcidr.hashCode()); + result = + (result * PRIME) + + (this.dataDiskPercentage == null + ? 43 + : this.dataDiskPercentage.hashCode()); + result = + (result * PRIME) + + (this.recoDiskPercentage == null + ? 43 + : this.recoDiskPercentage.hashCode()); + result = (result * PRIME) + (this.contacts == null ? 43 : this.contacts.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingMode == null + ? 43 + : this.clientNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingMode == null + ? 43 + : this.backupNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingMode == null + ? 43 + : this.cpsNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingInterface == null + ? 43 + : this.clientNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingInterface == null + ? 43 + : this.backupNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingInterface == null + ? 43 + : this.cpsNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.acfsFileSystemStorageInGbs == null + ? 43 + : this.acfsFileSystemStorageInGbs.hashCode()); + result = + (result * PRIME) + + (this.acfsFileSystemUsedStorageInGbs == null + ? 43 + : this.acfsFileSystemUsedStorageInGbs.hashCode()); + result = + (result * PRIME) + + (this.corporateProxy == null ? 43 : this.corporateProxy.hashCode()); + result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeLastStateUpdated == null + ? 43 + : this.timeLastStateUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeActivated == null ? 43 : this.timeActivated.hashCode()); + result = + (result * PRIME) + + (this.timeValidated == null ? 43 : this.timeValidated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleStateDetails == null + ? 43 + : this.lifecycleStateDetails.hashCode()); + result = + (result * PRIME) + + (this.rackSerialNumber == null ? 43 : this.rackSerialNumber.hashCode()); + result = (result * PRIME) + (this.servers == null ? 43 : this.servers.hashCode()); + result = + (result * PRIME) + + (this.computeCapacity == null ? 43 : this.computeCapacity.hashCode()); + result = + (result * PRIME) + + (this.storageCapacity == null ? 43 : this.storageCapacity.hashCode()); + result = + (result * PRIME) + + (this.systemStorageCapacity == null + ? 43 + : this.systemStorageCapacity.hashCode()); + result = + (result * PRIME) + + (this.networkAdapterConfiguration == null + ? 43 + : this.networkAdapterConfiguration.hashCode()); + result = + (result * PRIME) + + (this.subscriptionPlanNumber == null + ? 43 + : this.subscriptionPlanNumber.hashCode()); + result = + (result * PRIME) + + (this.ssdConfigurationRequested == null + ? 43 + : this.ssdConfigurationRequested.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureCollection.java new file mode 100644 index 00000000000..322b2ad4efc --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * A collection of Database Infrastructure resources. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InfrastructureCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InfrastructureCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public InfrastructureCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of Database Infrastructure resources. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of Database Infrastructure resources. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InfrastructureCollection build() { + InfrastructureCollection model = new InfrastructureCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InfrastructureCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of Database Infrastructure resources. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of Database Infrastructure resources. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InfrastructureCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InfrastructureCollection)) { + return false; + } + + InfrastructureCollection other = (InfrastructureCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureContact.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureContact.java new file mode 100644 index 00000000000..89440c0e17c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureContact.java @@ -0,0 +1,321 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Contact details for Database Infrastructure. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InfrastructureContact.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InfrastructureContact + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "phoneNumber", + "email", + "isPrimary", + "isContactMosValidated" + }) + public InfrastructureContact( + String name, + String phoneNumber, + String email, + Boolean isPrimary, + Boolean isContactMosValidated) { + super(); + this.name = name; + this.phoneNumber = phoneNumber; + this.email = email; + this.isPrimary = isPrimary; + this.isContactMosValidated = isContactMosValidated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the Database Infrastructure contact. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the Database Infrastructure contact. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The phone number for the Database Infrastructure contact. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("phoneNumber") + private String phoneNumber; + + /** + * The phone number for the Database Infrastructure contact. + * @param phoneNumber the value to set + * @return this builder + **/ + public Builder phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + this.__explicitlySet__.add("phoneNumber"); + return this; + } + /** + * The email for the Database Infrastructure contact. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + /** + * The email for the Database Infrastructure contact. + * @param email the value to set + * @return this builder + **/ + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } + /** + * If {@code true}, this Database Infrastructure contact is a primary contact. + * If {@code false}, this Database Infrastructure is a secondary contact. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPrimary") + private Boolean isPrimary; + + /** + * If {@code true}, this Database Infrastructure contact is a primary contact. + * If {@code false}, this Database Infrastructure is a secondary contact. + * + * @param isPrimary the value to set + * @return this builder + **/ + public Builder isPrimary(Boolean isPrimary) { + this.isPrimary = isPrimary; + this.__explicitlySet__.add("isPrimary"); + return this; + } + /** + * If {@code true}, this Database Infrastructure contact is a valid My Oracle Support (MOS) contact. + * If {@code false}, this Database Infrastructure contact is not a valid MOS contact. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isContactMosValidated") + private Boolean isContactMosValidated; + + /** + * If {@code true}, this Database Infrastructure contact is a valid My Oracle Support (MOS) contact. + * If {@code false}, this Database Infrastructure contact is not a valid MOS contact. + * + * @param isContactMosValidated the value to set + * @return this builder + **/ + public Builder isContactMosValidated(Boolean isContactMosValidated) { + this.isContactMosValidated = isContactMosValidated; + this.__explicitlySet__.add("isContactMosValidated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InfrastructureContact build() { + InfrastructureContact model = + new InfrastructureContact( + this.name, + this.phoneNumber, + this.email, + this.isPrimary, + this.isContactMosValidated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InfrastructureContact model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("phoneNumber")) { + this.phoneNumber(model.getPhoneNumber()); + } + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } + if (model.wasPropertyExplicitlySet("isPrimary")) { + this.isPrimary(model.getIsPrimary()); + } + if (model.wasPropertyExplicitlySet("isContactMosValidated")) { + this.isContactMosValidated(model.getIsContactMosValidated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of the Database Infrastructure contact. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the Database Infrastructure contact. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The phone number for the Database Infrastructure contact. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("phoneNumber") + private final String phoneNumber; + + /** + * The phone number for the Database Infrastructure contact. + * @return the value + **/ + public String getPhoneNumber() { + return phoneNumber; + } + + /** + * The email for the Database Infrastructure contact. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private final String email; + + /** + * The email for the Database Infrastructure contact. + * @return the value + **/ + public String getEmail() { + return email; + } + + /** + * If {@code true}, this Database Infrastructure contact is a primary contact. + * If {@code false}, this Database Infrastructure is a secondary contact. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPrimary") + private final Boolean isPrimary; + + /** + * If {@code true}, this Database Infrastructure contact is a primary contact. + * If {@code false}, this Database Infrastructure is a secondary contact. + * + * @return the value + **/ + public Boolean getIsPrimary() { + return isPrimary; + } + + /** + * If {@code true}, this Database Infrastructure contact is a valid My Oracle Support (MOS) contact. + * If {@code false}, this Database Infrastructure contact is not a valid MOS contact. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isContactMosValidated") + private final Boolean isContactMosValidated; + + /** + * If {@code true}, this Database Infrastructure contact is a valid My Oracle Support (MOS) contact. + * If {@code false}, this Database Infrastructure contact is not a valid MOS contact. + * + * @return the value + **/ + public Boolean getIsContactMosValidated() { + return isContactMosValidated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InfrastructureContact("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", phoneNumber=").append(String.valueOf(this.phoneNumber)); + sb.append(", email=").append(String.valueOf(this.email)); + sb.append(", isPrimary=").append(String.valueOf(this.isPrimary)); + sb.append(", isContactMosValidated=").append(String.valueOf(this.isContactMosValidated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InfrastructureContact)) { + return false; + } + + InfrastructureContact other = (InfrastructureContact) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.phoneNumber, other.phoneNumber) + && java.util.Objects.equals(this.email, other.email) + && java.util.Objects.equals(this.isPrimary, other.isPrimary) + && java.util.Objects.equals(this.isContactMosValidated, other.isContactMosValidated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.phoneNumber == null ? 43 : this.phoneNumber.hashCode()); + result = (result * PRIME) + (this.email == null ? 43 : this.email.hashCode()); + result = (result * PRIME) + (this.isPrimary == null ? 43 : this.isPrimary.hashCode()); + result = + (result * PRIME) + + (this.isContactMosValidated == null + ? 43 + : this.isContactMosValidated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureLifecycleState.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureLifecycleState.java new file mode 100644 index 00000000000..d7ecac194df --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureLifecycleState.java @@ -0,0 +1,67 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Database Infrastructure lifecycle states. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum InfrastructureLifecycleState { + Creating("CREATING"), + RequiresValidation("REQUIRES_VALIDATION"), + Validating("VALIDATING"), + ValidationFailed("VALIDATION_FAILED"), + RequiresActivation("REQUIRES_ACTIVATION"), + Activating("ACTIVATING"), + Active("ACTIVE"), + ActivationFailed("ACTIVATION_FAILED"), + Failed("FAILED"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + Disconnected("DISCONNECTED"), + MaintenanceInProgress("MAINTENANCE_IN_PROGRESS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(InfrastructureLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InfrastructureLifecycleState v : InfrastructureLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + InfrastructureLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static InfrastructureLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'InfrastructureLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureScaleOption.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureScaleOption.java new file mode 100644 index 00000000000..8376b506e72 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureScaleOption.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * The available scale options for the infrastructure. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InfrastructureScaleOption.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InfrastructureScaleOption + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"possibleSsdConfigurations"}) + public InfrastructureScaleOption(java.util.List possibleSsdConfigurations) { + super(); + this.possibleSsdConfigurations = possibleSsdConfigurations; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The available scale options for the infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("possibleSsdConfigurations") + private java.util.List possibleSsdConfigurations; + + /** + * The available scale options for the infrastructure. + * @param possibleSsdConfigurations the value to set + * @return this builder + **/ + public Builder possibleSsdConfigurations( + java.util.List possibleSsdConfigurations) { + this.possibleSsdConfigurations = possibleSsdConfigurations; + this.__explicitlySet__.add("possibleSsdConfigurations"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InfrastructureScaleOption build() { + InfrastructureScaleOption model = + new InfrastructureScaleOption(this.possibleSsdConfigurations); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InfrastructureScaleOption model) { + if (model.wasPropertyExplicitlySet("possibleSsdConfigurations")) { + this.possibleSsdConfigurations(model.getPossibleSsdConfigurations()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The available scale options for the infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("possibleSsdConfigurations") + private final java.util.List possibleSsdConfigurations; + + /** + * The available scale options for the infrastructure. + * @return the value + **/ + public java.util.List getPossibleSsdConfigurations() { + return possibleSsdConfigurations; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InfrastructureScaleOption("); + sb.append("super=").append(super.toString()); + sb.append("possibleSsdConfigurations=") + .append(String.valueOf(this.possibleSsdConfigurations)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InfrastructureScaleOption)) { + return false; + } + + InfrastructureScaleOption other = (InfrastructureScaleOption) o; + return java.util.Objects.equals( + this.possibleSsdConfigurations, other.possibleSsdConfigurations) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.possibleSsdConfigurations == null + ? 43 + : this.possibleSsdConfigurations.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureServer.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureServer.java new file mode 100644 index 00000000000..8db7fa44a50 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureServer.java @@ -0,0 +1,456 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Database Infrastructure Server details. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InfrastructureServer.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InfrastructureServer extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "serverName", + "serverIpAddress", + "ilomName", + "ilomIpAddress", + "lifecycleState", + "baseVmCount", + "instanceVmCount", + "computeCapacity" + }) + public InfrastructureServer( + String id, + String serverName, + String serverIpAddress, + String ilomName, + String ilomIpAddress, + InfrastructureServerLifecycleState lifecycleState, + Integer baseVmCount, + Integer instanceVmCount, + ComputeCapacityDetails computeCapacity) { + super(); + this.id = id; + this.serverName = serverName; + this.serverIpAddress = serverIpAddress; + this.ilomName = ilomName; + this.ilomIpAddress = ilomIpAddress; + this.lifecycleState = lifecycleState; + this.baseVmCount = baseVmCount; + this.instanceVmCount = instanceVmCount; + this.computeCapacity = computeCapacity; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Data Server of Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Data Server of Infrastructure. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Database Infrastructure Server name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serverName") + private String serverName; + + /** + * Database Infrastructure Server name. + * @param serverName the value to set + * @return this builder + **/ + public Builder serverName(String serverName) { + this.serverName = serverName; + this.__explicitlySet__.add("serverName"); + return this; + } + /** + * Database Infrastructure Server IP address. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serverIpAddress") + private String serverIpAddress; + + /** + * Database Infrastructure Server IP address. + * @param serverIpAddress the value to set + * @return this builder + **/ + public Builder serverIpAddress(String serverIpAddress) { + this.serverIpAddress = serverIpAddress; + this.__explicitlySet__.add("serverIpAddress"); + return this; + } + /** + * Database Infrastructure Server ILOM name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ilomName") + private String ilomName; + + /** + * Database Infrastructure Server ILOM name. + * @param ilomName the value to set + * @return this builder + **/ + public Builder ilomName(String ilomName) { + this.ilomName = ilomName; + this.__explicitlySet__.add("ilomName"); + return this; + } + /** + * Database Infrastructure Server ILOM IP address. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ilomIpAddress") + private String ilomIpAddress; + + /** + * Database Infrastructure Server ILOM IP address. + * @param ilomIpAddress the value to set + * @return this builder + **/ + public Builder ilomIpAddress(String ilomIpAddress) { + this.ilomIpAddress = ilomIpAddress; + this.__explicitlySet__.add("ilomIpAddress"); + return this; + } + /** + * The current state of the Database Infrastructure server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private InfrastructureServerLifecycleState lifecycleState; + + /** + * The current state of the Database Infrastructure server. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(InfrastructureServerLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Number of database virtual machines hosted on the server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmCount") + private Integer baseVmCount; + + /** + * Number of database virtual machines hosted on the server. + * @param baseVmCount the value to set + * @return this builder + **/ + public Builder baseVmCount(Integer baseVmCount) { + this.baseVmCount = baseVmCount; + this.__explicitlySet__.add("baseVmCount"); + return this; + } + /** + * Number of instances hosted on the server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceVmCount") + private Integer instanceVmCount; + + /** + * Number of instances hosted on the server. + * @param instanceVmCount the value to set + * @return this builder + **/ + public Builder instanceVmCount(Integer instanceVmCount) { + this.instanceVmCount = instanceVmCount; + this.__explicitlySet__.add("instanceVmCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacity") + private ComputeCapacityDetails computeCapacity; + + public Builder computeCapacity(ComputeCapacityDetails computeCapacity) { + this.computeCapacity = computeCapacity; + this.__explicitlySet__.add("computeCapacity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InfrastructureServer build() { + InfrastructureServer model = + new InfrastructureServer( + this.id, + this.serverName, + this.serverIpAddress, + this.ilomName, + this.ilomIpAddress, + this.lifecycleState, + this.baseVmCount, + this.instanceVmCount, + this.computeCapacity); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InfrastructureServer model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("serverName")) { + this.serverName(model.getServerName()); + } + if (model.wasPropertyExplicitlySet("serverIpAddress")) { + this.serverIpAddress(model.getServerIpAddress()); + } + if (model.wasPropertyExplicitlySet("ilomName")) { + this.ilomName(model.getIlomName()); + } + if (model.wasPropertyExplicitlySet("ilomIpAddress")) { + this.ilomIpAddress(model.getIlomIpAddress()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("baseVmCount")) { + this.baseVmCount(model.getBaseVmCount()); + } + if (model.wasPropertyExplicitlySet("instanceVmCount")) { + this.instanceVmCount(model.getInstanceVmCount()); + } + if (model.wasPropertyExplicitlySet("computeCapacity")) { + this.computeCapacity(model.getComputeCapacity()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Data Server of Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Data Server of Infrastructure. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Database Infrastructure Server name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serverName") + private final String serverName; + + /** + * Database Infrastructure Server name. + * @return the value + **/ + public String getServerName() { + return serverName; + } + + /** + * Database Infrastructure Server IP address. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serverIpAddress") + private final String serverIpAddress; + + /** + * Database Infrastructure Server IP address. + * @return the value + **/ + public String getServerIpAddress() { + return serverIpAddress; + } + + /** + * Database Infrastructure Server ILOM name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ilomName") + private final String ilomName; + + /** + * Database Infrastructure Server ILOM name. + * @return the value + **/ + public String getIlomName() { + return ilomName; + } + + /** + * Database Infrastructure Server ILOM IP address. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ilomIpAddress") + private final String ilomIpAddress; + + /** + * Database Infrastructure Server ILOM IP address. + * @return the value + **/ + public String getIlomIpAddress() { + return ilomIpAddress; + } + + /** + * The current state of the Database Infrastructure server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final InfrastructureServerLifecycleState lifecycleState; + + /** + * The current state of the Database Infrastructure server. + * @return the value + **/ + public InfrastructureServerLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Number of database virtual machines hosted on the server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmCount") + private final Integer baseVmCount; + + /** + * Number of database virtual machines hosted on the server. + * @return the value + **/ + public Integer getBaseVmCount() { + return baseVmCount; + } + + /** + * Number of instances hosted on the server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceVmCount") + private final Integer instanceVmCount; + + /** + * Number of instances hosted on the server. + * @return the value + **/ + public Integer getInstanceVmCount() { + return instanceVmCount; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacity") + private final ComputeCapacityDetails computeCapacity; + + public ComputeCapacityDetails getComputeCapacity() { + return computeCapacity; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InfrastructureServer("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", serverName=").append(String.valueOf(this.serverName)); + sb.append(", serverIpAddress=").append(String.valueOf(this.serverIpAddress)); + sb.append(", ilomName=").append(String.valueOf(this.ilomName)); + sb.append(", ilomIpAddress=").append(String.valueOf(this.ilomIpAddress)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", baseVmCount=").append(String.valueOf(this.baseVmCount)); + sb.append(", instanceVmCount=").append(String.valueOf(this.instanceVmCount)); + sb.append(", computeCapacity=").append(String.valueOf(this.computeCapacity)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InfrastructureServer)) { + return false; + } + + InfrastructureServer other = (InfrastructureServer) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.serverName, other.serverName) + && java.util.Objects.equals(this.serverIpAddress, other.serverIpAddress) + && java.util.Objects.equals(this.ilomName, other.ilomName) + && java.util.Objects.equals(this.ilomIpAddress, other.ilomIpAddress) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.baseVmCount, other.baseVmCount) + && java.util.Objects.equals(this.instanceVmCount, other.instanceVmCount) + && java.util.Objects.equals(this.computeCapacity, other.computeCapacity) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.serverName == null ? 43 : this.serverName.hashCode()); + result = + (result * PRIME) + + (this.serverIpAddress == null ? 43 : this.serverIpAddress.hashCode()); + result = (result * PRIME) + (this.ilomName == null ? 43 : this.ilomName.hashCode()); + result = + (result * PRIME) + + (this.ilomIpAddress == null ? 43 : this.ilomIpAddress.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.baseVmCount == null ? 43 : this.baseVmCount.hashCode()); + result = + (result * PRIME) + + (this.instanceVmCount == null ? 43 : this.instanceVmCount.hashCode()); + result = + (result * PRIME) + + (this.computeCapacity == null ? 43 : this.computeCapacity.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureServerLifecycleState.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureServerLifecycleState.java new file mode 100644 index 00000000000..e3bde89c688 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureServerLifecycleState.java @@ -0,0 +1,67 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Database Infrastructure server lifecycle states. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum InfrastructureServerLifecycleState { + Creating("CREATING"), + RequiresValidation("REQUIRES_VALIDATION"), + Validating("VALIDATING"), + ValidationFailed("VALIDATION_FAILED"), + RequiresActivation("REQUIRES_ACTIVATION"), + Activating("ACTIVATING"), + Active("ACTIVE"), + ActivationFailed("ACTIVATION_FAILED"), + Failed("FAILED"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + Disconnected("DISCONNECTED"), + MaintenanceInProgress("MAINTENANCE_IN_PROGRESS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(InfrastructureServerLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InfrastructureServerLifecycleState v : InfrastructureServerLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + InfrastructureServerLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static InfrastructureServerLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'InfrastructureServerLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureSummary.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureSummary.java new file mode 100644 index 00000000000..949f6be8a97 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureSummary.java @@ -0,0 +1,1863 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Database Infrastructure resource summary. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InfrastructureSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InfrastructureSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "description", + "compartmentId", + "displayName", + "systemModel", + "version", + "shape", + "cloudControlPlaneServer1", + "cloudControlPlaneServer2", + "netmask", + "gateway", + "adminNetworkcidr", + "contacts", + "dnsServers", + "ntpServers", + "clientNetworkBondingMode", + "backupNetworkBondingMode", + "cpsNetworkBondingMode", + "clientNetworkBondingInterface", + "backupNetworkBondingInterface", + "cpsNetworkBondingInterface", + "acfsFileSystemStorageInGbs", + "acfsFileSystemUsedStorageInGbs", + "corporateProxy", + "freeformTags", + "definedTags", + "systemTags", + "maintenanceWindow", + "timeCreated", + "timeUpdated", + "timeLastStateUpdated", + "timeActivated", + "timeValidated", + "lifecycleState", + "lifecycleStateDetails", + "computeCapacity", + "storageCapacity", + "systemStorageCapacity", + "subscriptionPlanNumber", + "ssdConfigurationRequested" + }) + public InfrastructureSummary( + String id, + String description, + String compartmentId, + String displayName, + SystemModelEnum systemModel, + String version, + ShapeEnum shape, + String cloudControlPlaneServer1, + String cloudControlPlaneServer2, + String netmask, + String gateway, + String adminNetworkcidr, + java.util.List contacts, + java.util.List dnsServers, + java.util.List ntpServers, + NetworkBondingMode clientNetworkBondingMode, + NetworkBondingMode backupNetworkBondingMode, + NetworkBondingMode cpsNetworkBondingMode, + NetworkBondingInterfaceEnum clientNetworkBondingInterface, + NetworkBondingInterfaceEnum backupNetworkBondingInterface, + NetworkBondingInterfaceEnum cpsNetworkBondingInterface, + Double acfsFileSystemStorageInGbs, + Double acfsFileSystemUsedStorageInGbs, + String corporateProxy, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + MaintenanceWindow maintenanceWindow, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeLastStateUpdated, + java.util.Date timeActivated, + java.util.Date timeValidated, + InfrastructureLifecycleState lifecycleState, + String lifecycleStateDetails, + ComputeCapacityDetails computeCapacity, + java.util.List storageCapacity, + SystemStorageCapacityDetails systemStorageCapacity, + String subscriptionPlanNumber, + ShapeEnum ssdConfigurationRequested) { + super(); + this.id = id; + this.description = description; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.systemModel = systemModel; + this.version = version; + this.shape = shape; + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.netmask = netmask; + this.gateway = gateway; + this.adminNetworkcidr = adminNetworkcidr; + this.contacts = contacts; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.acfsFileSystemUsedStorageInGbs = acfsFileSystemUsedStorageInGbs; + this.corporateProxy = corporateProxy; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.maintenanceWindow = maintenanceWindow; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeLastStateUpdated = timeLastStateUpdated; + this.timeActivated = timeActivated; + this.timeValidated = timeValidated; + this.lifecycleState = lifecycleState; + this.lifecycleStateDetails = lifecycleStateDetails; + this.computeCapacity = computeCapacity; + this.storageCapacity = storageCapacity; + this.systemStorageCapacity = systemStorageCapacity; + this.subscriptionPlanNumber = subscriptionPlanNumber; + this.ssdConfigurationRequested = ssdConfigurationRequested; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Database Infrastructure description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Database Infrastructure description. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + * @param systemModel the value to set + * @return this builder + **/ + public Builder systemModel(SystemModelEnum systemModel) { + this.systemModel = systemModel; + this.__explicitlySet__.add("systemModel"); + return this; + } + /** + * The version of the system software on the Database Infrastructure. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of the system software on the Database Infrastructure. + * + * @param version the value to set + * @return this builder + **/ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + * @param shape the value to set + * @return this builder + **/ + public Builder shape(ShapeEnum shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** + * The IP address for the first control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * @param cloudControlPlaneServer1 the value to set + * @return this builder + **/ + public Builder cloudControlPlaneServer1(String cloudControlPlaneServer1) { + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.__explicitlySet__.add("cloudControlPlaneServer1"); + return this; + } + /** + * The IP address for the second control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * @param cloudControlPlaneServer2 the value to set + * @return this builder + **/ + public Builder cloudControlPlaneServer2(String cloudControlPlaneServer2) { + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.__explicitlySet__.add("cloudControlPlaneServer2"); + return this; + } + /** + * The netmask for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The netmask for the control plane network. + * @param netmask the value to set + * @return this builder + **/ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** + * The gateway for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The gateway for the control plane network. + * @param gateway the value to set + * @return this builder + **/ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + * @param adminNetworkcidr the value to set + * @return this builder + **/ + public Builder adminNetworkcidr(String adminNetworkcidr) { + this.adminNetworkcidr = adminNetworkcidr; + this.__explicitlySet__.add("adminNetworkcidr"); + return this; + } + /** + * The list of contacts for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * @param contacts the value to set + * @return this builder + **/ + public Builder contacts(java.util.List contacts) { + this.contacts = contacts; + this.__explicitlySet__.add("contacts"); + return this; + } + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @param dnsServers the value to set + * @return this builder + **/ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @param ntpServers the value to set + * @return this builder + **/ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** + * The network bonding mode for Client networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * @param clientNetworkBondingMode the value to set + * @return this builder + **/ + public Builder clientNetworkBondingMode(NetworkBondingMode clientNetworkBondingMode) { + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.__explicitlySet__.add("clientNetworkBondingMode"); + return this; + } + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * @param backupNetworkBondingMode the value to set + * @return this builder + **/ + public Builder backupNetworkBondingMode(NetworkBondingMode backupNetworkBondingMode) { + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.__explicitlySet__.add("backupNetworkBondingMode"); + return this; + } + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * @param cpsNetworkBondingMode the value to set + * @return this builder + **/ + public Builder cpsNetworkBondingMode(NetworkBondingMode cpsNetworkBondingMode) { + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.__explicitlySet__.add("cpsNetworkBondingMode"); + return this; + } + /** + * The network bonding interface for client network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * @param clientNetworkBondingInterface the value to set + * @return this builder + **/ + public Builder clientNetworkBondingInterface( + NetworkBondingInterfaceEnum clientNetworkBondingInterface) { + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.__explicitlySet__.add("clientNetworkBondingInterface"); + return this; + } + /** + * The network bonding interface for backup network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * @param backupNetworkBondingInterface the value to set + * @return this builder + **/ + public Builder backupNetworkBondingInterface( + NetworkBondingInterfaceEnum backupNetworkBondingInterface) { + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.__explicitlySet__.add("backupNetworkBondingInterface"); + return this; + } + /** + * The network bonding interface for CPS network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * @param cpsNetworkBondingInterface the value to set + * @return this builder + **/ + public Builder cpsNetworkBondingInterface( + NetworkBondingInterfaceEnum cpsNetworkBondingInterface) { + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.__explicitlySet__.add("cpsNetworkBondingInterface"); + return this; + } + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + * @param acfsFileSystemStorageInGbs the value to set + * @return this builder + **/ + public Builder acfsFileSystemStorageInGbs(Double acfsFileSystemStorageInGbs) { + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.__explicitlySet__.add("acfsFileSystemStorageInGbs"); + return this; + } + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for creating local storage for VM Clusters and application VMs. + * This attribute is deprecated and will be removed in a subsequent release. Please read from systemStorageCapacity instead. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemUsedStorageInGbs") + private Double acfsFileSystemUsedStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for creating local storage for VM Clusters and application VMs. + * This attribute is deprecated and will be removed in a subsequent release. Please read from systemStorageCapacity instead. + * + * @param acfsFileSystemUsedStorageInGbs the value to set + * @return this builder + **/ + public Builder acfsFileSystemUsedStorageInGbs(Double acfsFileSystemUsedStorageInGbs) { + this.acfsFileSystemUsedStorageInGbs = acfsFileSystemUsedStorageInGbs; + this.__explicitlySet__.add("acfsFileSystemUsedStorageInGbs"); + return this; + } + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + * @param corporateProxy the value to set + * @return this builder + **/ + public Builder corporateProxy(String corporateProxy) { + this.corporateProxy = corporateProxy; + this.__explicitlySet__.add("corporateProxy"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private MaintenanceWindow maintenanceWindow; + + public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { + this.maintenanceWindow = maintenanceWindow; + this.__explicitlySet__.add("maintenanceWindow"); + return this; + } + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The time, in RFC3339 format, when the lifecycle state was last updated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastStateUpdated") + private java.util.Date timeLastStateUpdated; + + /** + * The time, in RFC3339 format, when the lifecycle state was last updated. + * + * @param timeLastStateUpdated the value to set + * @return this builder + **/ + public Builder timeLastStateUpdated(java.util.Date timeLastStateUpdated) { + this.timeLastStateUpdated = timeLastStateUpdated; + this.__explicitlySet__.add("timeLastStateUpdated"); + return this; + } + /** + * The time, in RFC3339 format, when the Database Infrastructure was activated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeActivated") + private java.util.Date timeActivated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure was activated. + * + * @param timeActivated the value to set + * @return this builder + **/ + public Builder timeActivated(java.util.Date timeActivated) { + this.timeActivated = timeActivated; + this.__explicitlySet__.add("timeActivated"); + return this; + } + /** + * The time, in RFC3339 format, when the Database Infrastructure network was validated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeValidated") + private java.util.Date timeValidated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure network was validated. + * + * @param timeValidated the value to set + * @return this builder + **/ + public Builder timeValidated(java.util.Date timeValidated) { + this.timeValidated = timeValidated; + this.__explicitlySet__.add("timeValidated"); + return this; + } + /** + * The current state of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private InfrastructureLifecycleState lifecycleState; + + /** + * The current state of the Database Infrastructure. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(InfrastructureLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Lifecycle state details of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + /** + * Lifecycle state details of the Database Infrastructure. + * @param lifecycleStateDetails the value to set + * @return this builder + **/ + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacity") + private ComputeCapacityDetails computeCapacity; + + public Builder computeCapacity(ComputeCapacityDetails computeCapacity) { + this.computeCapacity = computeCapacity; + this.__explicitlySet__.add("computeCapacity"); + return this; + } + /** + * Capacity details of the Storage disk group. + * This attribute is deprecated and will be removed in a subsequent release. Please + * use systemStorageCapacity instead. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageCapacity") + private java.util.List storageCapacity; + + /** + * Capacity details of the Storage disk group. + * This attribute is deprecated and will be removed in a subsequent release. Please + * use systemStorageCapacity instead. + * + * @param storageCapacity the value to set + * @return this builder + **/ + public Builder storageCapacity(java.util.List storageCapacity) { + this.storageCapacity = storageCapacity; + this.__explicitlySet__.add("storageCapacity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemStorageCapacity") + private SystemStorageCapacityDetails systemStorageCapacity; + + public Builder systemStorageCapacity(SystemStorageCapacityDetails systemStorageCapacity) { + this.systemStorageCapacity = systemStorageCapacity; + this.__explicitlySet__.add("systemStorageCapacity"); + return this; + } + /** + * The unique identifier for the subscription plan number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionPlanNumber") + private String subscriptionPlanNumber; + + /** + * The unique identifier for the subscription plan number. + * @param subscriptionPlanNumber the value to set + * @return this builder + **/ + public Builder subscriptionPlanNumber(String subscriptionPlanNumber) { + this.subscriptionPlanNumber = subscriptionPlanNumber; + this.__explicitlySet__.add("subscriptionPlanNumber"); + return this; + } + /** + * SSD configuration requested for the infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ssdConfigurationRequested") + private ShapeEnum ssdConfigurationRequested; + + /** + * SSD configuration requested for the infrastructure. + * @param ssdConfigurationRequested the value to set + * @return this builder + **/ + public Builder ssdConfigurationRequested(ShapeEnum ssdConfigurationRequested) { + this.ssdConfigurationRequested = ssdConfigurationRequested; + this.__explicitlySet__.add("ssdConfigurationRequested"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InfrastructureSummary build() { + InfrastructureSummary model = + new InfrastructureSummary( + this.id, + this.description, + this.compartmentId, + this.displayName, + this.systemModel, + this.version, + this.shape, + this.cloudControlPlaneServer1, + this.cloudControlPlaneServer2, + this.netmask, + this.gateway, + this.adminNetworkcidr, + this.contacts, + this.dnsServers, + this.ntpServers, + this.clientNetworkBondingMode, + this.backupNetworkBondingMode, + this.cpsNetworkBondingMode, + this.clientNetworkBondingInterface, + this.backupNetworkBondingInterface, + this.cpsNetworkBondingInterface, + this.acfsFileSystemStorageInGbs, + this.acfsFileSystemUsedStorageInGbs, + this.corporateProxy, + this.freeformTags, + this.definedTags, + this.systemTags, + this.maintenanceWindow, + this.timeCreated, + this.timeUpdated, + this.timeLastStateUpdated, + this.timeActivated, + this.timeValidated, + this.lifecycleState, + this.lifecycleStateDetails, + this.computeCapacity, + this.storageCapacity, + this.systemStorageCapacity, + this.subscriptionPlanNumber, + this.ssdConfigurationRequested); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InfrastructureSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("systemModel")) { + this.systemModel(model.getSystemModel()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer1")) { + this.cloudControlPlaneServer1(model.getCloudControlPlaneServer1()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer2")) { + this.cloudControlPlaneServer2(model.getCloudControlPlaneServer2()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("adminNetworkcidr")) { + this.adminNetworkcidr(model.getAdminNetworkcidr()); + } + if (model.wasPropertyExplicitlySet("contacts")) { + this.contacts(model.getContacts()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingMode")) { + this.clientNetworkBondingMode(model.getClientNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingMode")) { + this.backupNetworkBondingMode(model.getBackupNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingMode")) { + this.cpsNetworkBondingMode(model.getCpsNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingInterface")) { + this.clientNetworkBondingInterface(model.getClientNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingInterface")) { + this.backupNetworkBondingInterface(model.getBackupNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingInterface")) { + this.cpsNetworkBondingInterface(model.getCpsNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("acfsFileSystemStorageInGbs")) { + this.acfsFileSystemStorageInGbs(model.getAcfsFileSystemStorageInGbs()); + } + if (model.wasPropertyExplicitlySet("acfsFileSystemUsedStorageInGbs")) { + this.acfsFileSystemUsedStorageInGbs(model.getAcfsFileSystemUsedStorageInGbs()); + } + if (model.wasPropertyExplicitlySet("corporateProxy")) { + this.corporateProxy(model.getCorporateProxy()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("maintenanceWindow")) { + this.maintenanceWindow(model.getMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeLastStateUpdated")) { + this.timeLastStateUpdated(model.getTimeLastStateUpdated()); + } + if (model.wasPropertyExplicitlySet("timeActivated")) { + this.timeActivated(model.getTimeActivated()); + } + if (model.wasPropertyExplicitlySet("timeValidated")) { + this.timeValidated(model.getTimeValidated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { + this.lifecycleStateDetails(model.getLifecycleStateDetails()); + } + if (model.wasPropertyExplicitlySet("computeCapacity")) { + this.computeCapacity(model.getComputeCapacity()); + } + if (model.wasPropertyExplicitlySet("storageCapacity")) { + this.storageCapacity(model.getStorageCapacity()); + } + if (model.wasPropertyExplicitlySet("systemStorageCapacity")) { + this.systemStorageCapacity(model.getSystemStorageCapacity()); + } + if (model.wasPropertyExplicitlySet("subscriptionPlanNumber")) { + this.subscriptionPlanNumber(model.getSubscriptionPlanNumber()); + } + if (model.wasPropertyExplicitlySet("ssdConfigurationRequested")) { + this.ssdConfigurationRequested(model.getSsdConfigurationRequested()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Database Infrastructure description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Database Infrastructure description. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private final SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + * @return the value + **/ + public SystemModelEnum getSystemModel() { + return systemModel; + } + + /** + * The version of the system software on the Database Infrastructure. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of the system software on the Database Infrastructure. + * + * @return the value + **/ + public String getVersion() { + return version; + } + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + * @return the value + **/ + public ShapeEnum getShape() { + return shape; + } + + /** + * The IP address for the first control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private final String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * @return the value + **/ + public String getCloudControlPlaneServer1() { + return cloudControlPlaneServer1; + } + + /** + * The IP address for the second control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private final String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * @return the value + **/ + public String getCloudControlPlaneServer2() { + return cloudControlPlaneServer2; + } + + /** + * The netmask for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The netmask for the control plane network. + * @return the value + **/ + public String getNetmask() { + return netmask; + } + + /** + * The gateway for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The gateway for the control plane network. + * @return the value + **/ + public String getGateway() { + return gateway; + } + + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private final String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + * @return the value + **/ + public String getAdminNetworkcidr() { + return adminNetworkcidr; + } + + /** + * The list of contacts for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private final java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * @return the value + **/ + public java.util.List getContacts() { + return contacts; + } + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private final NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingMode getClientNetworkBondingMode() { + return clientNetworkBondingMode; + } + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private final NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingMode getBackupNetworkBondingMode() { + return backupNetworkBondingMode; + } + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private final NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingMode getCpsNetworkBondingMode() { + return cpsNetworkBondingMode; + } + + /** + * The network bonding interface for client network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private final NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingInterfaceEnum getClientNetworkBondingInterface() { + return clientNetworkBondingInterface; + } + + /** + * The network bonding interface for backup network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private final NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingInterfaceEnum getBackupNetworkBondingInterface() { + return backupNetworkBondingInterface; + } + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private final NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingInterfaceEnum getCpsNetworkBondingInterface() { + return cpsNetworkBondingInterface; + } + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private final Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + * @return the value + **/ + public Double getAcfsFileSystemStorageInGbs() { + return acfsFileSystemStorageInGbs; + } + + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for creating local storage for VM Clusters and application VMs. + * This attribute is deprecated and will be removed in a subsequent release. Please read from systemStorageCapacity instead. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemUsedStorageInGbs") + private final Double acfsFileSystemUsedStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is currently utilized for creating local storage for VM Clusters and application VMs. + * This attribute is deprecated and will be removed in a subsequent release. Please read from systemStorageCapacity instead. + * + * @return the value + **/ + public Double getAcfsFileSystemUsedStorageInGbs() { + return acfsFileSystemUsedStorageInGbs; + } + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private final String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + * @return the value + **/ + public String getCorporateProxy() { + return corporateProxy; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private final MaintenanceWindow maintenanceWindow; + + public MaintenanceWindow getMaintenanceWindow() { + return maintenanceWindow; + } + + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the Database Infrastructure cluster was created. An RFC3339 formatted datetime string. + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime string. + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The time, in RFC3339 format, when the lifecycle state was last updated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastStateUpdated") + private final java.util.Date timeLastStateUpdated; + + /** + * The time, in RFC3339 format, when the lifecycle state was last updated. + * + * @return the value + **/ + public java.util.Date getTimeLastStateUpdated() { + return timeLastStateUpdated; + } + + /** + * The time, in RFC3339 format, when the Database Infrastructure was activated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeActivated") + private final java.util.Date timeActivated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure was activated. + * + * @return the value + **/ + public java.util.Date getTimeActivated() { + return timeActivated; + } + + /** + * The time, in RFC3339 format, when the Database Infrastructure network was validated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeValidated") + private final java.util.Date timeValidated; + + /** + * The time, in RFC3339 format, when the Database Infrastructure network was validated. + * + * @return the value + **/ + public java.util.Date getTimeValidated() { + return timeValidated; + } + + /** + * The current state of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final InfrastructureLifecycleState lifecycleState; + + /** + * The current state of the Database Infrastructure. + * @return the value + **/ + public InfrastructureLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Lifecycle state details of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private final String lifecycleStateDetails; + + /** + * Lifecycle state details of the Database Infrastructure. + * @return the value + **/ + public String getLifecycleStateDetails() { + return lifecycleStateDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacity") + private final ComputeCapacityDetails computeCapacity; + + public ComputeCapacityDetails getComputeCapacity() { + return computeCapacity; + } + + /** + * Capacity details of the Storage disk group. + * This attribute is deprecated and will be removed in a subsequent release. Please + * use systemStorageCapacity instead. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageCapacity") + private final java.util.List storageCapacity; + + /** + * Capacity details of the Storage disk group. + * This attribute is deprecated and will be removed in a subsequent release. Please + * use systemStorageCapacity instead. + * + * @return the value + **/ + public java.util.List getStorageCapacity() { + return storageCapacity; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemStorageCapacity") + private final SystemStorageCapacityDetails systemStorageCapacity; + + public SystemStorageCapacityDetails getSystemStorageCapacity() { + return systemStorageCapacity; + } + + /** + * The unique identifier for the subscription plan number. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionPlanNumber") + private final String subscriptionPlanNumber; + + /** + * The unique identifier for the subscription plan number. + * @return the value + **/ + public String getSubscriptionPlanNumber() { + return subscriptionPlanNumber; + } + + /** + * SSD configuration requested for the infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ssdConfigurationRequested") + private final ShapeEnum ssdConfigurationRequested; + + /** + * SSD configuration requested for the infrastructure. + * @return the value + **/ + public ShapeEnum getSsdConfigurationRequested() { + return ssdConfigurationRequested; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InfrastructureSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", systemModel=").append(String.valueOf(this.systemModel)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", cloudControlPlaneServer1=") + .append(String.valueOf(this.cloudControlPlaneServer1)); + sb.append(", cloudControlPlaneServer2=") + .append(String.valueOf(this.cloudControlPlaneServer2)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", adminNetworkcidr=").append(String.valueOf(this.adminNetworkcidr)); + sb.append(", contacts=").append(String.valueOf(this.contacts)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", clientNetworkBondingMode=") + .append(String.valueOf(this.clientNetworkBondingMode)); + sb.append(", backupNetworkBondingMode=") + .append(String.valueOf(this.backupNetworkBondingMode)); + sb.append(", cpsNetworkBondingMode=").append(String.valueOf(this.cpsNetworkBondingMode)); + sb.append(", clientNetworkBondingInterface=") + .append(String.valueOf(this.clientNetworkBondingInterface)); + sb.append(", backupNetworkBondingInterface=") + .append(String.valueOf(this.backupNetworkBondingInterface)); + sb.append(", cpsNetworkBondingInterface=") + .append(String.valueOf(this.cpsNetworkBondingInterface)); + sb.append(", acfsFileSystemStorageInGbs=") + .append(String.valueOf(this.acfsFileSystemStorageInGbs)); + sb.append(", acfsFileSystemUsedStorageInGbs=") + .append(String.valueOf(this.acfsFileSystemUsedStorageInGbs)); + sb.append(", corporateProxy=").append(String.valueOf(this.corporateProxy)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeLastStateUpdated=").append(String.valueOf(this.timeLastStateUpdated)); + sb.append(", timeActivated=").append(String.valueOf(this.timeActivated)); + sb.append(", timeValidated=").append(String.valueOf(this.timeValidated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", computeCapacity=").append(String.valueOf(this.computeCapacity)); + sb.append(", storageCapacity=").append(String.valueOf(this.storageCapacity)); + sb.append(", systemStorageCapacity=").append(String.valueOf(this.systemStorageCapacity)); + sb.append(", subscriptionPlanNumber=").append(String.valueOf(this.subscriptionPlanNumber)); + sb.append(", ssdConfigurationRequested=") + .append(String.valueOf(this.ssdConfigurationRequested)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InfrastructureSummary)) { + return false; + } + + InfrastructureSummary other = (InfrastructureSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.systemModel, other.systemModel) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals( + this.cloudControlPlaneServer1, other.cloudControlPlaneServer1) + && java.util.Objects.equals( + this.cloudControlPlaneServer2, other.cloudControlPlaneServer2) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.adminNetworkcidr, other.adminNetworkcidr) + && java.util.Objects.equals(this.contacts, other.contacts) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals( + this.clientNetworkBondingMode, other.clientNetworkBondingMode) + && java.util.Objects.equals( + this.backupNetworkBondingMode, other.backupNetworkBondingMode) + && java.util.Objects.equals(this.cpsNetworkBondingMode, other.cpsNetworkBondingMode) + && java.util.Objects.equals( + this.clientNetworkBondingInterface, other.clientNetworkBondingInterface) + && java.util.Objects.equals( + this.backupNetworkBondingInterface, other.backupNetworkBondingInterface) + && java.util.Objects.equals( + this.cpsNetworkBondingInterface, other.cpsNetworkBondingInterface) + && java.util.Objects.equals( + this.acfsFileSystemStorageInGbs, other.acfsFileSystemStorageInGbs) + && java.util.Objects.equals( + this.acfsFileSystemUsedStorageInGbs, other.acfsFileSystemUsedStorageInGbs) + && java.util.Objects.equals(this.corporateProxy, other.corporateProxy) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeLastStateUpdated, other.timeLastStateUpdated) + && java.util.Objects.equals(this.timeActivated, other.timeActivated) + && java.util.Objects.equals(this.timeValidated, other.timeValidated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.computeCapacity, other.computeCapacity) + && java.util.Objects.equals(this.storageCapacity, other.storageCapacity) + && java.util.Objects.equals(this.systemStorageCapacity, other.systemStorageCapacity) + && java.util.Objects.equals( + this.subscriptionPlanNumber, other.subscriptionPlanNumber) + && java.util.Objects.equals( + this.ssdConfigurationRequested, other.ssdConfigurationRequested) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.systemModel == null ? 43 : this.systemModel.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer1 == null + ? 43 + : this.cloudControlPlaneServer1.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer2 == null + ? 43 + : this.cloudControlPlaneServer2.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = + (result * PRIME) + + (this.adminNetworkcidr == null ? 43 : this.adminNetworkcidr.hashCode()); + result = (result * PRIME) + (this.contacts == null ? 43 : this.contacts.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingMode == null + ? 43 + : this.clientNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingMode == null + ? 43 + : this.backupNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingMode == null + ? 43 + : this.cpsNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingInterface == null + ? 43 + : this.clientNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingInterface == null + ? 43 + : this.backupNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingInterface == null + ? 43 + : this.cpsNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.acfsFileSystemStorageInGbs == null + ? 43 + : this.acfsFileSystemStorageInGbs.hashCode()); + result = + (result * PRIME) + + (this.acfsFileSystemUsedStorageInGbs == null + ? 43 + : this.acfsFileSystemUsedStorageInGbs.hashCode()); + result = + (result * PRIME) + + (this.corporateProxy == null ? 43 : this.corporateProxy.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeLastStateUpdated == null + ? 43 + : this.timeLastStateUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeActivated == null ? 43 : this.timeActivated.hashCode()); + result = + (result * PRIME) + + (this.timeValidated == null ? 43 : this.timeValidated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleStateDetails == null + ? 43 + : this.lifecycleStateDetails.hashCode()); + result = + (result * PRIME) + + (this.computeCapacity == null ? 43 : this.computeCapacity.hashCode()); + result = + (result * PRIME) + + (this.storageCapacity == null ? 43 : this.storageCapacity.hashCode()); + result = + (result * PRIME) + + (this.systemStorageCapacity == null + ? 43 + : this.systemStorageCapacity.hashCode()); + result = + (result * PRIME) + + (this.subscriptionPlanNumber == null + ? 43 + : this.subscriptionPlanNumber.hashCode()); + result = + (result * PRIME) + + (this.ssdConfigurationRequested == null + ? 43 + : this.ssdConfigurationRequested.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureType.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureType.java new file mode 100644 index 00000000000..78846be38b0 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/InfrastructureType.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * The infrastructure type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum InfrastructureType { + Cloud("CLOUD"), + CloudAtCustomer("CLOUD_AT_CUSTOMER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InfrastructureType v : InfrastructureType.values()) { + map.put(v.getValue(), v); + } + } + + InfrastructureType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static InfrastructureType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid InfrastructureType: " + key); + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecution.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecution.java new file mode 100644 index 00000000000..9fcc197c84c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecution.java @@ -0,0 +1,1102 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Details of a maintenance executions. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceExecution.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MaintenanceExecution extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "lifecycleState", + "lifecycleDetails", + "timeStarted", + "timeEnded", + "targetResourceType", + "infrastructureId", + "maintenanceRunId", + "maintenanceType", + "maintenanceSubtype", + "patchingMode", + "sourceVersion", + "targetVersion", + "isCustomActionTimeoutEnabled", + "customActionTimeoutInMins", + "workflowId", + "systemTags", + "definedTags", + "freeformTags", + "totalTimeTakenInMins" + }) + public MaintenanceExecution( + String id, + String compartmentId, + String displayName, + String description, + MaintenanceRunLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeStarted, + java.util.Date timeEnded, + TargetResourceTypeEnum targetResourceType, + String infrastructureId, + String maintenanceRunId, + MaintenanceTypeEnum maintenanceType, + MaintenanceSubtypeEnum maintenanceSubtype, + PatchingModeEnum patchingMode, + String sourceVersion, + String targetVersion, + Boolean isCustomActionTimeoutEnabled, + Integer customActionTimeoutInMins, + String workflowId, + java.util.Map> systemTags, + java.util.Map> definedTags, + java.util.Map freeformTags, + Integer totalTimeTakenInMins) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.targetResourceType = targetResourceType; + this.infrastructureId = infrastructureId; + this.maintenanceRunId = maintenanceRunId; + this.maintenanceType = maintenanceType; + this.maintenanceSubtype = maintenanceSubtype; + this.patchingMode = patchingMode; + this.sourceVersion = sourceVersion; + this.targetVersion = targetVersion; + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.workflowId = workflowId; + this.systemTags = systemTags; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.totalTimeTakenInMins = totalTimeTakenInMins; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run execution. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the maintenance run execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the maintenance run execution. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Description of the maintenance run execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the maintenance run execution. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The state of the maintenance run execution. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MaintenanceRunLifecycleState lifecycleState; + + /** + * The state of the maintenance run execution. + * + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(MaintenanceRunLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The date and time the maintenance run execution started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the maintenance run execution started. + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the maintenance run was completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * @param timeEnded the value to set + * @return this builder + **/ + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + /** + * The type of the target resource on which the maintenance run execution occurred. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run execution occurred. + * @param targetResourceType the value to set + * @return this builder + **/ + public Builder targetResourceType(TargetResourceTypeEnum targetResourceType) { + this.targetResourceType = targetResourceType; + this.__explicitlySet__.add("targetResourceType"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurred. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurred. + * @param infrastructureId the value to set + * @return this builder + **/ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run to which this maintenance execution belongs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceRunId") + private String maintenanceRunId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run to which this maintenance execution belongs. + * @param maintenanceRunId the value to set + * @return this builder + **/ + public Builder maintenanceRunId(String maintenanceRunId) { + this.maintenanceRunId = maintenanceRunId; + this.__explicitlySet__.add("maintenanceRunId"); + return this; + } + /** + * Maintenance type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * @param maintenanceType the value to set + * @return this builder + **/ + public Builder maintenanceType(MaintenanceTypeEnum maintenanceType) { + this.maintenanceType = maintenanceType; + this.__explicitlySet__.add("maintenanceType"); + return this; + } + /** + * Maintenance run execution sub-type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run execution sub-type. + * @param maintenanceSubtype the value to set + * @return this builder + **/ + public Builder maintenanceSubtype(MaintenanceSubtypeEnum maintenanceSubtype) { + this.maintenanceSubtype = maintenanceSubtype; + this.__explicitlySet__.add("maintenanceSubtype"); + return this; + } + /** + * The patching mode for the maintenance run that is being executed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private PatchingModeEnum patchingMode; + + /** + * The patching mode for the maintenance run that is being executed. + * + * @param patchingMode the value to set + * @return this builder + **/ + public Builder patchingMode(PatchingModeEnum patchingMode) { + this.patchingMode = patchingMode; + this.__explicitlySet__.add("patchingMode"); + return this; + } + /** + * The source software version for the Oracle infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private String sourceVersion; + + /** + * The source software version for the Oracle infrastructure. + * @param sourceVersion the value to set + * @return this builder + **/ + public Builder sourceVersion(String sourceVersion) { + this.sourceVersion = sourceVersion; + this.__explicitlySet__.add("sourceVersion"); + return this; + } + /** + * The target software version for the Database Infrastructure patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * @param targetVersion the value to set + * @return this builder + **/ + public Builder targetVersion(String targetVersion) { + this.targetVersion = targetVersion; + this.__explicitlySet__.add("targetVersion"); + return this; + } + /** + * At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private Boolean isCustomActionTimeoutEnabled; + + /** + * At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed. + * @param isCustomActionTimeoutEnabled the value to set + * @return this builder + **/ + public Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled) { + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.__explicitlySet__.add("isCustomActionTimeoutEnabled"); + return this; + } + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + * @param customActionTimeoutInMins the value to set + * @return this builder + **/ + public Builder customActionTimeoutInMins(Integer customActionTimeoutInMins) { + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.__explicitlySet__.add("customActionTimeoutInMins"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request executed by this execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workflowId") + private String workflowId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request executed by this execution. + * @param workflowId the value to set + * @return this builder + **/ + public Builder workflowId(String workflowId) { + this.workflowId = workflowId; + this.__explicitlySet__.add("workflowId"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * The total time taken by this execution in minutes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private Integer totalTimeTakenInMins; + + /** + * The total time taken by this execution in minutes. + * @param totalTimeTakenInMins the value to set + * @return this builder + **/ + public Builder totalTimeTakenInMins(Integer totalTimeTakenInMins) { + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.__explicitlySet__.add("totalTimeTakenInMins"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MaintenanceExecution build() { + MaintenanceExecution model = + new MaintenanceExecution( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.lifecycleState, + this.lifecycleDetails, + this.timeStarted, + this.timeEnded, + this.targetResourceType, + this.infrastructureId, + this.maintenanceRunId, + this.maintenanceType, + this.maintenanceSubtype, + this.patchingMode, + this.sourceVersion, + this.targetVersion, + this.isCustomActionTimeoutEnabled, + this.customActionTimeoutInMins, + this.workflowId, + this.systemTags, + this.definedTags, + this.freeformTags, + this.totalTimeTakenInMins); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceExecution model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("targetResourceType")) { + this.targetResourceType(model.getTargetResourceType()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("maintenanceRunId")) { + this.maintenanceRunId(model.getMaintenanceRunId()); + } + if (model.wasPropertyExplicitlySet("maintenanceType")) { + this.maintenanceType(model.getMaintenanceType()); + } + if (model.wasPropertyExplicitlySet("maintenanceSubtype")) { + this.maintenanceSubtype(model.getMaintenanceSubtype()); + } + if (model.wasPropertyExplicitlySet("patchingMode")) { + this.patchingMode(model.getPatchingMode()); + } + if (model.wasPropertyExplicitlySet("sourceVersion")) { + this.sourceVersion(model.getSourceVersion()); + } + if (model.wasPropertyExplicitlySet("targetVersion")) { + this.targetVersion(model.getTargetVersion()); + } + if (model.wasPropertyExplicitlySet("isCustomActionTimeoutEnabled")) { + this.isCustomActionTimeoutEnabled(model.getIsCustomActionTimeoutEnabled()); + } + if (model.wasPropertyExplicitlySet("customActionTimeoutInMins")) { + this.customActionTimeoutInMins(model.getCustomActionTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("workflowId")) { + this.workflowId(model.getWorkflowId()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("totalTimeTakenInMins")) { + this.totalTimeTakenInMins(model.getTotalTimeTakenInMins()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run execution. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-friendly name for the maintenance run execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the maintenance run execution. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Description of the maintenance run execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the maintenance run execution. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The state of the maintenance run execution. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final MaintenanceRunLifecycleState lifecycleState; + + /** + * The state of the maintenance run execution. + * + * @return the value + **/ + public MaintenanceRunLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The date and time the maintenance run execution started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the maintenance run execution started. + * @return the value + **/ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the maintenance run was completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * @return the value + **/ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** + * The type of the target resource on which the maintenance run execution occurred. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private final TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run execution occurred. + * @return the value + **/ + public TargetResourceTypeEnum getTargetResourceType() { + return targetResourceType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurred. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurred. + * @return the value + **/ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run to which this maintenance execution belongs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceRunId") + private final String maintenanceRunId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run to which this maintenance execution belongs. + * @return the value + **/ + public String getMaintenanceRunId() { + return maintenanceRunId; + } + + /** + * Maintenance type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private final MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * @return the value + **/ + public MaintenanceTypeEnum getMaintenanceType() { + return maintenanceType; + } + + /** + * Maintenance run execution sub-type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private final MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run execution sub-type. + * @return the value + **/ + public MaintenanceSubtypeEnum getMaintenanceSubtype() { + return maintenanceSubtype; + } + + /** + * The patching mode for the maintenance run that is being executed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private final PatchingModeEnum patchingMode; + + /** + * The patching mode for the maintenance run that is being executed. + * + * @return the value + **/ + public PatchingModeEnum getPatchingMode() { + return patchingMode; + } + + /** + * The source software version for the Oracle infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private final String sourceVersion; + + /** + * The source software version for the Oracle infrastructure. + * @return the value + **/ + public String getSourceVersion() { + return sourceVersion; + } + + /** + * The target software version for the Database Infrastructure patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private final String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * @return the value + **/ + public String getTargetVersion() { + return targetVersion; + } + + /** + * At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private final Boolean isCustomActionTimeoutEnabled; + + /** + * At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed. + * @return the value + **/ + public Boolean getIsCustomActionTimeoutEnabled() { + return isCustomActionTimeoutEnabled; + } + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private final Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + * @return the value + **/ + public Integer getCustomActionTimeoutInMins() { + return customActionTimeoutInMins; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request executed by this execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workflowId") + private final String workflowId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request executed by this execution. + * @return the value + **/ + public String getWorkflowId() { + return workflowId; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * The total time taken by this execution in minutes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private final Integer totalTimeTakenInMins; + + /** + * The total time taken by this execution in minutes. + * @return the value + **/ + public Integer getTotalTimeTakenInMins() { + return totalTimeTakenInMins; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MaintenanceExecution("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", targetResourceType=").append(String.valueOf(this.targetResourceType)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", maintenanceRunId=").append(String.valueOf(this.maintenanceRunId)); + sb.append(", maintenanceType=").append(String.valueOf(this.maintenanceType)); + sb.append(", maintenanceSubtype=").append(String.valueOf(this.maintenanceSubtype)); + sb.append(", patchingMode=").append(String.valueOf(this.patchingMode)); + sb.append(", sourceVersion=").append(String.valueOf(this.sourceVersion)); + sb.append(", targetVersion=").append(String.valueOf(this.targetVersion)); + sb.append(", isCustomActionTimeoutEnabled=") + .append(String.valueOf(this.isCustomActionTimeoutEnabled)); + sb.append(", customActionTimeoutInMins=") + .append(String.valueOf(this.customActionTimeoutInMins)); + sb.append(", workflowId=").append(String.valueOf(this.workflowId)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", totalTimeTakenInMins=").append(String.valueOf(this.totalTimeTakenInMins)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MaintenanceExecution)) { + return false; + } + + MaintenanceExecution other = (MaintenanceExecution) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.targetResourceType, other.targetResourceType) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.maintenanceRunId, other.maintenanceRunId) + && java.util.Objects.equals(this.maintenanceType, other.maintenanceType) + && java.util.Objects.equals(this.maintenanceSubtype, other.maintenanceSubtype) + && java.util.Objects.equals(this.patchingMode, other.patchingMode) + && java.util.Objects.equals(this.sourceVersion, other.sourceVersion) + && java.util.Objects.equals(this.targetVersion, other.targetVersion) + && java.util.Objects.equals( + this.isCustomActionTimeoutEnabled, other.isCustomActionTimeoutEnabled) + && java.util.Objects.equals( + this.customActionTimeoutInMins, other.customActionTimeoutInMins) + && java.util.Objects.equals(this.workflowId, other.workflowId) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.totalTimeTakenInMins, other.totalTimeTakenInMins) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = + (result * PRIME) + + (this.targetResourceType == null + ? 43 + : this.targetResourceType.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRunId == null ? 43 : this.maintenanceRunId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceType == null ? 43 : this.maintenanceType.hashCode()); + result = + (result * PRIME) + + (this.maintenanceSubtype == null + ? 43 + : this.maintenanceSubtype.hashCode()); + result = (result * PRIME) + (this.patchingMode == null ? 43 : this.patchingMode.hashCode()); + result = + (result * PRIME) + + (this.sourceVersion == null ? 43 : this.sourceVersion.hashCode()); + result = + (result * PRIME) + + (this.targetVersion == null ? 43 : this.targetVersion.hashCode()); + result = + (result * PRIME) + + (this.isCustomActionTimeoutEnabled == null + ? 43 + : this.isCustomActionTimeoutEnabled.hashCode()); + result = + (result * PRIME) + + (this.customActionTimeoutInMins == null + ? 43 + : this.customActionTimeoutInMins.hashCode()); + result = (result * PRIME) + (this.workflowId == null ? 43 : this.workflowId.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecutionCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecutionCollection.java new file mode 100644 index 00000000000..8da8aaa5736 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecutionCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * A collection of maintenance run execution history. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceExecutionCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MaintenanceExecutionCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public MaintenanceExecutionCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of maintenance run execution history. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of maintenance run execution history. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MaintenanceExecutionCollection build() { + MaintenanceExecutionCollection model = new MaintenanceExecutionCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceExecutionCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of maintenance run execution history. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of maintenance run execution history. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MaintenanceExecutionCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MaintenanceExecutionCollection)) { + return false; + } + + MaintenanceExecutionCollection other = (MaintenanceExecutionCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecutionSummary.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecutionSummary.java new file mode 100644 index 00000000000..2f5b37afddd --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceExecutionSummary.java @@ -0,0 +1,1103 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Summary of a maintenance executions. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceExecutionSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MaintenanceExecutionSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "lifecycleState", + "lifecycleDetails", + "timeStarted", + "timeEnded", + "targetResourceType", + "infrastructureId", + "maintenanceRunId", + "maintenanceType", + "maintenanceSubtype", + "patchingMode", + "sourceVersion", + "targetVersion", + "isCustomActionTimeoutEnabled", + "customActionTimeoutInMins", + "workflowId", + "systemTags", + "definedTags", + "freeformTags", + "totalTimeTakenInMins" + }) + public MaintenanceExecutionSummary( + String id, + String compartmentId, + String displayName, + String description, + MaintenanceRunLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeStarted, + java.util.Date timeEnded, + TargetResourceTypeEnum targetResourceType, + String infrastructureId, + String maintenanceRunId, + MaintenanceTypeEnum maintenanceType, + MaintenanceSubtypeEnum maintenanceSubtype, + PatchingModeEnum patchingMode, + String sourceVersion, + String targetVersion, + Boolean isCustomActionTimeoutEnabled, + Integer customActionTimeoutInMins, + String workflowId, + java.util.Map> systemTags, + java.util.Map> definedTags, + java.util.Map freeformTags, + Integer totalTimeTakenInMins) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.targetResourceType = targetResourceType; + this.infrastructureId = infrastructureId; + this.maintenanceRunId = maintenanceRunId; + this.maintenanceType = maintenanceType; + this.maintenanceSubtype = maintenanceSubtype; + this.patchingMode = patchingMode; + this.sourceVersion = sourceVersion; + this.targetVersion = targetVersion; + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.workflowId = workflowId; + this.systemTags = systemTags; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.totalTimeTakenInMins = totalTimeTakenInMins; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run execution. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the maintenance run execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the maintenance run execution. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Description of the maintenance run execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the maintenance run execution. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The state of the maintenance run execution. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MaintenanceRunLifecycleState lifecycleState; + + /** + * The state of the maintenance run execution. + * + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(MaintenanceRunLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The date and time the maintenance run execution started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the maintenance run execution started. + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the maintenance run was completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * @param timeEnded the value to set + * @return this builder + **/ + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + /** + * The type of the target resource on which the maintenance run execution occurred. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run execution occurred. + * @param targetResourceType the value to set + * @return this builder + **/ + public Builder targetResourceType(TargetResourceTypeEnum targetResourceType) { + this.targetResourceType = targetResourceType; + this.__explicitlySet__.add("targetResourceType"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurred. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurred. + * @param infrastructureId the value to set + * @return this builder + **/ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run to which this maintenance execution belongs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceRunId") + private String maintenanceRunId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run to which this maintenance execution belongs. + * @param maintenanceRunId the value to set + * @return this builder + **/ + public Builder maintenanceRunId(String maintenanceRunId) { + this.maintenanceRunId = maintenanceRunId; + this.__explicitlySet__.add("maintenanceRunId"); + return this; + } + /** + * Maintenance type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * @param maintenanceType the value to set + * @return this builder + **/ + public Builder maintenanceType(MaintenanceTypeEnum maintenanceType) { + this.maintenanceType = maintenanceType; + this.__explicitlySet__.add("maintenanceType"); + return this; + } + /** + * Maintenance run execution sub-type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run execution sub-type. + * @param maintenanceSubtype the value to set + * @return this builder + **/ + public Builder maintenanceSubtype(MaintenanceSubtypeEnum maintenanceSubtype) { + this.maintenanceSubtype = maintenanceSubtype; + this.__explicitlySet__.add("maintenanceSubtype"); + return this; + } + /** + * The patching mode for the maintenance run that is being executed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private PatchingModeEnum patchingMode; + + /** + * The patching mode for the maintenance run that is being executed. + * + * @param patchingMode the value to set + * @return this builder + **/ + public Builder patchingMode(PatchingModeEnum patchingMode) { + this.patchingMode = patchingMode; + this.__explicitlySet__.add("patchingMode"); + return this; + } + /** + * The source software version for the Oracle infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private String sourceVersion; + + /** + * The source software version for the Oracle infrastructure. + * @param sourceVersion the value to set + * @return this builder + **/ + public Builder sourceVersion(String sourceVersion) { + this.sourceVersion = sourceVersion; + this.__explicitlySet__.add("sourceVersion"); + return this; + } + /** + * The target software version for the Database Infrastructure patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * @param targetVersion the value to set + * @return this builder + **/ + public Builder targetVersion(String targetVersion) { + this.targetVersion = targetVersion; + this.__explicitlySet__.add("targetVersion"); + return this; + } + /** + * At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private Boolean isCustomActionTimeoutEnabled; + + /** + * At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed. + * @param isCustomActionTimeoutEnabled the value to set + * @return this builder + **/ + public Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled) { + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.__explicitlySet__.add("isCustomActionTimeoutEnabled"); + return this; + } + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + * @param customActionTimeoutInMins the value to set + * @return this builder + **/ + public Builder customActionTimeoutInMins(Integer customActionTimeoutInMins) { + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.__explicitlySet__.add("customActionTimeoutInMins"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request executed by this execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workflowId") + private String workflowId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request executed by this execution. + * @param workflowId the value to set + * @return this builder + **/ + public Builder workflowId(String workflowId) { + this.workflowId = workflowId; + this.__explicitlySet__.add("workflowId"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * The total time taken by this execution in minutes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private Integer totalTimeTakenInMins; + + /** + * The total time taken by this execution in minutes. + * @param totalTimeTakenInMins the value to set + * @return this builder + **/ + public Builder totalTimeTakenInMins(Integer totalTimeTakenInMins) { + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.__explicitlySet__.add("totalTimeTakenInMins"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MaintenanceExecutionSummary build() { + MaintenanceExecutionSummary model = + new MaintenanceExecutionSummary( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.lifecycleState, + this.lifecycleDetails, + this.timeStarted, + this.timeEnded, + this.targetResourceType, + this.infrastructureId, + this.maintenanceRunId, + this.maintenanceType, + this.maintenanceSubtype, + this.patchingMode, + this.sourceVersion, + this.targetVersion, + this.isCustomActionTimeoutEnabled, + this.customActionTimeoutInMins, + this.workflowId, + this.systemTags, + this.definedTags, + this.freeformTags, + this.totalTimeTakenInMins); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceExecutionSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("targetResourceType")) { + this.targetResourceType(model.getTargetResourceType()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("maintenanceRunId")) { + this.maintenanceRunId(model.getMaintenanceRunId()); + } + if (model.wasPropertyExplicitlySet("maintenanceType")) { + this.maintenanceType(model.getMaintenanceType()); + } + if (model.wasPropertyExplicitlySet("maintenanceSubtype")) { + this.maintenanceSubtype(model.getMaintenanceSubtype()); + } + if (model.wasPropertyExplicitlySet("patchingMode")) { + this.patchingMode(model.getPatchingMode()); + } + if (model.wasPropertyExplicitlySet("sourceVersion")) { + this.sourceVersion(model.getSourceVersion()); + } + if (model.wasPropertyExplicitlySet("targetVersion")) { + this.targetVersion(model.getTargetVersion()); + } + if (model.wasPropertyExplicitlySet("isCustomActionTimeoutEnabled")) { + this.isCustomActionTimeoutEnabled(model.getIsCustomActionTimeoutEnabled()); + } + if (model.wasPropertyExplicitlySet("customActionTimeoutInMins")) { + this.customActionTimeoutInMins(model.getCustomActionTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("workflowId")) { + this.workflowId(model.getWorkflowId()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("totalTimeTakenInMins")) { + this.totalTimeTakenInMins(model.getTotalTimeTakenInMins()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run execution. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-friendly name for the maintenance run execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the maintenance run execution. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Description of the maintenance run execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the maintenance run execution. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The state of the maintenance run execution. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final MaintenanceRunLifecycleState lifecycleState; + + /** + * The state of the maintenance run execution. + * + * @return the value + **/ + public MaintenanceRunLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The date and time the maintenance run execution started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the maintenance run execution started. + * @return the value + **/ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the maintenance run was completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * @return the value + **/ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** + * The type of the target resource on which the maintenance run execution occurred. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private final TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run execution occurred. + * @return the value + **/ + public TargetResourceTypeEnum getTargetResourceType() { + return targetResourceType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurred. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurred. + * @return the value + **/ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run to which this maintenance execution belongs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceRunId") + private final String maintenanceRunId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run to which this maintenance execution belongs. + * @return the value + **/ + public String getMaintenanceRunId() { + return maintenanceRunId; + } + + /** + * Maintenance type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private final MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * @return the value + **/ + public MaintenanceTypeEnum getMaintenanceType() { + return maintenanceType; + } + + /** + * Maintenance run execution sub-type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private final MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run execution sub-type. + * @return the value + **/ + public MaintenanceSubtypeEnum getMaintenanceSubtype() { + return maintenanceSubtype; + } + + /** + * The patching mode for the maintenance run that is being executed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private final PatchingModeEnum patchingMode; + + /** + * The patching mode for the maintenance run that is being executed. + * + * @return the value + **/ + public PatchingModeEnum getPatchingMode() { + return patchingMode; + } + + /** + * The source software version for the Oracle infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private final String sourceVersion; + + /** + * The source software version for the Oracle infrastructure. + * @return the value + **/ + public String getSourceVersion() { + return sourceVersion; + } + + /** + * The target software version for the Database Infrastructure patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private final String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * @return the value + **/ + public String getTargetVersion() { + return targetVersion; + } + + /** + * At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private final Boolean isCustomActionTimeoutEnabled; + + /** + * At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed. + * @return the value + **/ + public Boolean getIsCustomActionTimeoutEnabled() { + return isCustomActionTimeoutEnabled; + } + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private final Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + * @return the value + **/ + public Integer getCustomActionTimeoutInMins() { + return customActionTimeoutInMins; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request executed by this execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workflowId") + private final String workflowId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request executed by this execution. + * @return the value + **/ + public String getWorkflowId() { + return workflowId; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * The total time taken by this execution in minutes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private final Integer totalTimeTakenInMins; + + /** + * The total time taken by this execution in minutes. + * @return the value + **/ + public Integer getTotalTimeTakenInMins() { + return totalTimeTakenInMins; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MaintenanceExecutionSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", targetResourceType=").append(String.valueOf(this.targetResourceType)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", maintenanceRunId=").append(String.valueOf(this.maintenanceRunId)); + sb.append(", maintenanceType=").append(String.valueOf(this.maintenanceType)); + sb.append(", maintenanceSubtype=").append(String.valueOf(this.maintenanceSubtype)); + sb.append(", patchingMode=").append(String.valueOf(this.patchingMode)); + sb.append(", sourceVersion=").append(String.valueOf(this.sourceVersion)); + sb.append(", targetVersion=").append(String.valueOf(this.targetVersion)); + sb.append(", isCustomActionTimeoutEnabled=") + .append(String.valueOf(this.isCustomActionTimeoutEnabled)); + sb.append(", customActionTimeoutInMins=") + .append(String.valueOf(this.customActionTimeoutInMins)); + sb.append(", workflowId=").append(String.valueOf(this.workflowId)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", totalTimeTakenInMins=").append(String.valueOf(this.totalTimeTakenInMins)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MaintenanceExecutionSummary)) { + return false; + } + + MaintenanceExecutionSummary other = (MaintenanceExecutionSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.targetResourceType, other.targetResourceType) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.maintenanceRunId, other.maintenanceRunId) + && java.util.Objects.equals(this.maintenanceType, other.maintenanceType) + && java.util.Objects.equals(this.maintenanceSubtype, other.maintenanceSubtype) + && java.util.Objects.equals(this.patchingMode, other.patchingMode) + && java.util.Objects.equals(this.sourceVersion, other.sourceVersion) + && java.util.Objects.equals(this.targetVersion, other.targetVersion) + && java.util.Objects.equals( + this.isCustomActionTimeoutEnabled, other.isCustomActionTimeoutEnabled) + && java.util.Objects.equals( + this.customActionTimeoutInMins, other.customActionTimeoutInMins) + && java.util.Objects.equals(this.workflowId, other.workflowId) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.totalTimeTakenInMins, other.totalTimeTakenInMins) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = + (result * PRIME) + + (this.targetResourceType == null + ? 43 + : this.targetResourceType.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRunId == null ? 43 : this.maintenanceRunId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceType == null ? 43 : this.maintenanceType.hashCode()); + result = + (result * PRIME) + + (this.maintenanceSubtype == null + ? 43 + : this.maintenanceSubtype.hashCode()); + result = (result * PRIME) + (this.patchingMode == null ? 43 : this.patchingMode.hashCode()); + result = + (result * PRIME) + + (this.sourceVersion == null ? 43 : this.sourceVersion.hashCode()); + result = + (result * PRIME) + + (this.targetVersion == null ? 43 : this.targetVersion.hashCode()); + result = + (result * PRIME) + + (this.isCustomActionTimeoutEnabled == null + ? 43 + : this.isCustomActionTimeoutEnabled.hashCode()); + result = + (result * PRIME) + + (this.customActionTimeoutInMins == null + ? 43 + : this.customActionTimeoutInMins.hashCode()); + result = (result * PRIME) + (this.workflowId == null ? 43 : this.workflowId.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenancePreference.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenancePreference.java new file mode 100644 index 00000000000..ff5d80e939d --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenancePreference.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * The maintenance window scheduling preference. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum MaintenancePreference { + NoPreference("NO_PREFERENCE"), + CustomPreference("CUSTOM_PREFERENCE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MaintenancePreference.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaintenancePreference v : MaintenancePreference.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaintenancePreference(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaintenancePreference create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaintenancePreference', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRun.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRun.java new file mode 100644 index 00000000000..750501eec7e --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRun.java @@ -0,0 +1,1457 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Details of a maintenance run. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MaintenanceRun.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MaintenanceRun extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "lifecycleState", + "lifecycleDetails", + "initialScheduledTime", + "timeScheduled", + "timeStarted", + "timeEnded", + "targetResourceType", + "infrastructureId", + "maintenanceType", + "patchIdentifier", + "maintenanceSubtype", + "patchingMode", + "patchFailureCount", + "sourceVersion", + "targetVersion", + "isCustomActionTimeoutEnabled", + "customActionTimeoutInMins", + "patchingStatus", + "patchingStartTime", + "patchingEndTime", + "estimatedPatchingTime", + "currentPatchingComponent", + "estimatedComponentPatchingStartTime", + "systemTags", + "definedTags", + "freeformTags", + "totalTimeTakenInMins" + }) + public MaintenanceRun( + String id, + String compartmentId, + String displayName, + String description, + MaintenanceRunLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date initialScheduledTime, + java.util.Date timeScheduled, + java.util.Date timeStarted, + java.util.Date timeEnded, + TargetResourceTypeEnum targetResourceType, + String infrastructureId, + MaintenanceTypeEnum maintenanceType, + String patchIdentifier, + MaintenanceSubtypeEnum maintenanceSubtype, + PatchingModeEnum patchingMode, + Integer patchFailureCount, + String sourceVersion, + String targetVersion, + Boolean isCustomActionTimeoutEnabled, + Integer customActionTimeoutInMins, + PatchingStatusEnum patchingStatus, + java.util.Date patchingStartTime, + java.util.Date patchingEndTime, + Integer estimatedPatchingTime, + String currentPatchingComponent, + java.util.Date estimatedComponentPatchingStartTime, + java.util.Map> systemTags, + java.util.Map> definedTags, + java.util.Map freeformTags, + Integer totalTimeTakenInMins) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.initialScheduledTime = initialScheduledTime; + this.timeScheduled = timeScheduled; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.targetResourceType = targetResourceType; + this.infrastructureId = infrastructureId; + this.maintenanceType = maintenanceType; + this.patchIdentifier = patchIdentifier; + this.maintenanceSubtype = maintenanceSubtype; + this.patchingMode = patchingMode; + this.patchFailureCount = patchFailureCount; + this.sourceVersion = sourceVersion; + this.targetVersion = targetVersion; + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.patchingStatus = patchingStatus; + this.patchingStartTime = patchingStartTime; + this.patchingEndTime = patchingEndTime; + this.estimatedPatchingTime = estimatedPatchingTime; + this.currentPatchingComponent = currentPatchingComponent; + this.estimatedComponentPatchingStartTime = estimatedComponentPatchingStartTime; + this.systemTags = systemTags; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.totalTimeTakenInMins = totalTimeTakenInMins; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the maintenance run. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Description of the maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the maintenance run. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The current state of the maintenance run. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MaintenanceRunLifecycleState lifecycleState; + + /** + * The current state of the maintenance run. + * + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(MaintenanceRunLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The date and time the maintenance run was originally scheduled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialScheduledTime") + private java.util.Date initialScheduledTime; + + /** + * The date and time the maintenance run was originally scheduled. + * @param initialScheduledTime the value to set + * @return this builder + **/ + public Builder initialScheduledTime(java.util.Date initialScheduledTime) { + this.initialScheduledTime = initialScheduledTime; + this.__explicitlySet__.add("initialScheduledTime"); + return this; + } + /** + * The date and time the maintenance run is scheduled to occur. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * The date and time the maintenance run is scheduled to occur. + * @param timeScheduled the value to set + * @return this builder + **/ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + /** + * The date and time the maintenance run starts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the maintenance run starts. + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the maintenance run was completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * @param timeEnded the value to set + * @return this builder + **/ + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + /** + * The type of the target resource on which the maintenance run occurs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run occurs. + * @param targetResourceType the value to set + * @return this builder + **/ + public Builder targetResourceType(TargetResourceTypeEnum targetResourceType) { + this.targetResourceType = targetResourceType; + this.__explicitlySet__.add("targetResourceType"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurs. + * @param infrastructureId the value to set + * @return this builder + **/ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * Maintenance type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * @param maintenanceType the value to set + * @return this builder + **/ + public Builder maintenanceType(MaintenanceTypeEnum maintenanceType) { + this.maintenanceType = maintenanceType; + this.__explicitlySet__.add("maintenanceType"); + return this; + } + /** + * The unique identifier of the patch. The identifier string includes the patch type and the version of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchIdentifier") + private String patchIdentifier; + + /** + * The unique identifier of the patch. The identifier string includes the patch type and the version of the Database Infrastructure. + * @param patchIdentifier the value to set + * @return this builder + **/ + public Builder patchIdentifier(String patchIdentifier) { + this.patchIdentifier = patchIdentifier; + this.__explicitlySet__.add("patchIdentifier"); + return this; + } + /** + * Maintenance run sub-type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run sub-type. + * @param maintenanceSubtype the value to set + * @return this builder + **/ + public Builder maintenanceSubtype(MaintenanceSubtypeEnum maintenanceSubtype) { + this.maintenanceSubtype = maintenanceSubtype; + this.__explicitlySet__.add("maintenanceSubtype"); + return this; + } + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private PatchingModeEnum patchingMode; + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * + * @param patchingMode the value to set + * @return this builder + **/ + public Builder patchingMode(PatchingModeEnum patchingMode) { + this.patchingMode = patchingMode; + this.__explicitlySet__.add("patchingMode"); + return this; + } + /** + * Contain the patch failure count. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchFailureCount") + private Integer patchFailureCount; + + /** + * Contain the patch failure count. + * @param patchFailureCount the value to set + * @return this builder + **/ + public Builder patchFailureCount(Integer patchFailureCount) { + this.patchFailureCount = patchFailureCount; + this.__explicitlySet__.add("patchFailureCount"); + return this; + } + /** + * The source software version for the Oracle infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private String sourceVersion; + + /** + * The source software version for the Oracle infrastructure. + * @param sourceVersion the value to set + * @return this builder + **/ + public Builder sourceVersion(String sourceVersion) { + this.sourceVersion = sourceVersion; + this.__explicitlySet__.add("sourceVersion"); + return this; + } + /** + * The target software version for the Database Infrastructure patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * @param targetVersion the value to set + * @return this builder + **/ + public Builder targetVersion(String targetVersion) { + this.targetVersion = targetVersion; + this.__explicitlySet__.add("targetVersion"); + return this; + } + /** + * If true, enables the configuration of a custom action timeout (waiting period) between compute servers patching operations. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between compute servers patching operations. + * @param isCustomActionTimeoutEnabled the value to set + * @return this builder + **/ + public Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled) { + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.__explicitlySet__.add("isCustomActionTimeoutEnabled"); + return this; + } + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + * @param customActionTimeoutInMins the value to set + * @return this builder + **/ + public Builder customActionTimeoutInMins(Integer customActionTimeoutInMins) { + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.__explicitlySet__.add("customActionTimeoutInMins"); + return this; + } + /** + * The status of the patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStatus") + private PatchingStatusEnum patchingStatus; + + /** + * The status of the patching operation. + * @param patchingStatus the value to set + * @return this builder + **/ + public Builder patchingStatus(PatchingStatusEnum patchingStatus) { + this.patchingStatus = patchingStatus; + this.__explicitlySet__.add("patchingStatus"); + return this; + } + /** + * The time when the patching operation started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStartTime") + private java.util.Date patchingStartTime; + + /** + * The time when the patching operation started. + * @param patchingStartTime the value to set + * @return this builder + **/ + public Builder patchingStartTime(java.util.Date patchingStartTime) { + this.patchingStartTime = patchingStartTime; + this.__explicitlySet__.add("patchingStartTime"); + return this; + } + /** + * The time when the patching operation ended. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingEndTime") + private java.util.Date patchingEndTime; + + /** + * The time when the patching operation ended. + * @param patchingEndTime the value to set + * @return this builder + **/ + public Builder patchingEndTime(java.util.Date patchingEndTime) { + this.patchingEndTime = patchingEndTime; + this.__explicitlySet__.add("patchingEndTime"); + return this; + } + /** + * The estimated total time required in minutes for all patching operations (compute servers, storage). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedPatchingTime") + private Integer estimatedPatchingTime; + + /** + * The estimated total time required in minutes for all patching operations (compute servers, storage). + * + * @param estimatedPatchingTime the value to set + * @return this builder + **/ + public Builder estimatedPatchingTime(Integer estimatedPatchingTime) { + this.estimatedPatchingTime = estimatedPatchingTime; + this.__explicitlySet__.add("estimatedPatchingTime"); + return this; + } + /** + * The name of the current infrastructure component that is getting patched. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentPatchingComponent") + private String currentPatchingComponent; + + /** + * The name of the current infrastructure component that is getting patched. + * @param currentPatchingComponent the value to set + * @return this builder + **/ + public Builder currentPatchingComponent(String currentPatchingComponent) { + this.currentPatchingComponent = currentPatchingComponent; + this.__explicitlySet__.add("currentPatchingComponent"); + return this; + } + /** + * The estimated start time of the next infrastructure component patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedComponentPatchingStartTime") + private java.util.Date estimatedComponentPatchingStartTime; + + /** + * The estimated start time of the next infrastructure component patching operation. + * @param estimatedComponentPatchingStartTime the value to set + * @return this builder + **/ + public Builder estimatedComponentPatchingStartTime( + java.util.Date estimatedComponentPatchingStartTime) { + this.estimatedComponentPatchingStartTime = estimatedComponentPatchingStartTime; + this.__explicitlySet__.add("estimatedComponentPatchingStartTime"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * The total time taken by corresponding resource activity in minutes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * @param totalTimeTakenInMins the value to set + * @return this builder + **/ + public Builder totalTimeTakenInMins(Integer totalTimeTakenInMins) { + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.__explicitlySet__.add("totalTimeTakenInMins"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MaintenanceRun build() { + MaintenanceRun model = + new MaintenanceRun( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.lifecycleState, + this.lifecycleDetails, + this.initialScheduledTime, + this.timeScheduled, + this.timeStarted, + this.timeEnded, + this.targetResourceType, + this.infrastructureId, + this.maintenanceType, + this.patchIdentifier, + this.maintenanceSubtype, + this.patchingMode, + this.patchFailureCount, + this.sourceVersion, + this.targetVersion, + this.isCustomActionTimeoutEnabled, + this.customActionTimeoutInMins, + this.patchingStatus, + this.patchingStartTime, + this.patchingEndTime, + this.estimatedPatchingTime, + this.currentPatchingComponent, + this.estimatedComponentPatchingStartTime, + this.systemTags, + this.definedTags, + this.freeformTags, + this.totalTimeTakenInMins); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceRun model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("initialScheduledTime")) { + this.initialScheduledTime(model.getInitialScheduledTime()); + } + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("targetResourceType")) { + this.targetResourceType(model.getTargetResourceType()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("maintenanceType")) { + this.maintenanceType(model.getMaintenanceType()); + } + if (model.wasPropertyExplicitlySet("patchIdentifier")) { + this.patchIdentifier(model.getPatchIdentifier()); + } + if (model.wasPropertyExplicitlySet("maintenanceSubtype")) { + this.maintenanceSubtype(model.getMaintenanceSubtype()); + } + if (model.wasPropertyExplicitlySet("patchingMode")) { + this.patchingMode(model.getPatchingMode()); + } + if (model.wasPropertyExplicitlySet("patchFailureCount")) { + this.patchFailureCount(model.getPatchFailureCount()); + } + if (model.wasPropertyExplicitlySet("sourceVersion")) { + this.sourceVersion(model.getSourceVersion()); + } + if (model.wasPropertyExplicitlySet("targetVersion")) { + this.targetVersion(model.getTargetVersion()); + } + if (model.wasPropertyExplicitlySet("isCustomActionTimeoutEnabled")) { + this.isCustomActionTimeoutEnabled(model.getIsCustomActionTimeoutEnabled()); + } + if (model.wasPropertyExplicitlySet("customActionTimeoutInMins")) { + this.customActionTimeoutInMins(model.getCustomActionTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("patchingStatus")) { + this.patchingStatus(model.getPatchingStatus()); + } + if (model.wasPropertyExplicitlySet("patchingStartTime")) { + this.patchingStartTime(model.getPatchingStartTime()); + } + if (model.wasPropertyExplicitlySet("patchingEndTime")) { + this.patchingEndTime(model.getPatchingEndTime()); + } + if (model.wasPropertyExplicitlySet("estimatedPatchingTime")) { + this.estimatedPatchingTime(model.getEstimatedPatchingTime()); + } + if (model.wasPropertyExplicitlySet("currentPatchingComponent")) { + this.currentPatchingComponent(model.getCurrentPatchingComponent()); + } + if (model.wasPropertyExplicitlySet("estimatedComponentPatchingStartTime")) { + this.estimatedComponentPatchingStartTime( + model.getEstimatedComponentPatchingStartTime()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("totalTimeTakenInMins")) { + this.totalTimeTakenInMins(model.getTotalTimeTakenInMins()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-friendly name for the maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the maintenance run. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Description of the maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the maintenance run. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The current state of the maintenance run. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final MaintenanceRunLifecycleState lifecycleState; + + /** + * The current state of the maintenance run. + * + * @return the value + **/ + public MaintenanceRunLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The date and time the maintenance run was originally scheduled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialScheduledTime") + private final java.util.Date initialScheduledTime; + + /** + * The date and time the maintenance run was originally scheduled. + * @return the value + **/ + public java.util.Date getInitialScheduledTime() { + return initialScheduledTime; + } + + /** + * The date and time the maintenance run is scheduled to occur. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * The date and time the maintenance run is scheduled to occur. + * @return the value + **/ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** + * The date and time the maintenance run starts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the maintenance run starts. + * @return the value + **/ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the maintenance run was completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * @return the value + **/ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** + * The type of the target resource on which the maintenance run occurs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private final TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run occurs. + * @return the value + **/ + public TargetResourceTypeEnum getTargetResourceType() { + return targetResourceType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurs. + * @return the value + **/ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * Maintenance type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private final MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * @return the value + **/ + public MaintenanceTypeEnum getMaintenanceType() { + return maintenanceType; + } + + /** + * The unique identifier of the patch. The identifier string includes the patch type and the version of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchIdentifier") + private final String patchIdentifier; + + /** + * The unique identifier of the patch. The identifier string includes the patch type and the version of the Database Infrastructure. + * @return the value + **/ + public String getPatchIdentifier() { + return patchIdentifier; + } + + /** + * Maintenance run sub-type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private final MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run sub-type. + * @return the value + **/ + public MaintenanceSubtypeEnum getMaintenanceSubtype() { + return maintenanceSubtype; + } + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private final PatchingModeEnum patchingMode; + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * + * @return the value + **/ + public PatchingModeEnum getPatchingMode() { + return patchingMode; + } + + /** + * Contain the patch failure count. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchFailureCount") + private final Integer patchFailureCount; + + /** + * Contain the patch failure count. + * @return the value + **/ + public Integer getPatchFailureCount() { + return patchFailureCount; + } + + /** + * The source software version for the Oracle infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private final String sourceVersion; + + /** + * The source software version for the Oracle infrastructure. + * @return the value + **/ + public String getSourceVersion() { + return sourceVersion; + } + + /** + * The target software version for the Database Infrastructure patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private final String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * @return the value + **/ + public String getTargetVersion() { + return targetVersion; + } + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between compute servers patching operations. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private final Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between compute servers patching operations. + * @return the value + **/ + public Boolean getIsCustomActionTimeoutEnabled() { + return isCustomActionTimeoutEnabled; + } + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private final Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + * @return the value + **/ + public Integer getCustomActionTimeoutInMins() { + return customActionTimeoutInMins; + } + + /** + * The status of the patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStatus") + private final PatchingStatusEnum patchingStatus; + + /** + * The status of the patching operation. + * @return the value + **/ + public PatchingStatusEnum getPatchingStatus() { + return patchingStatus; + } + + /** + * The time when the patching operation started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStartTime") + private final java.util.Date patchingStartTime; + + /** + * The time when the patching operation started. + * @return the value + **/ + public java.util.Date getPatchingStartTime() { + return patchingStartTime; + } + + /** + * The time when the patching operation ended. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingEndTime") + private final java.util.Date patchingEndTime; + + /** + * The time when the patching operation ended. + * @return the value + **/ + public java.util.Date getPatchingEndTime() { + return patchingEndTime; + } + + /** + * The estimated total time required in minutes for all patching operations (compute servers, storage). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedPatchingTime") + private final Integer estimatedPatchingTime; + + /** + * The estimated total time required in minutes for all patching operations (compute servers, storage). + * + * @return the value + **/ + public Integer getEstimatedPatchingTime() { + return estimatedPatchingTime; + } + + /** + * The name of the current infrastructure component that is getting patched. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentPatchingComponent") + private final String currentPatchingComponent; + + /** + * The name of the current infrastructure component that is getting patched. + * @return the value + **/ + public String getCurrentPatchingComponent() { + return currentPatchingComponent; + } + + /** + * The estimated start time of the next infrastructure component patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedComponentPatchingStartTime") + private final java.util.Date estimatedComponentPatchingStartTime; + + /** + * The estimated start time of the next infrastructure component patching operation. + * @return the value + **/ + public java.util.Date getEstimatedComponentPatchingStartTime() { + return estimatedComponentPatchingStartTime; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * The total time taken by corresponding resource activity in minutes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private final Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * @return the value + **/ + public Integer getTotalTimeTakenInMins() { + return totalTimeTakenInMins; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MaintenanceRun("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", initialScheduledTime=").append(String.valueOf(this.initialScheduledTime)); + sb.append(", timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", targetResourceType=").append(String.valueOf(this.targetResourceType)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", maintenanceType=").append(String.valueOf(this.maintenanceType)); + sb.append(", patchIdentifier=").append(String.valueOf(this.patchIdentifier)); + sb.append(", maintenanceSubtype=").append(String.valueOf(this.maintenanceSubtype)); + sb.append(", patchingMode=").append(String.valueOf(this.patchingMode)); + sb.append(", patchFailureCount=").append(String.valueOf(this.patchFailureCount)); + sb.append(", sourceVersion=").append(String.valueOf(this.sourceVersion)); + sb.append(", targetVersion=").append(String.valueOf(this.targetVersion)); + sb.append(", isCustomActionTimeoutEnabled=") + .append(String.valueOf(this.isCustomActionTimeoutEnabled)); + sb.append(", customActionTimeoutInMins=") + .append(String.valueOf(this.customActionTimeoutInMins)); + sb.append(", patchingStatus=").append(String.valueOf(this.patchingStatus)); + sb.append(", patchingStartTime=").append(String.valueOf(this.patchingStartTime)); + sb.append(", patchingEndTime=").append(String.valueOf(this.patchingEndTime)); + sb.append(", estimatedPatchingTime=").append(String.valueOf(this.estimatedPatchingTime)); + sb.append(", currentPatchingComponent=") + .append(String.valueOf(this.currentPatchingComponent)); + sb.append(", estimatedComponentPatchingStartTime=") + .append(String.valueOf(this.estimatedComponentPatchingStartTime)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", totalTimeTakenInMins=").append(String.valueOf(this.totalTimeTakenInMins)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MaintenanceRun)) { + return false; + } + + MaintenanceRun other = (MaintenanceRun) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.initialScheduledTime, other.initialScheduledTime) + && java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.targetResourceType, other.targetResourceType) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.maintenanceType, other.maintenanceType) + && java.util.Objects.equals(this.patchIdentifier, other.patchIdentifier) + && java.util.Objects.equals(this.maintenanceSubtype, other.maintenanceSubtype) + && java.util.Objects.equals(this.patchingMode, other.patchingMode) + && java.util.Objects.equals(this.patchFailureCount, other.patchFailureCount) + && java.util.Objects.equals(this.sourceVersion, other.sourceVersion) + && java.util.Objects.equals(this.targetVersion, other.targetVersion) + && java.util.Objects.equals( + this.isCustomActionTimeoutEnabled, other.isCustomActionTimeoutEnabled) + && java.util.Objects.equals( + this.customActionTimeoutInMins, other.customActionTimeoutInMins) + && java.util.Objects.equals(this.patchingStatus, other.patchingStatus) + && java.util.Objects.equals(this.patchingStartTime, other.patchingStartTime) + && java.util.Objects.equals(this.patchingEndTime, other.patchingEndTime) + && java.util.Objects.equals(this.estimatedPatchingTime, other.estimatedPatchingTime) + && java.util.Objects.equals( + this.currentPatchingComponent, other.currentPatchingComponent) + && java.util.Objects.equals( + this.estimatedComponentPatchingStartTime, + other.estimatedComponentPatchingStartTime) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.totalTimeTakenInMins, other.totalTimeTakenInMins) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.initialScheduledTime == null + ? 43 + : this.initialScheduledTime.hashCode()); + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = + (result * PRIME) + + (this.targetResourceType == null + ? 43 + : this.targetResourceType.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceType == null ? 43 : this.maintenanceType.hashCode()); + result = + (result * PRIME) + + (this.patchIdentifier == null ? 43 : this.patchIdentifier.hashCode()); + result = + (result * PRIME) + + (this.maintenanceSubtype == null + ? 43 + : this.maintenanceSubtype.hashCode()); + result = (result * PRIME) + (this.patchingMode == null ? 43 : this.patchingMode.hashCode()); + result = + (result * PRIME) + + (this.patchFailureCount == null ? 43 : this.patchFailureCount.hashCode()); + result = + (result * PRIME) + + (this.sourceVersion == null ? 43 : this.sourceVersion.hashCode()); + result = + (result * PRIME) + + (this.targetVersion == null ? 43 : this.targetVersion.hashCode()); + result = + (result * PRIME) + + (this.isCustomActionTimeoutEnabled == null + ? 43 + : this.isCustomActionTimeoutEnabled.hashCode()); + result = + (result * PRIME) + + (this.customActionTimeoutInMins == null + ? 43 + : this.customActionTimeoutInMins.hashCode()); + result = + (result * PRIME) + + (this.patchingStatus == null ? 43 : this.patchingStatus.hashCode()); + result = + (result * PRIME) + + (this.patchingStartTime == null ? 43 : this.patchingStartTime.hashCode()); + result = + (result * PRIME) + + (this.patchingEndTime == null ? 43 : this.patchingEndTime.hashCode()); + result = + (result * PRIME) + + (this.estimatedPatchingTime == null + ? 43 + : this.estimatedPatchingTime.hashCode()); + result = + (result * PRIME) + + (this.currentPatchingComponent == null + ? 43 + : this.currentPatchingComponent.hashCode()); + result = + (result * PRIME) + + (this.estimatedComponentPatchingStartTime == null + ? 43 + : this.estimatedComponentPatchingStartTime.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunCollection.java new file mode 100644 index 00000000000..0cf64e21875 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * A collection of maintenance runs. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceRunCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MaintenanceRunCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public MaintenanceRunCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of maintenance runs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of maintenance runs. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MaintenanceRunCollection build() { + MaintenanceRunCollection model = new MaintenanceRunCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceRunCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of maintenance runs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of maintenance runs. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MaintenanceRunCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MaintenanceRunCollection)) { + return false; + } + + MaintenanceRunCollection other = (MaintenanceRunCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunLifecycleState.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunLifecycleState.java new file mode 100644 index 00000000000..e3eb40f3c21 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunLifecycleState.java @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Maintenance run lifecycle state + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum MaintenanceRunLifecycleState { + Creating("CREATING"), + Scheduled("SCHEDULED"), + InProgress("IN_PROGRESS"), + Succeeded("SUCCEEDED"), + Skipped("SKIPPED"), + Failed("FAILED"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + Canceled("CANCELED"), + PartialSuccess("PARTIAL_SUCCESS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MaintenanceRunLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaintenanceRunLifecycleState v : MaintenanceRunLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaintenanceRunLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaintenanceRunLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaintenanceRunLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunSummary.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunSummary.java new file mode 100644 index 00000000000..fcb5c036636 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceRunSummary.java @@ -0,0 +1,1460 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Summary of a maintenance run. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceRunSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MaintenanceRunSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "lifecycleState", + "lifecycleDetails", + "initialScheduledTime", + "timeScheduled", + "timeStarted", + "timeEnded", + "targetResourceType", + "infrastructureId", + "maintenanceType", + "patchIdentifier", + "maintenanceSubtype", + "patchingMode", + "patchFailureCount", + "sourceVersion", + "targetVersion", + "isCustomActionTimeoutEnabled", + "customActionTimeoutInMins", + "patchingStatus", + "patchingStartTime", + "patchingEndTime", + "estimatedPatchingTime", + "currentPatchingComponent", + "estimatedComponentPatchingStartTime", + "systemTags", + "definedTags", + "freeformTags", + "totalTimeTakenInMins" + }) + public MaintenanceRunSummary( + String id, + String compartmentId, + String displayName, + String description, + MaintenanceRunLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date initialScheduledTime, + java.util.Date timeScheduled, + java.util.Date timeStarted, + java.util.Date timeEnded, + TargetResourceTypeEnum targetResourceType, + String infrastructureId, + MaintenanceTypeEnum maintenanceType, + String patchIdentifier, + MaintenanceSubtypeEnum maintenanceSubtype, + PatchingModeEnum patchingMode, + Integer patchFailureCount, + String sourceVersion, + String targetVersion, + Boolean isCustomActionTimeoutEnabled, + Integer customActionTimeoutInMins, + PatchingStatusEnum patchingStatus, + java.util.Date patchingStartTime, + java.util.Date patchingEndTime, + Integer estimatedPatchingTime, + String currentPatchingComponent, + java.util.Date estimatedComponentPatchingStartTime, + java.util.Map> systemTags, + java.util.Map> definedTags, + java.util.Map freeformTags, + Integer totalTimeTakenInMins) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.initialScheduledTime = initialScheduledTime; + this.timeScheduled = timeScheduled; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.targetResourceType = targetResourceType; + this.infrastructureId = infrastructureId; + this.maintenanceType = maintenanceType; + this.patchIdentifier = patchIdentifier; + this.maintenanceSubtype = maintenanceSubtype; + this.patchingMode = patchingMode; + this.patchFailureCount = patchFailureCount; + this.sourceVersion = sourceVersion; + this.targetVersion = targetVersion; + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.patchingStatus = patchingStatus; + this.patchingStartTime = patchingStartTime; + this.patchingEndTime = patchingEndTime; + this.estimatedPatchingTime = estimatedPatchingTime; + this.currentPatchingComponent = currentPatchingComponent; + this.estimatedComponentPatchingStartTime = estimatedComponentPatchingStartTime; + this.systemTags = systemTags; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.totalTimeTakenInMins = totalTimeTakenInMins; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the maintenance run. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Description of the maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the maintenance run. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The current state of the maintenance run. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MaintenanceRunLifecycleState lifecycleState; + + /** + * The current state of the maintenance run. + * + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(MaintenanceRunLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The date and time the maintenance run was originally scheduled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialScheduledTime") + private java.util.Date initialScheduledTime; + + /** + * The date and time the maintenance run was originally scheduled. + * @param initialScheduledTime the value to set + * @return this builder + **/ + public Builder initialScheduledTime(java.util.Date initialScheduledTime) { + this.initialScheduledTime = initialScheduledTime; + this.__explicitlySet__.add("initialScheduledTime"); + return this; + } + /** + * The date and time the maintenance run is scheduled to occur. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * The date and time the maintenance run is scheduled to occur. + * @param timeScheduled the value to set + * @return this builder + **/ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + /** + * The date and time the maintenance run starts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the maintenance run starts. + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the maintenance run was completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * @param timeEnded the value to set + * @return this builder + **/ + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + /** + * The type of the target resource on which the maintenance run occurs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run occurs. + * @param targetResourceType the value to set + * @return this builder + **/ + public Builder targetResourceType(TargetResourceTypeEnum targetResourceType) { + this.targetResourceType = targetResourceType; + this.__explicitlySet__.add("targetResourceType"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurs. + * @param infrastructureId the value to set + * @return this builder + **/ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * Maintenance type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * @param maintenanceType the value to set + * @return this builder + **/ + public Builder maintenanceType(MaintenanceTypeEnum maintenanceType) { + this.maintenanceType = maintenanceType; + this.__explicitlySet__.add("maintenanceType"); + return this; + } + /** + * The unique identifier of the patch. The identifier string includes the patch type and the version of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchIdentifier") + private String patchIdentifier; + + /** + * The unique identifier of the patch. The identifier string includes the patch type and the version of the Database Infrastructure. + * @param patchIdentifier the value to set + * @return this builder + **/ + public Builder patchIdentifier(String patchIdentifier) { + this.patchIdentifier = patchIdentifier; + this.__explicitlySet__.add("patchIdentifier"); + return this; + } + /** + * Maintenance run sub-type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run sub-type. + * @param maintenanceSubtype the value to set + * @return this builder + **/ + public Builder maintenanceSubtype(MaintenanceSubtypeEnum maintenanceSubtype) { + this.maintenanceSubtype = maintenanceSubtype; + this.__explicitlySet__.add("maintenanceSubtype"); + return this; + } + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private PatchingModeEnum patchingMode; + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * + * @param patchingMode the value to set + * @return this builder + **/ + public Builder patchingMode(PatchingModeEnum patchingMode) { + this.patchingMode = patchingMode; + this.__explicitlySet__.add("patchingMode"); + return this; + } + /** + * Contain the patch failure count. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchFailureCount") + private Integer patchFailureCount; + + /** + * Contain the patch failure count. + * @param patchFailureCount the value to set + * @return this builder + **/ + public Builder patchFailureCount(Integer patchFailureCount) { + this.patchFailureCount = patchFailureCount; + this.__explicitlySet__.add("patchFailureCount"); + return this; + } + /** + * The source software version for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private String sourceVersion; + + /** + * The source software version for the Database Infrastructure. + * @param sourceVersion the value to set + * @return this builder + **/ + public Builder sourceVersion(String sourceVersion) { + this.sourceVersion = sourceVersion; + this.__explicitlySet__.add("sourceVersion"); + return this; + } + /** + * The target software version for the Database Infrastructure patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * @param targetVersion the value to set + * @return this builder + **/ + public Builder targetVersion(String targetVersion) { + this.targetVersion = targetVersion; + this.__explicitlySet__.add("targetVersion"); + return this; + } + /** + * If true, enables the configuration of a custom action timeout (waiting period) between compute servers patching operations. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between compute servers patching operations. + * @param isCustomActionTimeoutEnabled the value to set + * @return this builder + **/ + public Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled) { + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.__explicitlySet__.add("isCustomActionTimeoutEnabled"); + return this; + } + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + * @param customActionTimeoutInMins the value to set + * @return this builder + **/ + public Builder customActionTimeoutInMins(Integer customActionTimeoutInMins) { + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.__explicitlySet__.add("customActionTimeoutInMins"); + return this; + } + /** + * The status of the patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStatus") + private PatchingStatusEnum patchingStatus; + + /** + * The status of the patching operation. + * @param patchingStatus the value to set + * @return this builder + **/ + public Builder patchingStatus(PatchingStatusEnum patchingStatus) { + this.patchingStatus = patchingStatus; + this.__explicitlySet__.add("patchingStatus"); + return this; + } + /** + * The time when the patching operation started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStartTime") + private java.util.Date patchingStartTime; + + /** + * The time when the patching operation started. + * @param patchingStartTime the value to set + * @return this builder + **/ + public Builder patchingStartTime(java.util.Date patchingStartTime) { + this.patchingStartTime = patchingStartTime; + this.__explicitlySet__.add("patchingStartTime"); + return this; + } + /** + * The time when the patching operation ended. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingEndTime") + private java.util.Date patchingEndTime; + + /** + * The time when the patching operation ended. + * @param patchingEndTime the value to set + * @return this builder + **/ + public Builder patchingEndTime(java.util.Date patchingEndTime) { + this.patchingEndTime = patchingEndTime; + this.__explicitlySet__.add("patchingEndTime"); + return this; + } + /** + * The estimated total time required in minutes for all patching operations (compute servers, storage). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedPatchingTime") + private Integer estimatedPatchingTime; + + /** + * The estimated total time required in minutes for all patching operations (compute servers, storage). + * + * @param estimatedPatchingTime the value to set + * @return this builder + **/ + public Builder estimatedPatchingTime(Integer estimatedPatchingTime) { + this.estimatedPatchingTime = estimatedPatchingTime; + this.__explicitlySet__.add("estimatedPatchingTime"); + return this; + } + /** + * The name of the current infrastructure component that is getting patched. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentPatchingComponent") + private String currentPatchingComponent; + + /** + * The name of the current infrastructure component that is getting patched. + * @param currentPatchingComponent the value to set + * @return this builder + **/ + public Builder currentPatchingComponent(String currentPatchingComponent) { + this.currentPatchingComponent = currentPatchingComponent; + this.__explicitlySet__.add("currentPatchingComponent"); + return this; + } + /** + * The estimated start time of the next infrastructure component patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedComponentPatchingStartTime") + private java.util.Date estimatedComponentPatchingStartTime; + + /** + * The estimated start time of the next infrastructure component patching operation. + * @param estimatedComponentPatchingStartTime the value to set + * @return this builder + **/ + public Builder estimatedComponentPatchingStartTime( + java.util.Date estimatedComponentPatchingStartTime) { + this.estimatedComponentPatchingStartTime = estimatedComponentPatchingStartTime; + this.__explicitlySet__.add("estimatedComponentPatchingStartTime"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * The total time taken by corresponding resource activity in minutes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * @param totalTimeTakenInMins the value to set + * @return this builder + **/ + public Builder totalTimeTakenInMins(Integer totalTimeTakenInMins) { + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.__explicitlySet__.add("totalTimeTakenInMins"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MaintenanceRunSummary build() { + MaintenanceRunSummary model = + new MaintenanceRunSummary( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.lifecycleState, + this.lifecycleDetails, + this.initialScheduledTime, + this.timeScheduled, + this.timeStarted, + this.timeEnded, + this.targetResourceType, + this.infrastructureId, + this.maintenanceType, + this.patchIdentifier, + this.maintenanceSubtype, + this.patchingMode, + this.patchFailureCount, + this.sourceVersion, + this.targetVersion, + this.isCustomActionTimeoutEnabled, + this.customActionTimeoutInMins, + this.patchingStatus, + this.patchingStartTime, + this.patchingEndTime, + this.estimatedPatchingTime, + this.currentPatchingComponent, + this.estimatedComponentPatchingStartTime, + this.systemTags, + this.definedTags, + this.freeformTags, + this.totalTimeTakenInMins); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceRunSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("initialScheduledTime")) { + this.initialScheduledTime(model.getInitialScheduledTime()); + } + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("targetResourceType")) { + this.targetResourceType(model.getTargetResourceType()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("maintenanceType")) { + this.maintenanceType(model.getMaintenanceType()); + } + if (model.wasPropertyExplicitlySet("patchIdentifier")) { + this.patchIdentifier(model.getPatchIdentifier()); + } + if (model.wasPropertyExplicitlySet("maintenanceSubtype")) { + this.maintenanceSubtype(model.getMaintenanceSubtype()); + } + if (model.wasPropertyExplicitlySet("patchingMode")) { + this.patchingMode(model.getPatchingMode()); + } + if (model.wasPropertyExplicitlySet("patchFailureCount")) { + this.patchFailureCount(model.getPatchFailureCount()); + } + if (model.wasPropertyExplicitlySet("sourceVersion")) { + this.sourceVersion(model.getSourceVersion()); + } + if (model.wasPropertyExplicitlySet("targetVersion")) { + this.targetVersion(model.getTargetVersion()); + } + if (model.wasPropertyExplicitlySet("isCustomActionTimeoutEnabled")) { + this.isCustomActionTimeoutEnabled(model.getIsCustomActionTimeoutEnabled()); + } + if (model.wasPropertyExplicitlySet("customActionTimeoutInMins")) { + this.customActionTimeoutInMins(model.getCustomActionTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("patchingStatus")) { + this.patchingStatus(model.getPatchingStatus()); + } + if (model.wasPropertyExplicitlySet("patchingStartTime")) { + this.patchingStartTime(model.getPatchingStartTime()); + } + if (model.wasPropertyExplicitlySet("patchingEndTime")) { + this.patchingEndTime(model.getPatchingEndTime()); + } + if (model.wasPropertyExplicitlySet("estimatedPatchingTime")) { + this.estimatedPatchingTime(model.getEstimatedPatchingTime()); + } + if (model.wasPropertyExplicitlySet("currentPatchingComponent")) { + this.currentPatchingComponent(model.getCurrentPatchingComponent()); + } + if (model.wasPropertyExplicitlySet("estimatedComponentPatchingStartTime")) { + this.estimatedComponentPatchingStartTime( + model.getEstimatedComponentPatchingStartTime()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("totalTimeTakenInMins")) { + this.totalTimeTakenInMins(model.getTotalTimeTakenInMins()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance run. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-friendly name for the maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the maintenance run. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Description of the maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the maintenance run. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The current state of the maintenance run. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final MaintenanceRunLifecycleState lifecycleState; + + /** + * The current state of the maintenance run. + * + * @return the value + **/ + public MaintenanceRunLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The date and time the maintenance run was originally scheduled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialScheduledTime") + private final java.util.Date initialScheduledTime; + + /** + * The date and time the maintenance run was originally scheduled. + * @return the value + **/ + public java.util.Date getInitialScheduledTime() { + return initialScheduledTime; + } + + /** + * The date and time the maintenance run is scheduled to occur. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * The date and time the maintenance run is scheduled to occur. + * @return the value + **/ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** + * The date and time the maintenance run starts. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the maintenance run starts. + * @return the value + **/ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the maintenance run was completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The date and time the maintenance run was completed. + * @return the value + **/ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** + * The type of the target resource on which the maintenance run occurs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetResourceType") + private final TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource on which the maintenance run occurs. + * @return the value + **/ + public TargetResourceTypeEnum getTargetResourceType() { + return targetResourceType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure on which the maintenance run execution occurs. + * @return the value + **/ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * Maintenance type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceType") + private final MaintenanceTypeEnum maintenanceType; + + /** + * Maintenance type. + * @return the value + **/ + public MaintenanceTypeEnum getMaintenanceType() { + return maintenanceType; + } + + /** + * The unique identifier of the patch. The identifier string includes the patch type and the version of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchIdentifier") + private final String patchIdentifier; + + /** + * The unique identifier of the patch. The identifier string includes the patch type and the version of the Database Infrastructure. + * @return the value + **/ + public String getPatchIdentifier() { + return patchIdentifier; + } + + /** + * Maintenance run sub-type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSubtype") + private final MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * Maintenance run sub-type. + * @return the value + **/ + public MaintenanceSubtypeEnum getMaintenanceSubtype() { + return maintenanceSubtype; + } + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private final PatchingModeEnum patchingMode; + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * + * @return the value + **/ + public PatchingModeEnum getPatchingMode() { + return patchingMode; + } + + /** + * Contain the patch failure count. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchFailureCount") + private final Integer patchFailureCount; + + /** + * Contain the patch failure count. + * @return the value + **/ + public Integer getPatchFailureCount() { + return patchFailureCount; + } + + /** + * The source software version for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceVersion") + private final String sourceVersion; + + /** + * The source software version for the Database Infrastructure. + * @return the value + **/ + public String getSourceVersion() { + return sourceVersion; + } + + /** + * The target software version for the Database Infrastructure patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetVersion") + private final String targetVersion; + + /** + * The target software version for the Database Infrastructure patching operation. + * @return the value + **/ + public String getTargetVersion() { + return targetVersion; + } + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between compute servers patching operations. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private final Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between compute servers patching operations. + * @return the value + **/ + public Boolean getIsCustomActionTimeoutEnabled() { + return isCustomActionTimeoutEnabled; + } + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private final Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + * @return the value + **/ + public Integer getCustomActionTimeoutInMins() { + return customActionTimeoutInMins; + } + + /** + * The status of the patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStatus") + private final PatchingStatusEnum patchingStatus; + + /** + * The status of the patching operation. + * @return the value + **/ + public PatchingStatusEnum getPatchingStatus() { + return patchingStatus; + } + + /** + * The time when the patching operation started. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingStartTime") + private final java.util.Date patchingStartTime; + + /** + * The time when the patching operation started. + * @return the value + **/ + public java.util.Date getPatchingStartTime() { + return patchingStartTime; + } + + /** + * The time when the patching operation ended. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingEndTime") + private final java.util.Date patchingEndTime; + + /** + * The time when the patching operation ended. + * @return the value + **/ + public java.util.Date getPatchingEndTime() { + return patchingEndTime; + } + + /** + * The estimated total time required in minutes for all patching operations (compute servers, storage). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedPatchingTime") + private final Integer estimatedPatchingTime; + + /** + * The estimated total time required in minutes for all patching operations (compute servers, storage). + * + * @return the value + **/ + public Integer getEstimatedPatchingTime() { + return estimatedPatchingTime; + } + + /** + * The name of the current infrastructure component that is getting patched. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currentPatchingComponent") + private final String currentPatchingComponent; + + /** + * The name of the current infrastructure component that is getting patched. + * @return the value + **/ + public String getCurrentPatchingComponent() { + return currentPatchingComponent; + } + + /** + * The estimated start time of the next infrastructure component patching operation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedComponentPatchingStartTime") + private final java.util.Date estimatedComponentPatchingStartTime; + + /** + * The estimated start time of the next infrastructure component patching operation. + * @return the value + **/ + public java.util.Date getEstimatedComponentPatchingStartTime() { + return estimatedComponentPatchingStartTime; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * The total time taken by corresponding resource activity in minutes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private final Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * @return the value + **/ + public Integer getTotalTimeTakenInMins() { + return totalTimeTakenInMins; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MaintenanceRunSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", initialScheduledTime=").append(String.valueOf(this.initialScheduledTime)); + sb.append(", timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", targetResourceType=").append(String.valueOf(this.targetResourceType)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", maintenanceType=").append(String.valueOf(this.maintenanceType)); + sb.append(", patchIdentifier=").append(String.valueOf(this.patchIdentifier)); + sb.append(", maintenanceSubtype=").append(String.valueOf(this.maintenanceSubtype)); + sb.append(", patchingMode=").append(String.valueOf(this.patchingMode)); + sb.append(", patchFailureCount=").append(String.valueOf(this.patchFailureCount)); + sb.append(", sourceVersion=").append(String.valueOf(this.sourceVersion)); + sb.append(", targetVersion=").append(String.valueOf(this.targetVersion)); + sb.append(", isCustomActionTimeoutEnabled=") + .append(String.valueOf(this.isCustomActionTimeoutEnabled)); + sb.append(", customActionTimeoutInMins=") + .append(String.valueOf(this.customActionTimeoutInMins)); + sb.append(", patchingStatus=").append(String.valueOf(this.patchingStatus)); + sb.append(", patchingStartTime=").append(String.valueOf(this.patchingStartTime)); + sb.append(", patchingEndTime=").append(String.valueOf(this.patchingEndTime)); + sb.append(", estimatedPatchingTime=").append(String.valueOf(this.estimatedPatchingTime)); + sb.append(", currentPatchingComponent=") + .append(String.valueOf(this.currentPatchingComponent)); + sb.append(", estimatedComponentPatchingStartTime=") + .append(String.valueOf(this.estimatedComponentPatchingStartTime)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", totalTimeTakenInMins=").append(String.valueOf(this.totalTimeTakenInMins)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MaintenanceRunSummary)) { + return false; + } + + MaintenanceRunSummary other = (MaintenanceRunSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.initialScheduledTime, other.initialScheduledTime) + && java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.targetResourceType, other.targetResourceType) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.maintenanceType, other.maintenanceType) + && java.util.Objects.equals(this.patchIdentifier, other.patchIdentifier) + && java.util.Objects.equals(this.maintenanceSubtype, other.maintenanceSubtype) + && java.util.Objects.equals(this.patchingMode, other.patchingMode) + && java.util.Objects.equals(this.patchFailureCount, other.patchFailureCount) + && java.util.Objects.equals(this.sourceVersion, other.sourceVersion) + && java.util.Objects.equals(this.targetVersion, other.targetVersion) + && java.util.Objects.equals( + this.isCustomActionTimeoutEnabled, other.isCustomActionTimeoutEnabled) + && java.util.Objects.equals( + this.customActionTimeoutInMins, other.customActionTimeoutInMins) + && java.util.Objects.equals(this.patchingStatus, other.patchingStatus) + && java.util.Objects.equals(this.patchingStartTime, other.patchingStartTime) + && java.util.Objects.equals(this.patchingEndTime, other.patchingEndTime) + && java.util.Objects.equals(this.estimatedPatchingTime, other.estimatedPatchingTime) + && java.util.Objects.equals( + this.currentPatchingComponent, other.currentPatchingComponent) + && java.util.Objects.equals( + this.estimatedComponentPatchingStartTime, + other.estimatedComponentPatchingStartTime) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.totalTimeTakenInMins, other.totalTimeTakenInMins) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.initialScheduledTime == null + ? 43 + : this.initialScheduledTime.hashCode()); + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = + (result * PRIME) + + (this.targetResourceType == null + ? 43 + : this.targetResourceType.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceType == null ? 43 : this.maintenanceType.hashCode()); + result = + (result * PRIME) + + (this.patchIdentifier == null ? 43 : this.patchIdentifier.hashCode()); + result = + (result * PRIME) + + (this.maintenanceSubtype == null + ? 43 + : this.maintenanceSubtype.hashCode()); + result = (result * PRIME) + (this.patchingMode == null ? 43 : this.patchingMode.hashCode()); + result = + (result * PRIME) + + (this.patchFailureCount == null ? 43 : this.patchFailureCount.hashCode()); + result = + (result * PRIME) + + (this.sourceVersion == null ? 43 : this.sourceVersion.hashCode()); + result = + (result * PRIME) + + (this.targetVersion == null ? 43 : this.targetVersion.hashCode()); + result = + (result * PRIME) + + (this.isCustomActionTimeoutEnabled == null + ? 43 + : this.isCustomActionTimeoutEnabled.hashCode()); + result = + (result * PRIME) + + (this.customActionTimeoutInMins == null + ? 43 + : this.customActionTimeoutInMins.hashCode()); + result = + (result * PRIME) + + (this.patchingStatus == null ? 43 : this.patchingStatus.hashCode()); + result = + (result * PRIME) + + (this.patchingStartTime == null ? 43 : this.patchingStartTime.hashCode()); + result = + (result * PRIME) + + (this.patchingEndTime == null ? 43 : this.patchingEndTime.hashCode()); + result = + (result * PRIME) + + (this.estimatedPatchingTime == null + ? 43 + : this.estimatedPatchingTime.hashCode()); + result = + (result * PRIME) + + (this.currentPatchingComponent == null + ? 43 + : this.currentPatchingComponent.hashCode()); + result = + (result * PRIME) + + (this.estimatedComponentPatchingStartTime == null + ? 43 + : this.estimatedComponentPatchingStartTime.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceSubtypeEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceSubtypeEnum.java new file mode 100644 index 00000000000..6a8e82b2f38 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceSubtypeEnum.java @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Maintenance sub-type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum MaintenanceSubtypeEnum { + Yearly("YEARLY"), + Halfyearly("HALFYEARLY"), + Quarterly("QUARTERLY"), + Monthly("MONTHLY"), + Daily("DAILY"), + Hardware("HARDWARE"), + Critical("CRITICAL"), + InfraUpdate("INFRA_UPDATE"), + CpsServicesUpdate("CPS_SERVICES_UPDATE"), + CpsVmUpdate("CPS_VM_UPDATE"), + SecurityMonthly("SECURITY_MONTHLY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MaintenanceSubtypeEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaintenanceSubtypeEnum v : MaintenanceSubtypeEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaintenanceSubtypeEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaintenanceSubtypeEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaintenanceSubtypeEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceTypeEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceTypeEnum.java new file mode 100644 index 00000000000..2d3b79a01ad --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceTypeEnum.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Maintenance type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum MaintenanceTypeEnum { + Planned("PLANNED"), + Unplanned("UNPLANNED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MaintenanceTypeEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaintenanceTypeEnum v : MaintenanceTypeEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaintenanceTypeEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaintenanceTypeEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaintenanceTypeEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceWindow.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceWindow.java new file mode 100644 index 00000000000..357ab798da8 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/MaintenanceWindow.java @@ -0,0 +1,689 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceWindow.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MaintenanceWindow extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "preference", + "patchingMode", + "isCustomActionTimeoutEnabled", + "customActionTimeoutInMins", + "isMonthlyPatchingEnabled", + "months", + "weeksOfMonth", + "daysOfWeek", + "hoursOfDay", + "leadTimeInWeeks" + }) + public MaintenanceWindow( + MaintenancePreference preference, + BasePatchingMode patchingMode, + Boolean isCustomActionTimeoutEnabled, + Integer customActionTimeoutInMins, + Boolean isMonthlyPatchingEnabled, + java.util.List months, + java.util.List weeksOfMonth, + java.util.List daysOfWeek, + java.util.List hoursOfDay, + Integer leadTimeInWeeks) { + super(); + this.preference = preference; + this.patchingMode = patchingMode; + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.isMonthlyPatchingEnabled = isMonthlyPatchingEnabled; + this.months = months; + this.weeksOfMonth = weeksOfMonth; + this.daysOfWeek = daysOfWeek; + this.hoursOfDay = hoursOfDay; + this.leadTimeInWeeks = leadTimeInWeeks; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The maintenance window scheduling preference. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("preference") + private MaintenancePreference preference; + + /** + * The maintenance window scheduling preference. + * @param preference the value to set + * @return this builder + **/ + public Builder preference(MaintenancePreference preference) { + this.preference = preference; + this.__explicitlySet__.add("preference"); + return this; + } + /** + * Cloud Database Infrastructure node patching method. + * *IMPORTANT*: Non-rolling infrastructure patching involves system down time. + * See [Oracle-Managed Database Infrastructure Maintenance Updates](https://docs.oracle.com/iaas/Content/Database/Concepts/examaintenance.htm#Oracle) + * for more information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private BasePatchingMode patchingMode; + + /** + * Cloud Database Infrastructure node patching method. + * *IMPORTANT*: Non-rolling infrastructure patching involves system down time. + * See [Oracle-Managed Database Infrastructure Maintenance Updates](https://docs.oracle.com/iaas/Content/Database/Concepts/examaintenance.htm#Oracle) + * for more information. + * + * @param patchingMode the value to set + * @return this builder + **/ + public Builder patchingMode(BasePatchingMode patchingMode) { + this.patchingMode = patchingMode; + this.__explicitlySet__.add("patchingMode"); + return this; + } + /** + * If true, enables the configuration of a custom action timeout (waiting period) between Database Infrastructure server patching operations. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between Database Infrastructure server patching operations. + * @param isCustomActionTimeoutEnabled the value to set + * @return this builder + **/ + public Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled) { + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.__explicitlySet__.add("isCustomActionTimeoutEnabled"); + return this; + } + /** + * Determines the amount of time the system will wait before the start of each Database Infrastructure server patching operation. + * Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each Database Infrastructure server patching operation. + * Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive). + * + * @param customActionTimeoutInMins the value to set + * @return this builder + **/ + public Builder customActionTimeoutInMins(Integer customActionTimeoutInMins) { + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.__explicitlySet__.add("customActionTimeoutInMins"); + return this; + } + /** + * If true, enables the monthly patching option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMonthlyPatchingEnabled") + private Boolean isMonthlyPatchingEnabled; + + /** + * If true, enables the monthly patching option. + * @param isMonthlyPatchingEnabled the value to set + * @return this builder + **/ + public Builder isMonthlyPatchingEnabled(Boolean isMonthlyPatchingEnabled) { + this.isMonthlyPatchingEnabled = isMonthlyPatchingEnabled; + this.__explicitlySet__.add("isMonthlyPatchingEnabled"); + return this; + } + /** + * Months during the year when maintenance should be performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("months") + private java.util.List months; + + /** + * Months during the year when maintenance should be performed. + * @param months the value to set + * @return this builder + **/ + public Builder months(java.util.List months) { + this.months = months; + this.__explicitlySet__.add("months"); + return this; + } + /** + * Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and + * 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, + * not days of the week.For example, to allow maintenance during the 2nd week of the month + * (from the 8th day to the 14th day of the month), use the value 2. Maintenance cannot be scheduled for + * the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction + * with the daysOfWeek and hoursOfDay parameters to allow you to specify specific days of the week and + * hours that maintenance will be performed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("weeksOfMonth") + private java.util.List weeksOfMonth; + + /** + * Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and + * 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, + * not days of the week.For example, to allow maintenance during the 2nd week of the month + * (from the 8th day to the 14th day of the month), use the value 2. Maintenance cannot be scheduled for + * the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction + * with the daysOfWeek and hoursOfDay parameters to allow you to specify specific days of the week and + * hours that maintenance will be performed. + * + * @param weeksOfMonth the value to set + * @return this builder + **/ + public Builder weeksOfMonth(java.util.List weeksOfMonth) { + this.weeksOfMonth = weeksOfMonth; + this.__explicitlySet__.add("weeksOfMonth"); + return this; + } + /** + * Days during the week when maintenance should be performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("daysOfWeek") + private java.util.List daysOfWeek; + + /** + * Days during the week when maintenance should be performed. + * @param daysOfWeek the value to set + * @return this builder + **/ + public Builder daysOfWeek(java.util.List daysOfWeek) { + this.daysOfWeek = daysOfWeek; + this.__explicitlySet__.add("daysOfWeek"); + return this; + } + /** + * The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - represents time slot 20:00 - 23:59 UTC + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hoursOfDay") + private java.util.List hoursOfDay; + + /** + * The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - represents time slot 20:00 - 23:59 UTC + * @param hoursOfDay the value to set + * @return this builder + **/ + public Builder hoursOfDay(java.util.List hoursOfDay) { + this.hoursOfDay = hoursOfDay; + this.__explicitlySet__.add("hoursOfDay"); + return this; + } + /** + * Lead time window allows user to set a lead time to prepare for a down time. + * The lead time is in weeks and valid value is between 1 to 4. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("leadTimeInWeeks") + private Integer leadTimeInWeeks; + + /** + * Lead time window allows user to set a lead time to prepare for a down time. + * The lead time is in weeks and valid value is between 1 to 4. + * + * @param leadTimeInWeeks the value to set + * @return this builder + **/ + public Builder leadTimeInWeeks(Integer leadTimeInWeeks) { + this.leadTimeInWeeks = leadTimeInWeeks; + this.__explicitlySet__.add("leadTimeInWeeks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MaintenanceWindow build() { + MaintenanceWindow model = + new MaintenanceWindow( + this.preference, + this.patchingMode, + this.isCustomActionTimeoutEnabled, + this.customActionTimeoutInMins, + this.isMonthlyPatchingEnabled, + this.months, + this.weeksOfMonth, + this.daysOfWeek, + this.hoursOfDay, + this.leadTimeInWeeks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceWindow model) { + if (model.wasPropertyExplicitlySet("preference")) { + this.preference(model.getPreference()); + } + if (model.wasPropertyExplicitlySet("patchingMode")) { + this.patchingMode(model.getPatchingMode()); + } + if (model.wasPropertyExplicitlySet("isCustomActionTimeoutEnabled")) { + this.isCustomActionTimeoutEnabled(model.getIsCustomActionTimeoutEnabled()); + } + if (model.wasPropertyExplicitlySet("customActionTimeoutInMins")) { + this.customActionTimeoutInMins(model.getCustomActionTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("isMonthlyPatchingEnabled")) { + this.isMonthlyPatchingEnabled(model.getIsMonthlyPatchingEnabled()); + } + if (model.wasPropertyExplicitlySet("months")) { + this.months(model.getMonths()); + } + if (model.wasPropertyExplicitlySet("weeksOfMonth")) { + this.weeksOfMonth(model.getWeeksOfMonth()); + } + if (model.wasPropertyExplicitlySet("daysOfWeek")) { + this.daysOfWeek(model.getDaysOfWeek()); + } + if (model.wasPropertyExplicitlySet("hoursOfDay")) { + this.hoursOfDay(model.getHoursOfDay()); + } + if (model.wasPropertyExplicitlySet("leadTimeInWeeks")) { + this.leadTimeInWeeks(model.getLeadTimeInWeeks()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The maintenance window scheduling preference. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("preference") + private final MaintenancePreference preference; + + /** + * The maintenance window scheduling preference. + * @return the value + **/ + public MaintenancePreference getPreference() { + return preference; + } + + /** + * Cloud Database Infrastructure node patching method. + * *IMPORTANT*: Non-rolling infrastructure patching involves system down time. + * See [Oracle-Managed Database Infrastructure Maintenance Updates](https://docs.oracle.com/iaas/Content/Database/Concepts/examaintenance.htm#Oracle) + * for more information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private final BasePatchingMode patchingMode; + + /** + * Cloud Database Infrastructure node patching method. + * *IMPORTANT*: Non-rolling infrastructure patching involves system down time. + * See [Oracle-Managed Database Infrastructure Maintenance Updates](https://docs.oracle.com/iaas/Content/Database/Concepts/examaintenance.htm#Oracle) + * for more information. + * + * @return the value + **/ + public BasePatchingMode getPatchingMode() { + return patchingMode; + } + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between Database Infrastructure server patching operations. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private final Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables the configuration of a custom action timeout (waiting period) between Database Infrastructure server patching operations. + * @return the value + **/ + public Boolean getIsCustomActionTimeoutEnabled() { + return isCustomActionTimeoutEnabled; + } + + /** + * Determines the amount of time the system will wait before the start of each Database Infrastructure server patching operation. + * Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private final Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each Database Infrastructure server patching operation. + * Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive). + * + * @return the value + **/ + public Integer getCustomActionTimeoutInMins() { + return customActionTimeoutInMins; + } + + /** + * If true, enables the monthly patching option. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMonthlyPatchingEnabled") + private final Boolean isMonthlyPatchingEnabled; + + /** + * If true, enables the monthly patching option. + * @return the value + **/ + public Boolean getIsMonthlyPatchingEnabled() { + return isMonthlyPatchingEnabled; + } + + /** + **/ + public enum Months { + January("JANUARY"), + February("FEBRUARY"), + March("MARCH"), + April("APRIL"), + May("MAY"), + June("JUNE"), + July("JULY"), + August("AUGUST"), + September("SEPTEMBER"), + October("OCTOBER"), + November("NOVEMBER"), + December("DECEMBER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Months.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Months v : Months.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Months(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Months create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Months', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Months during the year when maintenance should be performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("months") + private final java.util.List months; + + /** + * Months during the year when maintenance should be performed. + * @return the value + **/ + public java.util.List getMonths() { + return months; + } + + /** + * Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and + * 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, + * not days of the week.For example, to allow maintenance during the 2nd week of the month + * (from the 8th day to the 14th day of the month), use the value 2. Maintenance cannot be scheduled for + * the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction + * with the daysOfWeek and hoursOfDay parameters to allow you to specify specific days of the week and + * hours that maintenance will be performed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("weeksOfMonth") + private final java.util.List weeksOfMonth; + + /** + * Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and + * 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, + * not days of the week.For example, to allow maintenance during the 2nd week of the month + * (from the 8th day to the 14th day of the month), use the value 2. Maintenance cannot be scheduled for + * the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction + * with the daysOfWeek and hoursOfDay parameters to allow you to specify specific days of the week and + * hours that maintenance will be performed. + * + * @return the value + **/ + public java.util.List getWeeksOfMonth() { + return weeksOfMonth; + } + + /** + **/ + public enum DaysOfWeek { + Monday("MONDAY"), + Tuesday("TUESDAY"), + Wednesday("WEDNESDAY"), + Thursday("THURSDAY"), + Friday("FRIDAY"), + Saturday("SATURDAY"), + Sunday("SUNDAY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DaysOfWeek.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DaysOfWeek v : DaysOfWeek.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DaysOfWeek(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DaysOfWeek create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DaysOfWeek', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Days during the week when maintenance should be performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("daysOfWeek") + private final java.util.List daysOfWeek; + + /** + * Days during the week when maintenance should be performed. + * @return the value + **/ + public java.util.List getDaysOfWeek() { + return daysOfWeek; + } + + /** + * The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - represents time slot 20:00 - 23:59 UTC + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hoursOfDay") + private final java.util.List hoursOfDay; + + /** + * The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - represents time slot 20:00 - 23:59 UTC + * @return the value + **/ + public java.util.List getHoursOfDay() { + return hoursOfDay; + } + + /** + * Lead time window allows user to set a lead time to prepare for a down time. + * The lead time is in weeks and valid value is between 1 to 4. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("leadTimeInWeeks") + private final Integer leadTimeInWeeks; + + /** + * Lead time window allows user to set a lead time to prepare for a down time. + * The lead time is in weeks and valid value is between 1 to 4. + * + * @return the value + **/ + public Integer getLeadTimeInWeeks() { + return leadTimeInWeeks; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MaintenanceWindow("); + sb.append("super=").append(super.toString()); + sb.append("preference=").append(String.valueOf(this.preference)); + sb.append(", patchingMode=").append(String.valueOf(this.patchingMode)); + sb.append(", isCustomActionTimeoutEnabled=") + .append(String.valueOf(this.isCustomActionTimeoutEnabled)); + sb.append(", customActionTimeoutInMins=") + .append(String.valueOf(this.customActionTimeoutInMins)); + sb.append(", isMonthlyPatchingEnabled=") + .append(String.valueOf(this.isMonthlyPatchingEnabled)); + sb.append(", months=").append(String.valueOf(this.months)); + sb.append(", weeksOfMonth=").append(String.valueOf(this.weeksOfMonth)); + sb.append(", daysOfWeek=").append(String.valueOf(this.daysOfWeek)); + sb.append(", hoursOfDay=").append(String.valueOf(this.hoursOfDay)); + sb.append(", leadTimeInWeeks=").append(String.valueOf(this.leadTimeInWeeks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MaintenanceWindow)) { + return false; + } + + MaintenanceWindow other = (MaintenanceWindow) o; + return java.util.Objects.equals(this.preference, other.preference) + && java.util.Objects.equals(this.patchingMode, other.patchingMode) + && java.util.Objects.equals( + this.isCustomActionTimeoutEnabled, other.isCustomActionTimeoutEnabled) + && java.util.Objects.equals( + this.customActionTimeoutInMins, other.customActionTimeoutInMins) + && java.util.Objects.equals( + this.isMonthlyPatchingEnabled, other.isMonthlyPatchingEnabled) + && java.util.Objects.equals(this.months, other.months) + && java.util.Objects.equals(this.weeksOfMonth, other.weeksOfMonth) + && java.util.Objects.equals(this.daysOfWeek, other.daysOfWeek) + && java.util.Objects.equals(this.hoursOfDay, other.hoursOfDay) + && java.util.Objects.equals(this.leadTimeInWeeks, other.leadTimeInWeeks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.preference == null ? 43 : this.preference.hashCode()); + result = (result * PRIME) + (this.patchingMode == null ? 43 : this.patchingMode.hashCode()); + result = + (result * PRIME) + + (this.isCustomActionTimeoutEnabled == null + ? 43 + : this.isCustomActionTimeoutEnabled.hashCode()); + result = + (result * PRIME) + + (this.customActionTimeoutInMins == null + ? 43 + : this.customActionTimeoutInMins.hashCode()); + result = + (result * PRIME) + + (this.isMonthlyPatchingEnabled == null + ? 43 + : this.isMonthlyPatchingEnabled.hashCode()); + result = (result * PRIME) + (this.months == null ? 43 : this.months.hashCode()); + result = (result * PRIME) + (this.weeksOfMonth == null ? 43 : this.weeksOfMonth.hashCode()); + result = (result * PRIME) + (this.daysOfWeek == null ? 43 : this.daysOfWeek.hashCode()); + result = (result * PRIME) + (this.hoursOfDay == null ? 43 : this.hoursOfDay.hashCode()); + result = + (result * PRIME) + + (this.leadTimeInWeeks == null ? 43 : this.leadTimeInWeeks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NetworkBondingInterfaceEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NetworkBondingInterfaceEnum.java new file mode 100644 index 00000000000..0ea564f8bbe --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NetworkBondingInterfaceEnum.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Network Bonding Interface + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum NetworkBondingInterfaceEnum { + Btbond1("BTBOND1"), + Btbond2("BTBOND2"), + Btbond3("BTBOND3"), + Btbond4("BTBOND4"), + Btbond5("BTBOND5"), + Btbond6("BTBOND6"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(NetworkBondingInterfaceEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (NetworkBondingInterfaceEnum v : NetworkBondingInterfaceEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + NetworkBondingInterfaceEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static NetworkBondingInterfaceEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'NetworkBondingInterfaceEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NetworkBondingMode.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NetworkBondingMode.java new file mode 100644 index 00000000000..b4ae8cb0cdd --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NetworkBondingMode.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * The network bonding mode for the Database Infrastructure. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum NetworkBondingMode { + ActiveBackup("ACTIVE_BACKUP"), + Lacp("LACP"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(NetworkBondingMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (NetworkBondingMode v : NetworkBondingMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + NetworkBondingMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static NetworkBondingMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'NetworkBondingMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NodeDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NodeDetails.java new file mode 100644 index 00000000000..d283128b7c7 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/NodeDetails.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Node details associated with a VM cluster network. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = NodeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class NodeDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"hostname", "ip", "vipHostname", "vip"}) + public NodeDetails(String hostname, String ip, String vipHostname, String vip) { + super(); + this.hostname = hostname; + this.ip = ip; + this.vipHostname = vipHostname; + this.vip = vip; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The node host name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private String hostname; + + /** + * The node host name. + * @param hostname the value to set + * @return this builder + **/ + public Builder hostname(String hostname) { + this.hostname = hostname; + this.__explicitlySet__.add("hostname"); + return this; + } + /** + * The node IP address. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ip") + private String ip; + + /** + * The node IP address. + * @param ip the value to set + * @return this builder + **/ + public Builder ip(String ip) { + this.ip = ip; + this.__explicitlySet__.add("ip"); + return this; + } + /** + * The node virtual IP (VIP) host name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vipHostname") + private String vipHostname; + + /** + * The node virtual IP (VIP) host name. + * @param vipHostname the value to set + * @return this builder + **/ + public Builder vipHostname(String vipHostname) { + this.vipHostname = vipHostname; + this.__explicitlySet__.add("vipHostname"); + return this; + } + /** + * The node virtual IP (VIP) address. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vip") + private String vip; + + /** + * The node virtual IP (VIP) address. + * @param vip the value to set + * @return this builder + **/ + public Builder vip(String vip) { + this.vip = vip; + this.__explicitlySet__.add("vip"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NodeDetails build() { + NodeDetails model = new NodeDetails(this.hostname, this.ip, this.vipHostname, this.vip); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NodeDetails model) { + if (model.wasPropertyExplicitlySet("hostname")) { + this.hostname(model.getHostname()); + } + if (model.wasPropertyExplicitlySet("ip")) { + this.ip(model.getIp()); + } + if (model.wasPropertyExplicitlySet("vipHostname")) { + this.vipHostname(model.getVipHostname()); + } + if (model.wasPropertyExplicitlySet("vip")) { + this.vip(model.getVip()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The node host name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private final String hostname; + + /** + * The node host name. + * @return the value + **/ + public String getHostname() { + return hostname; + } + + /** + * The node IP address. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ip") + private final String ip; + + /** + * The node IP address. + * @return the value + **/ + public String getIp() { + return ip; + } + + /** + * The node virtual IP (VIP) host name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vipHostname") + private final String vipHostname; + + /** + * The node virtual IP (VIP) host name. + * @return the value + **/ + public String getVipHostname() { + return vipHostname; + } + + /** + * The node virtual IP (VIP) address. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vip") + private final String vip; + + /** + * The node virtual IP (VIP) address. + * @return the value + **/ + public String getVip() { + return vip; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NodeDetails("); + sb.append("super=").append(super.toString()); + sb.append("hostname=").append(String.valueOf(this.hostname)); + sb.append(", ip=").append(String.valueOf(this.ip)); + sb.append(", vipHostname=").append(String.valueOf(this.vipHostname)); + sb.append(", vip=").append(String.valueOf(this.vip)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NodeDetails)) { + return false; + } + + NodeDetails other = (NodeDetails) o; + return java.util.Objects.equals(this.hostname, other.hostname) + && java.util.Objects.equals(this.ip, other.ip) + && java.util.Objects.equals(this.vipHostname, other.vipHostname) + && java.util.Objects.equals(this.vip, other.vip) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); + result = (result * PRIME) + (this.ip == null ? 43 : this.ip.hashCode()); + result = (result * PRIME) + (this.vipHostname == null ? 43 : this.vipHostname.hashCode()); + result = (result * PRIME) + (this.vip == null ? 43 : this.vip.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/OperationStatus.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/OperationStatus.java new file mode 100644 index 00000000000..ad5dd6682f6 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/OperationStatus.java @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Possible operation status. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum OperationStatus { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + Waiting("WAITING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationStatus v : OperationStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/OperationType.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/OperationType.java new file mode 100644 index 00000000000..e5574e083f2 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/OperationType.java @@ -0,0 +1,91 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Possible operation types. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum OperationType { + CreateInstance("CREATE_INSTANCE"), + DeleteInstance("DELETE_INSTANCE"), + UpdateInstance("UPDATE_INSTANCE"), + ChangeInstanceCompartment("CHANGE_INSTANCE_COMPARTMENT"), + CreateBaseVmClusterNetwork("CREATE_BASE_VM_CLUSTER_NETWORK"), + DeleteBaseVmClusterNetwork("DELETE_BASE_VM_CLUSTER_NETWORK"), + ValidateBaseVmClusterNetwork("VALIDATE_BASE_VM_CLUSTER_NETWORK"), + UpdateBaseVmClusterNetwork("UPDATE_BASE_VM_CLUSTER_NETWORK"), + ChangeBaseVmClusterNetworkCompartment("CHANGE_BASE_VM_CLUSTER_NETWORK_COMPARTMENT"), + StartBaseVm("START_BASE_VM"), + StopBaseVm("STOP_BASE_VM"), + StartInstance("START_INSTANCE"), + StopInstance("STOP_INSTANCE"), + ScaleInstance("SCALE_INSTANCE"), + RestartInstance("RESTART_INSTANCE"), + RestartBaseVm("RESTART_BASE_VM"), + MigrateInstance("MIGRATE_INSTANCE"), + ScaleBaseVm("SCALE_BASE_VM"), + UpdateSoftwareImage("UPDATE_SOFTWARE_IMAGE"), + ChangeSoftwareImageCompartment("CHANGE_SOFTWARE_IMAGE_COMPARTMENT"), + ValidateProxy("VALIDATE_PROXY"), + CreateBaseInfraCapacity("CREATE_BASE_INFRA_CAPACITY"), + UpdateBaseInfraCapacity("UPDATE_BASE_INFRA_CAPACITY"), + DeleteBaseInfraCapacity("DELETE_BASE_INFRA_CAPACITY"), + ActivateBaseInfrastructure("ACTIVATE_BASE_INFRASTRUCTURE"), + CreateBaseInfrastructure("CREATE_BASE_INFRASTRUCTURE"), + DeleteBaseInfrastructure("DELETE_BASE_INFRASTRUCTURE"), + UpdateBaseInfrastructure("UPDATE_BASE_INFRASTRUCTURE"), + UpdateBaseInfrastructureSoftware("UPDATE_BASE_INFRASTRUCTURE_SOFTWARE"), + ValidateBaseInfrastructure("VALIDATE_BASE_INFRASTRUCTURE"), + ChangeBaseInfrastructureCompartment("CHANGE_BASE_INFRASTRUCTURE_COMPARTMENT"), + AnalyzeInfrastructure("ANALYZE_INFRASTRUCTURE"), + AnalyzeBaseInfraNetwork("ANALYZE_BASE_INFRA_NETWORK"), + InfrastructureSreValidation("INFRASTRUCTURE_SRE_VALIDATION"), + CreateMaintenanceRun("CREATE_MAINTENANCE_RUN"), + UpdateMaintenanceRun("UPDATE_MAINTENANCE_RUN"), + RescheduleMaintenanceRun("RESCHEDULE_MAINTENANCE_RUN"), + InfrastructureScaleStorage("INFRASTRUCTURE_SCALE_STORAGE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationType v : OperationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/PatchingModeEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/PatchingModeEnum.java new file mode 100644 index 00000000000..426ee2fba21 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/PatchingModeEnum.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Patching mode of the maintenance run + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum PatchingModeEnum { + Rolling("ROLLING"), + Nonrolling("NONROLLING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PatchingModeEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PatchingModeEnum v : PatchingModeEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PatchingModeEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PatchingModeEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PatchingModeEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/PatchingStatusEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/PatchingStatusEnum.java new file mode 100644 index 00000000000..90e3b478e0c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/PatchingStatusEnum.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * The status of the patching operation. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum PatchingStatusEnum { + Creating("CREATING"), + Patching("PATCHING"), + Waiting("WAITING"), + Scheduled("SCHEDULED"), + Complete("COMPLETE"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PatchingStatusEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PatchingStatusEnum v : PatchingStatusEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PatchingStatusEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PatchingStatusEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PatchingStatusEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/RescheduleMaintenanceRunDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/RescheduleMaintenanceRunDetails.java new file mode 100644 index 00000000000..9c2e363fc19 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/RescheduleMaintenanceRunDetails.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Request parameters for rescheduling a maintenance run. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RescheduleMaintenanceRunDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RescheduleMaintenanceRunDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"timeScheduled", "reason"}) + public RescheduleMaintenanceRunDetails(java.util.Date timeScheduled, String reason) { + super(); + this.timeScheduled = timeScheduled; + this.reason = reason; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The new date and time for the scheduled maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * The new date and time for the scheduled maintenance run. + * @param timeScheduled the value to set + * @return this builder + **/ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + /** + * The reason for rescheduling the maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reason") + private String reason; + + /** + * The reason for rescheduling the maintenance run. + * @param reason the value to set + * @return this builder + **/ + public Builder reason(String reason) { + this.reason = reason; + this.__explicitlySet__.add("reason"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RescheduleMaintenanceRunDetails build() { + RescheduleMaintenanceRunDetails model = + new RescheduleMaintenanceRunDetails(this.timeScheduled, this.reason); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RescheduleMaintenanceRunDetails model) { + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("reason")) { + this.reason(model.getReason()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The new date and time for the scheduled maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * The new date and time for the scheduled maintenance run. + * @return the value + **/ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** + * The reason for rescheduling the maintenance run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("reason") + private final String reason; + + /** + * The reason for rescheduling the maintenance run. + * @return the value + **/ + public String getReason() { + return reason; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RescheduleMaintenanceRunDetails("); + sb.append("super=").append(super.toString()); + sb.append("timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", reason=").append(String.valueOf(this.reason)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RescheduleMaintenanceRunDetails)) { + return false; + } + + RescheduleMaintenanceRunDetails other = (RescheduleMaintenanceRunDetails) o; + return java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.reason, other.reason) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = (result * PRIME) + (this.reason == null ? 43 : this.reason.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScaleInfrastructureStorageDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScaleInfrastructureStorageDetails.java new file mode 100644 index 00000000000..cddf855fe09 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScaleInfrastructureStorageDetails.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * The scale option to be selected for the infrastructure. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ScaleInfrastructureStorageDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ScaleInfrastructureStorageDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"ssdConfigurationRequested"}) + public ScaleInfrastructureStorageDetails(ShapeEnum ssdConfigurationRequested) { + super(); + this.ssdConfigurationRequested = ssdConfigurationRequested; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The scale option to be selected for the infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ssdConfigurationRequested") + private ShapeEnum ssdConfigurationRequested; + + /** + * The scale option to be selected for the infrastructure. + * @param ssdConfigurationRequested the value to set + * @return this builder + **/ + public Builder ssdConfigurationRequested(ShapeEnum ssdConfigurationRequested) { + this.ssdConfigurationRequested = ssdConfigurationRequested; + this.__explicitlySet__.add("ssdConfigurationRequested"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScaleInfrastructureStorageDetails build() { + ScaleInfrastructureStorageDetails model = + new ScaleInfrastructureStorageDetails(this.ssdConfigurationRequested); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScaleInfrastructureStorageDetails model) { + if (model.wasPropertyExplicitlySet("ssdConfigurationRequested")) { + this.ssdConfigurationRequested(model.getSsdConfigurationRequested()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The scale option to be selected for the infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ssdConfigurationRequested") + private final ShapeEnum ssdConfigurationRequested; + + /** + * The scale option to be selected for the infrastructure. + * @return the value + **/ + public ShapeEnum getSsdConfigurationRequested() { + return ssdConfigurationRequested; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScaleInfrastructureStorageDetails("); + sb.append("super=").append(super.toString()); + sb.append("ssdConfigurationRequested=") + .append(String.valueOf(this.ssdConfigurationRequested)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScaleInfrastructureStorageDetails)) { + return false; + } + + ScaleInfrastructureStorageDetails other = (ScaleInfrastructureStorageDetails) o; + return java.util.Objects.equals( + this.ssdConfigurationRequested, other.ssdConfigurationRequested) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.ssdConfigurationRequested == null + ? 43 + : this.ssdConfigurationRequested.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScaleVmInstanceDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScaleVmInstanceDetails.java new file mode 100644 index 00000000000..dd643dc77c0 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScaleVmInstanceDetails.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Scale the VM instance. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ScaleVmInstanceDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ScaleVmInstanceDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"memorySizeInGBs", "cpusEnabled"}) + public ScaleVmInstanceDetails(Double memorySizeInGBs, Integer cpusEnabled) { + super(); + this.memorySizeInGBs = memorySizeInGBs; + this.cpusEnabled = cpusEnabled; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The memory to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * @param memorySizeInGBs the value to set + * @return this builder + **/ + public Builder memorySizeInGBs(Double memorySizeInGBs) { + this.memorySizeInGBs = memorySizeInGBs; + this.__explicitlySet__.add("memorySizeInGBs"); + return this; + } + /** + * The number of CPU cores to be enabled for VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private Integer cpusEnabled; + + /** + * The number of CPU cores to be enabled for VM instance. + * @param cpusEnabled the value to set + * @return this builder + **/ + public Builder cpusEnabled(Integer cpusEnabled) { + this.cpusEnabled = cpusEnabled; + this.__explicitlySet__.add("cpusEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScaleVmInstanceDetails build() { + ScaleVmInstanceDetails model = + new ScaleVmInstanceDetails(this.memorySizeInGBs, this.cpusEnabled); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScaleVmInstanceDetails model) { + if (model.wasPropertyExplicitlySet("memorySizeInGBs")) { + this.memorySizeInGBs(model.getMemorySizeInGBs()); + } + if (model.wasPropertyExplicitlySet("cpusEnabled")) { + this.cpusEnabled(model.getCpusEnabled()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The memory to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private final Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * @return the value + **/ + public Double getMemorySizeInGBs() { + return memorySizeInGBs; + } + + /** + * The number of CPU cores to be enabled for VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private final Integer cpusEnabled; + + /** + * The number of CPU cores to be enabled for VM instance. + * @return the value + **/ + public Integer getCpusEnabled() { + return cpusEnabled; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScaleVmInstanceDetails("); + sb.append("super=").append(super.toString()); + sb.append("memorySizeInGBs=").append(String.valueOf(this.memorySizeInGBs)); + sb.append(", cpusEnabled=").append(String.valueOf(this.cpusEnabled)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScaleVmInstanceDetails)) { + return false; + } + + ScaleVmInstanceDetails other = (ScaleVmInstanceDetails) o; + return java.util.Objects.equals(this.memorySizeInGBs, other.memorySizeInGBs) + && java.util.Objects.equals(this.cpusEnabled, other.cpusEnabled) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.memorySizeInGBs == null ? 43 : this.memorySizeInGBs.hashCode()); + result = (result * PRIME) + (this.cpusEnabled == null ? 43 : this.cpusEnabled.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScanDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScanDetails.java new file mode 100644 index 00000000000..71e3b7fb227 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ScanDetails.java @@ -0,0 +1,171 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * The Single Client Access Name (SCAN) details. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ScanDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ScanDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"hostname", "ips"}) + public ScanDetails(String hostname, java.util.List ips) { + super(); + this.hostname = hostname; + this.ips = ips; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The SCAN hostname. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private String hostname; + + /** + * The SCAN hostname. + * @param hostname the value to set + * @return this builder + **/ + public Builder hostname(String hostname) { + this.hostname = hostname; + this.__explicitlySet__.add("hostname"); + return this; + } + /** + * The list of SCAN IP addresses. Three addresses should be provided. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ips") + private java.util.List ips; + + /** + * The list of SCAN IP addresses. Three addresses should be provided. + * @param ips the value to set + * @return this builder + **/ + public Builder ips(java.util.List ips) { + this.ips = ips; + this.__explicitlySet__.add("ips"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScanDetails build() { + ScanDetails model = new ScanDetails(this.hostname, this.ips); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScanDetails model) { + if (model.wasPropertyExplicitlySet("hostname")) { + this.hostname(model.getHostname()); + } + if (model.wasPropertyExplicitlySet("ips")) { + this.ips(model.getIps()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The SCAN hostname. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private final String hostname; + + /** + * The SCAN hostname. + * @return the value + **/ + public String getHostname() { + return hostname; + } + + /** + * The list of SCAN IP addresses. Three addresses should be provided. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ips") + private final java.util.List ips; + + /** + * The list of SCAN IP addresses. Three addresses should be provided. + * @return the value + **/ + public java.util.List getIps() { + return ips; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScanDetails("); + sb.append("super=").append(super.toString()); + sb.append("hostname=").append(String.valueOf(this.hostname)); + sb.append(", ips=").append(String.valueOf(this.ips)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScanDetails)) { + return false; + } + + ScanDetails other = (ScanDetails) o; + return java.util.Objects.equals(this.hostname, other.hostname) + && java.util.Objects.equals(this.ips, other.ips) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); + result = (result * PRIME) + (this.ips == null ? 43 : this.ips.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ShapeEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ShapeEnum.java new file mode 100644 index 00000000000..81b8c209724 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ShapeEnum.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Model Shapes for Database Infrastructure. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum ShapeEnum { + SixSsds("SIX_SSDS"), + TwelveSsds("TWELVE_SSDS"), + EighteenSsds("EIGHTEEN_SSDS"), + TwentyFourSsds("TWENTY_FOUR_SSDS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ShapeEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ShapeEnum v : ShapeEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ShapeEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ShapeEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ShapeEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SortOrder.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SortOrder.java new file mode 100644 index 00000000000..5bf6bf10312 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SortOrder.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Sort orders. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +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); + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageCapacityDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageCapacityDetails.java new file mode 100644 index 00000000000..7bd8f48d310 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageCapacityDetails.java @@ -0,0 +1,359 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Capacity details of the Storage disk group. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StorageCapacityDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class StorageCapacityDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "storageDiskRedundancy", + "diskGroup", + "phyTotalSpaceInGBs", + "phyReservedSpaceInGBs", + "phyFreeSpaceInGBs", + "logicalFreeSpaceInGBs" + }) + public StorageCapacityDetails( + StorageDiskRedundancy storageDiskRedundancy, + String diskGroup, + Long phyTotalSpaceInGBs, + Long phyReservedSpaceInGBs, + Long phyFreeSpaceInGBs, + Long logicalFreeSpaceInGBs) { + super(); + this.storageDiskRedundancy = storageDiskRedundancy; + this.diskGroup = diskGroup; + this.phyTotalSpaceInGBs = phyTotalSpaceInGBs; + this.phyReservedSpaceInGBs = phyReservedSpaceInGBs; + this.phyFreeSpaceInGBs = phyFreeSpaceInGBs; + this.logicalFreeSpaceInGBs = logicalFreeSpaceInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The Disk redundancy for Database Infrastructure storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDiskRedundancy") + private StorageDiskRedundancy storageDiskRedundancy; + + /** + * The Disk redundancy for Database Infrastructure storage. + * @param storageDiskRedundancy the value to set + * @return this builder + **/ + public Builder storageDiskRedundancy(StorageDiskRedundancy storageDiskRedundancy) { + this.storageDiskRedundancy = storageDiskRedundancy; + this.__explicitlySet__.add("storageDiskRedundancy"); + return this; + } + /** + * Disk group name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskGroup") + private String diskGroup; + + /** + * Disk group name. + * @param diskGroup the value to set + * @return this builder + **/ + public Builder diskGroup(String diskGroup) { + this.diskGroup = diskGroup; + this.__explicitlySet__.add("diskGroup"); + return this; + } + /** + * The total amount of physical disk space available in a disk group, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("phyTotalSpaceInGBs") + private Long phyTotalSpaceInGBs; + + /** + * The total amount of physical disk space available in a disk group, in gigabytes (GB). + * @param phyTotalSpaceInGBs the value to set + * @return this builder + **/ + public Builder phyTotalSpaceInGBs(Long phyTotalSpaceInGBs) { + this.phyTotalSpaceInGBs = phyTotalSpaceInGBs; + this.__explicitlySet__.add("phyTotalSpaceInGBs"); + return this; + } + /** + * The total amount of physical disk space that is reserved for system use in a disk group, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("phyReservedSpaceInGBs") + private Long phyReservedSpaceInGBs; + + /** + * The total amount of physical disk space that is reserved for system use in a disk group, in gigabytes (GB). + * @param phyReservedSpaceInGBs the value to set + * @return this builder + **/ + public Builder phyReservedSpaceInGBs(Long phyReservedSpaceInGBs) { + this.phyReservedSpaceInGBs = phyReservedSpaceInGBs; + this.__explicitlySet__.add("phyReservedSpaceInGBs"); + return this; + } + /** + * The total amount of physical disk space that is currently available for use in a disk group, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("phyFreeSpaceInGBs") + private Long phyFreeSpaceInGBs; + + /** + * The total amount of physical disk space that is currently available for use in a disk group, in gigabytes (GB). + * @param phyFreeSpaceInGBs the value to set + * @return this builder + **/ + public Builder phyFreeSpaceInGBs(Long phyFreeSpaceInGBs) { + this.phyFreeSpaceInGBs = phyFreeSpaceInGBs; + this.__explicitlySet__.add("phyFreeSpaceInGBs"); + return this; + } + /** + * The total amount of logical disk space that is currently available for use in a disk group, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logicalFreeSpaceInGBs") + private Long logicalFreeSpaceInGBs; + + /** + * The total amount of logical disk space that is currently available for use in a disk group, in gigabytes (GB). + * @param logicalFreeSpaceInGBs the value to set + * @return this builder + **/ + public Builder logicalFreeSpaceInGBs(Long logicalFreeSpaceInGBs) { + this.logicalFreeSpaceInGBs = logicalFreeSpaceInGBs; + this.__explicitlySet__.add("logicalFreeSpaceInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StorageCapacityDetails build() { + StorageCapacityDetails model = + new StorageCapacityDetails( + this.storageDiskRedundancy, + this.diskGroup, + this.phyTotalSpaceInGBs, + this.phyReservedSpaceInGBs, + this.phyFreeSpaceInGBs, + this.logicalFreeSpaceInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StorageCapacityDetails model) { + if (model.wasPropertyExplicitlySet("storageDiskRedundancy")) { + this.storageDiskRedundancy(model.getStorageDiskRedundancy()); + } + if (model.wasPropertyExplicitlySet("diskGroup")) { + this.diskGroup(model.getDiskGroup()); + } + if (model.wasPropertyExplicitlySet("phyTotalSpaceInGBs")) { + this.phyTotalSpaceInGBs(model.getPhyTotalSpaceInGBs()); + } + if (model.wasPropertyExplicitlySet("phyReservedSpaceInGBs")) { + this.phyReservedSpaceInGBs(model.getPhyReservedSpaceInGBs()); + } + if (model.wasPropertyExplicitlySet("phyFreeSpaceInGBs")) { + this.phyFreeSpaceInGBs(model.getPhyFreeSpaceInGBs()); + } + if (model.wasPropertyExplicitlySet("logicalFreeSpaceInGBs")) { + this.logicalFreeSpaceInGBs(model.getLogicalFreeSpaceInGBs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The Disk redundancy for Database Infrastructure storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageDiskRedundancy") + private final StorageDiskRedundancy storageDiskRedundancy; + + /** + * The Disk redundancy for Database Infrastructure storage. + * @return the value + **/ + public StorageDiskRedundancy getStorageDiskRedundancy() { + return storageDiskRedundancy; + } + + /** + * Disk group name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskGroup") + private final String diskGroup; + + /** + * Disk group name. + * @return the value + **/ + public String getDiskGroup() { + return diskGroup; + } + + /** + * The total amount of physical disk space available in a disk group, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("phyTotalSpaceInGBs") + private final Long phyTotalSpaceInGBs; + + /** + * The total amount of physical disk space available in a disk group, in gigabytes (GB). + * @return the value + **/ + public Long getPhyTotalSpaceInGBs() { + return phyTotalSpaceInGBs; + } + + /** + * The total amount of physical disk space that is reserved for system use in a disk group, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("phyReservedSpaceInGBs") + private final Long phyReservedSpaceInGBs; + + /** + * The total amount of physical disk space that is reserved for system use in a disk group, in gigabytes (GB). + * @return the value + **/ + public Long getPhyReservedSpaceInGBs() { + return phyReservedSpaceInGBs; + } + + /** + * The total amount of physical disk space that is currently available for use in a disk group, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("phyFreeSpaceInGBs") + private final Long phyFreeSpaceInGBs; + + /** + * The total amount of physical disk space that is currently available for use in a disk group, in gigabytes (GB). + * @return the value + **/ + public Long getPhyFreeSpaceInGBs() { + return phyFreeSpaceInGBs; + } + + /** + * The total amount of logical disk space that is currently available for use in a disk group, in gigabytes (GB). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logicalFreeSpaceInGBs") + private final Long logicalFreeSpaceInGBs; + + /** + * The total amount of logical disk space that is currently available for use in a disk group, in gigabytes (GB). + * @return the value + **/ + public Long getLogicalFreeSpaceInGBs() { + return logicalFreeSpaceInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StorageCapacityDetails("); + sb.append("super=").append(super.toString()); + sb.append("storageDiskRedundancy=").append(String.valueOf(this.storageDiskRedundancy)); + sb.append(", diskGroup=").append(String.valueOf(this.diskGroup)); + sb.append(", phyTotalSpaceInGBs=").append(String.valueOf(this.phyTotalSpaceInGBs)); + sb.append(", phyReservedSpaceInGBs=").append(String.valueOf(this.phyReservedSpaceInGBs)); + sb.append(", phyFreeSpaceInGBs=").append(String.valueOf(this.phyFreeSpaceInGBs)); + sb.append(", logicalFreeSpaceInGBs=").append(String.valueOf(this.logicalFreeSpaceInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StorageCapacityDetails)) { + return false; + } + + StorageCapacityDetails other = (StorageCapacityDetails) o; + return java.util.Objects.equals(this.storageDiskRedundancy, other.storageDiskRedundancy) + && java.util.Objects.equals(this.diskGroup, other.diskGroup) + && java.util.Objects.equals(this.phyTotalSpaceInGBs, other.phyTotalSpaceInGBs) + && java.util.Objects.equals(this.phyReservedSpaceInGBs, other.phyReservedSpaceInGBs) + && java.util.Objects.equals(this.phyFreeSpaceInGBs, other.phyFreeSpaceInGBs) + && java.util.Objects.equals(this.logicalFreeSpaceInGBs, other.logicalFreeSpaceInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.storageDiskRedundancy == null + ? 43 + : this.storageDiskRedundancy.hashCode()); + result = (result * PRIME) + (this.diskGroup == null ? 43 : this.diskGroup.hashCode()); + result = + (result * PRIME) + + (this.phyTotalSpaceInGBs == null + ? 43 + : this.phyTotalSpaceInGBs.hashCode()); + result = + (result * PRIME) + + (this.phyReservedSpaceInGBs == null + ? 43 + : this.phyReservedSpaceInGBs.hashCode()); + result = + (result * PRIME) + + (this.phyFreeSpaceInGBs == null ? 43 : this.phyFreeSpaceInGBs.hashCode()); + result = + (result * PRIME) + + (this.logicalFreeSpaceInGBs == null + ? 43 + : this.logicalFreeSpaceInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageDiskRedundancy.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageDiskRedundancy.java new file mode 100644 index 00000000000..2c99fdd9b95 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageDiskRedundancy.java @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * The type of redundancy configured for the Database Infrastructure storage disk. + * MIRROR is 2-way redundancy. + * HIGH is 3-way redundancy. + * FLEX redundancy can be either HIGH or MIRROR. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum StorageDiskRedundancy { + High("HIGH"), + Mirror("MIRROR"), + Flex("FLEX"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(StorageDiskRedundancy.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StorageDiskRedundancy v : StorageDiskRedundancy.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + StorageDiskRedundancy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StorageDiskRedundancy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'StorageDiskRedundancy', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageType.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageType.java new file mode 100644 index 00000000000..bd704b83057 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/StorageType.java @@ -0,0 +1,43 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Storage type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum StorageType { + HighCapacity("HIGH_CAPACITY"), + Extended("EXTENDED"), + ExtremeFlash("EXTREME_FLASH"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StorageType v : StorageType.values()) { + map.put(v.getValue(), v); + } + } + + StorageType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StorageType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid StorageType: " + key); + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SystemModelEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SystemModelEnum.java new file mode 100644 index 00000000000..af3ec66ea9e --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SystemModelEnum.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * System Model for Database Infrastructure. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum SystemModelEnum { + X11Ha768("X11_HA_768"), + X10Ha512("X10_HA_512"), + X8Ha384("X8_HA_384"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(SystemModelEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SystemModelEnum v : SystemModelEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SystemModelEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SystemModelEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SystemModelEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SystemStorageCapacityDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SystemStorageCapacityDetails.java new file mode 100644 index 00000000000..c03a3cf9d0c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/SystemStorageCapacityDetails.java @@ -0,0 +1,161 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Capacity details of different storage types. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SystemStorageCapacityDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SystemStorageCapacityDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"diskGroups", "acfs"}) + public SystemStorageCapacityDetails( + java.util.List diskGroups, AcfsCapacityDetails acfs) { + super(); + this.diskGroups = diskGroups; + this.acfs = acfs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of storage disk group capacity details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskGroups") + private java.util.List diskGroups; + + /** + * List of storage disk group capacity details. + * @param diskGroups the value to set + * @return this builder + **/ + public Builder diskGroups(java.util.List diskGroups) { + this.diskGroups = diskGroups; + this.__explicitlySet__.add("diskGroups"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("acfs") + private AcfsCapacityDetails acfs; + + public Builder acfs(AcfsCapacityDetails acfs) { + this.acfs = acfs; + this.__explicitlySet__.add("acfs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SystemStorageCapacityDetails build() { + SystemStorageCapacityDetails model = + new SystemStorageCapacityDetails(this.diskGroups, this.acfs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SystemStorageCapacityDetails model) { + if (model.wasPropertyExplicitlySet("diskGroups")) { + this.diskGroups(model.getDiskGroups()); + } + if (model.wasPropertyExplicitlySet("acfs")) { + this.acfs(model.getAcfs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of storage disk group capacity details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("diskGroups") + private final java.util.List diskGroups; + + /** + * List of storage disk group capacity details. + * @return the value + **/ + public java.util.List getDiskGroups() { + return diskGroups; + } + + @com.fasterxml.jackson.annotation.JsonProperty("acfs") + private final AcfsCapacityDetails acfs; + + public AcfsCapacityDetails getAcfs() { + return acfs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SystemStorageCapacityDetails("); + sb.append("super=").append(super.toString()); + sb.append("diskGroups=").append(String.valueOf(this.diskGroups)); + sb.append(", acfs=").append(String.valueOf(this.acfs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SystemStorageCapacityDetails)) { + return false; + } + + SystemStorageCapacityDetails other = (SystemStorageCapacityDetails) o; + return java.util.Objects.equals(this.diskGroups, other.diskGroups) + && java.util.Objects.equals(this.acfs, other.acfs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.diskGroups == null ? 43 : this.diskGroups.hashCode()); + result = (result * PRIME) + (this.acfs == null ? 43 : this.acfs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/TargetResourceTypeEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/TargetResourceTypeEnum.java new file mode 100644 index 00000000000..336d78c36c4 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/TargetResourceTypeEnum.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * The type of the target resource. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum TargetResourceTypeEnum { + DbCcInfrastructure("DB_CC_INFRASTRUCTURE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(TargetResourceTypeEnum.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TargetResourceTypeEnum v : TargetResourceTypeEnum.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TargetResourceTypeEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TargetResourceTypeEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TargetResourceTypeEnum', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/TypeEnum.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/TypeEnum.java new file mode 100644 index 00000000000..7ab1e776f46 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/TypeEnum.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Type of the maintenance execution + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum TypeEnum { + Notify("NOTIFY"), + Execute("EXECUTE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TypeEnum v : TypeEnum.values()) { + map.put(v.getValue(), v); + } + } + + TypeEnum(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TypeEnum create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid TypeEnum: " + key); + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateInfrastructureDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateInfrastructureDetails.java new file mode 100644 index 00000000000..bfb2b40e5e8 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateInfrastructureDetails.java @@ -0,0 +1,1193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Request to update Database Infrastructure 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateInfrastructureDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateInfrastructureDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "systemModel", + "shape", + "cloudControlPlaneServer1", + "cloudControlPlaneServer2", + "netmask", + "gateway", + "adminNetworkcidr", + "dataDiskPercentage", + "contacts", + "dnsServers", + "ntpServers", + "clientNetworkBondingMode", + "backupNetworkBondingMode", + "cpsNetworkBondingMode", + "clientNetworkBondingInterface", + "backupNetworkBondingInterface", + "cpsNetworkBondingInterface", + "acfsFileSystemStorageInGbs", + "corporateProxy", + "vlanId", + "maintenanceWindow", + "definedTags", + "freeformTags" + }) + public UpdateInfrastructureDetails( + String displayName, + String description, + SystemModelEnum systemModel, + ShapeEnum shape, + String cloudControlPlaneServer1, + String cloudControlPlaneServer2, + String netmask, + String gateway, + String adminNetworkcidr, + Integer dataDiskPercentage, + java.util.List contacts, + java.util.List dnsServers, + java.util.List ntpServers, + NetworkBondingMode clientNetworkBondingMode, + NetworkBondingMode backupNetworkBondingMode, + NetworkBondingMode cpsNetworkBondingMode, + NetworkBondingInterfaceEnum clientNetworkBondingInterface, + NetworkBondingInterfaceEnum backupNetworkBondingInterface, + NetworkBondingInterfaceEnum cpsNetworkBondingInterface, + Double acfsFileSystemStorageInGbs, + String corporateProxy, + String vlanId, + MaintenanceWindow maintenanceWindow, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.displayName = displayName; + this.description = description; + this.systemModel = systemModel; + this.shape = shape; + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.netmask = netmask; + this.gateway = gateway; + this.adminNetworkcidr = adminNetworkcidr; + this.dataDiskPercentage = dataDiskPercentage; + this.contacts = contacts; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.corporateProxy = corporateProxy; + this.vlanId = vlanId; + this.maintenanceWindow = maintenanceWindow; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Database Infrastructure description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Database Infrastructure description. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + * @param systemModel the value to set + * @return this builder + **/ + public Builder systemModel(SystemModelEnum systemModel) { + this.systemModel = systemModel; + this.__explicitlySet__.add("systemModel"); + return this; + } + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + * @param shape the value to set + * @return this builder + **/ + public Builder shape(ShapeEnum shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** + * The IP address for the first control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * @param cloudControlPlaneServer1 the value to set + * @return this builder + **/ + public Builder cloudControlPlaneServer1(String cloudControlPlaneServer1) { + this.cloudControlPlaneServer1 = cloudControlPlaneServer1; + this.__explicitlySet__.add("cloudControlPlaneServer1"); + return this; + } + /** + * The IP address for the second control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * @param cloudControlPlaneServer2 the value to set + * @return this builder + **/ + public Builder cloudControlPlaneServer2(String cloudControlPlaneServer2) { + this.cloudControlPlaneServer2 = cloudControlPlaneServer2; + this.__explicitlySet__.add("cloudControlPlaneServer2"); + return this; + } + /** + * The netmask for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The netmask for the control plane network. + * @param netmask the value to set + * @return this builder + **/ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** + * The gateway for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The gateway for the control plane network. + * @param gateway the value to set + * @return this builder + **/ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + * @param adminNetworkcidr the value to set + * @return this builder + **/ + public Builder adminNetworkcidr(String adminNetworkcidr) { + this.adminNetworkcidr = adminNetworkcidr; + this.__explicitlySet__.add("adminNetworkcidr"); + return this; + } + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get assiged to RECO disk group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataDiskPercentage") + private Integer dataDiskPercentage; + + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get assiged to RECO disk group + * @param dataDiskPercentage the value to set + * @return this builder + **/ + public Builder dataDiskPercentage(Integer dataDiskPercentage) { + this.dataDiskPercentage = dataDiskPercentage; + this.__explicitlySet__.add("dataDiskPercentage"); + return this; + } + /** + * The list of contacts for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * @param contacts the value to set + * @return this builder + **/ + public Builder contacts(java.util.List contacts) { + this.contacts = contacts; + this.__explicitlySet__.add("contacts"); + return this; + } + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @param dnsServers the value to set + * @return this builder + **/ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @param ntpServers the value to set + * @return this builder + **/ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** + * The network bonding mode for Client networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * @param clientNetworkBondingMode the value to set + * @return this builder + **/ + public Builder clientNetworkBondingMode(NetworkBondingMode clientNetworkBondingMode) { + this.clientNetworkBondingMode = clientNetworkBondingMode; + this.__explicitlySet__.add("clientNetworkBondingMode"); + return this; + } + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * @param backupNetworkBondingMode the value to set + * @return this builder + **/ + public Builder backupNetworkBondingMode(NetworkBondingMode backupNetworkBondingMode) { + this.backupNetworkBondingMode = backupNetworkBondingMode; + this.__explicitlySet__.add("backupNetworkBondingMode"); + return this; + } + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * @param cpsNetworkBondingMode the value to set + * @return this builder + **/ + public Builder cpsNetworkBondingMode(NetworkBondingMode cpsNetworkBondingMode) { + this.cpsNetworkBondingMode = cpsNetworkBondingMode; + this.__explicitlySet__.add("cpsNetworkBondingMode"); + return this; + } + /** + * The network bonding interface for client network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * @param clientNetworkBondingInterface the value to set + * @return this builder + **/ + public Builder clientNetworkBondingInterface( + NetworkBondingInterfaceEnum clientNetworkBondingInterface) { + this.clientNetworkBondingInterface = clientNetworkBondingInterface; + this.__explicitlySet__.add("clientNetworkBondingInterface"); + return this; + } + /** + * The network bonding interface for backup network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * @param backupNetworkBondingInterface the value to set + * @return this builder + **/ + public Builder backupNetworkBondingInterface( + NetworkBondingInterfaceEnum backupNetworkBondingInterface) { + this.backupNetworkBondingInterface = backupNetworkBondingInterface; + this.__explicitlySet__.add("backupNetworkBondingInterface"); + return this; + } + /** + * The network bonding interface for CPS network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * @param cpsNetworkBondingInterface the value to set + * @return this builder + **/ + public Builder cpsNetworkBondingInterface( + NetworkBondingInterfaceEnum cpsNetworkBondingInterface) { + this.cpsNetworkBondingInterface = cpsNetworkBondingInterface; + this.__explicitlySet__.add("cpsNetworkBondingInterface"); + return this; + } + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + * @param acfsFileSystemStorageInGbs the value to set + * @return this builder + **/ + public Builder acfsFileSystemStorageInGbs(Double acfsFileSystemStorageInGbs) { + this.acfsFileSystemStorageInGbs = acfsFileSystemStorageInGbs; + this.__explicitlySet__.add("acfsFileSystemStorageInGbs"); + return this; + } + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + * @param corporateProxy the value to set + * @return this builder + **/ + public Builder corporateProxy(String corporateProxy) { + this.corporateProxy = corporateProxy; + this.__explicitlySet__.add("corporateProxy"); + return this; + } + /** + * The CPS network VLAN ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private String vlanId; + + /** + * The CPS network VLAN ID. + * @param vlanId the value to set + * @return this builder + **/ + public Builder vlanId(String vlanId) { + this.vlanId = vlanId; + this.__explicitlySet__.add("vlanId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private MaintenanceWindow maintenanceWindow; + + public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) { + this.maintenanceWindow = maintenanceWindow; + this.__explicitlySet__.add("maintenanceWindow"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateInfrastructureDetails build() { + UpdateInfrastructureDetails model = + new UpdateInfrastructureDetails( + this.displayName, + this.description, + this.systemModel, + this.shape, + this.cloudControlPlaneServer1, + this.cloudControlPlaneServer2, + this.netmask, + this.gateway, + this.adminNetworkcidr, + this.dataDiskPercentage, + this.contacts, + this.dnsServers, + this.ntpServers, + this.clientNetworkBondingMode, + this.backupNetworkBondingMode, + this.cpsNetworkBondingMode, + this.clientNetworkBondingInterface, + this.backupNetworkBondingInterface, + this.cpsNetworkBondingInterface, + this.acfsFileSystemStorageInGbs, + this.corporateProxy, + this.vlanId, + this.maintenanceWindow, + this.definedTags, + this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateInfrastructureDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("systemModel")) { + this.systemModel(model.getSystemModel()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer1")) { + this.cloudControlPlaneServer1(model.getCloudControlPlaneServer1()); + } + if (model.wasPropertyExplicitlySet("cloudControlPlaneServer2")) { + this.cloudControlPlaneServer2(model.getCloudControlPlaneServer2()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("adminNetworkcidr")) { + this.adminNetworkcidr(model.getAdminNetworkcidr()); + } + if (model.wasPropertyExplicitlySet("dataDiskPercentage")) { + this.dataDiskPercentage(model.getDataDiskPercentage()); + } + if (model.wasPropertyExplicitlySet("contacts")) { + this.contacts(model.getContacts()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingMode")) { + this.clientNetworkBondingMode(model.getClientNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingMode")) { + this.backupNetworkBondingMode(model.getBackupNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingMode")) { + this.cpsNetworkBondingMode(model.getCpsNetworkBondingMode()); + } + if (model.wasPropertyExplicitlySet("clientNetworkBondingInterface")) { + this.clientNetworkBondingInterface(model.getClientNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("backupNetworkBondingInterface")) { + this.backupNetworkBondingInterface(model.getBackupNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("cpsNetworkBondingInterface")) { + this.cpsNetworkBondingInterface(model.getCpsNetworkBondingInterface()); + } + if (model.wasPropertyExplicitlySet("acfsFileSystemStorageInGbs")) { + this.acfsFileSystemStorageInGbs(model.getAcfsFileSystemStorageInGbs()); + } + if (model.wasPropertyExplicitlySet("corporateProxy")) { + this.corporateProxy(model.getCorporateProxy()); + } + if (model.wasPropertyExplicitlySet("vlanId")) { + this.vlanId(model.getVlanId()); + } + if (model.wasPropertyExplicitlySet("maintenanceWindow")) { + this.maintenanceWindow(model.getMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Database Infrastructure. The name does not need to be unique. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Database Infrastructure description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Database Infrastructure description. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemModel") + private final SystemModelEnum systemModel; + + /** + * Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used. + * + * @return the value + **/ + public SystemModelEnum getSystemModel() { + return systemModel; + } + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final ShapeEnum shape; + + /** + * The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance. + * + * @return the value + **/ + public ShapeEnum getShape() { + return shape; + } + + /** + * The IP address for the first control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer1") + private final String cloudControlPlaneServer1; + + /** + * The IP address for the first control plane server. + * @return the value + **/ + public String getCloudControlPlaneServer1() { + return cloudControlPlaneServer1; + } + + /** + * The IP address for the second control plane server. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cloudControlPlaneServer2") + private final String cloudControlPlaneServer2; + + /** + * The IP address for the second control plane server. + * @return the value + **/ + public String getCloudControlPlaneServer2() { + return cloudControlPlaneServer2; + } + + /** + * The netmask for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The netmask for the control plane network. + * @return the value + **/ + public String getNetmask() { + return netmask; + } + + /** + * The gateway for the control plane network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The gateway for the control plane network. + * @return the value + **/ + public String getGateway() { + return gateway; + } + + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("adminNetworkcidr") + private final String adminNetworkcidr; + + /** + * The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components. + * @return the value + **/ + public String getAdminNetworkcidr() { + return adminNetworkcidr; + } + + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get assiged to RECO disk group + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataDiskPercentage") + private final Integer dataDiskPercentage; + + /** + * Percentage of disk space assigned for DATA disk group. Remaining disk space will get assiged to RECO disk group + * @return the value + **/ + public Integer getDataDiskPercentage() { + return dataDiskPercentage; + } + + /** + * The list of contacts for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contacts") + private final java.util.List contacts; + + /** + * The list of contacts for the Database Infrastructure. + * @return the value + **/ + public java.util.List getContacts() { + return contacts; + } + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingMode") + private final NetworkBondingMode clientNetworkBondingMode; + + /** + * The network bonding mode for Client networks for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingMode getClientNetworkBondingMode() { + return clientNetworkBondingMode; + } + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingMode") + private final NetworkBondingMode backupNetworkBondingMode; + + /** + * The network bonding mode for Backup networks for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingMode getBackupNetworkBondingMode() { + return backupNetworkBondingMode; + } + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingMode") + private final NetworkBondingMode cpsNetworkBondingMode; + + /** + * The network bonding mode for CPS networks for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingMode getCpsNetworkBondingMode() { + return cpsNetworkBondingMode; + } + + /** + * The network bonding interface for client network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clientNetworkBondingInterface") + private final NetworkBondingInterfaceEnum clientNetworkBondingInterface; + + /** + * The network bonding interface for client network for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingInterfaceEnum getClientNetworkBondingInterface() { + return clientNetworkBondingInterface; + } + + /** + * The network bonding interface for backup network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkBondingInterface") + private final NetworkBondingInterfaceEnum backupNetworkBondingInterface; + + /** + * The network bonding interface for backup network for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingInterfaceEnum getBackupNetworkBondingInterface() { + return backupNetworkBondingInterface; + } + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpsNetworkBondingInterface") + private final NetworkBondingInterfaceEnum cpsNetworkBondingInterface; + + /** + * The network bonding interface for CPS network for the Database Infrastructure. + * @return the value + **/ + public NetworkBondingInterfaceEnum getCpsNetworkBondingInterface() { + return cpsNetworkBondingInterface; + } + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("acfsFileSystemStorageInGbs") + private final Double acfsFileSystemStorageInGbs; + + /** + * The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs. + * + * @return the value + **/ + public Double getAcfsFileSystemStorageInGbs() { + return acfsFileSystemStorageInGbs; + } + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("corporateProxy") + private final String corporateProxy; + + /** + * The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible + * for enhanced security. + * + * @return the value + **/ + public String getCorporateProxy() { + return corporateProxy; + } + + /** + * The CPS network VLAN ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private final String vlanId; + + /** + * The CPS network VLAN ID. + * @return the value + **/ + public String getVlanId() { + return vlanId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") + private final MaintenanceWindow maintenanceWindow; + + public MaintenanceWindow getMaintenanceWindow() { + return maintenanceWindow; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateInfrastructureDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", systemModel=").append(String.valueOf(this.systemModel)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", cloudControlPlaneServer1=") + .append(String.valueOf(this.cloudControlPlaneServer1)); + sb.append(", cloudControlPlaneServer2=") + .append(String.valueOf(this.cloudControlPlaneServer2)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", adminNetworkcidr=").append(String.valueOf(this.adminNetworkcidr)); + sb.append(", dataDiskPercentage=").append(String.valueOf(this.dataDiskPercentage)); + sb.append(", contacts=").append(String.valueOf(this.contacts)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", clientNetworkBondingMode=") + .append(String.valueOf(this.clientNetworkBondingMode)); + sb.append(", backupNetworkBondingMode=") + .append(String.valueOf(this.backupNetworkBondingMode)); + sb.append(", cpsNetworkBondingMode=").append(String.valueOf(this.cpsNetworkBondingMode)); + sb.append(", clientNetworkBondingInterface=") + .append(String.valueOf(this.clientNetworkBondingInterface)); + sb.append(", backupNetworkBondingInterface=") + .append(String.valueOf(this.backupNetworkBondingInterface)); + sb.append(", cpsNetworkBondingInterface=") + .append(String.valueOf(this.cpsNetworkBondingInterface)); + sb.append(", acfsFileSystemStorageInGbs=") + .append(String.valueOf(this.acfsFileSystemStorageInGbs)); + sb.append(", corporateProxy=").append(String.valueOf(this.corporateProxy)); + sb.append(", vlanId=").append(String.valueOf(this.vlanId)); + sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateInfrastructureDetails)) { + return false; + } + + UpdateInfrastructureDetails other = (UpdateInfrastructureDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.systemModel, other.systemModel) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals( + this.cloudControlPlaneServer1, other.cloudControlPlaneServer1) + && java.util.Objects.equals( + this.cloudControlPlaneServer2, other.cloudControlPlaneServer2) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.adminNetworkcidr, other.adminNetworkcidr) + && java.util.Objects.equals(this.dataDiskPercentage, other.dataDiskPercentage) + && java.util.Objects.equals(this.contacts, other.contacts) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals( + this.clientNetworkBondingMode, other.clientNetworkBondingMode) + && java.util.Objects.equals( + this.backupNetworkBondingMode, other.backupNetworkBondingMode) + && java.util.Objects.equals(this.cpsNetworkBondingMode, other.cpsNetworkBondingMode) + && java.util.Objects.equals( + this.clientNetworkBondingInterface, other.clientNetworkBondingInterface) + && java.util.Objects.equals( + this.backupNetworkBondingInterface, other.backupNetworkBondingInterface) + && java.util.Objects.equals( + this.cpsNetworkBondingInterface, other.cpsNetworkBondingInterface) + && java.util.Objects.equals( + this.acfsFileSystemStorageInGbs, other.acfsFileSystemStorageInGbs) + && java.util.Objects.equals(this.corporateProxy, other.corporateProxy) + && java.util.Objects.equals(this.vlanId, other.vlanId) + && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.systemModel == null ? 43 : this.systemModel.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer1 == null + ? 43 + : this.cloudControlPlaneServer1.hashCode()); + result = + (result * PRIME) + + (this.cloudControlPlaneServer2 == null + ? 43 + : this.cloudControlPlaneServer2.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = + (result * PRIME) + + (this.adminNetworkcidr == null ? 43 : this.adminNetworkcidr.hashCode()); + result = + (result * PRIME) + + (this.dataDiskPercentage == null + ? 43 + : this.dataDiskPercentage.hashCode()); + result = (result * PRIME) + (this.contacts == null ? 43 : this.contacts.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingMode == null + ? 43 + : this.clientNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingMode == null + ? 43 + : this.backupNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingMode == null + ? 43 + : this.cpsNetworkBondingMode.hashCode()); + result = + (result * PRIME) + + (this.clientNetworkBondingInterface == null + ? 43 + : this.clientNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.backupNetworkBondingInterface == null + ? 43 + : this.backupNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.cpsNetworkBondingInterface == null + ? 43 + : this.cpsNetworkBondingInterface.hashCode()); + result = + (result * PRIME) + + (this.acfsFileSystemStorageInGbs == null + ? 43 + : this.acfsFileSystemStorageInGbs.hashCode()); + result = + (result * PRIME) + + (this.corporateProxy == null ? 43 : this.corporateProxy.hashCode()); + result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateMaintenanceRunDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateMaintenanceRunDetails.java new file mode 100644 index 00000000000..efcdfdf0694 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateMaintenanceRunDetails.java @@ -0,0 +1,342 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Request to update maintenance run 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateMaintenanceRunDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateMaintenanceRunDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "patchingMode", + "isCustomActionTimeoutEnabled", + "customActionTimeoutInMins", + "definedTags", + "freeformTags" + }) + public UpdateMaintenanceRunDetails( + PatchingModeEnum patchingMode, + Boolean isCustomActionTimeoutEnabled, + Integer customActionTimeoutInMins, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.patchingMode = patchingMode; + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private PatchingModeEnum patchingMode; + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * + * @param patchingMode the value to set + * @return this builder + **/ + public Builder patchingMode(PatchingModeEnum patchingMode) { + this.patchingMode = patchingMode; + this.__explicitlySet__.add("patchingMode"); + return this; + } + /** + * If true, enables configuration of customActionTimeoutInMins for this maintenance run update request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables configuration of customActionTimeoutInMins for this maintenance run update request. + * @param isCustomActionTimeoutEnabled the value to set + * @return this builder + **/ + public Builder isCustomActionTimeoutEnabled(Boolean isCustomActionTimeoutEnabled) { + this.isCustomActionTimeoutEnabled = isCustomActionTimeoutEnabled; + this.__explicitlySet__.add("isCustomActionTimeoutEnabled"); + return this; + } + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + * @param customActionTimeoutInMins the value to set + * @return this builder + **/ + public Builder customActionTimeoutInMins(Integer customActionTimeoutInMins) { + this.customActionTimeoutInMins = customActionTimeoutInMins; + this.__explicitlySet__.add("customActionTimeoutInMins"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateMaintenanceRunDetails build() { + UpdateMaintenanceRunDetails model = + new UpdateMaintenanceRunDetails( + this.patchingMode, + this.isCustomActionTimeoutEnabled, + this.customActionTimeoutInMins, + this.definedTags, + this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateMaintenanceRunDetails model) { + if (model.wasPropertyExplicitlySet("patchingMode")) { + this.patchingMode(model.getPatchingMode()); + } + if (model.wasPropertyExplicitlySet("isCustomActionTimeoutEnabled")) { + this.isCustomActionTimeoutEnabled(model.getIsCustomActionTimeoutEnabled()); + } + if (model.wasPropertyExplicitlySet("customActionTimeoutInMins")) { + this.customActionTimeoutInMins(model.getCustomActionTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patchingMode") + private final PatchingModeEnum patchingMode; + + /** + * Database Infrastructure patching mode, either "ROLLING" or "NONROLLING". Default value is ROLLING. + * + * @return the value + **/ + public PatchingModeEnum getPatchingMode() { + return patchingMode; + } + + /** + * If true, enables configuration of customActionTimeoutInMins for this maintenance run update request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCustomActionTimeoutEnabled") + private final Boolean isCustomActionTimeoutEnabled; + + /** + * If true, enables configuration of customActionTimeoutInMins for this maintenance run update request. + * @return the value + **/ + public Boolean getIsCustomActionTimeoutEnabled() { + return isCustomActionTimeoutEnabled; + } + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("customActionTimeoutInMins") + private final Integer customActionTimeoutInMins; + + /** + * Determines the amount of time the system will wait before the start of each compute server patching operation. + * Supported values are 15 to 120 minutes. + * + * @return the value + **/ + public Integer getCustomActionTimeoutInMins() { + return customActionTimeoutInMins; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateMaintenanceRunDetails("); + sb.append("super=").append(super.toString()); + sb.append("patchingMode=").append(String.valueOf(this.patchingMode)); + sb.append(", isCustomActionTimeoutEnabled=") + .append(String.valueOf(this.isCustomActionTimeoutEnabled)); + sb.append(", customActionTimeoutInMins=") + .append(String.valueOf(this.customActionTimeoutInMins)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMaintenanceRunDetails)) { + return false; + } + + UpdateMaintenanceRunDetails other = (UpdateMaintenanceRunDetails) o; + return java.util.Objects.equals(this.patchingMode, other.patchingMode) + && java.util.Objects.equals( + this.isCustomActionTimeoutEnabled, other.isCustomActionTimeoutEnabled) + && java.util.Objects.equals( + this.customActionTimeoutInMins, other.customActionTimeoutInMins) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.patchingMode == null ? 43 : this.patchingMode.hashCode()); + result = + (result * PRIME) + + (this.isCustomActionTimeoutEnabled == null + ? 43 + : this.isCustomActionTimeoutEnabled.hashCode()); + result = + (result * PRIME) + + (this.customActionTimeoutInMins == null + ? 43 + : this.customActionTimeoutInMins.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateVmClusterNetworkDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateVmClusterNetworkDetails.java new file mode 100644 index 00000000000..11beb592fc0 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateVmClusterNetworkDetails.java @@ -0,0 +1,481 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Details for an VM cluster network. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateVmClusterNetworkDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateVmClusterNetworkDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "scans", + "listenerPort", + "listenerPortSsl", + "dnsServers", + "ntpServers", + "vmNetworks", + "freeformTags", + "definedTags" + }) + public UpdateVmClusterNetworkDetails( + String displayName, + java.util.List scans, + Integer listenerPort, + Integer listenerPortSsl, + java.util.List dnsServers, + java.util.List ntpServers, + java.util.List vmNetworks, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.scans = scans; + this.listenerPort = listenerPort; + this.listenerPortSsl = listenerPortSsl; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.vmNetworks = vmNetworks; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The SCAN details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private java.util.List scans; + + /** + * The SCAN details. + * @param scans the value to set + * @return this builder + **/ + public Builder scans(java.util.List scans) { + this.scans = scans; + this.__explicitlySet__.add("scans"); + return this; + } + /** + * The listener TCP/IP port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener TCP/IP port. + * @param listenerPort the value to set + * @return this builder + **/ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** + * The listener TCP/IP SSL port. Default is 2484. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. Default is 2484. + * @param listenerPortSsl the value to set + * @return this builder + **/ + public Builder listenerPortSsl(Integer listenerPortSsl) { + this.listenerPortSsl = listenerPortSsl; + this.__explicitlySet__.add("listenerPortSsl"); + return this; + } + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @param dnsServers the value to set + * @return this builder + **/ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @param ntpServers the value to set + * @return this builder + **/ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** + * Details of the client and backup networks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * @param vmNetworks the value to set + * @return this builder + **/ + public Builder vmNetworks(java.util.List vmNetworks) { + this.vmNetworks = vmNetworks; + this.__explicitlySet__.add("vmNetworks"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + 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 UpdateVmClusterNetworkDetails build() { + UpdateVmClusterNetworkDetails model = + new UpdateVmClusterNetworkDetails( + this.displayName, + this.scans, + this.listenerPort, + this.listenerPortSsl, + this.dnsServers, + this.ntpServers, + this.vmNetworks, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateVmClusterNetworkDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("scans")) { + this.scans(model.getScans()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortSsl")) { + this.listenerPortSsl(model.getListenerPortSsl()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("vmNetworks")) { + this.vmNetworks(model.getVmNetworks()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The SCAN details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private final java.util.List scans; + + /** + * The SCAN details. + * @return the value + **/ + public java.util.List getScans() { + return scans; + } + + /** + * The listener TCP/IP port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener TCP/IP port. + * @return the value + **/ + public Integer getListenerPort() { + return listenerPort; + } + + /** + * The listener TCP/IP SSL port. Default is 2484. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private final Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. Default is 2484. + * @return the value + **/ + public Integer getListenerPortSsl() { + return listenerPortSsl; + } + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** + * Details of the client and backup networks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private final java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * @return the value + **/ + public java.util.List getVmNetworks() { + return vmNetworks; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateVmClusterNetworkDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", scans=").append(String.valueOf(this.scans)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortSsl=").append(String.valueOf(this.listenerPortSsl)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", vmNetworks=").append(String.valueOf(this.vmNetworks)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateVmClusterNetworkDetails)) { + return false; + } + + UpdateVmClusterNetworkDetails other = (UpdateVmClusterNetworkDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.scans, other.scans) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortSsl, other.listenerPortSsl) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals(this.vmNetworks, other.vmNetworks) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.scans == null ? 43 : this.scans.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortSsl == null ? 43 : this.listenerPortSsl.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = (result * PRIME) + (this.vmNetworks == null ? 43 : this.vmNetworks.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateVmInstanceDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateVmInstanceDetails.java new file mode 100644 index 00000000000..2219dadb510 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/UpdateVmInstanceDetails.java @@ -0,0 +1,326 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Updated VM instance details. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateVmInstanceDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateVmInstanceDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "description", + "displayName", + "dataStorageSizeInGBs", + "definedTags", + "freeformTags" + }) + public UpdateVmInstanceDetails( + String description, + String displayName, + Double dataStorageSizeInGBs, + java.util.Map> definedTags, + java.util.Map freeformTags) { + super(); + this.description = description; + this.displayName = displayName; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * VM instance description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * VM instance description. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Data storage to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Double dataStorageSizeInGBs; + + /** + * Data storage to be allocated in GBs. + * @param dataStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder dataStorageSizeInGBs(Double dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateVmInstanceDetails build() { + UpdateVmInstanceDetails model = + new UpdateVmInstanceDetails( + this.description, + this.displayName, + this.dataStorageSizeInGBs, + this.definedTags, + this.freeformTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateVmInstanceDetails model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * VM instance description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * VM instance description. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Data storage to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Double dataStorageSizeInGBs; + + /** + * Data storage to be allocated in GBs. + * @return the value + **/ + public Double getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateVmInstanceDetails("); + sb.append("super=").append(super.toString()); + sb.append("description=").append(String.valueOf(this.description)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateVmInstanceDetails)) { + return false; + } + + UpdateVmInstanceDetails other = (UpdateVmInstanceDetails) o; + return java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ValidateInfrastructureDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ValidateInfrastructureDetails.java new file mode 100644 index 00000000000..e3bb13aa920 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/ValidateInfrastructureDetails.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * The validation details for the Database Infrastructure. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidateInfrastructureDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ValidateInfrastructureDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"validationZipFile"}) + public ValidateInfrastructureDetails(byte[] validationZipFile) { + super(); + this.validationZipFile = validationZipFile; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The validation zip file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("validationZipFile") + private byte[] validationZipFile; + + /** + * The validation zip file. + * @param validationZipFile the value to set + * @return this builder + **/ + public Builder validationZipFile(byte[] validationZipFile) { + this.validationZipFile = validationZipFile; + this.__explicitlySet__.add("validationZipFile"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ValidateInfrastructureDetails build() { + ValidateInfrastructureDetails model = + new ValidateInfrastructureDetails(this.validationZipFile); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ValidateInfrastructureDetails model) { + if (model.wasPropertyExplicitlySet("validationZipFile")) { + this.validationZipFile(model.getValidationZipFile()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The validation zip file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("validationZipFile") + private final byte[] validationZipFile; + + /** + * The validation zip file. + * @return the value + **/ + public byte[] getValidationZipFile() { + return validationZipFile; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ValidateInfrastructureDetails("); + sb.append("super=").append(super.toString()); + sb.append("validationZipFile=") + .append( + (includeByteArrayContents + ? java.util.Arrays.toString(this.validationZipFile) + : (String.valueOf(this.validationZipFile) + + (this.validationZipFile != null + ? " (byte[" + this.validationZipFile.length + "])" + : "")))); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateInfrastructureDetails)) { + return false; + } + + ValidateInfrastructureDetails other = (ValidateInfrastructureDetails) o; + return java.util.Arrays.equals(this.validationZipFile, other.validationZipFile) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + java.util.Arrays.hashCode(this.validationZipFile); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetwork.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetwork.java new file mode 100644 index 00000000000..1e8b7a66fb4 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetwork.java @@ -0,0 +1,1038 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Details of the VM cluster network on Database Infrastructure. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VmClusterNetwork.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VmClusterNetwork extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "nodeCount", + "infrastructureId", + "baseVmClusterId", + "displayName", + "isScanEnabled", + "scans", + "listenerPort", + "listenerPortSsl", + "dnsServers", + "ntpServers", + "vmNetworks", + "lifecycleState", + "timeCreated", + "timeUpdated", + "lifecycleDetails", + "associatedResourceId", + "consumerType", + "freeformTags", + "definedTags", + "systemTags" + }) + public VmClusterNetwork( + String id, + String compartmentId, + Integer nodeCount, + String infrastructureId, + String baseVmClusterId, + String displayName, + Boolean isScanEnabled, + java.util.List scans, + Integer listenerPort, + Integer listenerPortSsl, + java.util.List dnsServers, + java.util.List ntpServers, + java.util.List vmNetworks, + VmClusterNetworkLifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String lifecycleDetails, + String associatedResourceId, + VmNetworkConsumerType consumerType, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.nodeCount = nodeCount; + this.infrastructureId = infrastructureId; + this.baseVmClusterId = baseVmClusterId; + this.displayName = displayName; + this.isScanEnabled = isScanEnabled; + this.scans = scans; + this.listenerPort = listenerPort; + this.listenerPortSsl = listenerPortSsl; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.vmNetworks = vmNetworks; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleDetails = lifecycleDetails; + this.associatedResourceId = associatedResourceId; + this.consumerType = consumerType; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Count of virtual machines in this VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * @param nodeCount the value to set + * @return this builder + **/ + public Builder nodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + this.__explicitlySet__.add("nodeCount"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder + **/ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmClusterId") + private String baseVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated VM cluster. + * @param baseVmClusterId the value to set + * @return this builder + **/ + public Builder baseVmClusterId(String baseVmClusterId) { + this.baseVmClusterId = baseVmClusterId; + this.__explicitlySet__.add("baseVmClusterId"); + return this; + } + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isScanEnabled") + private Boolean isScanEnabled; + + /** + * Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. + * + * @param isScanEnabled the value to set + * @return this builder + **/ + public Builder isScanEnabled(Boolean isScanEnabled) { + this.isScanEnabled = isScanEnabled; + this.__explicitlySet__.add("isScanEnabled"); + return this; + } + /** + * The SCAN details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private java.util.List scans; + + /** + * The SCAN details. + * @param scans the value to set + * @return this builder + **/ + public Builder scans(java.util.List scans) { + this.scans = scans; + this.__explicitlySet__.add("scans"); + return this; + } + /** + * The listener TCP/IP port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener TCP/IP port. + * @param listenerPort the value to set + * @return this builder + **/ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** + * The listener TCP/IP SSL port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. + * @param listenerPortSsl the value to set + * @return this builder + **/ + public Builder listenerPortSsl(Integer listenerPortSsl) { + this.listenerPortSsl = listenerPortSsl; + this.__explicitlySet__.add("listenerPortSsl"); + return this; + } + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @param dnsServers the value to set + * @return this builder + **/ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @param ntpServers the value to set + * @return this builder + **/ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** + * Details of the client and backup networks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * @param vmNetworks the value to set + * @return this builder + **/ + public Builder vmNetworks(java.util.List vmNetworks) { + this.vmNetworks = vmNetworks; + this.__explicitlySet__.add("vmNetworks"); + return this; + } + /** + * The current state of the virtual machine cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private VmClusterNetworkLifecycleState lifecycleState; + + /** + * The current state of the virtual machine cluster network. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(VmClusterNetworkLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time that the VM cluster network was created. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the VM cluster network was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Lifecycle state details of the VM cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Lifecycle state details of the VM cluster network. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("associatedResourceId") + private String associatedResourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated resource. + * @param associatedResourceId the value to set + * @return this builder + **/ + public Builder associatedResourceId(String associatedResourceId) { + this.associatedResourceId = associatedResourceId; + this.__explicitlySet__.add("associatedResourceId"); + return this; + } + /** + * Consumer type for the VM cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("consumerType") + private VmNetworkConsumerType consumerType; + + /** + * Consumer type for the VM cluster network. + * @param consumerType the value to set + * @return this builder + **/ + public Builder consumerType(VmNetworkConsumerType consumerType) { + this.consumerType = consumerType; + this.__explicitlySet__.add("consumerType"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmClusterNetwork build() { + VmClusterNetwork model = + new VmClusterNetwork( + this.id, + this.compartmentId, + this.nodeCount, + this.infrastructureId, + this.baseVmClusterId, + this.displayName, + this.isScanEnabled, + this.scans, + this.listenerPort, + this.listenerPortSsl, + this.dnsServers, + this.ntpServers, + this.vmNetworks, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.lifecycleDetails, + this.associatedResourceId, + this.consumerType, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmClusterNetwork model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("nodeCount")) { + this.nodeCount(model.getNodeCount()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("baseVmClusterId")) { + this.baseVmClusterId(model.getBaseVmClusterId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("isScanEnabled")) { + this.isScanEnabled(model.getIsScanEnabled()); + } + if (model.wasPropertyExplicitlySet("scans")) { + this.scans(model.getScans()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortSsl")) { + this.listenerPortSsl(model.getListenerPortSsl()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("vmNetworks")) { + this.vmNetworks(model.getVmNetworks()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("associatedResourceId")) { + this.associatedResourceId(model.getAssociatedResourceId()); + } + if (model.wasPropertyExplicitlySet("consumerType")) { + this.consumerType(model.getConsumerType()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Count of virtual machines in this VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private final Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * @return the value + **/ + public Integer getNodeCount() { + return nodeCount; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @return the value + **/ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmClusterId") + private final String baseVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated VM cluster. + * @return the value + **/ + public String getBaseVmClusterId() { + return baseVmClusterId; + } + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isScanEnabled") + private final Boolean isScanEnabled; + + /** + * Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. + * + * @return the value + **/ + public Boolean getIsScanEnabled() { + return isScanEnabled; + } + + /** + * The SCAN details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private final java.util.List scans; + + /** + * The SCAN details. + * @return the value + **/ + public java.util.List getScans() { + return scans; + } + + /** + * The listener TCP/IP port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener TCP/IP port. + * @return the value + **/ + public Integer getListenerPort() { + return listenerPort; + } + + /** + * The listener TCP/IP SSL port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private final Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. + * @return the value + **/ + public Integer getListenerPortSsl() { + return listenerPortSsl; + } + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** + * Details of the client and backup networks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private final java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * @return the value + **/ + public java.util.List getVmNetworks() { + return vmNetworks; + } + + /** + * The current state of the virtual machine cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final VmClusterNetworkLifecycleState lifecycleState; + + /** + * The current state of the virtual machine cluster network. + * @return the value + **/ + public VmClusterNetworkLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time that the VM cluster network was created. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the VM cluster network was created. An RFC3339 formatted datetime string. + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime string. + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Lifecycle state details of the VM cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Lifecycle state details of the VM cluster network. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("associatedResourceId") + private final String associatedResourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated resource. + * @return the value + **/ + public String getAssociatedResourceId() { + return associatedResourceId; + } + + /** + * Consumer type for the VM cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("consumerType") + private final VmNetworkConsumerType consumerType; + + /** + * Consumer type for the VM cluster network. + * @return the value + **/ + public VmNetworkConsumerType getConsumerType() { + return consumerType; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmClusterNetwork("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", baseVmClusterId=").append(String.valueOf(this.baseVmClusterId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", isScanEnabled=").append(String.valueOf(this.isScanEnabled)); + sb.append(", scans=").append(String.valueOf(this.scans)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortSsl=").append(String.valueOf(this.listenerPortSsl)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", vmNetworks=").append(String.valueOf(this.vmNetworks)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", associatedResourceId=").append(String.valueOf(this.associatedResourceId)); + sb.append(", consumerType=").append(String.valueOf(this.consumerType)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmClusterNetwork)) { + return false; + } + + VmClusterNetwork other = (VmClusterNetwork) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.nodeCount, other.nodeCount) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.baseVmClusterId, other.baseVmClusterId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.isScanEnabled, other.isScanEnabled) + && java.util.Objects.equals(this.scans, other.scans) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortSsl, other.listenerPortSsl) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals(this.vmNetworks, other.vmNetworks) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.associatedResourceId, other.associatedResourceId) + && java.util.Objects.equals(this.consumerType, other.consumerType) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.nodeCount == null ? 43 : this.nodeCount.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.baseVmClusterId == null ? 43 : this.baseVmClusterId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.isScanEnabled == null ? 43 : this.isScanEnabled.hashCode()); + result = (result * PRIME) + (this.scans == null ? 43 : this.scans.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortSsl == null ? 43 : this.listenerPortSsl.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = (result * PRIME) + (this.vmNetworks == null ? 43 : this.vmNetworks.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.associatedResourceId == null + ? 43 + : this.associatedResourceId.hashCode()); + result = (result * PRIME) + (this.consumerType == null ? 43 : this.consumerType.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkCollection.java new file mode 100644 index 00000000000..8d2dcf7eb38 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * A collection of VM cluster network Database Infrastructure resources. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VmClusterNetworkCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VmClusterNetworkCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public VmClusterNetworkCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of VM cluster network resources. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of VM cluster network resources. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmClusterNetworkCollection build() { + VmClusterNetworkCollection model = new VmClusterNetworkCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmClusterNetworkCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of VM cluster network resources. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of VM cluster network resources. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmClusterNetworkCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmClusterNetworkCollection)) { + return false; + } + + VmClusterNetworkCollection other = (VmClusterNetworkCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkLifecycleState.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkLifecycleState.java new file mode 100644 index 00000000000..de8a596073a --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkLifecycleState.java @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * VM cluster network lifecycle states. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum VmClusterNetworkLifecycleState { + Creating("CREATING"), + RequiresValidation("REQUIRES_VALIDATION"), + Validating("VALIDATING"), + Validated("VALIDATED"), + ValidationFailed("VALIDATION_FAILED"), + Updating("UPDATING"), + Allocated("ALLOCATED"), + Deleting("DELETING"), + 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 static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(VmClusterNetworkLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VmClusterNetworkLifecycleState v : VmClusterNetworkLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + VmClusterNetworkLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VmClusterNetworkLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'VmClusterNetworkLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkSummary.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkSummary.java new file mode 100644 index 00000000000..266e6b0de83 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkSummary.java @@ -0,0 +1,1041 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Summary of the VM cluster network on Database Infrastructure. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VmClusterNetworkSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VmClusterNetworkSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "nodeCount", + "infrastructureId", + "baseVmClusterId", + "displayName", + "isScanEnabled", + "scans", + "listenerPort", + "listenerPortSsl", + "dnsServers", + "ntpServers", + "vmNetworks", + "lifecycleState", + "timeCreated", + "timeUpdated", + "lifecycleDetails", + "associatedResourceId", + "consumerType", + "freeformTags", + "definedTags", + "systemTags" + }) + public VmClusterNetworkSummary( + String id, + String compartmentId, + Integer nodeCount, + String infrastructureId, + String baseVmClusterId, + String displayName, + Boolean isScanEnabled, + java.util.List scans, + Integer listenerPort, + Integer listenerPortSsl, + java.util.List dnsServers, + java.util.List ntpServers, + java.util.List vmNetworks, + VmClusterNetworkLifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String lifecycleDetails, + String associatedResourceId, + VmNetworkConsumerType consumerType, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.nodeCount = nodeCount; + this.infrastructureId = infrastructureId; + this.baseVmClusterId = baseVmClusterId; + this.displayName = displayName; + this.isScanEnabled = isScanEnabled; + this.scans = scans; + this.listenerPort = listenerPort; + this.listenerPortSsl = listenerPortSsl; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.vmNetworks = vmNetworks; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleDetails = lifecycleDetails; + this.associatedResourceId = associatedResourceId; + this.consumerType = consumerType; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Count of virtual machines in this VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * @param nodeCount the value to set + * @return this builder + **/ + public Builder nodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + this.__explicitlySet__.add("nodeCount"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder + **/ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmClusterId") + private String baseVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated VM cluster. + * @param baseVmClusterId the value to set + * @return this builder + **/ + public Builder baseVmClusterId(String baseVmClusterId) { + this.baseVmClusterId = baseVmClusterId; + this.__explicitlySet__.add("baseVmClusterId"); + return this; + } + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isScanEnabled") + private Boolean isScanEnabled; + + /** + * Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. + * + * @param isScanEnabled the value to set + * @return this builder + **/ + public Builder isScanEnabled(Boolean isScanEnabled) { + this.isScanEnabled = isScanEnabled; + this.__explicitlySet__.add("isScanEnabled"); + return this; + } + /** + * The SCAN details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private java.util.List scans; + + /** + * The SCAN details. + * @param scans the value to set + * @return this builder + **/ + public Builder scans(java.util.List scans) { + this.scans = scans; + this.__explicitlySet__.add("scans"); + return this; + } + /** + * The listener TCP/IP port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private Integer listenerPort; + + /** + * The listener TCP/IP port. + * @param listenerPort the value to set + * @return this builder + **/ + public Builder listenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + this.__explicitlySet__.add("listenerPort"); + return this; + } + /** + * The listener TCP/IP SSL port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. + * @param listenerPortSsl the value to set + * @return this builder + **/ + public Builder listenerPortSsl(Integer listenerPortSsl) { + this.listenerPortSsl = listenerPortSsl; + this.__explicitlySet__.add("listenerPortSsl"); + return this; + } + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @param dnsServers the value to set + * @return this builder + **/ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @param ntpServers the value to set + * @return this builder + **/ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** + * Details of the client and backup networks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * @param vmNetworks the value to set + * @return this builder + **/ + public Builder vmNetworks(java.util.List vmNetworks) { + this.vmNetworks = vmNetworks; + this.__explicitlySet__.add("vmNetworks"); + return this; + } + /** + * The current state of the virtual machine cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private VmClusterNetworkLifecycleState lifecycleState; + + /** + * The current state of the virtual machine cluster network. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(VmClusterNetworkLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time that the VM cluster network was created. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the VM cluster network was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Lifecycle state details of the VM cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Lifecycle state details of the VM cluster network. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("associatedResourceId") + private String associatedResourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated resource. + * @param associatedResourceId the value to set + * @return this builder + **/ + public Builder associatedResourceId(String associatedResourceId) { + this.associatedResourceId = associatedResourceId; + this.__explicitlySet__.add("associatedResourceId"); + return this; + } + /** + * Consumer type for the VM cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("consumerType") + private VmNetworkConsumerType consumerType; + + /** + * Consumer type for the VM cluster network. + * @param consumerType the value to set + * @return this builder + **/ + public Builder consumerType(VmNetworkConsumerType consumerType) { + this.consumerType = consumerType; + this.__explicitlySet__.add("consumerType"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmClusterNetworkSummary build() { + VmClusterNetworkSummary model = + new VmClusterNetworkSummary( + this.id, + this.compartmentId, + this.nodeCount, + this.infrastructureId, + this.baseVmClusterId, + this.displayName, + this.isScanEnabled, + this.scans, + this.listenerPort, + this.listenerPortSsl, + this.dnsServers, + this.ntpServers, + this.vmNetworks, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.lifecycleDetails, + this.associatedResourceId, + this.consumerType, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmClusterNetworkSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("nodeCount")) { + this.nodeCount(model.getNodeCount()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("baseVmClusterId")) { + this.baseVmClusterId(model.getBaseVmClusterId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("isScanEnabled")) { + this.isScanEnabled(model.getIsScanEnabled()); + } + if (model.wasPropertyExplicitlySet("scans")) { + this.scans(model.getScans()); + } + if (model.wasPropertyExplicitlySet("listenerPort")) { + this.listenerPort(model.getListenerPort()); + } + if (model.wasPropertyExplicitlySet("listenerPortSsl")) { + this.listenerPortSsl(model.getListenerPortSsl()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("vmNetworks")) { + this.vmNetworks(model.getVmNetworks()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("associatedResourceId")) { + this.associatedResourceId(model.getAssociatedResourceId()); + } + if (model.wasPropertyExplicitlySet("consumerType")) { + this.consumerType(model.getConsumerType()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM cluster network. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * Count of virtual machines in this VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") + private final Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + * @return the value + **/ + public Integer getNodeCount() { + return nodeCount; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @return the value + **/ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated VM cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseVmClusterId") + private final String baseVmClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated VM cluster. + * @return the value + **/ + public String getBaseVmClusterId() { + return baseVmClusterId; + } + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the VM cluster network. The name does not need to be unique. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isScanEnabled") + private final Boolean isScanEnabled; + + /** + * Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster. + * + * @return the value + **/ + public Boolean getIsScanEnabled() { + return isScanEnabled; + } + + /** + * The SCAN details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scans") + private final java.util.List scans; + + /** + * The SCAN details. + * @return the value + **/ + public java.util.List getScans() { + return scans; + } + + /** + * The listener TCP/IP port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") + private final Integer listenerPort; + + /** + * The listener TCP/IP port. + * @return the value + **/ + public Integer getListenerPort() { + return listenerPort; + } + + /** + * The listener TCP/IP SSL port. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("listenerPortSsl") + private final Integer listenerPortSsl; + + /** + * The listener TCP/IP SSL port. + * @return the value + **/ + public Integer getListenerPortSsl() { + return listenerPortSsl; + } + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** + * Details of the client and backup networks. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworks") + private final java.util.List vmNetworks; + + /** + * Details of the client and backup networks. + * @return the value + **/ + public java.util.List getVmNetworks() { + return vmNetworks; + } + + /** + * The current state of the virtual machine cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final VmClusterNetworkLifecycleState lifecycleState; + + /** + * The current state of the virtual machine cluster network. + * @return the value + **/ + public VmClusterNetworkLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time that the VM cluster network was created. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the VM cluster network was created. An RFC3339 formatted datetime string. + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the VM cluster network was last updated. An RFC3339 formatted datetime string. + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Lifecycle state details of the VM cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Lifecycle state details of the VM cluster network. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("associatedResourceId") + private final String associatedResourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated resource. + * @return the value + **/ + public String getAssociatedResourceId() { + return associatedResourceId; + } + + /** + * Consumer type for the VM cluster network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("consumerType") + private final VmNetworkConsumerType consumerType; + + /** + * Consumer type for the VM cluster network. + * @return the value + **/ + public VmNetworkConsumerType getConsumerType() { + return consumerType; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmClusterNetworkSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", baseVmClusterId=").append(String.valueOf(this.baseVmClusterId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", isScanEnabled=").append(String.valueOf(this.isScanEnabled)); + sb.append(", scans=").append(String.valueOf(this.scans)); + sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); + sb.append(", listenerPortSsl=").append(String.valueOf(this.listenerPortSsl)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", vmNetworks=").append(String.valueOf(this.vmNetworks)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", associatedResourceId=").append(String.valueOf(this.associatedResourceId)); + sb.append(", consumerType=").append(String.valueOf(this.consumerType)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmClusterNetworkSummary)) { + return false; + } + + VmClusterNetworkSummary other = (VmClusterNetworkSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.nodeCount, other.nodeCount) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.baseVmClusterId, other.baseVmClusterId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.isScanEnabled, other.isScanEnabled) + && java.util.Objects.equals(this.scans, other.scans) + && java.util.Objects.equals(this.listenerPort, other.listenerPort) + && java.util.Objects.equals(this.listenerPortSsl, other.listenerPortSsl) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals(this.vmNetworks, other.vmNetworks) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.associatedResourceId, other.associatedResourceId) + && java.util.Objects.equals(this.consumerType, other.consumerType) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.nodeCount == null ? 43 : this.nodeCount.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.baseVmClusterId == null ? 43 : this.baseVmClusterId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.isScanEnabled == null ? 43 : this.isScanEnabled.hashCode()); + result = (result * PRIME) + (this.scans == null ? 43 : this.scans.hashCode()); + result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); + result = + (result * PRIME) + + (this.listenerPortSsl == null ? 43 : this.listenerPortSsl.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = (result * PRIME) + (this.vmNetworks == null ? 43 : this.vmNetworks.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.associatedResourceId == null + ? 43 + : this.associatedResourceId.hashCode()); + result = (result * PRIME) + (this.consumerType == null ? 43 : this.consumerType.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkType.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkType.java new file mode 100644 index 00000000000..0116464e306 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmClusterNetworkType.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * VM cluster network type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum VmClusterNetworkType { + Client("CLIENT"), + Backup("BACKUP"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(VmClusterNetworkType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VmClusterNetworkType v : VmClusterNetworkType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + VmClusterNetworkType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VmClusterNetworkType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'VmClusterNetworkType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstance.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstance.java new file mode 100644 index 00000000000..2504519550c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstance.java @@ -0,0 +1,1423 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * VM instance details. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VmInstance.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VmInstance extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "infrastructureId", + "cpusEnabled", + "memorySizeInGBs", + "bootStorageSizeInGBs", + "dataStorageSizeInGBs", + "definedTags", + "freeformTags", + "systemTags", + "imageId", + "serverId", + "sshPublicKeys", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "domainName", + "timeZone", + "dnsServers", + "ntpServers", + "hostname", + "ipAddress", + "netmask", + "gateway", + "vlanId", + "userdata", + "metadata", + "vmNetworkId" + }) + public VmInstance( + String id, + String compartmentId, + String displayName, + String description, + String infrastructureId, + Integer cpusEnabled, + Double memorySizeInGBs, + Double bootStorageSizeInGBs, + Double dataStorageSizeInGBs, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + String imageId, + String serverId, + java.util.List sshPublicKeys, + VmInstanceLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String domainName, + String timeZone, + java.util.List dnsServers, + java.util.List ntpServers, + String hostname, + String ipAddress, + String netmask, + String gateway, + String vlanId, + String userdata, + java.util.Map metadata, + String vmNetworkId) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.infrastructureId = infrastructureId; + this.cpusEnabled = cpusEnabled; + this.memorySizeInGBs = memorySizeInGBs; + this.bootStorageSizeInGBs = bootStorageSizeInGBs; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + this.imageId = imageId; + this.serverId = serverId; + this.sshPublicKeys = sshPublicKeys; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.domainName = domainName; + this.timeZone = timeZone; + this.dnsServers = dnsServers; + this.ntpServers = ntpServers; + this.hostname = hostname; + this.ipAddress = ipAddress; + this.netmask = netmask; + this.gateway = gateway; + this.vlanId = vlanId; + this.userdata = userdata; + this.metadata = metadata; + this.vmNetworkId = vmNetworkId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM + * instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM + * instance. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * VM instance description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * VM instance description. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder + **/ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The number of CPU cores enabled for each VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private Integer cpusEnabled; + + /** + * The number of CPU cores enabled for each VM instance. + * @param cpusEnabled the value to set + * @return this builder + **/ + public Builder cpusEnabled(Integer cpusEnabled) { + this.cpusEnabled = cpusEnabled; + this.__explicitlySet__.add("cpusEnabled"); + return this; + } + /** + * The memory to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * @param memorySizeInGBs the value to set + * @return this builder + **/ + public Builder memorySizeInGBs(Double memorySizeInGBs) { + this.memorySizeInGBs = memorySizeInGBs; + this.__explicitlySet__.add("memorySizeInGBs"); + return this; + } + /** + * Boot storage memory to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bootStorageSizeInGBs") + private Double bootStorageSizeInGBs; + + /** + * Boot storage memory to be allocated in GBs. + * @param bootStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder bootStorageSizeInGBs(Double bootStorageSizeInGBs) { + this.bootStorageSizeInGBs = bootStorageSizeInGBs; + this.__explicitlySet__.add("bootStorageSizeInGBs"); + return this; + } + /** + * Data storage to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Double dataStorageSizeInGBs; + + /** + * Data storage to be allocated in GBs. + * @param dataStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder dataStorageSizeInGBs(Double dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM custom instance uploaded. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("imageId") + private String imageId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM custom instance uploaded. + * @param imageId the value to set + * @return this builder + **/ + public Builder imageId(String imageId) { + this.imageId = imageId; + this.__explicitlySet__.add("imageId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node on which VM instance should be launched. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serverId") + private String serverId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node on which VM instance should be launched. + * @param serverId the value to set + * @return this builder + **/ + public Builder serverId(String serverId) { + this.serverId = serverId; + this.__explicitlySet__.add("serverId"); + return this; + } + /** + * List of public key used for SSH access to the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private java.util.List sshPublicKeys; + + /** + * List of public key used for SSH access to the VM instance. + * @param sshPublicKeys the value to set + * @return this builder + **/ + public Builder sshPublicKeys(java.util.List sshPublicKeys) { + this.sshPublicKeys = sshPublicKeys; + this.__explicitlySet__.add("sshPublicKeys"); + return this; + } + /** + * The current state of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private VmInstanceLifecycleState lifecycleState; + + /** + * The current state of the VM instance. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(VmInstanceLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Lifecycle state details of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Lifecycle state details of the VM instance. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The time that the VM instance was created. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the VM instance was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time that the VM instance was last updated. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the VM instance was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The domain name of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private String domainName; + + /** + * The domain name of the VM instance. + * @param domainName the value to set + * @return this builder + **/ + public Builder domainName(String domainName) { + this.domainName = domainName; + this.__explicitlySet__.add("domainName"); + return this; + } + /** + * The time zone to use for the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + /** + * The time zone to use for the VM instance. + * @param timeZone the value to set + * @return this builder + **/ + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @param dnsServers the value to set + * @return this builder + **/ + public Builder dnsServers(java.util.List dnsServers) { + this.dnsServers = dnsServers; + this.__explicitlySet__.add("dnsServers"); + return this; + } + /** + * The list of NTP server addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private java.util.List ntpServers; + + /** + * The list of NTP server addresses. Maximum of 3 allowed. + * @param ntpServers the value to set + * @return this builder + **/ + public Builder ntpServers(java.util.List ntpServers) { + this.ntpServers = ntpServers; + this.__explicitlySet__.add("ntpServers"); + return this; + } + /** + * The host name of the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private String hostname; + + /** + * The host name of the instance. + * @param hostname the value to set + * @return this builder + **/ + public Builder hostname(String hostname) { + this.hostname = hostname; + this.__explicitlySet__.add("hostname"); + return this; + } + /** + * The IP address of the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipAddress") + private String ipAddress; + + /** + * The IP address of the instance. + * @param ipAddress the value to set + * @return this builder + **/ + public Builder ipAddress(String ipAddress) { + this.ipAddress = ipAddress; + this.__explicitlySet__.add("ipAddress"); + return this; + } + /** + * The netmask of the VM instance network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The netmask of the VM instance network. + * @param netmask the value to set + * @return this builder + **/ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** + * The gateway IP address of the VM instance network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The gateway IP address of the VM instance network. + * @param gateway the value to set + * @return this builder + **/ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** + * The network VLAN ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private String vlanId; + + /** + * The network VLAN ID. + * @param vlanId the value to set + * @return this builder + **/ + public Builder vlanId(String vlanId) { + this.vlanId = vlanId; + this.__explicitlySet__.add("vlanId"); + return this; + } + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. + * For information about how to take advantage of user data, see the [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userdata") + private String userdata; + + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. + * For information about how to take advantage of user data, see the [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + * + * @param userdata the value to set + * @return this builder + **/ + public Builder userdata(String userdata) { + this.userdata = userdata; + this.__explicitlySet__.add("userdata"); + return this; + } + /** + * Custom metadata key/value pairs which can be used to: + * - Provide information to [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system initialization tasks. + * - Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Custom metadata key/value pairs which can be used to: + * - Provide information to [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system initialization tasks. + * - Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration. + * + * @param metadata the value to set + * @return this builder + **/ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM Network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworkId") + private String vmNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM Network. + * @param vmNetworkId the value to set + * @return this builder + **/ + public Builder vmNetworkId(String vmNetworkId) { + this.vmNetworkId = vmNetworkId; + this.__explicitlySet__.add("vmNetworkId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmInstance build() { + VmInstance model = + new VmInstance( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.infrastructureId, + this.cpusEnabled, + this.memorySizeInGBs, + this.bootStorageSizeInGBs, + this.dataStorageSizeInGBs, + this.definedTags, + this.freeformTags, + this.systemTags, + this.imageId, + this.serverId, + this.sshPublicKeys, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.domainName, + this.timeZone, + this.dnsServers, + this.ntpServers, + this.hostname, + this.ipAddress, + this.netmask, + this.gateway, + this.vlanId, + this.userdata, + this.metadata, + this.vmNetworkId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmInstance model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("cpusEnabled")) { + this.cpusEnabled(model.getCpusEnabled()); + } + if (model.wasPropertyExplicitlySet("memorySizeInGBs")) { + this.memorySizeInGBs(model.getMemorySizeInGBs()); + } + if (model.wasPropertyExplicitlySet("bootStorageSizeInGBs")) { + this.bootStorageSizeInGBs(model.getBootStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("imageId")) { + this.imageId(model.getImageId()); + } + if (model.wasPropertyExplicitlySet("serverId")) { + this.serverId(model.getServerId()); + } + if (model.wasPropertyExplicitlySet("sshPublicKeys")) { + this.sshPublicKeys(model.getSshPublicKeys()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("domainName")) { + this.domainName(model.getDomainName()); + } + if (model.wasPropertyExplicitlySet("timeZone")) { + this.timeZone(model.getTimeZone()); + } + if (model.wasPropertyExplicitlySet("dnsServers")) { + this.dnsServers(model.getDnsServers()); + } + if (model.wasPropertyExplicitlySet("ntpServers")) { + this.ntpServers(model.getNtpServers()); + } + if (model.wasPropertyExplicitlySet("hostname")) { + this.hostname(model.getHostname()); + } + if (model.wasPropertyExplicitlySet("ipAddress")) { + this.ipAddress(model.getIpAddress()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("vlanId")) { + this.vlanId(model.getVlanId()); + } + if (model.wasPropertyExplicitlySet("userdata")) { + this.userdata(model.getUserdata()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("vmNetworkId")) { + this.vmNetworkId(model.getVmNetworkId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM + * instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM + * instance. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * VM instance description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * VM instance description. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @return the value + **/ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * The number of CPU cores enabled for each VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private final Integer cpusEnabled; + + /** + * The number of CPU cores enabled for each VM instance. + * @return the value + **/ + public Integer getCpusEnabled() { + return cpusEnabled; + } + + /** + * The memory to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private final Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * @return the value + **/ + public Double getMemorySizeInGBs() { + return memorySizeInGBs; + } + + /** + * Boot storage memory to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bootStorageSizeInGBs") + private final Double bootStorageSizeInGBs; + + /** + * Boot storage memory to be allocated in GBs. + * @return the value + **/ + public Double getBootStorageSizeInGBs() { + return bootStorageSizeInGBs; + } + + /** + * Data storage to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Double dataStorageSizeInGBs; + + /** + * Data storage to be allocated in GBs. + * @return the value + **/ + public Double getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM custom instance uploaded. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("imageId") + private final String imageId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM custom instance uploaded. + * @return the value + **/ + public String getImageId() { + return imageId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node on which VM instance should be launched. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serverId") + private final String serverId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node on which VM instance should be launched. + * @return the value + **/ + public String getServerId() { + return serverId; + } + + /** + * List of public key used for SSH access to the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sshPublicKeys") + private final java.util.List sshPublicKeys; + + /** + * List of public key used for SSH access to the VM instance. + * @return the value + **/ + public java.util.List getSshPublicKeys() { + return sshPublicKeys; + } + + /** + * The current state of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final VmInstanceLifecycleState lifecycleState; + + /** + * The current state of the VM instance. + * @return the value + **/ + public VmInstanceLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Lifecycle state details of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Lifecycle state details of the VM instance. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time that the VM instance was created. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the VM instance was created. An RFC3339 formatted datetime string. + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time that the VM instance was last updated. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the VM instance was last updated. An RFC3339 formatted datetime string. + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The domain name of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private final String domainName; + + /** + * The domain name of the VM instance. + * @return the value + **/ + public String getDomainName() { + return domainName; + } + + /** + * The time zone to use for the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private final String timeZone; + + /** + * The time zone to use for the VM instance. + * @return the value + **/ + public String getTimeZone() { + return timeZone; + } + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dnsServers") + private final java.util.List dnsServers; + + /** + * The list of DNS server IP addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getDnsServers() { + return dnsServers; + } + + /** + * The list of NTP server addresses. Maximum of 3 allowed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ntpServers") + private final java.util.List ntpServers; + + /** + * The list of NTP server addresses. Maximum of 3 allowed. + * @return the value + **/ + public java.util.List getNtpServers() { + return ntpServers; + } + + /** + * The host name of the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private final String hostname; + + /** + * The host name of the instance. + * @return the value + **/ + public String getHostname() { + return hostname; + } + + /** + * The IP address of the instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipAddress") + private final String ipAddress; + + /** + * The IP address of the instance. + * @return the value + **/ + public String getIpAddress() { + return ipAddress; + } + + /** + * The netmask of the VM instance network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The netmask of the VM instance network. + * @return the value + **/ + public String getNetmask() { + return netmask; + } + + /** + * The gateway IP address of the VM instance network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The gateway IP address of the VM instance network. + * @return the value + **/ + public String getGateway() { + return gateway; + } + + /** + * The network VLAN ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private final String vlanId; + + /** + * The network VLAN ID. + * @return the value + **/ + public String getVlanId() { + return vlanId; + } + + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. + * For information about how to take advantage of user data, see the [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userdata") + private final String userdata; + + /** + * Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. + * For information about how to take advantage of user data, see the [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html). + * + * @return the value + **/ + public String getUserdata() { + return userdata; + } + + /** + * Custom metadata key/value pairs which can be used to: + * - Provide information to [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system initialization tasks. + * - Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Custom metadata key/value pairs which can be used to: + * - Provide information to [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system initialization tasks. + * - Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration. + * + * @return the value + **/ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM Network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworkId") + private final String vmNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM Network. + * @return the value + **/ + public String getVmNetworkId() { + return vmNetworkId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmInstance("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", cpusEnabled=").append(String.valueOf(this.cpusEnabled)); + sb.append(", memorySizeInGBs=").append(String.valueOf(this.memorySizeInGBs)); + sb.append(", bootStorageSizeInGBs=").append(String.valueOf(this.bootStorageSizeInGBs)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", imageId=").append(String.valueOf(this.imageId)); + sb.append(", serverId=").append(String.valueOf(this.serverId)); + sb.append(", sshPublicKeys=").append(String.valueOf(this.sshPublicKeys)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", domainName=").append(String.valueOf(this.domainName)); + sb.append(", timeZone=").append(String.valueOf(this.timeZone)); + sb.append(", dnsServers=").append(String.valueOf(this.dnsServers)); + sb.append(", ntpServers=").append(String.valueOf(this.ntpServers)); + sb.append(", hostname=").append(String.valueOf(this.hostname)); + sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", vlanId=").append(String.valueOf(this.vlanId)); + sb.append(", userdata=").append(String.valueOf(this.userdata)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", vmNetworkId=").append(String.valueOf(this.vmNetworkId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmInstance)) { + return false; + } + + VmInstance other = (VmInstance) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.cpusEnabled, other.cpusEnabled) + && java.util.Objects.equals(this.memorySizeInGBs, other.memorySizeInGBs) + && java.util.Objects.equals(this.bootStorageSizeInGBs, other.bootStorageSizeInGBs) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.imageId, other.imageId) + && java.util.Objects.equals(this.serverId, other.serverId) + && java.util.Objects.equals(this.sshPublicKeys, other.sshPublicKeys) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.domainName, other.domainName) + && java.util.Objects.equals(this.timeZone, other.timeZone) + && java.util.Objects.equals(this.dnsServers, other.dnsServers) + && java.util.Objects.equals(this.ntpServers, other.ntpServers) + && java.util.Objects.equals(this.hostname, other.hostname) + && java.util.Objects.equals(this.ipAddress, other.ipAddress) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.vlanId, other.vlanId) + && java.util.Objects.equals(this.userdata, other.userdata) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.vmNetworkId, other.vmNetworkId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.cpusEnabled == null ? 43 : this.cpusEnabled.hashCode()); + result = + (result * PRIME) + + (this.memorySizeInGBs == null ? 43 : this.memorySizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.bootStorageSizeInGBs == null + ? 43 + : this.bootStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.imageId == null ? 43 : this.imageId.hashCode()); + result = (result * PRIME) + (this.serverId == null ? 43 : this.serverId.hashCode()); + result = + (result * PRIME) + + (this.sshPublicKeys == null ? 43 : this.sshPublicKeys.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.domainName == null ? 43 : this.domainName.hashCode()); + result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); + result = (result * PRIME) + (this.dnsServers == null ? 43 : this.dnsServers.hashCode()); + result = (result * PRIME) + (this.ntpServers == null ? 43 : this.ntpServers.hashCode()); + result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); + result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.hashCode()); + result = (result * PRIME) + (this.userdata == null ? 43 : this.userdata.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.vmNetworkId == null ? 43 : this.vmNetworkId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceCollection.java new file mode 100644 index 00000000000..856a99fa77e --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * A collection of VM instance on Database Infrastructure summary resources. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VmInstanceCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VmInstanceCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public VmInstanceCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of VM instance summary resources. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of VM instance summary resources. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmInstanceCollection build() { + VmInstanceCollection model = new VmInstanceCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmInstanceCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of VM instance summary resources. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of VM instance summary resources. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmInstanceCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmInstanceCollection)) { + return false; + } + + VmInstanceCollection other = (VmInstanceCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceLifecycleState.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceLifecycleState.java new file mode 100644 index 00000000000..97b53df74a8 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceLifecycleState.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * VM instance lifecycle states. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum VmInstanceLifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + 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 static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(VmInstanceLifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VmInstanceLifecycleState v : VmInstanceLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + VmInstanceLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VmInstanceLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'VmInstanceLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceSummary.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceSummary.java new file mode 100644 index 00000000000..254f58c5e34 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmInstanceSummary.java @@ -0,0 +1,915 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * VM instance on Database Infrastructure summary. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VmInstanceSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VmInstanceSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "infrastructureId", + "cpusEnabled", + "memorySizeInGBs", + "definedTags", + "freeformTags", + "systemTags", + "imageId", + "serverId", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "domainName", + "timeZone", + "vmNetworkId" + }) + public VmInstanceSummary( + String id, + String compartmentId, + String displayName, + String description, + String infrastructureId, + Integer cpusEnabled, + Double memorySizeInGBs, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, + String imageId, + String serverId, + VmInstanceLifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String domainName, + String timeZone, + String vmNetworkId) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.infrastructureId = infrastructureId; + this.cpusEnabled = cpusEnabled; + this.memorySizeInGBs = memorySizeInGBs; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + this.imageId = imageId; + this.serverId = serverId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.domainName = domainName; + this.timeZone = timeZone; + this.vmNetworkId = vmNetworkId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM + * instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM + * instance. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * VM instance description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * VM instance description. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder + **/ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + this.__explicitlySet__.add("infrastructureId"); + return this; + } + /** + * The number of CPU cores enabled for each VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private Integer cpusEnabled; + + /** + * The number of CPU cores enabled for each VM instance. + * @param cpusEnabled the value to set + * @return this builder + **/ + public Builder cpusEnabled(Integer cpusEnabled) { + this.cpusEnabled = cpusEnabled; + this.__explicitlySet__.add("cpusEnabled"); + return this; + } + /** + * The memory to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * @param memorySizeInGBs the value to set + * @return this builder + **/ + public Builder memorySizeInGBs(Double memorySizeInGBs) { + this.memorySizeInGBs = memorySizeInGBs; + this.__explicitlySet__.add("memorySizeInGBs"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM custom instance uploaded. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("imageId") + private String imageId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM custom instance uploaded. + * @param imageId the value to set + * @return this builder + **/ + public Builder imageId(String imageId) { + this.imageId = imageId; + this.__explicitlySet__.add("imageId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node on which VM instance should be launched. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serverId") + private String serverId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node on which VM instance should be launched. + * @param serverId the value to set + * @return this builder + **/ + public Builder serverId(String serverId) { + this.serverId = serverId; + this.__explicitlySet__.add("serverId"); + return this; + } + /** + * The current state of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private VmInstanceLifecycleState lifecycleState; + + /** + * The current state of the VM instance. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(VmInstanceLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Lifecycle state details of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Lifecycle state details of the VM instance. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The time that the VM instance was created. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that the VM instance was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time that the VM instance was last updated. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that the VM instance was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The domain name of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private String domainName; + + /** + * The domain name of the VM instance. + * @param domainName the value to set + * @return this builder + **/ + public Builder domainName(String domainName) { + this.domainName = domainName; + this.__explicitlySet__.add("domainName"); + return this; + } + /** + * The time zone to use for the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + /** + * The time zone to use for the VM instance. + * @param timeZone the value to set + * @return this builder + **/ + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM Network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworkId") + private String vmNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM Network. + * @param vmNetworkId the value to set + * @return this builder + **/ + public Builder vmNetworkId(String vmNetworkId) { + this.vmNetworkId = vmNetworkId; + this.__explicitlySet__.add("vmNetworkId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmInstanceSummary build() { + VmInstanceSummary model = + new VmInstanceSummary( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.infrastructureId, + this.cpusEnabled, + this.memorySizeInGBs, + this.definedTags, + this.freeformTags, + this.systemTags, + this.imageId, + this.serverId, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.domainName, + this.timeZone, + this.vmNetworkId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmInstanceSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("infrastructureId")) { + this.infrastructureId(model.getInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("cpusEnabled")) { + this.cpusEnabled(model.getCpusEnabled()); + } + if (model.wasPropertyExplicitlySet("memorySizeInGBs")) { + this.memorySizeInGBs(model.getMemorySizeInGBs()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("imageId")) { + this.imageId(model.getImageId()); + } + if (model.wasPropertyExplicitlySet("serverId")) { + this.serverId(model.getServerId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("domainName")) { + this.domainName(model.getDomainName()); + } + if (model.wasPropertyExplicitlySet("timeZone")) { + this.timeZone(model.getTimeZone()); + } + if (model.wasPropertyExplicitlySet("vmNetworkId")) { + this.vmNetworkId(model.getVmNetworkId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM + * instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VM + * instance. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * VM instance display name. This name does not have to be unique, and is changeable. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * VM instance description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * VM instance description. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureId") + private final String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @return the value + **/ + public String getInfrastructureId() { + return infrastructureId; + } + + /** + * The number of CPU cores enabled for each VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpusEnabled") + private final Integer cpusEnabled; + + /** + * The number of CPU cores enabled for each VM instance. + * @return the value + **/ + public Integer getCpusEnabled() { + return cpusEnabled; + } + + /** + * The memory to be allocated in GBs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") + private final Double memorySizeInGBs; + + /** + * The memory to be allocated in GBs. + * @return the value + **/ + public Double getMemorySizeInGBs() { + return memorySizeInGBs; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM custom instance uploaded. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("imageId") + private final String imageId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM custom instance uploaded. + * @return the value + **/ + public String getImageId() { + return imageId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node on which VM instance should be launched. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serverId") + private final String serverId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute node on which VM instance should be launched. + * @return the value + **/ + public String getServerId() { + return serverId; + } + + /** + * The current state of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final VmInstanceLifecycleState lifecycleState; + + /** + * The current state of the VM instance. + * @return the value + **/ + public VmInstanceLifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Lifecycle state details of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Lifecycle state details of the VM instance. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time that the VM instance was created. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that the VM instance was created. An RFC3339 formatted datetime string. + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time that the VM instance was last updated. An RFC3339 formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that the VM instance was last updated. An RFC3339 formatted datetime string. + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The domain name of the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private final String domainName; + + /** + * The domain name of the VM instance. + * @return the value + **/ + public String getDomainName() { + return domainName; + } + + /** + * The time zone to use for the VM instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private final String timeZone; + + /** + * The time zone to use for the VM instance. + * @return the value + **/ + public String getTimeZone() { + return timeZone; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM Network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vmNetworkId") + private final String vmNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM Network. + * @return the value + **/ + public String getVmNetworkId() { + return vmNetworkId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmInstanceSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(", cpusEnabled=").append(String.valueOf(this.cpusEnabled)); + sb.append(", memorySizeInGBs=").append(String.valueOf(this.memorySizeInGBs)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", imageId=").append(String.valueOf(this.imageId)); + sb.append(", serverId=").append(String.valueOf(this.serverId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", domainName=").append(String.valueOf(this.domainName)); + sb.append(", timeZone=").append(String.valueOf(this.timeZone)); + sb.append(", vmNetworkId=").append(String.valueOf(this.vmNetworkId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmInstanceSummary)) { + return false; + } + + VmInstanceSummary other = (VmInstanceSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.cpusEnabled, other.cpusEnabled) + && java.util.Objects.equals(this.memorySizeInGBs, other.memorySizeInGBs) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.imageId, other.imageId) + && java.util.Objects.equals(this.serverId, other.serverId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.domainName, other.domainName) + && java.util.Objects.equals(this.timeZone, other.timeZone) + && java.util.Objects.equals(this.vmNetworkId, other.vmNetworkId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.cpusEnabled == null ? 43 : this.cpusEnabled.hashCode()); + result = + (result * PRIME) + + (this.memorySizeInGBs == null ? 43 : this.memorySizeInGBs.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.imageId == null ? 43 : this.imageId.hashCode()); + result = (result * PRIME) + (this.serverId == null ? 43 : this.serverId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.domainName == null ? 43 : this.domainName.hashCode()); + result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); + result = (result * PRIME) + (this.vmNetworkId == null ? 43 : this.vmNetworkId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmNetworkConsumerType.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmNetworkConsumerType.java new file mode 100644 index 00000000000..5a5df3a99b9 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmNetworkConsumerType.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * VM network consumer type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public enum VmNetworkConsumerType { + Instance("INSTANCE"), + Cluster("CLUSTER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(VmNetworkConsumerType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VmNetworkConsumerType v : VmNetworkConsumerType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + VmNetworkConsumerType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VmNetworkConsumerType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'VmNetworkConsumerType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmNetworkDetails.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmNetworkDetails.java new file mode 100644 index 00000000000..40ef850dc5d --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/VmNetworkDetails.java @@ -0,0 +1,379 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Details of the client or backup networks in an VM cluster. + * + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VmNetworkDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VmNetworkDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "vlanId", + "networkType", + "netmask", + "gateway", + "domainName", + "prefix", + "nodes" + }) + public VmNetworkDetails( + String vlanId, + VmClusterNetworkType networkType, + String netmask, + String gateway, + String domainName, + String prefix, + java.util.List nodes) { + super(); + this.vlanId = vlanId; + this.networkType = networkType; + this.netmask = netmask; + this.gateway = gateway; + this.domainName = domainName; + this.prefix = prefix; + this.nodes = nodes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The network VLAN ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private String vlanId; + + /** + * The network VLAN ID. + * @param vlanId the value to set + * @return this builder + **/ + public Builder vlanId(String vlanId) { + this.vlanId = vlanId; + this.__explicitlySet__.add("vlanId"); + return this; + } + /** + * The network type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkType") + private VmClusterNetworkType networkType; + + /** + * The network type. + * @param networkType the value to set + * @return this builder + **/ + public Builder networkType(VmClusterNetworkType networkType) { + this.networkType = networkType; + this.__explicitlySet__.add("networkType"); + return this; + } + /** + * The network netmask. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private String netmask; + + /** + * The network netmask. + * @param netmask the value to set + * @return this builder + **/ + public Builder netmask(String netmask) { + this.netmask = netmask; + this.__explicitlySet__.add("netmask"); + return this; + } + /** + * The network gateway. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private String gateway; + + /** + * The network gateway. + * @param gateway the value to set + * @return this builder + **/ + public Builder gateway(String gateway) { + this.gateway = gateway; + this.__explicitlySet__.add("gateway"); + return this; + } + /** + * The network domain name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private String domainName; + + /** + * The network domain name. + * @param domainName the value to set + * @return this builder + **/ + public Builder domainName(String domainName) { + this.domainName = domainName; + this.__explicitlySet__.add("domainName"); + return this; + } + /** + * The network domain name prefix. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * The network domain name prefix. + * @param prefix the value to set + * @return this builder + **/ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + /** + * The list of node details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodes") + private java.util.List nodes; + + /** + * The list of node details. + * @param nodes the value to set + * @return this builder + **/ + public Builder nodes(java.util.List nodes) { + this.nodes = nodes; + this.__explicitlySet__.add("nodes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmNetworkDetails build() { + VmNetworkDetails model = + new VmNetworkDetails( + this.vlanId, + this.networkType, + this.netmask, + this.gateway, + this.domainName, + this.prefix, + this.nodes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmNetworkDetails model) { + if (model.wasPropertyExplicitlySet("vlanId")) { + this.vlanId(model.getVlanId()); + } + if (model.wasPropertyExplicitlySet("networkType")) { + this.networkType(model.getNetworkType()); + } + if (model.wasPropertyExplicitlySet("netmask")) { + this.netmask(model.getNetmask()); + } + if (model.wasPropertyExplicitlySet("gateway")) { + this.gateway(model.getGateway()); + } + if (model.wasPropertyExplicitlySet("domainName")) { + this.domainName(model.getDomainName()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("nodes")) { + this.nodes(model.getNodes()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The network VLAN ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vlanId") + private final String vlanId; + + /** + * The network VLAN ID. + * @return the value + **/ + public String getVlanId() { + return vlanId; + } + + /** + * The network type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkType") + private final VmClusterNetworkType networkType; + + /** + * The network type. + * @return the value + **/ + public VmClusterNetworkType getNetworkType() { + return networkType; + } + + /** + * The network netmask. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("netmask") + private final String netmask; + + /** + * The network netmask. + * @return the value + **/ + public String getNetmask() { + return netmask; + } + + /** + * The network gateway. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("gateway") + private final String gateway; + + /** + * The network gateway. + * @return the value + **/ + public String getGateway() { + return gateway; + } + + /** + * The network domain name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domainName") + private final String domainName; + + /** + * The network domain name. + * @return the value + **/ + public String getDomainName() { + return domainName; + } + + /** + * The network domain name prefix. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * The network domain name prefix. + * @return the value + **/ + public String getPrefix() { + return prefix; + } + + /** + * The list of node details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nodes") + private final java.util.List nodes; + + /** + * The list of node details. + * @return the value + **/ + public java.util.List getNodes() { + return nodes; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmNetworkDetails("); + sb.append("super=").append(super.toString()); + sb.append("vlanId=").append(String.valueOf(this.vlanId)); + sb.append(", networkType=").append(String.valueOf(this.networkType)); + sb.append(", netmask=").append(String.valueOf(this.netmask)); + sb.append(", gateway=").append(String.valueOf(this.gateway)); + sb.append(", domainName=").append(String.valueOf(this.domainName)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", nodes=").append(String.valueOf(this.nodes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmNetworkDetails)) { + return false; + } + + VmNetworkDetails other = (VmNetworkDetails) o; + return java.util.Objects.equals(this.vlanId, other.vlanId) + && java.util.Objects.equals(this.networkType, other.networkType) + && java.util.Objects.equals(this.netmask, other.netmask) + && java.util.Objects.equals(this.gateway, other.gateway) + && java.util.Objects.equals(this.domainName, other.domainName) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.nodes, other.nodes) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.hashCode()); + result = (result * PRIME) + (this.networkType == null ? 43 : this.networkType.hashCode()); + result = (result * PRIME) + (this.netmask == null ? 43 : this.netmask.hashCode()); + result = (result * PRIME) + (this.gateway == null ? 43 : this.gateway.hashCode()); + result = (result * PRIME) + (this.domainName == null ? 43 : this.domainName.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = (result * PRIME) + (this.nodes == null ? 43 : this.nodes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequest.java new file mode 100644 index 00000000000..6f81d704422 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequest.java @@ -0,0 +1,673 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * Work request details. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequest extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "opcRequestId", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished", + "freeformTags", + "definedTags", + "systemTags" + }) + public WorkRequest( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + String opcRequestId, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.opcRequestId = opcRequestId; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * Type of the work request. + * @param operationType the value to set + * @return this builder + **/ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** + * Status of current work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * Status of current work request. + * @param status the value to set + * @return this builder + **/ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The resources affected by the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources affected by the work request. + * @param resources the value to set + * @return this builder + **/ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * opc-request-id of the request that triggered the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("opcRequestId") + private String opcRequestId; + + /** + * opc-request-id of the request that triggered the work request. + * @param opcRequestId the value to set + * @return this builder + **/ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + this.__explicitlySet__.add("opcRequestId"); + return this; + } + /** + * Percentage of the request completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Percentage of the request completed. + * @param percentComplete the value to set + * @return this builder + **/ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time that the request was created, as described in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The date and time that the request was created, as described in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeAccepted the value to set + * @return this builder + **/ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * The date and time that the request started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + * section 14.29. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time that the request started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + * section 14.29. + * + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time that the request completed, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time that the request completed, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeFinished the value to set + * @return this builder + **/ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequest build() { + WorkRequest model = + new WorkRequest( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.opcRequestId, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequest model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("opcRequestId")) { + this.opcRequestId(model.getOpcRequestId()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Type of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * Type of the work request. + * @return the value + **/ + public OperationType getOperationType() { + return operationType; + } + + /** + * Status of current work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * Status of current work request. + * @return the value + **/ + public OperationStatus getStatus() { + return status; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The resources affected by the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources affected by the work request. + * @return the value + **/ + public java.util.List getResources() { + return resources; + } + + /** + * opc-request-id of the request that triggered the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("opcRequestId") + private final String opcRequestId; + + /** + * opc-request-id of the request that triggered the work request. + * @return the value + **/ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Percentage of the request completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Percentage of the request completed. + * @return the value + **/ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time that the request was created, as described in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The date and time that the request was created, as described in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + **/ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time that the request started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + * section 14.29. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time that the request started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + * section 14.29. + * + * @return the value + **/ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time that the request completed, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time that the request completed, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + **/ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code { "orcl-cloud": { "free-tier-retained": "true" } }} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequest("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequest)) { + return false; + } + + WorkRequest other = (WorkRequest) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestCollection.java new file mode 100644 index 00000000000..b843445d97a --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * A collection of Work request resources. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of Work request resources. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of Work request resources. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestCollection build() { + WorkRequestCollection model = new WorkRequestCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of Work request resources. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of Work request resources. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestCollection)) { + return false; + } + + WorkRequestCollection other = (WorkRequestCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestError.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestError.java new file mode 100644 index 00000000000..c1511fc4d1c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestError.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * An error encountered while executing a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequestError.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestError extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"code", "message", "timestamp"}) + public WorkRequestError(String code, String message, java.util.Date timestamp) { + super(); + this.code = code; + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + * + * @param code the value to set + * @return this builder + **/ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** + * A human-readable description of the issue encountered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human-readable description of the issue encountered. + * @param message the value to set + * @return this builder + **/ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * The time that the error occured. An RFC3339 standard formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The time that the error occured. An RFC3339 standard formatted datetime string. + * @param timestamp the value to set + * @return this builder + **/ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestError build() { + WorkRequestError model = new WorkRequestError(this.code, this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestError model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + * + * @return the value + **/ + public String getCode() { + return code; + } + + /** + * A human-readable description of the issue encountered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human-readable description of the issue encountered. + * @return the value + **/ + public String getMessage() { + return message; + } + + /** + * The time that the error occured. An RFC3339 standard formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The time that the error occured. An RFC3339 standard formatted datetime string. + * @return the value + **/ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestError("); + sb.append("super=").append(super.toString()); + sb.append("code=").append(String.valueOf(this.code)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestError)) { + return false; + } + + WorkRequestError other = (WorkRequestError) o; + return java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestErrorCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestErrorCollection.java new file mode 100644 index 00000000000..0d8c937d377 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestErrorCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * A collection of work request error resources. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestErrorCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestErrorCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestErrorCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of work request error resources. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work request error resources. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestErrorCollection build() { + WorkRequestErrorCollection model = new WorkRequestErrorCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestErrorCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of work request error resources. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work request error resources. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestErrorCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestErrorCollection)) { + return false; + } + + WorkRequestErrorCollection other = (WorkRequestErrorCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestLogEntry.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestLogEntry.java new file mode 100644 index 00000000000..fc5538e1131 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestLogEntry.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * A log message from the execution of a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntry.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestLogEntry extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"message", "timestamp"}) + public WorkRequestLogEntry(String message, java.util.Date timestamp) { + super(); + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Human-readable log message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * Human-readable log message. + * @param message the value to set + * @return this builder + **/ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * The time that the log message was written. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The time that the log message was written. An RFC3339 formatted datetime string. + * @param timestamp the value to set + * @return this builder + **/ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntry build() { + WorkRequestLogEntry model = new WorkRequestLogEntry(this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntry model) { + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Human-readable log message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * Human-readable log message. + * @return the value + **/ + public String getMessage() { + return message; + } + + /** + * The time that the log message was written. An RFC3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The time that the log message was written. An RFC3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntry("); + sb.append("super=").append(super.toString()); + sb.append("message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntry)) { + return false; + } + + WorkRequestLogEntry other = (WorkRequestLogEntry) o; + return java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestLogEntryCollection.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestLogEntryCollection.java new file mode 100644 index 00000000000..e51777a7368 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestLogEntryCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * A collection of work request log entry resources. + *
+ * 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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntryCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestLogEntryCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestLogEntryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of work request log entry resources. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work request log entry resources. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntryCollection build() { + WorkRequestLogEntryCollection model = new WorkRequestLogEntryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of work request log entry resources. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work request log entry resources. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntryCollection)) { + return false; + } + + WorkRequestLogEntryCollection other = (WorkRequestLogEntryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestResource.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestResource.java new file mode 100644 index 00000000000..bec17623f0e --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/model/WorkRequestResource.java @@ -0,0 +1,265 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.model; + +/** + * A resource created or operated on by a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__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: 20251101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestResource.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestResource extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"entityType", "actionType", "identifier", "entityUri"}) + public WorkRequestResource( + String entityType, ActionType actionType, String identifier, String entityUri) { + super(); + this.entityType = entityType; + this.actionType = actionType; + this.identifier = identifier; + this.entityUri = entityUri; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The type of resource being acted on by the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + /** + * The type of resource being acted on by the work request. + * @param entityType the value to set + * @return this builder + **/ + public Builder entityType(String entityType) { + this.entityType = entityType; + this.__explicitlySet__.add("entityType"); + return this; + } + /** + * The way in which this resource is affected by the work tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until + * work is complete for that resource. When work is complete, the state transitions to CREATED, UPDATED, + * or DELETED. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The way in which this resource is affected by the work tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until + * work is complete for that resource. When work is complete, the state transitions to CREATED, UPDATED, + * or DELETED. + * + * @param actionType the value to set + * @return this builder + **/ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource being acted on by the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource being acted on by the work request. + * @param identifier the value to set + * @return this builder + **/ + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + /** + * The URI path for GET REST attachment to the resource metadata. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private String entityUri; + + /** + * The URI path for GET REST attachment to the resource metadata. + * @param entityUri the value to set + * @return this builder + **/ + public Builder entityUri(String entityUri) { + this.entityUri = entityUri; + this.__explicitlySet__.add("entityUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestResource build() { + WorkRequestResource model = + new WorkRequestResource( + this.entityType, this.actionType, this.identifier, this.entityUri); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestResource model) { + if (model.wasPropertyExplicitlySet("entityType")) { + this.entityType(model.getEntityType()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("entityUri")) { + this.entityUri(model.getEntityUri()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The type of resource being acted on by the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private final String entityType; + + /** + * The type of resource being acted on by the work request. + * @return the value + **/ + public String getEntityType() { + return entityType; + } + + /** + * The way in which this resource is affected by the work tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until + * work is complete for that resource. When work is complete, the state transitions to CREATED, UPDATED, + * or DELETED. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The way in which this resource is affected by the work tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until + * work is complete for that resource. When work is complete, the state transitions to CREATED, UPDATED, + * or DELETED. + * + * @return the value + **/ + public ActionType getActionType() { + return actionType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource being acted on by the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private final String identifier; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource being acted on by the work request. + * @return the value + **/ + public String getIdentifier() { + return identifier; + } + + /** + * The URI path for GET REST attachment to the resource metadata. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private final String entityUri; + + /** + * The URI path for GET REST attachment to the resource metadata. + * @return the value + **/ + public String getEntityUri() { + return entityUri; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestResource("); + sb.append("super=").append(super.toString()); + sb.append("entityType=").append(String.valueOf(this.entityType)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", identifier=").append(String.valueOf(this.identifier)); + sb.append(", entityUri=").append(String.valueOf(this.entityUri)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestResource)) { + return false; + } + + WorkRequestResource other = (WorkRequestResource) o; + return java.util.Objects.equals(this.entityType, other.entityType) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.identifier, other.identifier) + && java.util.Objects.equals(this.entityUri, other.entityUri) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.entityType == null ? 43 : this.entityType.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.identifier == null ? 43 : this.identifier.hashCode()); + result = (result * PRIME) + (this.entityUri == null ? 43 : this.entityUri.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ActivateInfrastructureRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ActivateInfrastructureRequest.java new file mode 100644 index 00000000000..f06a976933f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ActivateInfrastructureRequest.java @@ -0,0 +1,369 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ActivateInfrastructureRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ActivateInfrastructureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.ActivateInfrastructureDetails> { + + /** + * The activation details for the Database Infrastructure. + */ + private com.oracle.bmc.datacc.model.ActivateInfrastructureDetails activateInfrastructureDetails; + + /** + * The activation details for the Database Infrastructure. + */ + public com.oracle.bmc.datacc.model.ActivateInfrastructureDetails + getActivateInfrastructureDetails() { + return activateInfrastructureDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.ActivateInfrastructureDetails getBody$() { + return activateInfrastructureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ActivateInfrastructureRequest, + com.oracle.bmc.datacc.model.ActivateInfrastructureDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The activation details for the Database Infrastructure. + */ + private com.oracle.bmc.datacc.model.ActivateInfrastructureDetails + activateInfrastructureDetails = null; + + /** + * The activation details for the Database Infrastructure. + * @param activateInfrastructureDetails the value to set + * @return this builder instance + */ + public Builder activateInfrastructureDetails( + com.oracle.bmc.datacc.model.ActivateInfrastructureDetails + activateInfrastructureDetails) { + this.activateInfrastructureDetails = activateInfrastructureDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ActivateInfrastructureRequest o) { + activateInfrastructureDetails(o.getActivateInfrastructureDetails()); + infrastructureId(o.getInfrastructureId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ActivateInfrastructureRequest 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 ActivateInfrastructureRequest + */ + public ActivateInfrastructureRequest build() { + ActivateInfrastructureRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.datacc.model.ActivateInfrastructureDetails body) { + activateInfrastructureDetails(body); + return this; + } + + /** + * Build the instance of ActivateInfrastructureRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ActivateInfrastructureRequest + */ + public ActivateInfrastructureRequest buildWithoutInvocationCallback() { + ActivateInfrastructureRequest request = new ActivateInfrastructureRequest(); + request.activateInfrastructureDetails = activateInfrastructureDetails; + request.infrastructureId = infrastructureId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ActivateInfrastructureRequest(activateInfrastructureDetails, infrastructureId, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .activateInfrastructureDetails(activateInfrastructureDetails) + .infrastructureId(infrastructureId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",activateInfrastructureDetails=") + .append(String.valueOf(this.activateInfrastructureDetails)); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateInfrastructureRequest)) { + return false; + } + + ActivateInfrastructureRequest other = (ActivateInfrastructureRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.activateInfrastructureDetails, other.activateInfrastructureDetails) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.activateInfrastructureDetails == null + ? 43 + : this.activateInfrastructureDetails.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeInfrastructureCompartmentRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeInfrastructureCompartmentRequest.java new file mode 100644 index 00000000000..84fa9a4ac49 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeInfrastructureCompartmentRequest.java @@ -0,0 +1,373 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ChangeInfrastructureCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeInfrastructureCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * Updated Compartment details. + */ + private com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails + changeInfrastructureCompartmentDetails; + + /** + * Updated Compartment details. + */ + public com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails + getChangeInfrastructureCompartmentDetails() { + return changeInfrastructureCompartmentDetails; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails getBody$() { + return changeInfrastructureCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeInfrastructureCompartmentRequest, + com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * Updated Compartment details. + */ + private com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails + changeInfrastructureCompartmentDetails = null; + + /** + * Updated Compartment details. + * @param changeInfrastructureCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeInfrastructureCompartmentDetails( + com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails + changeInfrastructureCompartmentDetails) { + this.changeInfrastructureCompartmentDetails = changeInfrastructureCompartmentDetails; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeInfrastructureCompartmentRequest o) { + infrastructureId(o.getInfrastructureId()); + changeInfrastructureCompartmentDetails(o.getChangeInfrastructureCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeInfrastructureCompartmentRequest 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 ChangeInfrastructureCompartmentRequest + */ + public ChangeInfrastructureCompartmentRequest build() { + ChangeInfrastructureCompartmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.datacc.model.ChangeInfrastructureCompartmentDetails body) { + changeInfrastructureCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeInfrastructureCompartmentRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ChangeInfrastructureCompartmentRequest + */ + public ChangeInfrastructureCompartmentRequest buildWithoutInvocationCallback() { + ChangeInfrastructureCompartmentRequest request = + new ChangeInfrastructureCompartmentRequest(); + request.infrastructureId = infrastructureId; + request.changeInfrastructureCompartmentDetails = changeInfrastructureCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ChangeInfrastructureCompartmentRequest(infrastructureId, changeInfrastructureCompartmentDetails, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .infrastructureId(infrastructureId) + .changeInfrastructureCompartmentDetails(changeInfrastructureCompartmentDetails) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",changeInfrastructureCompartmentDetails=") + .append(String.valueOf(this.changeInfrastructureCompartmentDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeInfrastructureCompartmentRequest)) { + return false; + } + + ChangeInfrastructureCompartmentRequest other = (ChangeInfrastructureCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals( + this.changeInfrastructureCompartmentDetails, + other.changeInfrastructureCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.changeInfrastructureCompartmentDetails == null + ? 43 + : this.changeInfrastructureCompartmentDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeVmClusterNetworkCompartmentRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeVmClusterNetworkCompartmentRequest.java new file mode 100644 index 00000000000..6ffec057213 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeVmClusterNetworkCompartmentRequest.java @@ -0,0 +1,379 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ChangeVmClusterNetworkCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeVmClusterNetworkCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + private String vmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + public String getVmClusterNetworkId() { + return vmClusterNetworkId; + } + /** + * Updated Compartment details. + */ + private com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails + changeVmClusterNetworkCompartmentDetails; + + /** + * Updated Compartment details. + */ + public com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails + getChangeVmClusterNetworkCompartmentDetails() { + return changeVmClusterNetworkCompartmentDetails; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails getBody$() { + return changeVmClusterNetworkCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeVmClusterNetworkCompartmentRequest, + com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + private String vmClusterNetworkId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + * @param vmClusterNetworkId the value to set + * @return this builder instance + */ + public Builder vmClusterNetworkId(String vmClusterNetworkId) { + this.vmClusterNetworkId = vmClusterNetworkId; + return this; + } + + /** + * Updated Compartment details. + */ + private com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails + changeVmClusterNetworkCompartmentDetails = null; + + /** + * Updated Compartment details. + * @param changeVmClusterNetworkCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeVmClusterNetworkCompartmentDetails( + com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails + changeVmClusterNetworkCompartmentDetails) { + this.changeVmClusterNetworkCompartmentDetails = + changeVmClusterNetworkCompartmentDetails; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeVmClusterNetworkCompartmentRequest o) { + vmClusterNetworkId(o.getVmClusterNetworkId()); + changeVmClusterNetworkCompartmentDetails( + o.getChangeVmClusterNetworkCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeVmClusterNetworkCompartmentRequest 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 ChangeVmClusterNetworkCompartmentRequest + */ + public ChangeVmClusterNetworkCompartmentRequest build() { + ChangeVmClusterNetworkCompartmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.datacc.model.ChangeVmClusterNetworkCompartmentDetails body) { + changeVmClusterNetworkCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeVmClusterNetworkCompartmentRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ChangeVmClusterNetworkCompartmentRequest + */ + public ChangeVmClusterNetworkCompartmentRequest buildWithoutInvocationCallback() { + ChangeVmClusterNetworkCompartmentRequest request = + new ChangeVmClusterNetworkCompartmentRequest(); + request.vmClusterNetworkId = vmClusterNetworkId; + request.changeVmClusterNetworkCompartmentDetails = + changeVmClusterNetworkCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ChangeVmClusterNetworkCompartmentRequest(vmClusterNetworkId, changeVmClusterNetworkCompartmentDetails, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .vmClusterNetworkId(vmClusterNetworkId) + .changeVmClusterNetworkCompartmentDetails(changeVmClusterNetworkCompartmentDetails) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); + sb.append(",changeVmClusterNetworkCompartmentDetails=") + .append(String.valueOf(this.changeVmClusterNetworkCompartmentDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeVmClusterNetworkCompartmentRequest)) { + return false; + } + + ChangeVmClusterNetworkCompartmentRequest other = + (ChangeVmClusterNetworkCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) + && java.util.Objects.equals( + this.changeVmClusterNetworkCompartmentDetails, + other.changeVmClusterNetworkCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.vmClusterNetworkId == null + ? 43 + : this.vmClusterNetworkId.hashCode()); + result = + (result * PRIME) + + (this.changeVmClusterNetworkCompartmentDetails == null + ? 43 + : this.changeVmClusterNetworkCompartmentDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeVmInstanceCompartmentRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeVmInstanceCompartmentRequest.java new file mode 100644 index 00000000000..0c194f7d3cc --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ChangeVmInstanceCompartmentRequest.java @@ -0,0 +1,369 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ChangeVmInstanceCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeVmInstanceCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * Updated Compartment details. + */ + private com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails + changeVmInstanceCompartmentDetails; + + /** + * Updated Compartment details. + */ + public com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails + getChangeVmInstanceCompartmentDetails() { + return changeVmInstanceCompartmentDetails; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails getBody$() { + return changeVmInstanceCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeVmInstanceCompartmentRequest, + com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * Updated Compartment details. + */ + private com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails + changeVmInstanceCompartmentDetails = null; + + /** + * Updated Compartment details. + * @param changeVmInstanceCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeVmInstanceCompartmentDetails( + com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails + changeVmInstanceCompartmentDetails) { + this.changeVmInstanceCompartmentDetails = changeVmInstanceCompartmentDetails; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeVmInstanceCompartmentRequest o) { + vmInstanceId(o.getVmInstanceId()); + changeVmInstanceCompartmentDetails(o.getChangeVmInstanceCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeVmInstanceCompartmentRequest 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 ChangeVmInstanceCompartmentRequest + */ + public ChangeVmInstanceCompartmentRequest build() { + ChangeVmInstanceCompartmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.datacc.model.ChangeVmInstanceCompartmentDetails body) { + changeVmInstanceCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeVmInstanceCompartmentRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ChangeVmInstanceCompartmentRequest + */ + public ChangeVmInstanceCompartmentRequest buildWithoutInvocationCallback() { + ChangeVmInstanceCompartmentRequest request = new ChangeVmInstanceCompartmentRequest(); + request.vmInstanceId = vmInstanceId; + request.changeVmInstanceCompartmentDetails = changeVmInstanceCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ChangeVmInstanceCompartmentRequest(vmInstanceId, changeVmInstanceCompartmentDetails, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .vmInstanceId(vmInstanceId) + .changeVmInstanceCompartmentDetails(changeVmInstanceCompartmentDetails) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",changeVmInstanceCompartmentDetails=") + .append(String.valueOf(this.changeVmInstanceCompartmentDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeVmInstanceCompartmentRequest)) { + return false; + } + + ChangeVmInstanceCompartmentRequest other = (ChangeVmInstanceCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals( + this.changeVmInstanceCompartmentDetails, + other.changeVmInstanceCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = + (result * PRIME) + + (this.changeVmInstanceCompartmentDetails == null + ? 43 + : this.changeVmInstanceCompartmentDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateInfrastructureRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateInfrastructureRequest.java new file mode 100644 index 00000000000..81cdce5b16b --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateInfrastructureRequest.java @@ -0,0 +1,283 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use CreateInfrastructureRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateInfrastructureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.CreateInfrastructureDetails> { + + /** + * New Database Infrastructure details. + */ + private com.oracle.bmc.datacc.model.CreateInfrastructureDetails createInfrastructureDetails; + + /** + * New Database Infrastructure details. + */ + public com.oracle.bmc.datacc.model.CreateInfrastructureDetails + getCreateInfrastructureDetails() { + return createInfrastructureDetails; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.CreateInfrastructureDetails getBody$() { + return createInfrastructureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateInfrastructureRequest, + com.oracle.bmc.datacc.model.CreateInfrastructureDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * New Database Infrastructure details. + */ + private com.oracle.bmc.datacc.model.CreateInfrastructureDetails + createInfrastructureDetails = null; + + /** + * New Database Infrastructure details. + * @param createInfrastructureDetails the value to set + * @return this builder instance + */ + public Builder createInfrastructureDetails( + com.oracle.bmc.datacc.model.CreateInfrastructureDetails + createInfrastructureDetails) { + this.createInfrastructureDetails = createInfrastructureDetails; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateInfrastructureRequest o) { + createInfrastructureDetails(o.getCreateInfrastructureDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateInfrastructureRequest 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 CreateInfrastructureRequest + */ + public CreateInfrastructureRequest build() { + CreateInfrastructureRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.datacc.model.CreateInfrastructureDetails body) { + createInfrastructureDetails(body); + return this; + } + + /** + * Build the instance of CreateInfrastructureRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateInfrastructureRequest + */ + public CreateInfrastructureRequest buildWithoutInvocationCallback() { + CreateInfrastructureRequest request = new CreateInfrastructureRequest(); + request.createInfrastructureDetails = createInfrastructureDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateInfrastructureRequest(createInfrastructureDetails, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createInfrastructureDetails(createInfrastructureDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createInfrastructureDetails=") + .append(String.valueOf(this.createInfrastructureDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateInfrastructureRequest)) { + return false; + } + + CreateInfrastructureRequest other = (CreateInfrastructureRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createInfrastructureDetails, other.createInfrastructureDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createInfrastructureDetails == null + ? 43 + : this.createInfrastructureDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateVmClusterNetworkRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateVmClusterNetworkRequest.java new file mode 100644 index 00000000000..535a2e86418 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateVmClusterNetworkRequest.java @@ -0,0 +1,283 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use CreateVmClusterNetworkRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateVmClusterNetworkRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails> { + + /** + * New VM cluster network details. + */ + private com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails createVmClusterNetworkDetails; + + /** + * New VM cluster network details. + */ + public com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails + getCreateVmClusterNetworkDetails() { + return createVmClusterNetworkDetails; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails getBody$() { + return createVmClusterNetworkDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateVmClusterNetworkRequest, + com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * New VM cluster network details. + */ + private com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails + createVmClusterNetworkDetails = null; + + /** + * New VM cluster network details. + * @param createVmClusterNetworkDetails the value to set + * @return this builder instance + */ + public Builder createVmClusterNetworkDetails( + com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails + createVmClusterNetworkDetails) { + this.createVmClusterNetworkDetails = createVmClusterNetworkDetails; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateVmClusterNetworkRequest o) { + createVmClusterNetworkDetails(o.getCreateVmClusterNetworkDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateVmClusterNetworkRequest 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 CreateVmClusterNetworkRequest + */ + public CreateVmClusterNetworkRequest build() { + CreateVmClusterNetworkRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails body) { + createVmClusterNetworkDetails(body); + return this; + } + + /** + * Build the instance of CreateVmClusterNetworkRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateVmClusterNetworkRequest + */ + public CreateVmClusterNetworkRequest buildWithoutInvocationCallback() { + CreateVmClusterNetworkRequest request = new CreateVmClusterNetworkRequest(); + request.createVmClusterNetworkDetails = createVmClusterNetworkDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateVmClusterNetworkRequest(createVmClusterNetworkDetails, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createVmClusterNetworkDetails(createVmClusterNetworkDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createVmClusterNetworkDetails=") + .append(String.valueOf(this.createVmClusterNetworkDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVmClusterNetworkRequest)) { + return false; + } + + CreateVmClusterNetworkRequest other = (CreateVmClusterNetworkRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createVmClusterNetworkDetails, other.createVmClusterNetworkDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createVmClusterNetworkDetails == null + ? 43 + : this.createVmClusterNetworkDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateVmInstanceRequest.java new file mode 100644 index 00000000000..101189e5dff --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/CreateVmInstanceRequest.java @@ -0,0 +1,278 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use CreateVmInstanceRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateVmInstanceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.CreateVmInstanceDetails> { + + /** + * New VM instance details. + */ + private com.oracle.bmc.datacc.model.CreateVmInstanceDetails createVmInstanceDetails; + + /** + * New VM instance details. + */ + public com.oracle.bmc.datacc.model.CreateVmInstanceDetails getCreateVmInstanceDetails() { + return createVmInstanceDetails; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.CreateVmInstanceDetails getBody$() { + return createVmInstanceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateVmInstanceRequest, com.oracle.bmc.datacc.model.CreateVmInstanceDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * New VM instance details. + */ + private com.oracle.bmc.datacc.model.CreateVmInstanceDetails createVmInstanceDetails = null; + + /** + * New VM instance details. + * @param createVmInstanceDetails the value to set + * @return this builder instance + */ + public Builder createVmInstanceDetails( + com.oracle.bmc.datacc.model.CreateVmInstanceDetails createVmInstanceDetails) { + this.createVmInstanceDetails = createVmInstanceDetails; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateVmInstanceRequest o) { + createVmInstanceDetails(o.getCreateVmInstanceDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateVmInstanceRequest 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 CreateVmInstanceRequest + */ + public CreateVmInstanceRequest build() { + CreateVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.datacc.model.CreateVmInstanceDetails body) { + createVmInstanceDetails(body); + return this; + } + + /** + * Build the instance of CreateVmInstanceRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateVmInstanceRequest + */ + public CreateVmInstanceRequest buildWithoutInvocationCallback() { + CreateVmInstanceRequest request = new CreateVmInstanceRequest(); + request.createVmInstanceDetails = createVmInstanceDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateVmInstanceRequest(createVmInstanceDetails, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createVmInstanceDetails(createVmInstanceDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createVmInstanceDetails=").append(String.valueOf(this.createVmInstanceDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVmInstanceRequest)) { + return false; + } + + CreateVmInstanceRequest other = (CreateVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createVmInstanceDetails, other.createVmInstanceDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createVmInstanceDetails == null + ? 43 + : this.createVmInstanceDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteInfrastructureRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteInfrastructureRequest.java new file mode 100644 index 00000000000..605d6202fa1 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteInfrastructureRequest.java @@ -0,0 +1,300 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use DeleteInfrastructureRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteInfrastructureRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * When set to {@code true}, infrastructure will be deleted even if it has dependent resources. + * If set to {@code false}, deletion will fail if the infrastructure has dependent resources. + * Default is {@code false}. + * + */ + private Boolean isForceDeleteInfrastructure; + + /** + * When set to {@code true}, infrastructure will be deleted even if it has dependent resources. + * If set to {@code false}, deletion will fail if the infrastructure has dependent resources. + * Default is {@code false}. + * + */ + public Boolean getIsForceDeleteInfrastructure() { + return isForceDeleteInfrastructure; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteInfrastructureRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * When set to {@code true}, infrastructure will be deleted even if it has dependent resources. + * If set to {@code false}, deletion will fail if the infrastructure has dependent resources. + * Default is {@code false}. + * + */ + private Boolean isForceDeleteInfrastructure = null; + + /** + * When set to {@code true}, infrastructure will be deleted even if it has dependent resources. + * If set to {@code false}, deletion will fail if the infrastructure has dependent resources. + * Default is {@code false}. + * + * @param isForceDeleteInfrastructure the value to set + * @return this builder instance + */ + public Builder isForceDeleteInfrastructure(Boolean isForceDeleteInfrastructure) { + this.isForceDeleteInfrastructure = isForceDeleteInfrastructure; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteInfrastructureRequest o) { + infrastructureId(o.getInfrastructureId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isForceDeleteInfrastructure(o.getIsForceDeleteInfrastructure()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteInfrastructureRequest 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 DeleteInfrastructureRequest + */ + public DeleteInfrastructureRequest build() { + DeleteInfrastructureRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteInfrastructureRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteInfrastructureRequest + */ + public DeleteInfrastructureRequest buildWithoutInvocationCallback() { + DeleteInfrastructureRequest request = new DeleteInfrastructureRequest(); + request.infrastructureId = infrastructureId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isForceDeleteInfrastructure = isForceDeleteInfrastructure; + return request; + // new DeleteInfrastructureRequest(infrastructureId, ifMatch, opcRequestId, isForceDeleteInfrastructure); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .infrastructureId(infrastructureId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isForceDeleteInfrastructure(isForceDeleteInfrastructure); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isForceDeleteInfrastructure=") + .append(String.valueOf(this.isForceDeleteInfrastructure)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteInfrastructureRequest)) { + return false; + } + + DeleteInfrastructureRequest other = (DeleteInfrastructureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.isForceDeleteInfrastructure, other.isForceDeleteInfrastructure); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.isForceDeleteInfrastructure == null + ? 43 + : this.isForceDeleteInfrastructure.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteVmClusterNetworkRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteVmClusterNetworkRequest.java new file mode 100644 index 00000000000..a4d03b5ac32 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteVmClusterNetworkRequest.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use DeleteVmClusterNetworkRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteVmClusterNetworkRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + private String vmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + public String getVmClusterNetworkId() { + return vmClusterNetworkId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteVmClusterNetworkRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + private String vmClusterNetworkId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + * @param vmClusterNetworkId the value to set + * @return this builder instance + */ + public Builder vmClusterNetworkId(String vmClusterNetworkId) { + this.vmClusterNetworkId = vmClusterNetworkId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteVmClusterNetworkRequest o) { + vmClusterNetworkId(o.getVmClusterNetworkId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteVmClusterNetworkRequest 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 DeleteVmClusterNetworkRequest + */ + public DeleteVmClusterNetworkRequest build() { + DeleteVmClusterNetworkRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteVmClusterNetworkRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteVmClusterNetworkRequest + */ + public DeleteVmClusterNetworkRequest buildWithoutInvocationCallback() { + DeleteVmClusterNetworkRequest request = new DeleteVmClusterNetworkRequest(); + request.vmClusterNetworkId = vmClusterNetworkId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteVmClusterNetworkRequest(vmClusterNetworkId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .vmClusterNetworkId(vmClusterNetworkId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteVmClusterNetworkRequest)) { + return false; + } + + DeleteVmClusterNetworkRequest other = (DeleteVmClusterNetworkRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.vmClusterNetworkId == null + ? 43 + : this.vmClusterNetworkId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteVmInstanceRequest.java new file mode 100644 index 00000000000..aa368deabd8 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DeleteVmInstanceRequest.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use DeleteVmInstanceRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteVmInstanceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteVmInstanceRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteVmInstanceRequest o) { + vmInstanceId(o.getVmInstanceId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteVmInstanceRequest 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 DeleteVmInstanceRequest + */ + public DeleteVmInstanceRequest build() { + DeleteVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteVmInstanceRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteVmInstanceRequest + */ + public DeleteVmInstanceRequest buildWithoutInvocationCallback() { + DeleteVmInstanceRequest request = new DeleteVmInstanceRequest(); + request.vmInstanceId = vmInstanceId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteVmInstanceRequest(vmInstanceId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().vmInstanceId(vmInstanceId).ifMatch(ifMatch).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteVmInstanceRequest)) { + return false; + } + + DeleteVmInstanceRequest other = (DeleteVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DownloadInfrastructureConfigFileRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DownloadInfrastructureConfigFileRequest.java new file mode 100644 index 00000000000..26316b5b8d3 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DownloadInfrastructureConfigFileRequest.java @@ -0,0 +1,197 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use DownloadInfrastructureConfigFileRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DownloadInfrastructureConfigFileRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DownloadInfrastructureConfigFileRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DownloadInfrastructureConfigFileRequest o) { + infrastructureId(o.getInfrastructureId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DownloadInfrastructureConfigFileRequest 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 DownloadInfrastructureConfigFileRequest + */ + public DownloadInfrastructureConfigFileRequest build() { + DownloadInfrastructureConfigFileRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DownloadInfrastructureConfigFileRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DownloadInfrastructureConfigFileRequest + */ + public DownloadInfrastructureConfigFileRequest buildWithoutInvocationCallback() { + DownloadInfrastructureConfigFileRequest request = + new DownloadInfrastructureConfigFileRequest(); + request.infrastructureId = infrastructureId; + request.opcRequestId = opcRequestId; + return request; + // new DownloadInfrastructureConfigFileRequest(infrastructureId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().infrastructureId(infrastructureId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DownloadInfrastructureConfigFileRequest)) { + return false; + } + + DownloadInfrastructureConfigFileRequest other = (DownloadInfrastructureConfigFileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DownloadInfrastructureValidationScriptRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DownloadInfrastructureValidationScriptRequest.java new file mode 100644 index 00000000000..b4469054281 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/DownloadInfrastructureValidationScriptRequest.java @@ -0,0 +1,199 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use DownloadInfrastructureValidationScriptRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DownloadInfrastructureValidationScriptRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DownloadInfrastructureValidationScriptRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DownloadInfrastructureValidationScriptRequest o) { + infrastructureId(o.getInfrastructureId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DownloadInfrastructureValidationScriptRequest 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 DownloadInfrastructureValidationScriptRequest + */ + public DownloadInfrastructureValidationScriptRequest build() { + DownloadInfrastructureValidationScriptRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DownloadInfrastructureValidationScriptRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DownloadInfrastructureValidationScriptRequest + */ + public DownloadInfrastructureValidationScriptRequest buildWithoutInvocationCallback() { + DownloadInfrastructureValidationScriptRequest request = + new DownloadInfrastructureValidationScriptRequest(); + request.infrastructureId = infrastructureId; + request.opcRequestId = opcRequestId; + return request; + // new DownloadInfrastructureValidationScriptRequest(infrastructureId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().infrastructureId(infrastructureId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DownloadInfrastructureValidationScriptRequest)) { + return false; + } + + DownloadInfrastructureValidationScriptRequest other = + (DownloadInfrastructureValidationScriptRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GenerateRecommendedVmClusterNetworkRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GenerateRecommendedVmClusterNetworkRequest.java new file mode 100644 index 00000000000..4f27440a97d --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GenerateRecommendedVmClusterNetworkRequest.java @@ -0,0 +1,344 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use GenerateRecommendedVmClusterNetworkRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GenerateRecommendedVmClusterNetworkRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails> { + + /** + * Request to generate a recommended VM cluster network details configuration. + */ + private com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails + generateRecommendedVmClusterNetworkDetails; + + /** + * Request to generate a recommended VM cluster network details configuration. + */ + public com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails + getGenerateRecommendedVmClusterNetworkDetails() { + return generateRecommendedVmClusterNetworkDetails; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails getBody$() { + return generateRecommendedVmClusterNetworkDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GenerateRecommendedVmClusterNetworkRequest, + com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Request to generate a recommended VM cluster network details configuration. + */ + private com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails + generateRecommendedVmClusterNetworkDetails = null; + + /** + * Request to generate a recommended VM cluster network details configuration. + * @param generateRecommendedVmClusterNetworkDetails the value to set + * @return this builder instance + */ + public Builder generateRecommendedVmClusterNetworkDetails( + com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails + generateRecommendedVmClusterNetworkDetails) { + this.generateRecommendedVmClusterNetworkDetails = + generateRecommendedVmClusterNetworkDetails; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the 'if-match' parameter to the value of the + * Etag from a previous GET or POST response for that resource. + * The resource is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(GenerateRecommendedVmClusterNetworkRequest o) { + generateRecommendedVmClusterNetworkDetails( + o.getGenerateRecommendedVmClusterNetworkDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GenerateRecommendedVmClusterNetworkRequest 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 GenerateRecommendedVmClusterNetworkRequest + */ + public GenerateRecommendedVmClusterNetworkRequest build() { + GenerateRecommendedVmClusterNetworkRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.datacc.model.GenerateRecommendedVmClusterNetworkDetails body) { + generateRecommendedVmClusterNetworkDetails(body); + return this; + } + + /** + * Build the instance of GenerateRecommendedVmClusterNetworkRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GenerateRecommendedVmClusterNetworkRequest + */ + public GenerateRecommendedVmClusterNetworkRequest buildWithoutInvocationCallback() { + GenerateRecommendedVmClusterNetworkRequest request = + new GenerateRecommendedVmClusterNetworkRequest(); + request.generateRecommendedVmClusterNetworkDetails = + generateRecommendedVmClusterNetworkDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new GenerateRecommendedVmClusterNetworkRequest(generateRecommendedVmClusterNetworkDetails, opcRetryToken, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .generateRecommendedVmClusterNetworkDetails( + generateRecommendedVmClusterNetworkDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",generateRecommendedVmClusterNetworkDetails=") + .append(String.valueOf(this.generateRecommendedVmClusterNetworkDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateRecommendedVmClusterNetworkRequest)) { + return false; + } + + GenerateRecommendedVmClusterNetworkRequest other = + (GenerateRecommendedVmClusterNetworkRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.generateRecommendedVmClusterNetworkDetails, + other.generateRecommendedVmClusterNetworkDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.generateRecommendedVmClusterNetworkDetails == null + ? 43 + : this.generateRecommendedVmClusterNetworkDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetInfrastructureRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetInfrastructureRequest.java new file mode 100644 index 00000000000..b33a4caab3a --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetInfrastructureRequest.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use GetInfrastructureRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetInfrastructureRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetInfrastructureRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetInfrastructureRequest o) { + infrastructureId(o.getInfrastructureId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetInfrastructureRequest 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 GetInfrastructureRequest + */ + public GetInfrastructureRequest build() { + GetInfrastructureRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetInfrastructureRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetInfrastructureRequest + */ + public GetInfrastructureRequest buildWithoutInvocationCallback() { + GetInfrastructureRequest request = new GetInfrastructureRequest(); + request.infrastructureId = infrastructureId; + request.opcRequestId = opcRequestId; + return request; + // new GetInfrastructureRequest(infrastructureId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().infrastructureId(infrastructureId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetInfrastructureRequest)) { + return false; + } + + GetInfrastructureRequest other = (GetInfrastructureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetInfrastructureScaleOptionRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetInfrastructureScaleOptionRequest.java new file mode 100644 index 00000000000..475fbbb45ff --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetInfrastructureScaleOptionRequest.java @@ -0,0 +1,196 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use GetInfrastructureScaleOptionRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetInfrastructureScaleOptionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetInfrastructureScaleOptionRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetInfrastructureScaleOptionRequest o) { + infrastructureId(o.getInfrastructureId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetInfrastructureScaleOptionRequest 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 GetInfrastructureScaleOptionRequest + */ + public GetInfrastructureScaleOptionRequest build() { + GetInfrastructureScaleOptionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetInfrastructureScaleOptionRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetInfrastructureScaleOptionRequest + */ + public GetInfrastructureScaleOptionRequest buildWithoutInvocationCallback() { + GetInfrastructureScaleOptionRequest request = new GetInfrastructureScaleOptionRequest(); + request.infrastructureId = infrastructureId; + request.opcRequestId = opcRequestId; + return request; + // new GetInfrastructureScaleOptionRequest(infrastructureId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().infrastructureId(infrastructureId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetInfrastructureScaleOptionRequest)) { + return false; + } + + GetInfrastructureScaleOptionRequest other = (GetInfrastructureScaleOptionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetMaintenanceExecutionRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetMaintenanceExecutionRequest.java new file mode 100644 index 00000000000..cbd8657d441 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetMaintenanceExecutionRequest.java @@ -0,0 +1,201 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use GetMaintenanceExecutionRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetMaintenanceExecutionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The maintenance execution OCID. + */ + private String maintenanceExecutionId; + + /** + * The maintenance execution OCID. + */ + public String getMaintenanceExecutionId() { + return maintenanceExecutionId; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetMaintenanceExecutionRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The maintenance execution OCID. + */ + private String maintenanceExecutionId = null; + + /** + * The maintenance execution OCID. + * @param maintenanceExecutionId the value to set + * @return this builder instance + */ + public Builder maintenanceExecutionId(String maintenanceExecutionId) { + this.maintenanceExecutionId = maintenanceExecutionId; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetMaintenanceExecutionRequest o) { + maintenanceExecutionId(o.getMaintenanceExecutionId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetMaintenanceExecutionRequest 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 GetMaintenanceExecutionRequest + */ + public GetMaintenanceExecutionRequest build() { + GetMaintenanceExecutionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetMaintenanceExecutionRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetMaintenanceExecutionRequest + */ + public GetMaintenanceExecutionRequest buildWithoutInvocationCallback() { + GetMaintenanceExecutionRequest request = new GetMaintenanceExecutionRequest(); + request.maintenanceExecutionId = maintenanceExecutionId; + request.opcRequestId = opcRequestId; + return request; + // new GetMaintenanceExecutionRequest(maintenanceExecutionId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .maintenanceExecutionId(maintenanceExecutionId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",maintenanceExecutionId=").append(String.valueOf(this.maintenanceExecutionId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetMaintenanceExecutionRequest)) { + return false; + } + + GetMaintenanceExecutionRequest other = (GetMaintenanceExecutionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.maintenanceExecutionId, other.maintenanceExecutionId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.maintenanceExecutionId == null + ? 43 + : this.maintenanceExecutionId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetMaintenanceRunRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetMaintenanceRunRequest.java new file mode 100644 index 00000000000..fa75e4abf6b --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetMaintenanceRunRequest.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use GetMaintenanceRunRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetMaintenanceRunRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The maintenance run OCID. + */ + private String maintenanceRunId; + + /** + * The maintenance run OCID. + */ + public String getMaintenanceRunId() { + return maintenanceRunId; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetMaintenanceRunRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The maintenance run OCID. + */ + private String maintenanceRunId = null; + + /** + * The maintenance run OCID. + * @param maintenanceRunId the value to set + * @return this builder instance + */ + public Builder maintenanceRunId(String maintenanceRunId) { + this.maintenanceRunId = maintenanceRunId; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetMaintenanceRunRequest o) { + maintenanceRunId(o.getMaintenanceRunId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetMaintenanceRunRequest 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 GetMaintenanceRunRequest + */ + public GetMaintenanceRunRequest build() { + GetMaintenanceRunRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetMaintenanceRunRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetMaintenanceRunRequest + */ + public GetMaintenanceRunRequest buildWithoutInvocationCallback() { + GetMaintenanceRunRequest request = new GetMaintenanceRunRequest(); + request.maintenanceRunId = maintenanceRunId; + request.opcRequestId = opcRequestId; + return request; + // new GetMaintenanceRunRequest(maintenanceRunId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().maintenanceRunId(maintenanceRunId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",maintenanceRunId=").append(String.valueOf(this.maintenanceRunId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetMaintenanceRunRequest)) { + return false; + } + + GetMaintenanceRunRequest other = (GetMaintenanceRunRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.maintenanceRunId, other.maintenanceRunId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.maintenanceRunId == null ? 43 : this.maintenanceRunId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetVmClusterNetworkRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetVmClusterNetworkRequest.java new file mode 100644 index 00000000000..35786d762ed --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetVmClusterNetworkRequest.java @@ -0,0 +1,197 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use GetVmClusterNetworkRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetVmClusterNetworkRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + private String vmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + public String getVmClusterNetworkId() { + return vmClusterNetworkId; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetVmClusterNetworkRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + private String vmClusterNetworkId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + * @param vmClusterNetworkId the value to set + * @return this builder instance + */ + public Builder vmClusterNetworkId(String vmClusterNetworkId) { + this.vmClusterNetworkId = vmClusterNetworkId; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetVmClusterNetworkRequest o) { + vmClusterNetworkId(o.getVmClusterNetworkId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetVmClusterNetworkRequest 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 GetVmClusterNetworkRequest + */ + public GetVmClusterNetworkRequest build() { + GetVmClusterNetworkRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetVmClusterNetworkRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetVmClusterNetworkRequest + */ + public GetVmClusterNetworkRequest buildWithoutInvocationCallback() { + GetVmClusterNetworkRequest request = new GetVmClusterNetworkRequest(); + request.vmClusterNetworkId = vmClusterNetworkId; + request.opcRequestId = opcRequestId; + return request; + // new GetVmClusterNetworkRequest(vmClusterNetworkId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().vmClusterNetworkId(vmClusterNetworkId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetVmClusterNetworkRequest)) { + return false; + } + + GetVmClusterNetworkRequest other = (GetVmClusterNetworkRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.vmClusterNetworkId == null + ? 43 + : this.vmClusterNetworkId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetVmInstanceRequest.java new file mode 100644 index 00000000000..bca0b35f163 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetVmInstanceRequest.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use GetVmInstanceRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetVmInstanceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetVmInstanceRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetVmInstanceRequest o) { + vmInstanceId(o.getVmInstanceId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetVmInstanceRequest 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 GetVmInstanceRequest + */ + public GetVmInstanceRequest build() { + GetVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetVmInstanceRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetVmInstanceRequest + */ + public GetVmInstanceRequest buildWithoutInvocationCallback() { + GetVmInstanceRequest request = new GetVmInstanceRequest(); + request.vmInstanceId = vmInstanceId; + request.opcRequestId = opcRequestId; + return request; + // new GetVmInstanceRequest(vmInstanceId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().vmInstanceId(vmInstanceId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetVmInstanceRequest)) { + return false; + } + + GetVmInstanceRequest other = (GetVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetWorkRequestRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetWorkRequestRequest.java new file mode 100644 index 00000000000..873d645f1ef --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/GetWorkRequestRequest.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use GetWorkRequestRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetWorkRequestRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetWorkRequestRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetWorkRequestRequest 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 GetWorkRequestRequest + */ + public GetWorkRequestRequest build() { + GetWorkRequestRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetWorkRequestRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetWorkRequestRequest + */ + public GetWorkRequestRequest buildWithoutInvocationCallback() { + GetWorkRequestRequest request = new GetWorkRequestRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + return request; + // new GetWorkRequestRequest(workRequestId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().workRequestId(workRequestId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestRequest)) { + return false; + } + + GetWorkRequestRequest other = (GetWorkRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListInfrastructuresRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListInfrastructuresRequest.java new file mode 100644 index 00000000000..99c589910ca --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListInfrastructuresRequest.java @@ -0,0 +1,463 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ListInfrastructuresRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListInfrastructuresRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + private String displayName; + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** + * A filter to return resources that match the specified lifecycle state. + */ + private java.util.List lifecycleState; + + /** + * A filter to return resources that match the specified lifecycle state. + */ + public java.util.List + getLifecycleState() { + return lifecycleState; + } + /** + * The maximum number of items to return in a page. + */ + private Integer limit; + + /** + * The maximum number of items to return in a page. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + public com.oracle.bmc.datacc.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + private SortBy sortBy; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + BuildIdentifier("buildIdentifier"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListInfrastructuresRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + private String displayName = null; + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * A filter to return resources that match the specified lifecycle state. + */ + private java.util.List + lifecycleState = null; + + /** + * A filter to return resources that match the specified lifecycle state. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + java.util.List + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * Singular setter. A filter to return resources that match the specified lifecycle state. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder lifecycleState(InfrastructureLifecycleState singularValue) { + return this.lifecycleState(java.util.Arrays.asList(singularValue)); + } + + /** + * The maximum number of items to return in a page. + */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder = null; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.datacc.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + private SortBy sortBy = null; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListInfrastructuresRequest o) { + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + 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 ListInfrastructuresRequest 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 ListInfrastructuresRequest + */ + public ListInfrastructuresRequest build() { + ListInfrastructuresRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListInfrastructuresRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListInfrastructuresRequest + */ + public ListInfrastructuresRequest buildWithoutInvocationCallback() { + ListInfrastructuresRequest request = new ListInfrastructuresRequest(); + request.compartmentId = compartmentId; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListInfrastructuresRequest(compartmentId, displayName, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .displayName(displayName) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListInfrastructuresRequest)) { + return false; + } + + ListInfrastructuresRequest other = (ListInfrastructuresRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListMaintenanceExecutionsRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListMaintenanceExecutionsRequest.java new file mode 100644 index 00000000000..ab9ea46fa0f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListMaintenanceExecutionsRequest.java @@ -0,0 +1,739 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ListMaintenanceExecutionsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListMaintenanceExecutionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + private String displayName; + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** + * The Database Infrastructure ID. + */ + private String infrastructureId; + + /** + * The Database Infrastructure ID. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * The type of the target resource. + */ + private com.oracle.bmc.datacc.model.TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource. + */ + public com.oracle.bmc.datacc.model.TargetResourceTypeEnum getTargetResourceType() { + return targetResourceType; + } + /** + * The maintenance type. + */ + private com.oracle.bmc.datacc.model.MaintenanceTypeEnum maintenanceType; + + /** + * The maintenance type. + */ + public com.oracle.bmc.datacc.model.MaintenanceTypeEnum getMaintenanceType() { + return maintenanceType; + } + /** + * The maintenance run OCID. + */ + private String maintenanceRunId; + + /** + * The maintenance run OCID. + */ + public String getMaintenanceRunId() { + return maintenanceRunId; + } + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + private com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState lifecycleState; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + public com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * The sub-type of the maintenance run. + */ + private com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * The sub-type of the maintenance run. + */ + public com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum getMaintenanceSubtype() { + return maintenanceSubtype; + } + /** + * Filter maintenance run for before given time. + */ + private java.util.Date timeAcceptedLessThanOrEqualTo; + + /** + * Filter maintenance run for before given time. + */ + public java.util.Date getTimeAcceptedLessThanOrEqualTo() { + return timeAcceptedLessThanOrEqualTo; + } + /** + * Filter maintenance run for after given time. + */ + private java.util.Date timeAcceptedGreaterThanOrEqualTo; + + /** + * Filter maintenance run for after given time. + */ + public java.util.Date getTimeAcceptedGreaterThanOrEqualTo() { + return timeAcceptedGreaterThanOrEqualTo; + } + /** + * The maintenance execution type. + */ + private com.oracle.bmc.datacc.model.TypeEnum type; + + /** + * The maintenance execution type. + */ + public com.oracle.bmc.datacc.model.TypeEnum getType() { + return type; + } + /** + * The maximum number of items to return in a page. + */ + private Integer limit; + + /** + * The maximum number of items to return in a page. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + private SortBy sortBy; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + BuildIdentifier("buildIdentifier"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + public com.oracle.bmc.datacc.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListMaintenanceExecutionsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + private String displayName = null; + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The Database Infrastructure ID. + */ + private String infrastructureId = null; + + /** + * The Database Infrastructure ID. + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * The type of the target resource. + */ + private com.oracle.bmc.datacc.model.TargetResourceTypeEnum targetResourceType = null; + + /** + * The type of the target resource. + * @param targetResourceType the value to set + * @return this builder instance + */ + public Builder targetResourceType( + com.oracle.bmc.datacc.model.TargetResourceTypeEnum targetResourceType) { + this.targetResourceType = targetResourceType; + return this; + } + + /** + * The maintenance type. + */ + private com.oracle.bmc.datacc.model.MaintenanceTypeEnum maintenanceType = null; + + /** + * The maintenance type. + * @param maintenanceType the value to set + * @return this builder instance + */ + public Builder maintenanceType( + com.oracle.bmc.datacc.model.MaintenanceTypeEnum maintenanceType) { + this.maintenanceType = maintenanceType; + return this; + } + + /** + * The maintenance run OCID. + */ + private String maintenanceRunId = null; + + /** + * The maintenance run OCID. + * @param maintenanceRunId the value to set + * @return this builder instance + */ + public Builder maintenanceRunId(String maintenanceRunId) { + this.maintenanceRunId = maintenanceRunId; + return this; + } + + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + private com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState lifecycleState = null; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The sub-type of the maintenance run. + */ + private com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum maintenanceSubtype = null; + + /** + * The sub-type of the maintenance run. + * @param maintenanceSubtype the value to set + * @return this builder instance + */ + public Builder maintenanceSubtype( + com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum maintenanceSubtype) { + this.maintenanceSubtype = maintenanceSubtype; + return this; + } + + /** + * Filter maintenance run for before given time. + */ + private java.util.Date timeAcceptedLessThanOrEqualTo = null; + + /** + * Filter maintenance run for before given time. + * @param timeAcceptedLessThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder timeAcceptedLessThanOrEqualTo(java.util.Date timeAcceptedLessThanOrEqualTo) { + this.timeAcceptedLessThanOrEqualTo = timeAcceptedLessThanOrEqualTo; + return this; + } + + /** + * Filter maintenance run for after given time. + */ + private java.util.Date timeAcceptedGreaterThanOrEqualTo = null; + + /** + * Filter maintenance run for after given time. + * @param timeAcceptedGreaterThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder timeAcceptedGreaterThanOrEqualTo( + java.util.Date timeAcceptedGreaterThanOrEqualTo) { + this.timeAcceptedGreaterThanOrEqualTo = timeAcceptedGreaterThanOrEqualTo; + return this; + } + + /** + * The maintenance execution type. + */ + private com.oracle.bmc.datacc.model.TypeEnum type = null; + + /** + * The maintenance execution type. + * @param type the value to set + * @return this builder instance + */ + public Builder type(com.oracle.bmc.datacc.model.TypeEnum type) { + this.type = type; + return this; + } + + /** + * The maximum number of items to return in a page. + */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + private SortBy sortBy = null; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder = null; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.datacc.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListMaintenanceExecutionsRequest o) { + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + infrastructureId(o.getInfrastructureId()); + targetResourceType(o.getTargetResourceType()); + maintenanceType(o.getMaintenanceType()); + maintenanceRunId(o.getMaintenanceRunId()); + lifecycleState(o.getLifecycleState()); + maintenanceSubtype(o.getMaintenanceSubtype()); + timeAcceptedLessThanOrEqualTo(o.getTimeAcceptedLessThanOrEqualTo()); + timeAcceptedGreaterThanOrEqualTo(o.getTimeAcceptedGreaterThanOrEqualTo()); + type(o.getType()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListMaintenanceExecutionsRequest 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 ListMaintenanceExecutionsRequest + */ + public ListMaintenanceExecutionsRequest build() { + ListMaintenanceExecutionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListMaintenanceExecutionsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListMaintenanceExecutionsRequest + */ + public ListMaintenanceExecutionsRequest buildWithoutInvocationCallback() { + ListMaintenanceExecutionsRequest request = new ListMaintenanceExecutionsRequest(); + request.compartmentId = compartmentId; + request.displayName = displayName; + request.infrastructureId = infrastructureId; + request.targetResourceType = targetResourceType; + request.maintenanceType = maintenanceType; + request.maintenanceRunId = maintenanceRunId; + request.lifecycleState = lifecycleState; + request.maintenanceSubtype = maintenanceSubtype; + request.timeAcceptedLessThanOrEqualTo = timeAcceptedLessThanOrEqualTo; + request.timeAcceptedGreaterThanOrEqualTo = timeAcceptedGreaterThanOrEqualTo; + request.type = type; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new ListMaintenanceExecutionsRequest(compartmentId, displayName, infrastructureId, targetResourceType, maintenanceType, maintenanceRunId, lifecycleState, maintenanceSubtype, timeAcceptedLessThanOrEqualTo, timeAcceptedGreaterThanOrEqualTo, type, limit, page, sortBy, sortOrder, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .displayName(displayName) + .infrastructureId(infrastructureId) + .targetResourceType(targetResourceType) + .maintenanceType(maintenanceType) + .maintenanceRunId(maintenanceRunId) + .lifecycleState(lifecycleState) + .maintenanceSubtype(maintenanceSubtype) + .timeAcceptedLessThanOrEqualTo(timeAcceptedLessThanOrEqualTo) + .timeAcceptedGreaterThanOrEqualTo(timeAcceptedGreaterThanOrEqualTo) + .type(type) + .limit(limit) + .page(page) + .sortBy(sortBy) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",targetResourceType=").append(String.valueOf(this.targetResourceType)); + sb.append(",maintenanceType=").append(String.valueOf(this.maintenanceType)); + sb.append(",maintenanceRunId=").append(String.valueOf(this.maintenanceRunId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",maintenanceSubtype=").append(String.valueOf(this.maintenanceSubtype)); + sb.append(",timeAcceptedLessThanOrEqualTo=") + .append(String.valueOf(this.timeAcceptedLessThanOrEqualTo)); + sb.append(",timeAcceptedGreaterThanOrEqualTo=") + .append(String.valueOf(this.timeAcceptedGreaterThanOrEqualTo)); + sb.append(",type=").append(String.valueOf(this.type)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMaintenanceExecutionsRequest)) { + return false; + } + + ListMaintenanceExecutionsRequest other = (ListMaintenanceExecutionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.targetResourceType, other.targetResourceType) + && java.util.Objects.equals(this.maintenanceType, other.maintenanceType) + && java.util.Objects.equals(this.maintenanceRunId, other.maintenanceRunId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.maintenanceSubtype, other.maintenanceSubtype) + && java.util.Objects.equals( + this.timeAcceptedLessThanOrEqualTo, other.timeAcceptedLessThanOrEqualTo) + && java.util.Objects.equals( + this.timeAcceptedGreaterThanOrEqualTo, + other.timeAcceptedGreaterThanOrEqualTo) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.targetResourceType == null + ? 43 + : this.targetResourceType.hashCode()); + result = + (result * PRIME) + + (this.maintenanceType == null ? 43 : this.maintenanceType.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRunId == null ? 43 : this.maintenanceRunId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.maintenanceSubtype == null + ? 43 + : this.maintenanceSubtype.hashCode()); + result = + (result * PRIME) + + (this.timeAcceptedLessThanOrEqualTo == null + ? 43 + : this.timeAcceptedLessThanOrEqualTo.hashCode()); + result = + (result * PRIME) + + (this.timeAcceptedGreaterThanOrEqualTo == null + ? 43 + : this.timeAcceptedGreaterThanOrEqualTo.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListMaintenanceRunsRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListMaintenanceRunsRequest.java new file mode 100644 index 00000000000..70498e50173 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListMaintenanceRunsRequest.java @@ -0,0 +1,672 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ListMaintenanceRunsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListMaintenanceRunsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + private String displayName; + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** + * The Database Infrastructure ID. + */ + private String infrastructureId; + + /** + * The Database Infrastructure ID. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * The type of the target resource. + */ + private com.oracle.bmc.datacc.model.TargetResourceTypeEnum targetResourceType; + + /** + * The type of the target resource. + */ + public com.oracle.bmc.datacc.model.TargetResourceTypeEnum getTargetResourceType() { + return targetResourceType; + } + /** + * The maintenance type. + */ + private com.oracle.bmc.datacc.model.MaintenanceTypeEnum maintenanceType; + + /** + * The maintenance type. + */ + public com.oracle.bmc.datacc.model.MaintenanceTypeEnum getMaintenanceType() { + return maintenanceType; + } + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + private com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState lifecycleState; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + public com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * The sub-type of the maintenance run. + */ + private com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum maintenanceSubtype; + + /** + * The sub-type of the maintenance run. + */ + public com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum getMaintenanceSubtype() { + return maintenanceSubtype; + } + /** + * Filter maintenance run for before given time. + */ + private java.util.Date timeAcceptedLessThanOrEqualTo; + + /** + * Filter maintenance run for before given time. + */ + public java.util.Date getTimeAcceptedLessThanOrEqualTo() { + return timeAcceptedLessThanOrEqualTo; + } + /** + * Filter maintenance run for after given time. + */ + private java.util.Date timeAcceptedGreaterThanOrEqualTo; + + /** + * Filter maintenance run for after given time. + */ + public java.util.Date getTimeAcceptedGreaterThanOrEqualTo() { + return timeAcceptedGreaterThanOrEqualTo; + } + /** + * The maximum number of items to return in a page. + */ + private Integer limit; + + /** + * The maximum number of items to return in a page. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + private SortBy sortBy; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + BuildIdentifier("buildIdentifier"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + public com.oracle.bmc.datacc.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListMaintenanceRunsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + private String displayName = null; + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The Database Infrastructure ID. + */ + private String infrastructureId = null; + + /** + * The Database Infrastructure ID. + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * The type of the target resource. + */ + private com.oracle.bmc.datacc.model.TargetResourceTypeEnum targetResourceType = null; + + /** + * The type of the target resource. + * @param targetResourceType the value to set + * @return this builder instance + */ + public Builder targetResourceType( + com.oracle.bmc.datacc.model.TargetResourceTypeEnum targetResourceType) { + this.targetResourceType = targetResourceType; + return this; + } + + /** + * The maintenance type. + */ + private com.oracle.bmc.datacc.model.MaintenanceTypeEnum maintenanceType = null; + + /** + * The maintenance type. + * @param maintenanceType the value to set + * @return this builder instance + */ + public Builder maintenanceType( + com.oracle.bmc.datacc.model.MaintenanceTypeEnum maintenanceType) { + this.maintenanceType = maintenanceType; + return this; + } + + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + private com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState lifecycleState = null; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.datacc.model.MaintenanceRunLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The sub-type of the maintenance run. + */ + private com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum maintenanceSubtype = null; + + /** + * The sub-type of the maintenance run. + * @param maintenanceSubtype the value to set + * @return this builder instance + */ + public Builder maintenanceSubtype( + com.oracle.bmc.datacc.model.MaintenanceSubtypeEnum maintenanceSubtype) { + this.maintenanceSubtype = maintenanceSubtype; + return this; + } + + /** + * Filter maintenance run for before given time. + */ + private java.util.Date timeAcceptedLessThanOrEqualTo = null; + + /** + * Filter maintenance run for before given time. + * @param timeAcceptedLessThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder timeAcceptedLessThanOrEqualTo(java.util.Date timeAcceptedLessThanOrEqualTo) { + this.timeAcceptedLessThanOrEqualTo = timeAcceptedLessThanOrEqualTo; + return this; + } + + /** + * Filter maintenance run for after given time. + */ + private java.util.Date timeAcceptedGreaterThanOrEqualTo = null; + + /** + * Filter maintenance run for after given time. + * @param timeAcceptedGreaterThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder timeAcceptedGreaterThanOrEqualTo( + java.util.Date timeAcceptedGreaterThanOrEqualTo) { + this.timeAcceptedGreaterThanOrEqualTo = timeAcceptedGreaterThanOrEqualTo; + return this; + } + + /** + * The maximum number of items to return in a page. + */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + private SortBy sortBy = null; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder = null; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.datacc.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListMaintenanceRunsRequest o) { + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + infrastructureId(o.getInfrastructureId()); + targetResourceType(o.getTargetResourceType()); + maintenanceType(o.getMaintenanceType()); + lifecycleState(o.getLifecycleState()); + maintenanceSubtype(o.getMaintenanceSubtype()); + timeAcceptedLessThanOrEqualTo(o.getTimeAcceptedLessThanOrEqualTo()); + timeAcceptedGreaterThanOrEqualTo(o.getTimeAcceptedGreaterThanOrEqualTo()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListMaintenanceRunsRequest 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 ListMaintenanceRunsRequest + */ + public ListMaintenanceRunsRequest build() { + ListMaintenanceRunsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListMaintenanceRunsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListMaintenanceRunsRequest + */ + public ListMaintenanceRunsRequest buildWithoutInvocationCallback() { + ListMaintenanceRunsRequest request = new ListMaintenanceRunsRequest(); + request.compartmentId = compartmentId; + request.displayName = displayName; + request.infrastructureId = infrastructureId; + request.targetResourceType = targetResourceType; + request.maintenanceType = maintenanceType; + request.lifecycleState = lifecycleState; + request.maintenanceSubtype = maintenanceSubtype; + request.timeAcceptedLessThanOrEqualTo = timeAcceptedLessThanOrEqualTo; + request.timeAcceptedGreaterThanOrEqualTo = timeAcceptedGreaterThanOrEqualTo; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new ListMaintenanceRunsRequest(compartmentId, displayName, infrastructureId, targetResourceType, maintenanceType, lifecycleState, maintenanceSubtype, timeAcceptedLessThanOrEqualTo, timeAcceptedGreaterThanOrEqualTo, limit, page, sortBy, sortOrder, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .displayName(displayName) + .infrastructureId(infrastructureId) + .targetResourceType(targetResourceType) + .maintenanceType(maintenanceType) + .lifecycleState(lifecycleState) + .maintenanceSubtype(maintenanceSubtype) + .timeAcceptedLessThanOrEqualTo(timeAcceptedLessThanOrEqualTo) + .timeAcceptedGreaterThanOrEqualTo(timeAcceptedGreaterThanOrEqualTo) + .limit(limit) + .page(page) + .sortBy(sortBy) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",targetResourceType=").append(String.valueOf(this.targetResourceType)); + sb.append(",maintenanceType=").append(String.valueOf(this.maintenanceType)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",maintenanceSubtype=").append(String.valueOf(this.maintenanceSubtype)); + sb.append(",timeAcceptedLessThanOrEqualTo=") + .append(String.valueOf(this.timeAcceptedLessThanOrEqualTo)); + sb.append(",timeAcceptedGreaterThanOrEqualTo=") + .append(String.valueOf(this.timeAcceptedGreaterThanOrEqualTo)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMaintenanceRunsRequest)) { + return false; + } + + ListMaintenanceRunsRequest other = (ListMaintenanceRunsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.targetResourceType, other.targetResourceType) + && java.util.Objects.equals(this.maintenanceType, other.maintenanceType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.maintenanceSubtype, other.maintenanceSubtype) + && java.util.Objects.equals( + this.timeAcceptedLessThanOrEqualTo, other.timeAcceptedLessThanOrEqualTo) + && java.util.Objects.equals( + this.timeAcceptedGreaterThanOrEqualTo, + other.timeAcceptedGreaterThanOrEqualTo) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = + (result * PRIME) + + (this.targetResourceType == null + ? 43 + : this.targetResourceType.hashCode()); + result = + (result * PRIME) + + (this.maintenanceType == null ? 43 : this.maintenanceType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.maintenanceSubtype == null + ? 43 + : this.maintenanceSubtype.hashCode()); + result = + (result * PRIME) + + (this.timeAcceptedLessThanOrEqualTo == null + ? 43 + : this.timeAcceptedLessThanOrEqualTo.hashCode()); + result = + (result * PRIME) + + (this.timeAcceptedGreaterThanOrEqualTo == null + ? 43 + : this.timeAcceptedGreaterThanOrEqualTo.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListVmClusterNetworksRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListVmClusterNetworksRequest.java new file mode 100644 index 00000000000..fa52ddfb7e7 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListVmClusterNetworksRequest.java @@ -0,0 +1,603 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ListVmClusterNetworksRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListVmClusterNetworksRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + private String displayName; + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** + * A filter to return resources that match the specified lifecycle state. + */ + private java.util.List + lifecycleState; + + /** + * A filter to return resources that match the specified lifecycle state. + */ + public java.util.List + getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return VM cluster network resources that matches the specified value. + */ + private Boolean isScanEnabled; + + /** + * A filter to return VM cluster network resources that matches the specified value. + */ + public Boolean getIsScanEnabled() { + return isScanEnabled; + } + /** + * The maximum number of items to return in a page. + */ + private Integer limit; + + /** + * The maximum number of items to return in a page. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + public com.oracle.bmc.datacc.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + private SortBy sortBy; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + BuildIdentifier("buildIdentifier"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * Count of virtual machines in this VM cluster. + */ + private Integer nodeCount; + + /** + * Count of virtual machines in this VM cluster. + */ + public Integer getNodeCount() { + return nodeCount; + } + /** + * VM network consumer type. + */ + private com.oracle.bmc.datacc.model.VmNetworkConsumerType vmNetworkConsumerType; + + /** + * VM network consumer type. + */ + public com.oracle.bmc.datacc.model.VmNetworkConsumerType getVmNetworkConsumerType() { + return vmNetworkConsumerType; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListVmClusterNetworksRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + private String displayName = null; + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * A filter to return resources that match the specified lifecycle state. + */ + private java.util.List + lifecycleState = null; + + /** + * A filter to return resources that match the specified lifecycle state. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + java.util.List + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * Singular setter. A filter to return resources that match the specified lifecycle state. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder lifecycleState(VmClusterNetworkLifecycleState singularValue) { + return this.lifecycleState(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return VM cluster network resources that matches the specified value. + */ + private Boolean isScanEnabled = null; + + /** + * A filter to return VM cluster network resources that matches the specified value. + * @param isScanEnabled the value to set + * @return this builder instance + */ + public Builder isScanEnabled(Boolean isScanEnabled) { + this.isScanEnabled = isScanEnabled; + return this; + } + + /** + * The maximum number of items to return in a page. + */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder = null; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.datacc.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + private SortBy sortBy = null; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * Count of virtual machines in this VM cluster. + */ + private Integer nodeCount = null; + + /** + * Count of virtual machines in this VM cluster. + * @param nodeCount the value to set + * @return this builder instance + */ + public Builder nodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + return this; + } + + /** + * VM network consumer type. + */ + private com.oracle.bmc.datacc.model.VmNetworkConsumerType vmNetworkConsumerType = null; + + /** + * VM network consumer type. + * @param vmNetworkConsumerType the value to set + * @return this builder instance + */ + public Builder vmNetworkConsumerType( + com.oracle.bmc.datacc.model.VmNetworkConsumerType vmNetworkConsumerType) { + this.vmNetworkConsumerType = vmNetworkConsumerType; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListVmClusterNetworksRequest o) { + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + isScanEnabled(o.getIsScanEnabled()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + infrastructureId(o.getInfrastructureId()); + nodeCount(o.getNodeCount()); + vmNetworkConsumerType(o.getVmNetworkConsumerType()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListVmClusterNetworksRequest 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 ListVmClusterNetworksRequest + */ + public ListVmClusterNetworksRequest build() { + ListVmClusterNetworksRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListVmClusterNetworksRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListVmClusterNetworksRequest + */ + public ListVmClusterNetworksRequest buildWithoutInvocationCallback() { + ListVmClusterNetworksRequest request = new ListVmClusterNetworksRequest(); + request.compartmentId = compartmentId; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.isScanEnabled = isScanEnabled; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.infrastructureId = infrastructureId; + request.nodeCount = nodeCount; + request.vmNetworkConsumerType = vmNetworkConsumerType; + return request; + // new ListVmClusterNetworksRequest(compartmentId, displayName, lifecycleState, isScanEnabled, limit, page, sortOrder, sortBy, opcRequestId, infrastructureId, nodeCount, vmNetworkConsumerType); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .displayName(displayName) + .lifecycleState(lifecycleState) + .isScanEnabled(isScanEnabled) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId) + .infrastructureId(infrastructureId) + .nodeCount(nodeCount) + .vmNetworkConsumerType(vmNetworkConsumerType); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",isScanEnabled=").append(String.valueOf(this.isScanEnabled)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",nodeCount=").append(String.valueOf(this.nodeCount)); + sb.append(",vmNetworkConsumerType=").append(String.valueOf(this.vmNetworkConsumerType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVmClusterNetworksRequest)) { + return false; + } + + ListVmClusterNetworksRequest other = (ListVmClusterNetworksRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.isScanEnabled, other.isScanEnabled) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.nodeCount, other.nodeCount) + && java.util.Objects.equals( + this.vmNetworkConsumerType, other.vmNetworkConsumerType); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.isScanEnabled == null ? 43 : this.isScanEnabled.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.nodeCount == null ? 43 : this.nodeCount.hashCode()); + result = + (result * PRIME) + + (this.vmNetworkConsumerType == null + ? 43 + : this.vmNetworkConsumerType.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListVmInstancesRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListVmInstancesRequest.java new file mode 100644 index 00000000000..ca2cafe6cae --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListVmInstancesRequest.java @@ -0,0 +1,529 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ListVmInstancesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListVmInstancesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + private String displayName; + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** + * A filter to return resources that match the specified lifecycle state. + */ + private java.util.List lifecycleState; + + /** + * A filter to return resources that match the specified lifecycle state. + */ + public java.util.List + getLifecycleState() { + return lifecycleState; + } + /** + * The maximum number of items to return in a page. + */ + private Integer limit; + + /** + * The maximum number of items to return in a page. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + public com.oracle.bmc.datacc.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + private SortBy sortBy; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + BuildIdentifier("buildIdentifier"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure Server Id. + */ + private String baseServerId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure Server Id. + */ + public String getBaseServerId() { + return baseServerId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListVmInstancesRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + */ + private String displayName = null; + + /** + * A filter to return resources that match the entire display name given. The match is case sensitive. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * A filter to return resources that match the specified lifecycle state. + */ + private java.util.List + lifecycleState = null; + + /** + * A filter to return resources that match the specified lifecycle state. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + java.util.List + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * Singular setter. A filter to return resources that match the specified lifecycle state. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder lifecycleState(VmInstanceLifecycleState singularValue) { + return this.lifecycleState(java.util.Arrays.asList(singularValue)); + } + + /** + * The maximum number of items to return in a page. + */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder = null; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.datacc.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + */ + private SortBy sortBy = null; + + /** + * The field by which you want to sort. You can provide only one type of sort order. The default order for {@code timeCreated} is descending. The default order for {@code displayName} is ascending. If no value is specified, then {@code timeCreated} is the default. + * When listing software images within the same {@code version}, using {@code sortBy=buildIdentifier} is recommended. {@code buildIdentifier} is a monotonically increasing, time-ordered string marker (yyyy-mm-dd-hh:mm:ss) stored with the image. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure Server Id. + */ + private String baseServerId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure Server Id. + * @param baseServerId the value to set + * @return this builder instance + */ + public Builder baseServerId(String baseServerId) { + this.baseServerId = baseServerId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListVmInstancesRequest o) { + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + infrastructureId(o.getInfrastructureId()); + baseServerId(o.getBaseServerId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListVmInstancesRequest 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 ListVmInstancesRequest + */ + public ListVmInstancesRequest build() { + ListVmInstancesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListVmInstancesRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListVmInstancesRequest + */ + public ListVmInstancesRequest buildWithoutInvocationCallback() { + ListVmInstancesRequest request = new ListVmInstancesRequest(); + request.compartmentId = compartmentId; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.infrastructureId = infrastructureId; + request.baseServerId = baseServerId; + return request; + // new ListVmInstancesRequest(compartmentId, displayName, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId, infrastructureId, baseServerId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .displayName(displayName) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId) + .infrastructureId(infrastructureId) + .baseServerId(baseServerId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",baseServerId=").append(String.valueOf(this.baseServerId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVmInstancesRequest)) { + return false; + } + + ListVmInstancesRequest other = (ListVmInstancesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.baseServerId, other.baseServerId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.baseServerId == null ? 43 : this.baseServerId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestErrorsRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestErrorsRequest.java new file mode 100644 index 00000000000..b84a9694924 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestErrorsRequest.java @@ -0,0 +1,294 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ListWorkRequestErrorsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestErrorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The maximum number of items to return in a page. + */ + private Integer limit; + + /** + * The maximum number of items to return in a page. + */ + public Integer getLimit() { + return limit; + } + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + public com.oracle.bmc.datacc.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestErrorsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The maximum number of items to return in a page. + */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder = null; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.datacc.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestErrorsRequest 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 ListWorkRequestErrorsRequest + */ + public ListWorkRequestErrorsRequest build() { + ListWorkRequestErrorsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestErrorsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestErrorsRequest + */ + public ListWorkRequestErrorsRequest buildWithoutInvocationCallback() { + ListWorkRequestErrorsRequest request = new ListWorkRequestErrorsRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortOrder = sortOrder; + return request; + // new ListWorkRequestErrorsRequest(workRequestId, opcRequestId, page, limit, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestErrorsRequest)) { + return false; + } + + ListWorkRequestErrorsRequest other = (ListWorkRequestErrorsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestLogsRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestLogsRequest.java new file mode 100644 index 00000000000..0a3b89280cc --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestLogsRequest.java @@ -0,0 +1,293 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ListWorkRequestLogsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The maximum number of items to return in a page. + */ + private Integer limit; + + /** + * The maximum number of items to return in a page. + */ + public Integer getLimit() { + return limit; + } + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + public com.oracle.bmc.datacc.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestLogsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The maximum number of items to return in a page. + */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + */ + private com.oracle.bmc.datacc.model.SortOrder sortOrder = null; + + /** + * The sort order that you want to use, which is either {@code ASC} or {@code DESC}. + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.datacc.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestLogsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestLogsRequest 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 ListWorkRequestLogsRequest + */ + public ListWorkRequestLogsRequest build() { + ListWorkRequestLogsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestLogsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestLogsRequest + */ + public ListWorkRequestLogsRequest buildWithoutInvocationCallback() { + ListWorkRequestLogsRequest request = new ListWorkRequestLogsRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortOrder = sortOrder; + return request; + // new ListWorkRequestLogsRequest(workRequestId, opcRequestId, page, limit, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestLogsRequest)) { + return false; + } + + ListWorkRequestLogsRequest other = (ListWorkRequestLogsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestsRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestsRequest.java new file mode 100644 index 00000000000..2dbfed2ec4e --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ListWorkRequestsRequest.java @@ -0,0 +1,305 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ListWorkRequestsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request resource. + */ + private String resourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request resource. + */ + public String getResourceId() { + return resourceId; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The maximum number of items to return in a page. + */ + private Integer limit; + + /** + * The maximum number of items to return in a page. + */ + public Integer getLimit() { + return limit; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * For list operations, you may provide the tenant [OCID] in this field. When a tenant OCID is provided, + * it will be validated against the caller's tenant and then treated as tenant scope (compartmentId filtering is not applied). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request resource. + */ + private String resourceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request resource. + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which you want to start retrieving results. This token is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The maximum number of items to return in a page. + */ + private Integer limit = null; + + /** + * The maximum number of items to return in a page. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestsRequest o) { + compartmentId(o.getCompartmentId()); + resourceId(o.getResourceId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestsRequest 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 ListWorkRequestsRequest + */ + public ListWorkRequestsRequest build() { + ListWorkRequestsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestsRequest + */ + public ListWorkRequestsRequest buildWithoutInvocationCallback() { + ListWorkRequestsRequest request = new ListWorkRequestsRequest(); + request.compartmentId = compartmentId; + request.resourceId = resourceId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + return request; + // new ListWorkRequestsRequest(compartmentId, resourceId, opcRequestId, page, limit); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .resourceId(resourceId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsRequest)) { + return false; + } + + ListWorkRequestsRequest other = (ListWorkRequestsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/MigrateVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/MigrateVmInstanceRequest.java new file mode 100644 index 00000000000..395945be05e --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/MigrateVmInstanceRequest.java @@ -0,0 +1,301 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use MigrateVmInstanceRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class MigrateVmInstanceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + MigrateVmInstanceRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(MigrateVmInstanceRequest o) { + vmInstanceId(o.getVmInstanceId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of MigrateVmInstanceRequest 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 MigrateVmInstanceRequest + */ + public MigrateVmInstanceRequest build() { + MigrateVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of MigrateVmInstanceRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of MigrateVmInstanceRequest + */ + public MigrateVmInstanceRequest buildWithoutInvocationCallback() { + MigrateVmInstanceRequest request = new MigrateVmInstanceRequest(); + request.vmInstanceId = vmInstanceId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new MigrateVmInstanceRequest(vmInstanceId, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .vmInstanceId(vmInstanceId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MigrateVmInstanceRequest)) { + return false; + } + + MigrateVmInstanceRequest other = (MigrateVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/RescheduleMaintenanceRunRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/RescheduleMaintenanceRunRequest.java new file mode 100644 index 00000000000..4dba5a144ba --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/RescheduleMaintenanceRunRequest.java @@ -0,0 +1,370 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use RescheduleMaintenanceRunRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class RescheduleMaintenanceRunRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails> { + + /** + * The maintenance run OCID. + */ + private String maintenanceRunId; + + /** + * The maintenance run OCID. + */ + public String getMaintenanceRunId() { + return maintenanceRunId; + } + /** + * The new scheduled time for the maintenance run. + */ + private com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails + rescheduleMaintenanceRunDetails; + + /** + * The new scheduled time for the maintenance run. + */ + public com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails + getRescheduleMaintenanceRunDetails() { + return rescheduleMaintenanceRunDetails; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails getBody$() { + return rescheduleMaintenanceRunDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RescheduleMaintenanceRunRequest, + com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The maintenance run OCID. + */ + private String maintenanceRunId = null; + + /** + * The maintenance run OCID. + * @param maintenanceRunId the value to set + * @return this builder instance + */ + public Builder maintenanceRunId(String maintenanceRunId) { + this.maintenanceRunId = maintenanceRunId; + return this; + } + + /** + * The new scheduled time for the maintenance run. + */ + private com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails + rescheduleMaintenanceRunDetails = null; + + /** + * The new scheduled time for the maintenance run. + * @param rescheduleMaintenanceRunDetails the value to set + * @return this builder instance + */ + public Builder rescheduleMaintenanceRunDetails( + com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails + rescheduleMaintenanceRunDetails) { + this.rescheduleMaintenanceRunDetails = rescheduleMaintenanceRunDetails; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(RescheduleMaintenanceRunRequest o) { + maintenanceRunId(o.getMaintenanceRunId()); + rescheduleMaintenanceRunDetails(o.getRescheduleMaintenanceRunDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RescheduleMaintenanceRunRequest 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 RescheduleMaintenanceRunRequest + */ + public RescheduleMaintenanceRunRequest build() { + RescheduleMaintenanceRunRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.datacc.model.RescheduleMaintenanceRunDetails body) { + rescheduleMaintenanceRunDetails(body); + return this; + } + + /** + * Build the instance of RescheduleMaintenanceRunRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RescheduleMaintenanceRunRequest + */ + public RescheduleMaintenanceRunRequest buildWithoutInvocationCallback() { + RescheduleMaintenanceRunRequest request = new RescheduleMaintenanceRunRequest(); + request.maintenanceRunId = maintenanceRunId; + request.rescheduleMaintenanceRunDetails = rescheduleMaintenanceRunDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new RescheduleMaintenanceRunRequest(maintenanceRunId, rescheduleMaintenanceRunDetails, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .maintenanceRunId(maintenanceRunId) + .rescheduleMaintenanceRunDetails(rescheduleMaintenanceRunDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",maintenanceRunId=").append(String.valueOf(this.maintenanceRunId)); + sb.append(",rescheduleMaintenanceRunDetails=") + .append(String.valueOf(this.rescheduleMaintenanceRunDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RescheduleMaintenanceRunRequest)) { + return false; + } + + RescheduleMaintenanceRunRequest other = (RescheduleMaintenanceRunRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.maintenanceRunId, other.maintenanceRunId) + && java.util.Objects.equals( + this.rescheduleMaintenanceRunDetails, other.rescheduleMaintenanceRunDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.maintenanceRunId == null ? 43 : this.maintenanceRunId.hashCode()); + result = + (result * PRIME) + + (this.rescheduleMaintenanceRunDetails == null + ? 43 + : this.rescheduleMaintenanceRunDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/RestartVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/RestartVmInstanceRequest.java new file mode 100644 index 00000000000..0c8e1c06226 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/RestartVmInstanceRequest.java @@ -0,0 +1,301 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use RestartVmInstanceRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class RestartVmInstanceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RestartVmInstanceRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RestartVmInstanceRequest o) { + vmInstanceId(o.getVmInstanceId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RestartVmInstanceRequest 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 RestartVmInstanceRequest + */ + public RestartVmInstanceRequest build() { + RestartVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of RestartVmInstanceRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RestartVmInstanceRequest + */ + public RestartVmInstanceRequest buildWithoutInvocationCallback() { + RestartVmInstanceRequest request = new RestartVmInstanceRequest(); + request.vmInstanceId = vmInstanceId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new RestartVmInstanceRequest(vmInstanceId, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .vmInstanceId(vmInstanceId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RestartVmInstanceRequest)) { + return false; + } + + RestartVmInstanceRequest other = (RestartVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ScaleInfrastructureStorageRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ScaleInfrastructureStorageRequest.java new file mode 100644 index 00000000000..44e7bc06ef8 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ScaleInfrastructureStorageRequest.java @@ -0,0 +1,371 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ScaleInfrastructureStorageRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ScaleInfrastructureStorageRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails> { + + /** + * The scale storage details for the Database Infrastructure. + */ + private com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails + scaleInfrastructureStorageDetails; + + /** + * The scale storage details for the Database Infrastructure. + */ + public com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails + getScaleInfrastructureStorageDetails() { + return scaleInfrastructureStorageDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails getBody$() { + return scaleInfrastructureStorageDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ScaleInfrastructureStorageRequest, + com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The scale storage details for the Database Infrastructure. + */ + private com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails + scaleInfrastructureStorageDetails = null; + + /** + * The scale storage details for the Database Infrastructure. + * @param scaleInfrastructureStorageDetails the value to set + * @return this builder instance + */ + public Builder scaleInfrastructureStorageDetails( + com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails + scaleInfrastructureStorageDetails) { + this.scaleInfrastructureStorageDetails = scaleInfrastructureStorageDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ScaleInfrastructureStorageRequest o) { + scaleInfrastructureStorageDetails(o.getScaleInfrastructureStorageDetails()); + infrastructureId(o.getInfrastructureId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ScaleInfrastructureStorageRequest 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 ScaleInfrastructureStorageRequest + */ + public ScaleInfrastructureStorageRequest build() { + ScaleInfrastructureStorageRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.datacc.model.ScaleInfrastructureStorageDetails body) { + scaleInfrastructureStorageDetails(body); + return this; + } + + /** + * Build the instance of ScaleInfrastructureStorageRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ScaleInfrastructureStorageRequest + */ + public ScaleInfrastructureStorageRequest buildWithoutInvocationCallback() { + ScaleInfrastructureStorageRequest request = new ScaleInfrastructureStorageRequest(); + request.scaleInfrastructureStorageDetails = scaleInfrastructureStorageDetails; + request.infrastructureId = infrastructureId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ScaleInfrastructureStorageRequest(scaleInfrastructureStorageDetails, infrastructureId, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .scaleInfrastructureStorageDetails(scaleInfrastructureStorageDetails) + .infrastructureId(infrastructureId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",scaleInfrastructureStorageDetails=") + .append(String.valueOf(this.scaleInfrastructureStorageDetails)); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScaleInfrastructureStorageRequest)) { + return false; + } + + ScaleInfrastructureStorageRequest other = (ScaleInfrastructureStorageRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.scaleInfrastructureStorageDetails, + other.scaleInfrastructureStorageDetails) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.scaleInfrastructureStorageDetails == null + ? 43 + : this.scaleInfrastructureStorageDetails.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ScaleVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ScaleVmInstanceRequest.java new file mode 100644 index 00000000000..9271f248e7a --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ScaleVmInstanceRequest.java @@ -0,0 +1,362 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ScaleVmInstanceRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ScaleVmInstanceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.ScaleVmInstanceDetails> { + + /** + * Scale the VM instance. + */ + private com.oracle.bmc.datacc.model.ScaleVmInstanceDetails scaleVmInstanceDetails; + + /** + * Scale the VM instance. + */ + public com.oracle.bmc.datacc.model.ScaleVmInstanceDetails getScaleVmInstanceDetails() { + return scaleVmInstanceDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.ScaleVmInstanceDetails getBody$() { + return scaleVmInstanceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ScaleVmInstanceRequest, com.oracle.bmc.datacc.model.ScaleVmInstanceDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Scale the VM instance. + */ + private com.oracle.bmc.datacc.model.ScaleVmInstanceDetails scaleVmInstanceDetails = null; + + /** + * Scale the VM instance. + * @param scaleVmInstanceDetails the value to set + * @return this builder instance + */ + public Builder scaleVmInstanceDetails( + com.oracle.bmc.datacc.model.ScaleVmInstanceDetails scaleVmInstanceDetails) { + this.scaleVmInstanceDetails = scaleVmInstanceDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ScaleVmInstanceRequest o) { + scaleVmInstanceDetails(o.getScaleVmInstanceDetails()); + vmInstanceId(o.getVmInstanceId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ScaleVmInstanceRequest 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 ScaleVmInstanceRequest + */ + public ScaleVmInstanceRequest build() { + ScaleVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.datacc.model.ScaleVmInstanceDetails body) { + scaleVmInstanceDetails(body); + return this; + } + + /** + * Build the instance of ScaleVmInstanceRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ScaleVmInstanceRequest + */ + public ScaleVmInstanceRequest buildWithoutInvocationCallback() { + ScaleVmInstanceRequest request = new ScaleVmInstanceRequest(); + request.scaleVmInstanceDetails = scaleVmInstanceDetails; + request.vmInstanceId = vmInstanceId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ScaleVmInstanceRequest(scaleVmInstanceDetails, vmInstanceId, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .scaleVmInstanceDetails(scaleVmInstanceDetails) + .vmInstanceId(vmInstanceId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",scaleVmInstanceDetails=").append(String.valueOf(this.scaleVmInstanceDetails)); + sb.append(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScaleVmInstanceRequest)) { + return false; + } + + ScaleVmInstanceRequest other = (ScaleVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.scaleVmInstanceDetails, other.scaleVmInstanceDetails) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.scaleVmInstanceDetails == null + ? 43 + : this.scaleVmInstanceDetails.hashCode()); + result = (result * PRIME) + (this.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/StartVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/StartVmInstanceRequest.java new file mode 100644 index 00000000000..6a25c16aa36 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/StartVmInstanceRequest.java @@ -0,0 +1,301 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use StartVmInstanceRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class StartVmInstanceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + StartVmInstanceRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(StartVmInstanceRequest o) { + vmInstanceId(o.getVmInstanceId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of StartVmInstanceRequest 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 StartVmInstanceRequest + */ + public StartVmInstanceRequest build() { + StartVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of StartVmInstanceRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of StartVmInstanceRequest + */ + public StartVmInstanceRequest buildWithoutInvocationCallback() { + StartVmInstanceRequest request = new StartVmInstanceRequest(); + request.vmInstanceId = vmInstanceId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new StartVmInstanceRequest(vmInstanceId, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .vmInstanceId(vmInstanceId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StartVmInstanceRequest)) { + return false; + } + + StartVmInstanceRequest other = (StartVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/StopVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/StopVmInstanceRequest.java new file mode 100644 index 00000000000..5011c59d8c1 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/StopVmInstanceRequest.java @@ -0,0 +1,301 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use StopVmInstanceRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class StopVmInstanceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + StopVmInstanceRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(StopVmInstanceRequest o) { + vmInstanceId(o.getVmInstanceId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of StopVmInstanceRequest 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 StopVmInstanceRequest + */ + public StopVmInstanceRequest build() { + StopVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of StopVmInstanceRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of StopVmInstanceRequest + */ + public StopVmInstanceRequest buildWithoutInvocationCallback() { + StopVmInstanceRequest request = new StopVmInstanceRequest(); + request.vmInstanceId = vmInstanceId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new StopVmInstanceRequest(vmInstanceId, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .vmInstanceId(vmInstanceId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StopVmInstanceRequest)) { + return false; + } + + StopVmInstanceRequest other = (StopVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateInfrastructureRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateInfrastructureRequest.java new file mode 100644 index 00000000000..a4fd4690004 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateInfrastructureRequest.java @@ -0,0 +1,315 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use UpdateInfrastructureRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateInfrastructureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.UpdateInfrastructureDetails> { + + /** + * The updated Database Infrastructure details. + */ + private com.oracle.bmc.datacc.model.UpdateInfrastructureDetails updateInfrastructureDetails; + + /** + * The updated Database Infrastructure details. + */ + public com.oracle.bmc.datacc.model.UpdateInfrastructureDetails + getUpdateInfrastructureDetails() { + return updateInfrastructureDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.UpdateInfrastructureDetails getBody$() { + return updateInfrastructureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateInfrastructureRequest, + com.oracle.bmc.datacc.model.UpdateInfrastructureDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The updated Database Infrastructure details. + */ + private com.oracle.bmc.datacc.model.UpdateInfrastructureDetails + updateInfrastructureDetails = null; + + /** + * The updated Database Infrastructure details. + * @param updateInfrastructureDetails the value to set + * @return this builder instance + */ + public Builder updateInfrastructureDetails( + com.oracle.bmc.datacc.model.UpdateInfrastructureDetails + updateInfrastructureDetails) { + this.updateInfrastructureDetails = updateInfrastructureDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateInfrastructureRequest o) { + updateInfrastructureDetails(o.getUpdateInfrastructureDetails()); + infrastructureId(o.getInfrastructureId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateInfrastructureRequest 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 UpdateInfrastructureRequest + */ + public UpdateInfrastructureRequest build() { + UpdateInfrastructureRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.datacc.model.UpdateInfrastructureDetails body) { + updateInfrastructureDetails(body); + return this; + } + + /** + * Build the instance of UpdateInfrastructureRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateInfrastructureRequest + */ + public UpdateInfrastructureRequest buildWithoutInvocationCallback() { + UpdateInfrastructureRequest request = new UpdateInfrastructureRequest(); + request.updateInfrastructureDetails = updateInfrastructureDetails; + request.infrastructureId = infrastructureId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateInfrastructureRequest(updateInfrastructureDetails, infrastructureId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .updateInfrastructureDetails(updateInfrastructureDetails) + .infrastructureId(infrastructureId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",updateInfrastructureDetails=") + .append(String.valueOf(this.updateInfrastructureDetails)); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateInfrastructureRequest)) { + return false; + } + + UpdateInfrastructureRequest other = (UpdateInfrastructureRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.updateInfrastructureDetails, other.updateInfrastructureDetails) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.updateInfrastructureDetails == null + ? 43 + : this.updateInfrastructureDetails.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateMaintenanceRunRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateMaintenanceRunRequest.java new file mode 100644 index 00000000000..17b46d89e64 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateMaintenanceRunRequest.java @@ -0,0 +1,315 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use UpdateMaintenanceRunRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateMaintenanceRunRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails> { + + /** + * The updated maintenance run details. + */ + private com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails updateMaintenanceRunDetails; + + /** + * The updated maintenance run details. + */ + public com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails + getUpdateMaintenanceRunDetails() { + return updateMaintenanceRunDetails; + } + /** + * The maintenance run OCID. + */ + private String maintenanceRunId; + + /** + * The maintenance run OCID. + */ + public String getMaintenanceRunId() { + return maintenanceRunId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails getBody$() { + return updateMaintenanceRunDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateMaintenanceRunRequest, + com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The updated maintenance run details. + */ + private com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails + updateMaintenanceRunDetails = null; + + /** + * The updated maintenance run details. + * @param updateMaintenanceRunDetails the value to set + * @return this builder instance + */ + public Builder updateMaintenanceRunDetails( + com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails + updateMaintenanceRunDetails) { + this.updateMaintenanceRunDetails = updateMaintenanceRunDetails; + return this; + } + + /** + * The maintenance run OCID. + */ + private String maintenanceRunId = null; + + /** + * The maintenance run OCID. + * @param maintenanceRunId the value to set + * @return this builder instance + */ + public Builder maintenanceRunId(String maintenanceRunId) { + this.maintenanceRunId = maintenanceRunId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateMaintenanceRunRequest o) { + updateMaintenanceRunDetails(o.getUpdateMaintenanceRunDetails()); + maintenanceRunId(o.getMaintenanceRunId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateMaintenanceRunRequest 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 UpdateMaintenanceRunRequest + */ + public UpdateMaintenanceRunRequest build() { + UpdateMaintenanceRunRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.datacc.model.UpdateMaintenanceRunDetails body) { + updateMaintenanceRunDetails(body); + return this; + } + + /** + * Build the instance of UpdateMaintenanceRunRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateMaintenanceRunRequest + */ + public UpdateMaintenanceRunRequest buildWithoutInvocationCallback() { + UpdateMaintenanceRunRequest request = new UpdateMaintenanceRunRequest(); + request.updateMaintenanceRunDetails = updateMaintenanceRunDetails; + request.maintenanceRunId = maintenanceRunId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateMaintenanceRunRequest(updateMaintenanceRunDetails, maintenanceRunId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .updateMaintenanceRunDetails(updateMaintenanceRunDetails) + .maintenanceRunId(maintenanceRunId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",updateMaintenanceRunDetails=") + .append(String.valueOf(this.updateMaintenanceRunDetails)); + sb.append(",maintenanceRunId=").append(String.valueOf(this.maintenanceRunId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMaintenanceRunRequest)) { + return false; + } + + UpdateMaintenanceRunRequest other = (UpdateMaintenanceRunRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.updateMaintenanceRunDetails, other.updateMaintenanceRunDetails) + && java.util.Objects.equals(this.maintenanceRunId, other.maintenanceRunId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.updateMaintenanceRunDetails == null + ? 43 + : this.updateMaintenanceRunDetails.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRunId == null ? 43 : this.maintenanceRunId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateVmClusterNetworkRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateVmClusterNetworkRequest.java new file mode 100644 index 00000000000..3143db1e33f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateVmClusterNetworkRequest.java @@ -0,0 +1,317 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use UpdateVmClusterNetworkRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateVmClusterNetworkRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails> { + + /** + * The updated VM cluster details. + */ + private com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails updateVmClusterNetworkDetails; + + /** + * The updated VM cluster details. + */ + public com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails + getUpdateVmClusterNetworkDetails() { + return updateVmClusterNetworkDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + private String vmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + public String getVmClusterNetworkId() { + return vmClusterNetworkId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails getBody$() { + return updateVmClusterNetworkDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateVmClusterNetworkRequest, + com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The updated VM cluster details. + */ + private com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails + updateVmClusterNetworkDetails = null; + + /** + * The updated VM cluster details. + * @param updateVmClusterNetworkDetails the value to set + * @return this builder instance + */ + public Builder updateVmClusterNetworkDetails( + com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails + updateVmClusterNetworkDetails) { + this.updateVmClusterNetworkDetails = updateVmClusterNetworkDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + private String vmClusterNetworkId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + * @param vmClusterNetworkId the value to set + * @return this builder instance + */ + public Builder vmClusterNetworkId(String vmClusterNetworkId) { + this.vmClusterNetworkId = vmClusterNetworkId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateVmClusterNetworkRequest o) { + updateVmClusterNetworkDetails(o.getUpdateVmClusterNetworkDetails()); + vmClusterNetworkId(o.getVmClusterNetworkId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateVmClusterNetworkRequest 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 UpdateVmClusterNetworkRequest + */ + public UpdateVmClusterNetworkRequest build() { + UpdateVmClusterNetworkRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.datacc.model.UpdateVmClusterNetworkDetails body) { + updateVmClusterNetworkDetails(body); + return this; + } + + /** + * Build the instance of UpdateVmClusterNetworkRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateVmClusterNetworkRequest + */ + public UpdateVmClusterNetworkRequest buildWithoutInvocationCallback() { + UpdateVmClusterNetworkRequest request = new UpdateVmClusterNetworkRequest(); + request.updateVmClusterNetworkDetails = updateVmClusterNetworkDetails; + request.vmClusterNetworkId = vmClusterNetworkId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateVmClusterNetworkRequest(updateVmClusterNetworkDetails, vmClusterNetworkId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .updateVmClusterNetworkDetails(updateVmClusterNetworkDetails) + .vmClusterNetworkId(vmClusterNetworkId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",updateVmClusterNetworkDetails=") + .append(String.valueOf(this.updateVmClusterNetworkDetails)); + sb.append(",vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateVmClusterNetworkRequest)) { + return false; + } + + UpdateVmClusterNetworkRequest other = (UpdateVmClusterNetworkRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.updateVmClusterNetworkDetails, other.updateVmClusterNetworkDetails) + && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.updateVmClusterNetworkDetails == null + ? 43 + : this.updateVmClusterNetworkDetails.hashCode()); + result = + (result * PRIME) + + (this.vmClusterNetworkId == null + ? 43 + : this.vmClusterNetworkId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateVmInstanceRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateVmInstanceRequest.java new file mode 100644 index 00000000000..5ed519f36c7 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/UpdateVmInstanceRequest.java @@ -0,0 +1,308 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use UpdateVmInstanceRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateVmInstanceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.UpdateVmInstanceDetails> { + + /** + * The updated VM instance details. + */ + private com.oracle.bmc.datacc.model.UpdateVmInstanceDetails updateVmInstanceDetails; + + /** + * The updated VM instance details. + */ + public com.oracle.bmc.datacc.model.UpdateVmInstanceDetails getUpdateVmInstanceDetails() { + return updateVmInstanceDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + public String getVmInstanceId() { + return vmInstanceId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.UpdateVmInstanceDetails getBody$() { + return updateVmInstanceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateVmInstanceRequest, com.oracle.bmc.datacc.model.UpdateVmInstanceDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The updated VM instance details. + */ + private com.oracle.bmc.datacc.model.UpdateVmInstanceDetails updateVmInstanceDetails = null; + + /** + * The updated VM instance details. + * @param updateVmInstanceDetails the value to set + * @return this builder instance + */ + public Builder updateVmInstanceDetails( + com.oracle.bmc.datacc.model.UpdateVmInstanceDetails updateVmInstanceDetails) { + this.updateVmInstanceDetails = updateVmInstanceDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + */ + private String vmInstanceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM instance. + * @param vmInstanceId the value to set + * @return this builder instance + */ + public Builder vmInstanceId(String vmInstanceId) { + this.vmInstanceId = vmInstanceId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateVmInstanceRequest o) { + updateVmInstanceDetails(o.getUpdateVmInstanceDetails()); + vmInstanceId(o.getVmInstanceId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateVmInstanceRequest 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 UpdateVmInstanceRequest + */ + public UpdateVmInstanceRequest build() { + UpdateVmInstanceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.datacc.model.UpdateVmInstanceDetails body) { + updateVmInstanceDetails(body); + return this; + } + + /** + * Build the instance of UpdateVmInstanceRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateVmInstanceRequest + */ + public UpdateVmInstanceRequest buildWithoutInvocationCallback() { + UpdateVmInstanceRequest request = new UpdateVmInstanceRequest(); + request.updateVmInstanceDetails = updateVmInstanceDetails; + request.vmInstanceId = vmInstanceId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateVmInstanceRequest(updateVmInstanceDetails, vmInstanceId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .updateVmInstanceDetails(updateVmInstanceDetails) + .vmInstanceId(vmInstanceId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",updateVmInstanceDetails=").append(String.valueOf(this.updateVmInstanceDetails)); + sb.append(",vmInstanceId=").append(String.valueOf(this.vmInstanceId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateVmInstanceRequest)) { + return false; + } + + UpdateVmInstanceRequest other = (UpdateVmInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.updateVmInstanceDetails, other.updateVmInstanceDetails) + && java.util.Objects.equals(this.vmInstanceId, other.vmInstanceId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.updateVmInstanceDetails == null + ? 43 + : this.updateVmInstanceDetails.hashCode()); + result = (result * PRIME) + (this.vmInstanceId == null ? 43 : this.vmInstanceId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ValidateInfrastructureRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ValidateInfrastructureRequest.java new file mode 100644 index 00000000000..3e284795966 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ValidateInfrastructureRequest.java @@ -0,0 +1,369 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ValidateInfrastructureRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ValidateInfrastructureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacc.model.ValidateInfrastructureDetails> { + + /** + * The validation details for the Database Infrastructure. + */ + private com.oracle.bmc.datacc.model.ValidateInfrastructureDetails validateInfrastructureDetails; + + /** + * The validation details for the Database Infrastructure. + */ + public com.oracle.bmc.datacc.model.ValidateInfrastructureDetails + getValidateInfrastructureDetails() { + return validateInfrastructureDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + public String getInfrastructureId() { + return infrastructureId; + } + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacc.model.ValidateInfrastructureDetails getBody$() { + return validateInfrastructureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ValidateInfrastructureRequest, + com.oracle.bmc.datacc.model.ValidateInfrastructureDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The validation details for the Database Infrastructure. + */ + private com.oracle.bmc.datacc.model.ValidateInfrastructureDetails + validateInfrastructureDetails = null; + + /** + * The validation details for the Database Infrastructure. + * @param validateInfrastructureDetails the value to set + * @return this builder instance + */ + public Builder validateInfrastructureDetails( + com.oracle.bmc.datacc.model.ValidateInfrastructureDetails + validateInfrastructureDetails) { + this.validateInfrastructureDetails = validateInfrastructureDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + */ + private String infrastructureId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Infrastructure. + * @param infrastructureId the value to set + * @return this builder instance + */ + public Builder infrastructureId(String infrastructureId) { + this.infrastructureId = infrastructureId; + return this; + } + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ValidateInfrastructureRequest o) { + validateInfrastructureDetails(o.getValidateInfrastructureDetails()); + infrastructureId(o.getInfrastructureId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ValidateInfrastructureRequest 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 ValidateInfrastructureRequest + */ + public ValidateInfrastructureRequest build() { + ValidateInfrastructureRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.datacc.model.ValidateInfrastructureDetails body) { + validateInfrastructureDetails(body); + return this; + } + + /** + * Build the instance of ValidateInfrastructureRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ValidateInfrastructureRequest + */ + public ValidateInfrastructureRequest buildWithoutInvocationCallback() { + ValidateInfrastructureRequest request = new ValidateInfrastructureRequest(); + request.validateInfrastructureDetails = validateInfrastructureDetails; + request.infrastructureId = infrastructureId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ValidateInfrastructureRequest(validateInfrastructureDetails, infrastructureId, ifMatch, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .validateInfrastructureDetails(validateInfrastructureDetails) + .infrastructureId(infrastructureId) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",validateInfrastructureDetails=") + .append(String.valueOf(this.validateInfrastructureDetails)); + sb.append(",infrastructureId=").append(String.valueOf(this.infrastructureId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateInfrastructureRequest)) { + return false; + } + + ValidateInfrastructureRequest other = (ValidateInfrastructureRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.validateInfrastructureDetails, other.validateInfrastructureDetails) + && java.util.Objects.equals(this.infrastructureId, other.infrastructureId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.validateInfrastructureDetails == null + ? 43 + : this.validateInfrastructureDetails.hashCode()); + result = + (result * PRIME) + + (this.infrastructureId == null ? 43 : this.infrastructureId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ValidateVmClusterNetworkRequest.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ValidateVmClusterNetworkRequest.java new file mode 100644 index 00000000000..7e2bd153e77 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/requests/ValidateVmClusterNetworkRequest.java @@ -0,0 +1,306 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.requests; + +import com.oracle.bmc.datacc.model.*; +/** + * Example: Click here to see how to use ValidateVmClusterNetworkRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ValidateVmClusterNetworkRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + private String vmClusterNetworkId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + public String getVmClusterNetworkId() { + return vmClusterNetworkId; + } + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * The client request identifier. + */ + private String opcRequestId; + + /** + * The client request identifier. + */ + public String getOpcRequestId() { + return 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ValidateVmClusterNetworkRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + private String vmClusterNetworkId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. + * @param vmClusterNetworkId the value to set + * @return this builder instance + */ + public Builder vmClusterNetworkId(String vmClusterNetworkId) { + this.vmClusterNetworkId = vmClusterNetworkId; + return this; + } + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request, so the request can be retried without risk of processing that + * same action again, in the event of a timeout or server error. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * was deleted and purged from the system, then a retry of the original creation request + * can be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * The client request identifier. + */ + private String opcRequestId = null; + + /** + * The client request identifier. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the 'if-match' parameter to the value of the + * Etag from a previous GET or POST response for that resource. + * The resource is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + */ + private String ifMatch = null; + + /** + * 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 is updated or deleted only if the Etag that you + * provide matches the current Etag value for the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(ValidateVmClusterNetworkRequest o) { + vmClusterNetworkId(o.getVmClusterNetworkId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ValidateVmClusterNetworkRequest 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 ValidateVmClusterNetworkRequest + */ + public ValidateVmClusterNetworkRequest build() { + ValidateVmClusterNetworkRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ValidateVmClusterNetworkRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ValidateVmClusterNetworkRequest + */ + public ValidateVmClusterNetworkRequest buildWithoutInvocationCallback() { + ValidateVmClusterNetworkRequest request = new ValidateVmClusterNetworkRequest(); + request.vmClusterNetworkId = vmClusterNetworkId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ValidateVmClusterNetworkRequest(vmClusterNetworkId, opcRetryToken, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .vmClusterNetworkId(vmClusterNetworkId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",vmClusterNetworkId=").append(String.valueOf(this.vmClusterNetworkId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateVmClusterNetworkRequest)) { + return false; + } + + ValidateVmClusterNetworkRequest other = (ValidateVmClusterNetworkRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vmClusterNetworkId, other.vmClusterNetworkId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.vmClusterNetworkId == null + ? 43 + : this.vmClusterNetworkId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ActivateInfrastructureResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ActivateInfrastructureResponse.java new file mode 100644 index 00000000000..3df34891cbc --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ActivateInfrastructureResponse.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ActivateInfrastructureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned Infrastructure instance. + */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned Infrastructure instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.Infrastructure getInfrastructure() { + return infrastructure; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "infrastructure" + }) + private ActivateInfrastructureResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.infrastructure = infrastructure; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned Infrastructure instance. + */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned Infrastructure instance. + * @param infrastructure the value to set + * @return this builder + */ + public Builder infrastructure(com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + this.infrastructure = infrastructure; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ActivateInfrastructureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + infrastructure(o.getInfrastructure()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ActivateInfrastructureResponse build() { + return new ActivateInfrastructureResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + infrastructure); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",infrastructure=").append(String.valueOf(infrastructure)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateInfrastructureResponse)) { + return false; + } + + ActivateInfrastructureResponse other = (ActivateInfrastructureResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.infrastructure, other.infrastructure); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.infrastructure == null ? 43 : this.infrastructure.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeInfrastructureCompartmentResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeInfrastructureCompartmentResponse.java new file mode 100644 index 00000000000..a6d2c43552c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeInfrastructureCompartmentResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeInfrastructureCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeInfrastructureCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeInfrastructureCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeInfrastructureCompartmentResponse build() { + return new ChangeInfrastructureCompartmentResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeInfrastructureCompartmentResponse)) { + return false; + } + + ChangeInfrastructureCompartmentResponse other = (ChangeInfrastructureCompartmentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeVmClusterNetworkCompartmentResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeVmClusterNetworkCompartmentResponse.java new file mode 100644 index 00000000000..0a0cc289359 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeVmClusterNetworkCompartmentResponse.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeVmClusterNetworkCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeVmClusterNetworkCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeVmClusterNetworkCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeVmClusterNetworkCompartmentResponse build() { + return new ChangeVmClusterNetworkCompartmentResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeVmClusterNetworkCompartmentResponse)) { + return false; + } + + ChangeVmClusterNetworkCompartmentResponse other = + (ChangeVmClusterNetworkCompartmentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeVmInstanceCompartmentResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeVmInstanceCompartmentResponse.java new file mode 100644 index 00000000000..4d22989e690 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ChangeVmInstanceCompartmentResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ChangeVmInstanceCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeVmInstanceCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeVmInstanceCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeVmInstanceCompartmentResponse build() { + return new ChangeVmInstanceCompartmentResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeVmInstanceCompartmentResponse)) { + return false; + } + + ChangeVmInstanceCompartmentResponse other = (ChangeVmInstanceCompartmentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateInfrastructureResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateInfrastructureResponse.java new file mode 100644 index 00000000000..0a6bd931551 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateInfrastructureResponse.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateInfrastructureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned Infrastructure instance. + */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned Infrastructure instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.Infrastructure getInfrastructure() { + return infrastructure; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "infrastructure" + }) + private CreateInfrastructureResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.infrastructure = infrastructure; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned Infrastructure instance. + */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned Infrastructure instance. + * @param infrastructure the value to set + * @return this builder + */ + public Builder infrastructure(com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + this.infrastructure = infrastructure; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateInfrastructureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + infrastructure(o.getInfrastructure()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateInfrastructureResponse build() { + return new CreateInfrastructureResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + infrastructure); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",infrastructure=").append(String.valueOf(infrastructure)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateInfrastructureResponse)) { + return false; + } + + CreateInfrastructureResponse other = (CreateInfrastructureResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.infrastructure, other.infrastructure); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.infrastructure == null ? 43 : this.infrastructure.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateVmClusterNetworkResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateVmClusterNetworkResponse.java new file mode 100644 index 00000000000..ea6eedb1139 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateVmClusterNetworkResponse.java @@ -0,0 +1,299 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateVmClusterNetworkResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned VmClusterNetwork instance. + */ + private com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork; + + /** + * The returned VmClusterNetwork instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.VmClusterNetwork getVmClusterNetwork() { + return vmClusterNetwork; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "vmClusterNetwork" + }) + private CreateVmClusterNetworkResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.vmClusterNetwork = vmClusterNetwork; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned VmClusterNetwork instance. + */ + private com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork; + + /** + * The returned VmClusterNetwork instance. + * @param vmClusterNetwork the value to set + * @return this builder + */ + public Builder vmClusterNetwork( + com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork) { + this.vmClusterNetwork = vmClusterNetwork; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateVmClusterNetworkResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + vmClusterNetwork(o.getVmClusterNetwork()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateVmClusterNetworkResponse build() { + return new CreateVmClusterNetworkResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + vmClusterNetwork); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",vmClusterNetwork=").append(String.valueOf(vmClusterNetwork)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVmClusterNetworkResponse)) { + return false; + } + + CreateVmClusterNetworkResponse other = (CreateVmClusterNetworkResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.vmClusterNetwork, other.vmClusterNetwork); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.vmClusterNetwork == null ? 43 : this.vmClusterNetwork.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateVmInstanceResponse.java new file mode 100644 index 00000000000..4163e889608 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/CreateVmInstanceResponse.java @@ -0,0 +1,296 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class CreateVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned VmInstance instance. + */ + private com.oracle.bmc.datacc.model.VmInstance vmInstance; + + /** + * The returned VmInstance instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.VmInstance getVmInstance() { + return vmInstance; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "vmInstance" + }) + private CreateVmInstanceResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.VmInstance vmInstance) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.vmInstance = vmInstance; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned VmInstance instance. + */ + private com.oracle.bmc.datacc.model.VmInstance vmInstance; + + /** + * The returned VmInstance instance. + * @param vmInstance the value to set + * @return this builder + */ + public Builder vmInstance(com.oracle.bmc.datacc.model.VmInstance vmInstance) { + this.vmInstance = vmInstance; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateVmInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + vmInstance(o.getVmInstance()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateVmInstanceResponse build() { + return new CreateVmInstanceResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + vmInstance); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",vmInstance=").append(String.valueOf(vmInstance)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVmInstanceResponse)) { + return false; + } + + CreateVmInstanceResponse other = (CreateVmInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.vmInstance, other.vmInstance); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.vmInstance == null ? 43 : this.vmInstance.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteInfrastructureResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteInfrastructureResponse.java new file mode 100644 index 00000000000..96dfa7ff910 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteInfrastructureResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteInfrastructureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeleteInfrastructureResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteInfrastructureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteInfrastructureResponse build() { + return new DeleteInfrastructureResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteInfrastructureResponse)) { + return false; + } + + DeleteInfrastructureResponse other = (DeleteInfrastructureResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteVmClusterNetworkResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteVmClusterNetworkResponse.java new file mode 100644 index 00000000000..a999ee4e124 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteVmClusterNetworkResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteVmClusterNetworkResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeleteVmClusterNetworkResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteVmClusterNetworkResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteVmClusterNetworkResponse build() { + return new DeleteVmClusterNetworkResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteVmClusterNetworkResponse)) { + return false; + } + + DeleteVmClusterNetworkResponse other = (DeleteVmClusterNetworkResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteVmInstanceResponse.java new file mode 100644 index 00000000000..1a54fa1c04e --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DeleteVmInstanceResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DeleteVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeleteVmInstanceResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteVmInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteVmInstanceResponse build() { + return new DeleteVmInstanceResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteVmInstanceResponse)) { + return false; + } + + DeleteVmInstanceResponse other = (DeleteVmInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DownloadInfrastructureConfigFileResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DownloadInfrastructureConfigFileResponse.java new file mode 100644 index 00000000000..215d4adc24a --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DownloadInfrastructureConfigFileResponse.java @@ -0,0 +1,289 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DownloadInfrastructureConfigFileResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Size of the file. + */ + private Long contentLength; + + /** + * Size of the file. + * @return the value + */ + public Long getContentLength() { + return contentLength; + } + + /** + * The date and time the configuration file was created, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + private java.util.Date lastModified; + + /** + * The date and time the configuration file was created, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * @return the value + */ + public java.util.Date getLastModified() { + return lastModified; + } + + /** + * The returned java.io.InputStream instance. + */ + private java.io.InputStream inputStream; + + /** + * The returned java.io.InputStream instance. + * @return the value + */ + public java.io.InputStream getInputStream() { + return inputStream; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "contentLength", + "lastModified", + "inputStream" + }) + private DownloadInfrastructureConfigFileResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + Long contentLength, + java.util.Date lastModified, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.contentLength = contentLength; + this.lastModified = lastModified; + this.inputStream = inputStream; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Size of the file. + */ + private Long contentLength; + + /** + * Size of the file. + * @param contentLength the value to set + * @return this builder + */ + public Builder contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** + * The date and time the configuration file was created, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + private java.util.Date lastModified; + + /** + * The date and time the configuration file was created, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * @param lastModified the value to set + * @return this builder + */ + public Builder lastModified(java.util.Date lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * The returned java.io.InputStream instance. + */ + private java.io.InputStream inputStream; + + /** + * The returned java.io.InputStream instance. + * @param inputStream the value to set + * @return this builder + */ + public Builder inputStream(java.io.InputStream inputStream) { + this.inputStream = inputStream; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DownloadInfrastructureConfigFileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + contentLength(o.getContentLength()); + lastModified(o.getLastModified()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DownloadInfrastructureConfigFileResponse build() { + return new DownloadInfrastructureConfigFileResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + contentLength, + lastModified, + inputStream); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",contentLength=").append(String.valueOf(contentLength)); + sb.append(",lastModified=").append(String.valueOf(lastModified)); + sb.append(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DownloadInfrastructureConfigFileResponse)) { + return false; + } + + DownloadInfrastructureConfigFileResponse other = + (DownloadInfrastructureConfigFileResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.contentLength, other.contentLength) + && java.util.Objects.equals(this.lastModified, other.lastModified) + && java.util.Objects.equals(this.inputStream, other.inputStream); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.contentLength == null ? 43 : this.contentLength.hashCode()); + result = (result * PRIME) + (this.lastModified == null ? 43 : this.lastModified.hashCode()); + result = (result * PRIME) + (this.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DownloadInfrastructureValidationScriptResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DownloadInfrastructureValidationScriptResponse.java new file mode 100644 index 00000000000..31f9097e164 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/DownloadInfrastructureValidationScriptResponse.java @@ -0,0 +1,290 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class DownloadInfrastructureValidationScriptResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Size of the file. + */ + private Long contentLength; + + /** + * Size of the file. + * @return the value + */ + public Long getContentLength() { + return contentLength; + } + + /** + * The date and time the configuration file was created, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + private java.util.Date lastModified; + + /** + * The date and time the configuration file was created, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * @return the value + */ + public java.util.Date getLastModified() { + return lastModified; + } + + /** + * The returned java.io.InputStream instance. + */ + private java.io.InputStream inputStream; + + /** + * The returned java.io.InputStream instance. + * @return the value + */ + public java.io.InputStream getInputStream() { + return inputStream; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "contentLength", + "lastModified", + "inputStream" + }) + private DownloadInfrastructureValidationScriptResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + Long contentLength, + java.util.Date lastModified, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.contentLength = contentLength; + this.lastModified = lastModified; + this.inputStream = inputStream; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Size of the file. + */ + private Long contentLength; + + /** + * Size of the file. + * @param contentLength the value to set + * @return this builder + */ + public Builder contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** + * The date and time the configuration file was created, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + private java.util.Date lastModified; + + /** + * The date and time the configuration file was created, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * @param lastModified the value to set + * @return this builder + */ + public Builder lastModified(java.util.Date lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * The returned java.io.InputStream instance. + */ + private java.io.InputStream inputStream; + + /** + * The returned java.io.InputStream instance. + * @param inputStream the value to set + * @return this builder + */ + public Builder inputStream(java.io.InputStream inputStream) { + this.inputStream = inputStream; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DownloadInfrastructureValidationScriptResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + contentLength(o.getContentLength()); + lastModified(o.getLastModified()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DownloadInfrastructureValidationScriptResponse build() { + return new DownloadInfrastructureValidationScriptResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + contentLength, + lastModified, + inputStream); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",contentLength=").append(String.valueOf(contentLength)); + sb.append(",lastModified=").append(String.valueOf(lastModified)); + sb.append(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DownloadInfrastructureValidationScriptResponse)) { + return false; + } + + DownloadInfrastructureValidationScriptResponse other = + (DownloadInfrastructureValidationScriptResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.contentLength, other.contentLength) + && java.util.Objects.equals(this.lastModified, other.lastModified) + && java.util.Objects.equals(this.inputStream, other.inputStream); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.contentLength == null ? 43 : this.contentLength.hashCode()); + result = (result * PRIME) + (this.lastModified == null ? 43 : this.lastModified.hashCode()); + result = (result * PRIME) + (this.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GenerateRecommendedVmClusterNetworkResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GenerateRecommendedVmClusterNetworkResponse.java new file mode 100644 index 00000000000..fe024f71511 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GenerateRecommendedVmClusterNetworkResponse.java @@ -0,0 +1,309 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GenerateRecommendedVmClusterNetworkResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned CreateVmClusterNetworkDetails instance. + */ + private com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails createVmClusterNetworkDetails; + + /** + * The returned CreateVmClusterNetworkDetails instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails + getCreateVmClusterNetworkDetails() { + return createVmClusterNetworkDetails; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "createVmClusterNetworkDetails" + }) + private GenerateRecommendedVmClusterNetworkResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails + createVmClusterNetworkDetails) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.createVmClusterNetworkDetails = createVmClusterNetworkDetails; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned CreateVmClusterNetworkDetails instance. + */ + private com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails + createVmClusterNetworkDetails; + + /** + * The returned CreateVmClusterNetworkDetails instance. + * @param createVmClusterNetworkDetails the value to set + * @return this builder + */ + public Builder createVmClusterNetworkDetails( + com.oracle.bmc.datacc.model.CreateVmClusterNetworkDetails + createVmClusterNetworkDetails) { + this.createVmClusterNetworkDetails = createVmClusterNetworkDetails; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GenerateRecommendedVmClusterNetworkResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + createVmClusterNetworkDetails(o.getCreateVmClusterNetworkDetails()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GenerateRecommendedVmClusterNetworkResponse build() { + return new GenerateRecommendedVmClusterNetworkResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + createVmClusterNetworkDetails); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",createVmClusterNetworkDetails=") + .append(String.valueOf(createVmClusterNetworkDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateRecommendedVmClusterNetworkResponse)) { + return false; + } + + GenerateRecommendedVmClusterNetworkResponse other = + (GenerateRecommendedVmClusterNetworkResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals( + this.createVmClusterNetworkDetails, other.createVmClusterNetworkDetails); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.createVmClusterNetworkDetails == null + ? 43 + : this.createVmClusterNetworkDetails.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetInfrastructureResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetInfrastructureResponse.java new file mode 100644 index 00000000000..dda9962ada3 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetInfrastructureResponse.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetInfrastructureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned Infrastructure instance. + */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned Infrastructure instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.Infrastructure getInfrastructure() { + return infrastructure; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "location", + "infrastructure" + }) + private GetInfrastructureResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.infrastructure = infrastructure; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned Infrastructure instance. + */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned Infrastructure instance. + * @param infrastructure the value to set + * @return this builder + */ + public Builder infrastructure(com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + this.infrastructure = infrastructure; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetInfrastructureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + infrastructure(o.getInfrastructure()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetInfrastructureResponse build() { + return new GetInfrastructureResponse( + __httpStatusCode__, headers, opcRequestId, etag, location, infrastructure); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",infrastructure=").append(String.valueOf(infrastructure)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetInfrastructureResponse)) { + return false; + } + + GetInfrastructureResponse other = (GetInfrastructureResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.infrastructure, other.infrastructure); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.infrastructure == null ? 43 : this.infrastructure.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetInfrastructureScaleOptionResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetInfrastructureScaleOptionResponse.java new file mode 100644 index 00000000000..c6b87c3eceb --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetInfrastructureScaleOptionResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetInfrastructureScaleOptionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned InfrastructureScaleOption instance. + */ + private com.oracle.bmc.datacc.model.InfrastructureScaleOption infrastructureScaleOption; + + /** + * The returned InfrastructureScaleOption instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.InfrastructureScaleOption getInfrastructureScaleOption() { + return infrastructureScaleOption; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "infrastructureScaleOption" + }) + private GetInfrastructureScaleOptionResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.datacc.model.InfrastructureScaleOption infrastructureScaleOption) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.infrastructureScaleOption = infrastructureScaleOption; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned InfrastructureScaleOption instance. + */ + private com.oracle.bmc.datacc.model.InfrastructureScaleOption infrastructureScaleOption; + + /** + * The returned InfrastructureScaleOption instance. + * @param infrastructureScaleOption the value to set + * @return this builder + */ + public Builder infrastructureScaleOption( + com.oracle.bmc.datacc.model.InfrastructureScaleOption infrastructureScaleOption) { + this.infrastructureScaleOption = infrastructureScaleOption; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetInfrastructureScaleOptionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + infrastructureScaleOption(o.getInfrastructureScaleOption()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetInfrastructureScaleOptionResponse build() { + return new GetInfrastructureScaleOptionResponse( + __httpStatusCode__, headers, opcRequestId, infrastructureScaleOption); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",infrastructureScaleOption=").append(String.valueOf(infrastructureScaleOption)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetInfrastructureScaleOptionResponse)) { + return false; + } + + GetInfrastructureScaleOptionResponse other = (GetInfrastructureScaleOptionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.infrastructureScaleOption, other.infrastructureScaleOption); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.infrastructureScaleOption == null + ? 43 + : this.infrastructureScaleOption.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetMaintenanceExecutionResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetMaintenanceExecutionResponse.java new file mode 100644 index 00000000000..38cb68b4f41 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetMaintenanceExecutionResponse.java @@ -0,0 +1,259 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetMaintenanceExecutionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned MaintenanceExecution instance. + */ + private com.oracle.bmc.datacc.model.MaintenanceExecution maintenanceExecution; + + /** + * The returned MaintenanceExecution instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.MaintenanceExecution getMaintenanceExecution() { + return maintenanceExecution; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "location", + "maintenanceExecution" + }) + private GetMaintenanceExecutionResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.MaintenanceExecution maintenanceExecution) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.maintenanceExecution = maintenanceExecution; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned MaintenanceExecution instance. + */ + private com.oracle.bmc.datacc.model.MaintenanceExecution maintenanceExecution; + + /** + * The returned MaintenanceExecution instance. + * @param maintenanceExecution the value to set + * @return this builder + */ + public Builder maintenanceExecution( + com.oracle.bmc.datacc.model.MaintenanceExecution maintenanceExecution) { + this.maintenanceExecution = maintenanceExecution; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetMaintenanceExecutionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + maintenanceExecution(o.getMaintenanceExecution()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetMaintenanceExecutionResponse build() { + return new GetMaintenanceExecutionResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + location, + maintenanceExecution); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",maintenanceExecution=").append(String.valueOf(maintenanceExecution)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetMaintenanceExecutionResponse)) { + return false; + } + + GetMaintenanceExecutionResponse other = (GetMaintenanceExecutionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.maintenanceExecution, other.maintenanceExecution); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.maintenanceExecution == null + ? 43 + : this.maintenanceExecution.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetMaintenanceRunResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetMaintenanceRunResponse.java new file mode 100644 index 00000000000..a76977a5b33 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetMaintenanceRunResponse.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetMaintenanceRunResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned MaintenanceRun instance. + */ + private com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun; + + /** + * The returned MaintenanceRun instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.MaintenanceRun getMaintenanceRun() { + return maintenanceRun; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "location", + "maintenanceRun" + }) + private GetMaintenanceRunResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.maintenanceRun = maintenanceRun; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned MaintenanceRun instance. + */ + private com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun; + + /** + * The returned MaintenanceRun instance. + * @param maintenanceRun the value to set + * @return this builder + */ + public Builder maintenanceRun(com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun) { + this.maintenanceRun = maintenanceRun; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetMaintenanceRunResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + maintenanceRun(o.getMaintenanceRun()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetMaintenanceRunResponse build() { + return new GetMaintenanceRunResponse( + __httpStatusCode__, headers, opcRequestId, etag, location, maintenanceRun); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",maintenanceRun=").append(String.valueOf(maintenanceRun)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetMaintenanceRunResponse)) { + return false; + } + + GetMaintenanceRunResponse other = (GetMaintenanceRunResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.maintenanceRun, other.maintenanceRun); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRun == null ? 43 : this.maintenanceRun.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetVmClusterNetworkResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetVmClusterNetworkResponse.java new file mode 100644 index 00000000000..3998c36d6f1 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetVmClusterNetworkResponse.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetVmClusterNetworkResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned VmClusterNetwork instance. + */ + private com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork; + + /** + * The returned VmClusterNetwork instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.VmClusterNetwork getVmClusterNetwork() { + return vmClusterNetwork; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "location", + "vmClusterNetwork" + }) + private GetVmClusterNetworkResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.vmClusterNetwork = vmClusterNetwork; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned VmClusterNetwork instance. + */ + private com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork; + + /** + * The returned VmClusterNetwork instance. + * @param vmClusterNetwork the value to set + * @return this builder + */ + public Builder vmClusterNetwork( + com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork) { + this.vmClusterNetwork = vmClusterNetwork; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetVmClusterNetworkResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + vmClusterNetwork(o.getVmClusterNetwork()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetVmClusterNetworkResponse build() { + return new GetVmClusterNetworkResponse( + __httpStatusCode__, headers, opcRequestId, etag, location, vmClusterNetwork); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",vmClusterNetwork=").append(String.valueOf(vmClusterNetwork)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetVmClusterNetworkResponse)) { + return false; + } + + GetVmClusterNetworkResponse other = (GetVmClusterNetworkResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.vmClusterNetwork, other.vmClusterNetwork); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.vmClusterNetwork == null ? 43 : this.vmClusterNetwork.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetVmInstanceResponse.java new file mode 100644 index 00000000000..ac29e6174d0 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetVmInstanceResponse.java @@ -0,0 +1,249 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned VmInstance instance. + */ + private com.oracle.bmc.datacc.model.VmInstance vmInstance; + + /** + * The returned VmInstance instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.VmInstance getVmInstance() { + return vmInstance; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "location", + "vmInstance" + }) + private GetVmInstanceResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.VmInstance vmInstance) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.vmInstance = vmInstance; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned VmInstance instance. + */ + private com.oracle.bmc.datacc.model.VmInstance vmInstance; + + /** + * The returned VmInstance instance. + * @param vmInstance the value to set + * @return this builder + */ + public Builder vmInstance(com.oracle.bmc.datacc.model.VmInstance vmInstance) { + this.vmInstance = vmInstance; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetVmInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + vmInstance(o.getVmInstance()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetVmInstanceResponse build() { + return new GetVmInstanceResponse( + __httpStatusCode__, headers, opcRequestId, etag, location, vmInstance); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",vmInstance=").append(String.valueOf(vmInstance)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetVmInstanceResponse)) { + return false; + } + + GetVmInstanceResponse other = (GetVmInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.vmInstance, other.vmInstance); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.vmInstance == null ? 43 : this.vmInstance.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetWorkRequestResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetWorkRequestResponse.java new file mode 100644 index 00000000000..7f45ea3db97 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/GetWorkRequestResponse.java @@ -0,0 +1,245 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class GetWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * An integer representing the number of seconds the client should wait before polling this endpoint again. + */ + private Integer retryAfter; + + /** + * An integer representing the number of seconds the client should wait before polling this endpoint again. + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** + * The returned WorkRequest instance. + */ + private com.oracle.bmc.datacc.model.WorkRequest workRequest; + + /** + * The returned WorkRequest instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.WorkRequest getWorkRequest() { + return workRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "retryAfter", + "workRequest" + }) + private GetWorkRequestResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + Integer retryAfter, + com.oracle.bmc.datacc.model.WorkRequest workRequest) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.workRequest = workRequest; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * An integer representing the number of seconds the client should wait before polling this endpoint again. + */ + private Integer retryAfter; + + /** + * An integer representing the number of seconds the client should wait before polling this endpoint again. + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** + * The returned WorkRequest instance. + */ + private com.oracle.bmc.datacc.model.WorkRequest workRequest; + + /** + * The returned WorkRequest instance. + * @param workRequest the value to set + * @return this builder + */ + public Builder workRequest(com.oracle.bmc.datacc.model.WorkRequest workRequest) { + this.workRequest = workRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + workRequest(o.getWorkRequest()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetWorkRequestResponse build() { + return new GetWorkRequestResponse( + __httpStatusCode__, headers, etag, opcRequestId, retryAfter, workRequest); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",workRequest=").append(String.valueOf(workRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestResponse)) { + return false; + } + + GetWorkRequestResponse other = (GetWorkRequestResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.workRequest, other.workRequest); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + result = (result * PRIME) + (this.workRequest == null ? 43 : this.workRequest.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListInfrastructuresResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListInfrastructuresResponse.java new file mode 100644 index 00000000000..c067b2d8db1 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListInfrastructuresResponse.java @@ -0,0 +1,224 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListInfrastructuresResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned InfrastructureCollection instance. + */ + private com.oracle.bmc.datacc.model.InfrastructureCollection infrastructureCollection; + + /** + * The returned InfrastructureCollection instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.InfrastructureCollection getInfrastructureCollection() { + return infrastructureCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "infrastructureCollection" + }) + private ListInfrastructuresResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.InfrastructureCollection infrastructureCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.infrastructureCollection = infrastructureCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned InfrastructureCollection instance. + */ + private com.oracle.bmc.datacc.model.InfrastructureCollection infrastructureCollection; + + /** + * The returned InfrastructureCollection instance. + * @param infrastructureCollection the value to set + * @return this builder + */ + public Builder infrastructureCollection( + com.oracle.bmc.datacc.model.InfrastructureCollection infrastructureCollection) { + this.infrastructureCollection = infrastructureCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListInfrastructuresResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + infrastructureCollection(o.getInfrastructureCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListInfrastructuresResponse build() { + return new ListInfrastructuresResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + infrastructureCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",infrastructureCollection=").append(String.valueOf(infrastructureCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListInfrastructuresResponse)) { + return false; + } + + ListInfrastructuresResponse other = (ListInfrastructuresResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.infrastructureCollection, other.infrastructureCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.infrastructureCollection == null + ? 43 + : this.infrastructureCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListMaintenanceExecutionsResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListMaintenanceExecutionsResponse.java new file mode 100644 index 00000000000..eee92f7f824 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListMaintenanceExecutionsResponse.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListMaintenanceExecutionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned MaintenanceExecutionCollection instance. + */ + private com.oracle.bmc.datacc.model.MaintenanceExecutionCollection + maintenanceExecutionCollection; + + /** + * The returned MaintenanceExecutionCollection instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.MaintenanceExecutionCollection + getMaintenanceExecutionCollection() { + return maintenanceExecutionCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "maintenanceExecutionCollection" + }) + private ListMaintenanceExecutionsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.MaintenanceExecutionCollection + maintenanceExecutionCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.maintenanceExecutionCollection = maintenanceExecutionCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned MaintenanceExecutionCollection instance. + */ + private com.oracle.bmc.datacc.model.MaintenanceExecutionCollection + maintenanceExecutionCollection; + + /** + * The returned MaintenanceExecutionCollection instance. + * @param maintenanceExecutionCollection the value to set + * @return this builder + */ + public Builder maintenanceExecutionCollection( + com.oracle.bmc.datacc.model.MaintenanceExecutionCollection + maintenanceExecutionCollection) { + this.maintenanceExecutionCollection = maintenanceExecutionCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListMaintenanceExecutionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + maintenanceExecutionCollection(o.getMaintenanceExecutionCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListMaintenanceExecutionsResponse build() { + return new ListMaintenanceExecutionsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + maintenanceExecutionCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",maintenanceExecutionCollection=") + .append(String.valueOf(maintenanceExecutionCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMaintenanceExecutionsResponse)) { + return false; + } + + ListMaintenanceExecutionsResponse other = (ListMaintenanceExecutionsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.maintenanceExecutionCollection, other.maintenanceExecutionCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.maintenanceExecutionCollection == null + ? 43 + : this.maintenanceExecutionCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListMaintenanceRunsResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListMaintenanceRunsResponse.java new file mode 100644 index 00000000000..3d0e9462e21 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListMaintenanceRunsResponse.java @@ -0,0 +1,224 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListMaintenanceRunsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned MaintenanceRunCollection instance. + */ + private com.oracle.bmc.datacc.model.MaintenanceRunCollection maintenanceRunCollection; + + /** + * The returned MaintenanceRunCollection instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.MaintenanceRunCollection getMaintenanceRunCollection() { + return maintenanceRunCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "maintenanceRunCollection" + }) + private ListMaintenanceRunsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.MaintenanceRunCollection maintenanceRunCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.maintenanceRunCollection = maintenanceRunCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned MaintenanceRunCollection instance. + */ + private com.oracle.bmc.datacc.model.MaintenanceRunCollection maintenanceRunCollection; + + /** + * The returned MaintenanceRunCollection instance. + * @param maintenanceRunCollection the value to set + * @return this builder + */ + public Builder maintenanceRunCollection( + com.oracle.bmc.datacc.model.MaintenanceRunCollection maintenanceRunCollection) { + this.maintenanceRunCollection = maintenanceRunCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListMaintenanceRunsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + maintenanceRunCollection(o.getMaintenanceRunCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListMaintenanceRunsResponse build() { + return new ListMaintenanceRunsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + maintenanceRunCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",maintenanceRunCollection=").append(String.valueOf(maintenanceRunCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMaintenanceRunsResponse)) { + return false; + } + + ListMaintenanceRunsResponse other = (ListMaintenanceRunsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.maintenanceRunCollection, other.maintenanceRunCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRunCollection == null + ? 43 + : this.maintenanceRunCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListVmClusterNetworksResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListVmClusterNetworksResponse.java new file mode 100644 index 00000000000..2ac54ddfb57 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListVmClusterNetworksResponse.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListVmClusterNetworksResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned VmClusterNetworkCollection instance. + */ + private com.oracle.bmc.datacc.model.VmClusterNetworkCollection vmClusterNetworkCollection; + + /** + * The returned VmClusterNetworkCollection instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.VmClusterNetworkCollection getVmClusterNetworkCollection() { + return vmClusterNetworkCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "vmClusterNetworkCollection" + }) + private ListVmClusterNetworksResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.VmClusterNetworkCollection vmClusterNetworkCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.vmClusterNetworkCollection = vmClusterNetworkCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned VmClusterNetworkCollection instance. + */ + private com.oracle.bmc.datacc.model.VmClusterNetworkCollection vmClusterNetworkCollection; + + /** + * The returned VmClusterNetworkCollection instance. + * @param vmClusterNetworkCollection the value to set + * @return this builder + */ + public Builder vmClusterNetworkCollection( + com.oracle.bmc.datacc.model.VmClusterNetworkCollection vmClusterNetworkCollection) { + this.vmClusterNetworkCollection = vmClusterNetworkCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListVmClusterNetworksResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + vmClusterNetworkCollection(o.getVmClusterNetworkCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListVmClusterNetworksResponse build() { + return new ListVmClusterNetworksResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + vmClusterNetworkCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",vmClusterNetworkCollection=") + .append(String.valueOf(vmClusterNetworkCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVmClusterNetworksResponse)) { + return false; + } + + ListVmClusterNetworksResponse other = (ListVmClusterNetworksResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.vmClusterNetworkCollection, other.vmClusterNetworkCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.vmClusterNetworkCollection == null + ? 43 + : this.vmClusterNetworkCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListVmInstancesResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListVmInstancesResponse.java new file mode 100644 index 00000000000..601d20b53a0 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListVmInstancesResponse.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListVmInstancesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned VmInstanceCollection instance. + */ + private com.oracle.bmc.datacc.model.VmInstanceCollection vmInstanceCollection; + + /** + * The returned VmInstanceCollection instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.VmInstanceCollection getVmInstanceCollection() { + return vmInstanceCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "vmInstanceCollection" + }) + private ListVmInstancesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.VmInstanceCollection vmInstanceCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.vmInstanceCollection = vmInstanceCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned VmInstanceCollection instance. + */ + private com.oracle.bmc.datacc.model.VmInstanceCollection vmInstanceCollection; + + /** + * The returned VmInstanceCollection instance. + * @param vmInstanceCollection the value to set + * @return this builder + */ + public Builder vmInstanceCollection( + com.oracle.bmc.datacc.model.VmInstanceCollection vmInstanceCollection) { + this.vmInstanceCollection = vmInstanceCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListVmInstancesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + vmInstanceCollection(o.getVmInstanceCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListVmInstancesResponse build() { + return new ListVmInstancesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, vmInstanceCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",vmInstanceCollection=").append(String.valueOf(vmInstanceCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVmInstancesResponse)) { + return false; + } + + ListVmInstancesResponse other = (ListVmInstancesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.vmInstanceCollection, other.vmInstanceCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.vmInstanceCollection == null + ? 43 + : this.vmInstanceCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestErrorsResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestErrorsResponse.java new file mode 100644 index 00000000000..0b9c359fd5e --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestErrorsResponse.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestErrorsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned WorkRequestErrorCollection instance. + */ + private com.oracle.bmc.datacc.model.WorkRequestErrorCollection workRequestErrorCollection; + + /** + * The returned WorkRequestErrorCollection instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.WorkRequestErrorCollection getWorkRequestErrorCollection() { + return workRequestErrorCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "workRequestErrorCollection" + }) + private ListWorkRequestErrorsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.WorkRequestErrorCollection workRequestErrorCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.workRequestErrorCollection = workRequestErrorCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned WorkRequestErrorCollection instance. + */ + private com.oracle.bmc.datacc.model.WorkRequestErrorCollection workRequestErrorCollection; + + /** + * The returned WorkRequestErrorCollection instance. + * @param workRequestErrorCollection the value to set + * @return this builder + */ + public Builder workRequestErrorCollection( + com.oracle.bmc.datacc.model.WorkRequestErrorCollection workRequestErrorCollection) { + this.workRequestErrorCollection = workRequestErrorCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + workRequestErrorCollection(o.getWorkRequestErrorCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListWorkRequestErrorsResponse build() { + return new ListWorkRequestErrorsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + workRequestErrorCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",workRequestErrorCollection=") + .append(String.valueOf(workRequestErrorCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestErrorsResponse)) { + return false; + } + + ListWorkRequestErrorsResponse other = (ListWorkRequestErrorsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.workRequestErrorCollection, other.workRequestErrorCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.workRequestErrorCollection == null + ? 43 + : this.workRequestErrorCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestLogsResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestLogsResponse.java new file mode 100644 index 00000000000..f74ed119c4d --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestLogsResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestLogsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned WorkRequestLogEntryCollection instance. + */ + private com.oracle.bmc.datacc.model.WorkRequestLogEntryCollection workRequestLogEntryCollection; + + /** + * The returned WorkRequestLogEntryCollection instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.WorkRequestLogEntryCollection + getWorkRequestLogEntryCollection() { + return workRequestLogEntryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "workRequestLogEntryCollection" + }) + private ListWorkRequestLogsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned WorkRequestLogEntryCollection instance. + */ + private com.oracle.bmc.datacc.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned WorkRequestLogEntryCollection instance. + * @param workRequestLogEntryCollection the value to set + * @return this builder + */ + public Builder workRequestLogEntryCollection( + com.oracle.bmc.datacc.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestLogsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + workRequestLogEntryCollection(o.getWorkRequestLogEntryCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListWorkRequestLogsResponse build() { + return new ListWorkRequestLogsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + workRequestLogEntryCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",workRequestLogEntryCollection=") + .append(String.valueOf(workRequestLogEntryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestLogsResponse)) { + return false; + } + + ListWorkRequestLogsResponse other = (ListWorkRequestLogsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.workRequestLogEntryCollection, other.workRequestLogEntryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.workRequestLogEntryCollection == null + ? 43 + : this.workRequestLogEntryCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestsResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestsResponse.java new file mode 100644 index 00000000000..881bb0d4c73 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ListWorkRequestsResponse.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ListWorkRequestsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned WorkRequestCollection instance. + */ + private com.oracle.bmc.datacc.model.WorkRequestCollection workRequestCollection; + + /** + * The returned WorkRequestCollection instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.WorkRequestCollection getWorkRequestCollection() { + return workRequestCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "workRequestCollection" + }) + private ListWorkRequestsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacc.model.WorkRequestCollection workRequestCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.workRequestCollection = workRequestCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then it can mean that a partial list was returned. To obtain the next batch of items, include this value as the {@code page} parameter for your next GET request. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned WorkRequestCollection instance. + */ + private com.oracle.bmc.datacc.model.WorkRequestCollection workRequestCollection; + + /** + * The returned WorkRequestCollection instance. + * @param workRequestCollection the value to set + * @return this builder + */ + public Builder workRequestCollection( + com.oracle.bmc.datacc.model.WorkRequestCollection workRequestCollection) { + this.workRequestCollection = workRequestCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + workRequestCollection(o.getWorkRequestCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListWorkRequestsResponse build() { + return new ListWorkRequestsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, workRequestCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",workRequestCollection=").append(String.valueOf(workRequestCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsResponse)) { + return false; + } + + ListWorkRequestsResponse other = (ListWorkRequestsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.workRequestCollection, other.workRequestCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.workRequestCollection == null + ? 43 + : this.workRequestCollection.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/MigrateVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/MigrateVmInstanceResponse.java new file mode 100644 index 00000000000..ce3faa5392c --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/MigrateVmInstanceResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class MigrateVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private MigrateVmInstanceResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(MigrateVmInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public MigrateVmInstanceResponse build() { + return new MigrateVmInstanceResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MigrateVmInstanceResponse)) { + return false; + } + + MigrateVmInstanceResponse other = (MigrateVmInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/RescheduleMaintenanceRunResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/RescheduleMaintenanceRunResponse.java new file mode 100644 index 00000000000..264e8027da7 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/RescheduleMaintenanceRunResponse.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class RescheduleMaintenanceRunResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned MaintenanceRun instance. + */ + private com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun; + + /** + * The returned MaintenanceRun instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.MaintenanceRun getMaintenanceRun() { + return maintenanceRun; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "maintenanceRun" + }) + private RescheduleMaintenanceRunResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.maintenanceRun = maintenanceRun; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned MaintenanceRun instance. + */ + private com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun; + + /** + * The returned MaintenanceRun instance. + * @param maintenanceRun the value to set + * @return this builder + */ + public Builder maintenanceRun(com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun) { + this.maintenanceRun = maintenanceRun; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RescheduleMaintenanceRunResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + maintenanceRun(o.getMaintenanceRun()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RescheduleMaintenanceRunResponse build() { + return new RescheduleMaintenanceRunResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + maintenanceRun); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",maintenanceRun=").append(String.valueOf(maintenanceRun)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RescheduleMaintenanceRunResponse)) { + return false; + } + + RescheduleMaintenanceRunResponse other = (RescheduleMaintenanceRunResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.maintenanceRun, other.maintenanceRun); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRun == null ? 43 : this.maintenanceRun.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/RestartVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/RestartVmInstanceResponse.java new file mode 100644 index 00000000000..6e9b1ac20fb --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/RestartVmInstanceResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class RestartVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RestartVmInstanceResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RestartVmInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RestartVmInstanceResponse build() { + return new RestartVmInstanceResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RestartVmInstanceResponse)) { + return false; + } + + RestartVmInstanceResponse other = (RestartVmInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ScaleInfrastructureStorageResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ScaleInfrastructureStorageResponse.java new file mode 100644 index 00000000000..563dc1f93a6 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ScaleInfrastructureStorageResponse.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ScaleInfrastructureStorageResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "location" + }) + private ScaleInfrastructureStorageResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String location) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.location = location; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ScaleInfrastructureStorageResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + location(o.getLocation()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ScaleInfrastructureStorageResponse build() { + return new ScaleInfrastructureStorageResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId, location); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScaleInfrastructureStorageResponse)) { + return false; + } + + ScaleInfrastructureStorageResponse other = (ScaleInfrastructureStorageResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.location, other.location); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ScaleVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ScaleVmInstanceResponse.java new file mode 100644 index 00000000000..cb8e7d8ad27 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ScaleVmInstanceResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ScaleVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ScaleVmInstanceResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ScaleVmInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ScaleVmInstanceResponse build() { + return new ScaleVmInstanceResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScaleVmInstanceResponse)) { + return false; + } + + ScaleVmInstanceResponse other = (ScaleVmInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/StartVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/StartVmInstanceResponse.java new file mode 100644 index 00000000000..05dc6823ab1 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/StartVmInstanceResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class StartVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private StartVmInstanceResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(StartVmInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public StartVmInstanceResponse build() { + return new StartVmInstanceResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StartVmInstanceResponse)) { + return false; + } + + StartVmInstanceResponse other = (StartVmInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/StopVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/StopVmInstanceResponse.java new file mode 100644 index 00000000000..73a260e43ff --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/StopVmInstanceResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class StopVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private StopVmInstanceResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(StopVmInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public StopVmInstanceResponse build() { + return new StopVmInstanceResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StopVmInstanceResponse)) { + return false; + } + + StopVmInstanceResponse other = (StopVmInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateInfrastructureResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateInfrastructureResponse.java new file mode 100644 index 00000000000..2c7fe0b577f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateInfrastructureResponse.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateInfrastructureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned Infrastructure instance. + */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned Infrastructure instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.Infrastructure getInfrastructure() { + return infrastructure; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "infrastructure" + }) + private UpdateInfrastructureResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.infrastructure = infrastructure; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned Infrastructure instance. + */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned Infrastructure instance. + * @param infrastructure the value to set + * @return this builder + */ + public Builder infrastructure(com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + this.infrastructure = infrastructure; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateInfrastructureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + infrastructure(o.getInfrastructure()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateInfrastructureResponse build() { + return new UpdateInfrastructureResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + infrastructure); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",infrastructure=").append(String.valueOf(infrastructure)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateInfrastructureResponse)) { + return false; + } + + UpdateInfrastructureResponse other = (UpdateInfrastructureResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.infrastructure, other.infrastructure); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.infrastructure == null ? 43 : this.infrastructure.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateMaintenanceRunResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateMaintenanceRunResponse.java new file mode 100644 index 00000000000..5b58770aec6 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateMaintenanceRunResponse.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateMaintenanceRunResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned MaintenanceRun instance. + */ + private com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun; + + /** + * The returned MaintenanceRun instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.MaintenanceRun getMaintenanceRun() { + return maintenanceRun; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "maintenanceRun" + }) + private UpdateMaintenanceRunResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.maintenanceRun = maintenanceRun; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned MaintenanceRun instance. + */ + private com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun; + + /** + * The returned MaintenanceRun instance. + * @param maintenanceRun the value to set + * @return this builder + */ + public Builder maintenanceRun(com.oracle.bmc.datacc.model.MaintenanceRun maintenanceRun) { + this.maintenanceRun = maintenanceRun; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateMaintenanceRunResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + maintenanceRun(o.getMaintenanceRun()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateMaintenanceRunResponse build() { + return new UpdateMaintenanceRunResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + maintenanceRun); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",maintenanceRun=").append(String.valueOf(maintenanceRun)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMaintenanceRunResponse)) { + return false; + } + + UpdateMaintenanceRunResponse other = (UpdateMaintenanceRunResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.maintenanceRun, other.maintenanceRun); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.maintenanceRun == null ? 43 : this.maintenanceRun.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateVmClusterNetworkResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateVmClusterNetworkResponse.java new file mode 100644 index 00000000000..46729e714ab --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateVmClusterNetworkResponse.java @@ -0,0 +1,299 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateVmClusterNetworkResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned VmClusterNetwork instance. + */ + private com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork; + + /** + * The returned VmClusterNetwork instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.VmClusterNetwork getVmClusterNetwork() { + return vmClusterNetwork; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "vmClusterNetwork" + }) + private UpdateVmClusterNetworkResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.vmClusterNetwork = vmClusterNetwork; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned VmClusterNetwork instance. + */ + private com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork; + + /** + * The returned VmClusterNetwork instance. + * @param vmClusterNetwork the value to set + * @return this builder + */ + public Builder vmClusterNetwork( + com.oracle.bmc.datacc.model.VmClusterNetwork vmClusterNetwork) { + this.vmClusterNetwork = vmClusterNetwork; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateVmClusterNetworkResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + vmClusterNetwork(o.getVmClusterNetwork()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateVmClusterNetworkResponse build() { + return new UpdateVmClusterNetworkResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + vmClusterNetwork); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",vmClusterNetwork=").append(String.valueOf(vmClusterNetwork)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateVmClusterNetworkResponse)) { + return false; + } + + UpdateVmClusterNetworkResponse other = (UpdateVmClusterNetworkResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.vmClusterNetwork, other.vmClusterNetwork); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.vmClusterNetwork == null ? 43 : this.vmClusterNetwork.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateVmInstanceResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateVmInstanceResponse.java new file mode 100644 index 00000000000..f57c7947fc9 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/UpdateVmInstanceResponse.java @@ -0,0 +1,296 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class UpdateVmInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned VmInstance instance. + */ + private com.oracle.bmc.datacc.model.VmInstance vmInstance; + + /** + * The returned VmInstance instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.VmInstance getVmInstance() { + return vmInstance; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "vmInstance" + }) + private UpdateVmInstanceResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.VmInstance vmInstance) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.vmInstance = vmInstance; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned VmInstance instance. + */ + private com.oracle.bmc.datacc.model.VmInstance vmInstance; + + /** + * The returned VmInstance instance. + * @param vmInstance the value to set + * @return this builder + */ + public Builder vmInstance(com.oracle.bmc.datacc.model.VmInstance vmInstance) { + this.vmInstance = vmInstance; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateVmInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + vmInstance(o.getVmInstance()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateVmInstanceResponse build() { + return new UpdateVmInstanceResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + vmInstance); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",vmInstance=").append(String.valueOf(vmInstance)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateVmInstanceResponse)) { + return false; + } + + UpdateVmInstanceResponse other = (UpdateVmInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.vmInstance, other.vmInstance); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.vmInstance == null ? 43 : this.vmInstance.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ValidateInfrastructureResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ValidateInfrastructureResponse.java new file mode 100644 index 00000000000..98844e63cf3 --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ValidateInfrastructureResponse.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ValidateInfrastructureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The returned Infrastructure instance. + */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned Infrastructure instance. + * @return the value + */ + public com.oracle.bmc.datacc.model.Infrastructure getInfrastructure() { + return infrastructure; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "location", + "infrastructure" + }) + private ValidateInfrastructureResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.infrastructure = infrastructure; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + */ + private String etag; + + /** + * For Optimistic concurrency control. See the {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The full URI of the resource. + * + */ + private String location; + + /** + * The full URI of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The returned Infrastructure instance. + */ + private com.oracle.bmc.datacc.model.Infrastructure infrastructure; + + /** + * The returned Infrastructure instance. + * @param infrastructure the value to set + * @return this builder + */ + public Builder infrastructure(com.oracle.bmc.datacc.model.Infrastructure infrastructure) { + this.infrastructure = infrastructure; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ValidateInfrastructureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + infrastructure(o.getInfrastructure()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ValidateInfrastructureResponse build() { + return new ValidateInfrastructureResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + etag, + location, + infrastructure); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",infrastructure=").append(String.valueOf(infrastructure)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateInfrastructureResponse)) { + return false; + } + + ValidateInfrastructureResponse other = (ValidateInfrastructureResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.infrastructure, other.infrastructure); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.infrastructure == null ? 43 : this.infrastructure.hashCode()); + return result; + } +} diff --git a/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ValidateVmClusterNetworkResponse.java b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ValidateVmClusterNetworkResponse.java new file mode 100644 index 00000000000..e1875697f3f --- /dev/null +++ b/bmc-datacc/src/main/java/com/oracle/bmc/datacc/responses/ValidateVmClusterNetworkResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datacc.responses; + +import com.oracle.bmc.datacc.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") +public class ValidateVmClusterNetworkResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ValidateVmClusterNetworkResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique identifier created by Oracle for the asynchronous request. You can use this identifier to query the status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier assigned by Oracle for the request. If you need to contact + * Oracle about a particular request, then please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ValidateVmClusterNetworkResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ValidateVmClusterNetworkResponse build() { + return new ValidateVmClusterNetworkResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValidateVmClusterNetworkResponse)) { + return false; + } + + ValidateVmClusterNetworkResponse other = (ValidateVmClusterNetworkResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 32d4c4fbf08..5486e58dd11 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-dataflow @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index dde7420398e..e57ae593e59 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-dataintegration @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 2f46a113b89..153f414c908 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index ce430b3a733..e3348794cca 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 4def69937df..d1cd23fd7ec 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-datasafe @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafe.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafe.java index ea293dca2ec..facad418c6b 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafe.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafe.java @@ -1001,8 +1001,8 @@ CreateSdmMaskingPolicyDifferenceResponse createSdmMaskingPolicyDifference( CreateSdmMaskingPolicyDifferenceRequest request); /** - * Creates a new saved security assessment for one or multiple targets in a compartment. When this operation is performed, - * it will save the latest assessments in the specified compartment. If a schedule is passed, it will persist the latest assessments, + * Creates a new saved security assessment for a target database or target database group in a compartment. When this operation is performed, + * it will save the latest assessment in the specified compartment. If a schedule is passed, it will persist the latest assessment, * at the defined date and time, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * * @param request The request object containing the details to send @@ -1200,8 +1200,8 @@ CreateUnifiedAuditPolicyResponse createUnifiedAuditPolicy( CreateUnifiedAuditPolicyRequest request); /** - * Creates a new saved user assessment for one or multiple targets in a compartment. It saves the latest assessments in the - * specified compartment. If a scheduled is passed in, this operation persists the latest assessments that exist at the defined + * Creates a new saved user assessment for a target database or target database group in a compartment. It saves the latest assessment in the + * specified compartment. If a schedule is passed in, this operation persists the latest assessment that exists at the defined * date and time, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * * @param request The request object containing the details to send @@ -3172,6 +3172,7 @@ ListDatabaseTableAccessEntriesResponse listDatabaseTableAccessEntries( * Retrieves a list of all database view access entries in Data Safe. *

* The ListDatabaseViewAccessEntries operation returns only the database view access objects for the specified security policy report. + * If targetId is specified, it must match the target associated with the securityPolicyReportId path parameter; otherwise, the request is rejected. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -4212,6 +4213,19 @@ ListSqlFirewallViolationsResponse listSqlFirewallViolations( ListTargetAlertPolicyAssociationsResponse listTargetAlertPolicyAssociations( ListTargetAlertPolicyAssociationsRequest request); + /** + * Gets the details of target-alert policy association and its unassociated members by its 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. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListTargetAlertPolicyUnassociatedMembers API. + */ + ListTargetAlertPolicyUnassociatedMembersResponse listTargetAlertPolicyUnassociatedMembers( + ListTargetAlertPolicyUnassociatedMembersRequest request); + /** * Retrieves a list of target database groups according to the specified query parameters. * diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsync.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsync.java index 66896a23421..e2ab8258227 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsync.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsync.java @@ -1252,8 +1252,8 @@ java.util.concurrent.Future createReportDefiniti handler); /** - * Creates a new saved security assessment for one or multiple targets in a compartment. When this operation is performed, - * it will save the latest assessments in the specified compartment. If a schedule is passed, it will persist the latest assessments, + * Creates a new saved security assessment for a target database or target database group in a compartment. When this operation is performed, + * it will save the latest assessment in the specified compartment. If a schedule is passed, it will persist the latest assessment, * at the defined date and time, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * * @@ -1502,8 +1502,8 @@ java.util.concurrent.Future createUnifiedAudit handler); /** - * Creates a new saved user assessment for one or multiple targets in a compartment. It saves the latest assessments in the - * specified compartment. If a scheduled is passed in, this operation persists the latest assessments that exist at the defined + * Creates a new saved user assessment for a target database or target database group in a compartment. It saves the latest assessment in the + * specified compartment. If a schedule is passed in, this operation persists the latest assessment that exists at the defined * date and time, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * * @@ -3989,6 +3989,7 @@ java.util.concurrent.Future listDatabaseSec * Retrieves a list of all database view access entries in Data Safe. *

* The ListDatabaseViewAccessEntries operation returns only the database view access objects for the specified security policy report. + * If targetId is specified, it must match the target associated with the securityPolicyReportId path parameter; otherwise, the request is rejected. * * * @param request The request object containing the details to send @@ -5269,6 +5270,24 @@ java.util.concurrent.Future listTables( ListTargetAlertPolicyAssociationsResponse> handler); + /** + * Gets the details of target-alert policy association and its unassociated members by its ID. + * + * @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 + listTargetAlertPolicyUnassociatedMembers( + ListTargetAlertPolicyUnassociatedMembersRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse> + handler); + /** * Retrieves a list of target database groups according to the specified query parameters. * diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java index 5d7bceb04a1..b7ca464b230 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java @@ -14702,6 +14702,61 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + listTargetAlertPolicyUnassociatedMembers( + ListTargetAlertPolicyUnassociatedMembersRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse> + handler) { + LOG.trace("Called async listTargetAlertPolicyUnassociatedMembers"); + final ListTargetAlertPolicyUnassociatedMembersRequest interceptedRequest = + ListTargetAlertPolicyUnassociatedMembersConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListTargetAlertPolicyUnassociatedMembersConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListTargetAlertPolicyUnassociatedMembers", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetAlertPolicyAssociation/ListTargetAlertPolicyUnassociatedMembers"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListTargetAlertPolicyUnassociatedMembersResponse> + transformer = + ListTargetAlertPolicyUnassociatedMembersConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse>, + java.util.concurrent.Future< + ListTargetAlertPolicyUnassociatedMembersResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listTargetDatabaseGroups( ListTargetDatabaseGroupsRequest request, diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeClient.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeClient.java index 683510cc271..74c1178bb74 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeClient.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeClient.java @@ -11731,6 +11731,47 @@ public ListTargetAlertPolicyAssociationsResponse listTargetAlertPolicyAssociatio }); } + @Override + public ListTargetAlertPolicyUnassociatedMembersResponse + listTargetAlertPolicyUnassociatedMembers( + ListTargetAlertPolicyUnassociatedMembersRequest request) { + LOG.trace("Called listTargetAlertPolicyUnassociatedMembers"); + final ListTargetAlertPolicyUnassociatedMembersRequest interceptedRequest = + ListTargetAlertPolicyUnassociatedMembersConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListTargetAlertPolicyUnassociatedMembersConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListTargetAlertPolicyUnassociatedMembers", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetAlertPolicyAssociation/ListTargetAlertPolicyUnassociatedMembers"); + java.util.function.Function< + javax.ws.rs.core.Response, ListTargetAlertPolicyUnassociatedMembersResponse> + transformer = + ListTargetAlertPolicyUnassociatedMembersConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListTargetDatabaseGroupsResponse listTargetDatabaseGroups( ListTargetDatabaseGroupsRequest request) { diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafePaginators.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafePaginators.java index bedefa233f4..3be21d8a178 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafePaginators.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafePaginators.java @@ -9574,6 +9574,138 @@ public ListTargetAlertPolicyAssociationsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listTargetAlertPolicyUnassociatedMembers 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 + listTargetAlertPolicyUnassociatedMembersResponseIterator( + final ListTargetAlertPolicyUnassociatedMembersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListTargetAlertPolicyUnassociatedMembersRequest.Builder, + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse>( + new java.util.function.Supplier< + ListTargetAlertPolicyUnassociatedMembersRequest.Builder>() { + @Override + public ListTargetAlertPolicyUnassociatedMembersRequest.Builder get() { + return ListTargetAlertPolicyUnassociatedMembersRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListTargetAlertPolicyUnassociatedMembersResponse, String>() { + @Override + public String apply(ListTargetAlertPolicyUnassociatedMembersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTargetAlertPolicyUnassociatedMembersRequest.Builder>, + ListTargetAlertPolicyUnassociatedMembersRequest>() { + @Override + public ListTargetAlertPolicyUnassociatedMembersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTargetAlertPolicyUnassociatedMembersRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse>() { + @Override + public ListTargetAlertPolicyUnassociatedMembersResponse apply( + ListTargetAlertPolicyUnassociatedMembersRequest request) { + return client.listTargetAlertPolicyUnassociatedMembers(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedSummary} objects + * contained in responses from the listTargetAlertPolicyUnassociatedMembers 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.datasafe.model.TargetAlertPolicyUnassociatedSummary} objects + * contained in responses received from the service. + */ + public Iterable + listTargetAlertPolicyUnassociatedMembersRecordIterator( + final ListTargetAlertPolicyUnassociatedMembersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListTargetAlertPolicyUnassociatedMembersRequest.Builder, + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse, + com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedSummary>( + new java.util.function.Supplier< + ListTargetAlertPolicyUnassociatedMembersRequest.Builder>() { + @Override + public ListTargetAlertPolicyUnassociatedMembersRequest.Builder get() { + return ListTargetAlertPolicyUnassociatedMembersRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListTargetAlertPolicyUnassociatedMembersResponse, String>() { + @Override + public String apply(ListTargetAlertPolicyUnassociatedMembersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTargetAlertPolicyUnassociatedMembersRequest.Builder>, + ListTargetAlertPolicyUnassociatedMembersRequest>() { + @Override + public ListTargetAlertPolicyUnassociatedMembersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTargetAlertPolicyUnassociatedMembersRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListTargetAlertPolicyUnassociatedMembersRequest, + ListTargetAlertPolicyUnassociatedMembersResponse>() { + @Override + public ListTargetAlertPolicyUnassociatedMembersResponse apply( + ListTargetAlertPolicyUnassociatedMembersRequest request) { + return client.listTargetAlertPolicyUnassociatedMembers(request); + } + }, + new java.util.function.Function< + ListTargetAlertPolicyUnassociatedMembersResponse, + java.util.List< + com.oracle.bmc.datasafe.model + .TargetAlertPolicyUnassociatedSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model + .TargetAlertPolicyUnassociatedSummary> + apply(ListTargetAlertPolicyUnassociatedMembersResponse response) { + return response.getTargetAlertPolicyUnassociatedCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listTargetDatabaseGroups operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListFindingsConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListFindingsConverter.java index 7697bad5a3c..69671bd5ad3 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListFindingsConverter.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListFindingsConverter.java @@ -74,6 +74,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCategory())); } + if (request.getContainsOracleDefinedSeverity() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "containsOracleDefinedSeverity", + request.getContainsOracleDefinedSeverity(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + if (request.getLifecycleState() != null) { target = target.queryParam( diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListTargetAlertPolicyAssociationsConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListTargetAlertPolicyAssociationsConverter.java index b0b1e3b3be5..727618225c7 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListTargetAlertPolicyAssociationsConverter.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListTargetAlertPolicyAssociationsConverter.java @@ -106,6 +106,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getSortBy().getValue())); } + if (request.getTargetType() != null) { + target = + target.queryParam( + "targetType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTargetType().getValue())); + } + if (request.getTimeCreatedGreaterThanOrEqualTo() != null) { target = target.queryParam( diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListTargetAlertPolicyUnassociatedMembersConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListTargetAlertPolicyUnassociatedMembersConverter.java new file mode 100644 index 00000000000..ca5a51a9846 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListTargetAlertPolicyUnassociatedMembersConverter.java @@ -0,0 +1,206 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datasafe.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListTargetAlertPolicyUnassociatedMembersConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + ListTargetAlertPolicyUnassociatedMembersConverter.class); + + public static com.oracle.bmc.datasafe.requests.ListTargetAlertPolicyUnassociatedMembersRequest + interceptRequest( + com.oracle.bmc.datasafe.requests.ListTargetAlertPolicyUnassociatedMembersRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datasafe.requests.ListTargetAlertPolicyUnassociatedMembersRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getTargetAlertPolicyAssociationId(), + "targetAlertPolicyAssociationId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20181201") + .path("targetAlertPolicyAssociations") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTargetAlertPolicyAssociationId())) + .path("unassociatedTargetMembers"); + + 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())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .ListTargetAlertPolicyUnassociatedMembersResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .ListTargetAlertPolicyUnassociatedMembersResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .ListTargetAlertPolicyUnassociatedMembersResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .ListTargetAlertPolicyUnassociatedMembersResponse>() { + @Override + public com.oracle.bmc.datasafe.responses + .ListTargetAlertPolicyUnassociatedMembersResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datasafe.responses.ListTargetAlertPolicyUnassociatedMembersResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .TargetAlertPolicyUnassociatedCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .TargetAlertPolicyUnassociatedCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .TargetAlertPolicyUnassociatedCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .TargetAlertPolicyUnassociatedCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datasafe.responses + .ListTargetAlertPolicyUnassociatedMembersResponse + .Builder + builder = + com.oracle.bmc.datasafe.responses + .ListTargetAlertPolicyUnassociatedMembersResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.targetAlertPolicyUnassociatedCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.datasafe.responses + .ListTargetAlertPolicyUnassociatedMembersResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListUsersConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListUsersConverter.java index 86a82f38409..1deac6bf148 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListUsersConverter.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListUsersConverter.java @@ -208,6 +208,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getPage())); } + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + if (request.getSortOrder() != null) { target = target.queryParam( diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AssociatedResourceSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AssociatedResourceSummary.java index 1ba6f43acee..bb5f570e202 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AssociatedResourceSummary.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AssociatedResourceSummary.java @@ -180,6 +180,7 @@ public Builder toBuilder() { **/ public enum AssociatedResourceType { AuditPolicy("AUDIT_POLICY"), + AuditReport("AUDIT_REPORT"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailStatus.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailStatus.java index c5598f2cb91..9e47ebc6f94 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailStatus.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailStatus.java @@ -5,7 +5,7 @@ package com.oracle.bmc.datasafe.model; /** - * The current sub-state of the audit trail. + * The current sub-state of the audit trail. The states RETRYING,IDLE,RECOVERING will be deprecated. **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") public enum AuditTrailStatus { diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailSummary.java index ce9dd5be764..add2587f5e2 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailSummary.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/AuditTrailSummary.java @@ -257,13 +257,13 @@ public Builder lifecycleState(AuditTrailLifecycleState lifecycleState) { return this; } /** - * Details about the current state of the audit trail in Data Safe. + * Details about the current state of the audit trail in Data Safe. This attribute will be deprecated, but will still be available in GET audit trail response. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private String lifecycleDetails; /** - * Details about the current state of the audit trail in Data Safe. + * Details about the current state of the audit trail in Data Safe. This attribute will be deprecated, but will still be available in GET audit trail response. * @param lifecycleDetails the value to set * @return this builder **/ @@ -620,13 +620,13 @@ public AuditTrailLifecycleState getLifecycleState() { } /** - * Details about the current state of the audit trail in Data Safe. + * Details about the current state of the audit trail in Data Safe. This attribute will be deprecated, but will still be available in GET audit trail response. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final String lifecycleDetails; /** - * Details about the current state of the audit trail in Data Safe. + * Details about the current state of the audit trail in Data Safe. This attribute will be deprecated, but will still be available in GET audit trail response. * @return the value **/ public String getLifecycleDetails() { diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ColumnsInfo.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ColumnsInfo.java index d8610e2e0bd..70fa9de1dc1 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ColumnsInfo.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ColumnsInfo.java @@ -222,6 +222,7 @@ public String getSchemaName() { **/ public enum ObjectType { Table("TABLE"), + EditioningView("EDITIONING_VIEW"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateDataSafePrivateEndpointDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateDataSafePrivateEndpointDetails.java index 023431c51e1..61402341afa 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateDataSafePrivateEndpointDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateDataSafePrivateEndpointDetails.java @@ -31,7 +31,8 @@ public final class CreateDataSafePrivateEndpointDetails "description", "nsgIds", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public CreateDataSafePrivateEndpointDetails( String displayName, @@ -42,7 +43,8 @@ public CreateDataSafePrivateEndpointDetails( String description, java.util.List nsgIds, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.compartmentId = compartmentId; @@ -53,6 +55,7 @@ public CreateDataSafePrivateEndpointDetails( this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -214,6 +217,29 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -229,7 +255,8 @@ public CreateDataSafePrivateEndpointDetails build() { this.description, this.nsgIds, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -265,6 +292,9 @@ public Builder copy(CreateDataSafePrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -418,6 +448,26 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -441,6 +491,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -464,6 +515,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -484,6 +536,11 @@ public int hashCode() { result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateTargetAlertPolicyAssociationDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateTargetAlertPolicyAssociationDetails.java index 440d90ddaaf..5c65621b206 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateTargetAlertPolicyAssociationDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CreateTargetAlertPolicyAssociationDetails.java @@ -30,6 +30,7 @@ public final class CreateTargetAlertPolicyAssociationDetails "description", "compartmentId", "isEnabled", + "targetType", "freeformTags", "definedTags" }) @@ -40,6 +41,7 @@ public CreateTargetAlertPolicyAssociationDetails( String description, String compartmentId, Boolean isEnabled, + TargetAlertPolicyAssociation.TargetType targetType, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -49,6 +51,7 @@ public CreateTargetAlertPolicyAssociationDetails( this.description = description; this.compartmentId = compartmentId; this.isEnabled = isEnabled; + this.targetType = targetType; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -72,13 +75,13 @@ public Builder policyId(String policyId) { return this; } /** - * The OCID of the target. + * The OCID of the target or target database group. **/ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private String targetId; /** - * The OCID of the target. + * The OCID of the target or target database group. * @param targetId the value to set * @return this builder **/ @@ -151,6 +154,22 @@ public Builder isEnabled(Boolean isEnabled) { this.__explicitlySet__.add("isEnabled"); return this; } + /** + * The resource type that is represented by the alert policy association. Default is considered as TARGET_DATABASE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private TargetAlertPolicyAssociation.TargetType targetType; + + /** + * The resource type that is represented by the alert policy association. Default is considered as TARGET_DATABASE. + * @param targetType the value to set + * @return this builder + **/ + public Builder targetType(TargetAlertPolicyAssociation.TargetType targetType) { + this.targetType = targetType; + this.__explicitlySet__.add("targetType"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) *

@@ -207,6 +226,7 @@ public CreateTargetAlertPolicyAssociationDetails build() { this.description, this.compartmentId, this.isEnabled, + this.targetType, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -235,6 +255,9 @@ public Builder copy(CreateTargetAlertPolicyAssociationDetails model) { if (model.wasPropertyExplicitlySet("isEnabled")) { this.isEnabled(model.getIsEnabled()); } + if (model.wasPropertyExplicitlySet("targetType")) { + this.targetType(model.getTargetType()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -271,13 +294,13 @@ public String getPolicyId() { } /** - * The OCID of the target. + * The OCID of the target or target database group. **/ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private final String targetId; /** - * The OCID of the target. + * The OCID of the target or target database group. * @return the value **/ public String getTargetId() { @@ -340,6 +363,20 @@ public Boolean getIsEnabled() { return isEnabled; } + /** + * The resource type that is represented by the alert policy association. Default is considered as TARGET_DATABASE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private final TargetAlertPolicyAssociation.TargetType targetType; + + /** + * The resource type that is represented by the alert policy association. Default is considered as TARGET_DATABASE. + * @return the value + **/ + public TargetAlertPolicyAssociation.TargetType getTargetType() { + return targetType; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) *

@@ -398,6 +435,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", targetType=").append(String.valueOf(this.targetType)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -421,6 +459,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals(this.targetType, other.targetType) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -438,6 +477,7 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = (result * PRIME) + (this.targetType == null ? 43 : this.targetType.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpoint.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpoint.java index 9259341883c..c80f212fee1 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpoint.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpoint.java @@ -37,7 +37,8 @@ public final class DataSafePrivateEndpoint "nsgIds", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "securityAttributes" }) public DataSafePrivateEndpoint( String id, @@ -54,7 +55,8 @@ public DataSafePrivateEndpoint( java.util.List nsgIds, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.displayName = displayName; @@ -71,6 +73,7 @@ public DataSafePrivateEndpoint( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -334,6 +337,29 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -355,7 +381,8 @@ public DataSafePrivateEndpoint build() { this.nsgIds, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -409,6 +436,9 @@ public Builder copy(DataSafePrivateEndpoint model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -652,6 +682,26 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -681,6 +731,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -710,6 +761,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -740,6 +792,11 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpointSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpointSummary.java index 0f9c3a84323..a8612ac5370 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpointSummary.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DataSafePrivateEndpointSummary.java @@ -34,7 +34,8 @@ public final class DataSafePrivateEndpointSummary "lifecycleState", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "securityAttributes" }) public DataSafePrivateEndpointSummary( String id, @@ -48,7 +49,8 @@ public DataSafePrivateEndpointSummary( LifecycleState lifecycleState, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.displayName = displayName; @@ -62,6 +64,7 @@ public DataSafePrivateEndpointSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -273,6 +276,29 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -291,7 +317,8 @@ public DataSafePrivateEndpointSummary build() { this.lifecycleState, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -336,6 +363,9 @@ public Builder copy(DataSafePrivateEndpointSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -533,6 +563,26 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -559,6 +609,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -585,6 +636,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -610,6 +662,11 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSecurityAssessmentReportDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSecurityAssessmentReportDetails.java index 594032e01b9..c98abb46325 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSecurityAssessmentReportDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadSecurityAssessmentReportDetails.java @@ -22,10 +22,11 @@ public final class DownloadSecurityAssessmentReportDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"format"}) - public DownloadSecurityAssessmentReportDetails(Format format) { + @java.beans.ConstructorProperties({"format", "isSingleReport"}) + public DownloadSecurityAssessmentReportDetails(Format format, Boolean isSingleReport) { super(); this.format = format; + this.isSingleReport = isSingleReport; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -46,13 +47,45 @@ public Builder format(Format format) { this.__explicitlySet__.add("format"); return this; } + /** + * Optional flag controlling the output format of a target group report: + * - true: Return a single consolidated report file for the entire target group. + * - false/null (default): Return a ZIP archive containing one file per target in the group. + *

+ * Important: + * - This flag is only applicable when the security assessment OCID refers to a target group assessment (targetType TARGET_DATABASE_GROUP). + * - If {@code isSingleReport} is set to true for an individual target (targetType TARGET_DATABASE), the request will return an error. + * - If {@code isSingleReport} is null or false for an individual target, the value is ignored and the selected output format for the assessment type is returned. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSingleReport") + private Boolean isSingleReport; + + /** + * Optional flag controlling the output format of a target group report: + * - true: Return a single consolidated report file for the entire target group. + * - false/null (default): Return a ZIP archive containing one file per target in the group. + *

+ * Important: + * - This flag is only applicable when the security assessment OCID refers to a target group assessment (targetType TARGET_DATABASE_GROUP). + * - If {@code isSingleReport} is set to true for an individual target (targetType TARGET_DATABASE), the request will return an error. + * - If {@code isSingleReport} is null or false for an individual target, the value is ignored and the selected output format for the assessment type is returned. + * + * @param isSingleReport the value to set + * @return this builder + **/ + public Builder isSingleReport(Boolean isSingleReport) { + this.isSingleReport = isSingleReport; + this.__explicitlySet__.add("isSingleReport"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DownloadSecurityAssessmentReportDetails build() { DownloadSecurityAssessmentReportDetails model = - new DownloadSecurityAssessmentReportDetails(this.format); + new DownloadSecurityAssessmentReportDetails(this.format, this.isSingleReport); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -64,6 +97,9 @@ public Builder copy(DownloadSecurityAssessmentReportDetails model) { if (model.wasPropertyExplicitlySet("format")) { this.format(model.getFormat()); } + if (model.wasPropertyExplicitlySet("isSingleReport")) { + this.isSingleReport(model.getIsSingleReport()); + } return this; } } @@ -129,6 +165,36 @@ public Format getFormat() { return format; } + /** + * Optional flag controlling the output format of a target group report: + * - true: Return a single consolidated report file for the entire target group. + * - false/null (default): Return a ZIP archive containing one file per target in the group. + *

+ * Important: + * - This flag is only applicable when the security assessment OCID refers to a target group assessment (targetType TARGET_DATABASE_GROUP). + * - If {@code isSingleReport} is set to true for an individual target (targetType TARGET_DATABASE), the request will return an error. + * - If {@code isSingleReport} is null or false for an individual target, the value is ignored and the selected output format for the assessment type is returned. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSingleReport") + private final Boolean isSingleReport; + + /** + * Optional flag controlling the output format of a target group report: + * - true: Return a single consolidated report file for the entire target group. + * - false/null (default): Return a ZIP archive containing one file per target in the group. + *

+ * Important: + * - This flag is only applicable when the security assessment OCID refers to a target group assessment (targetType TARGET_DATABASE_GROUP). + * - If {@code isSingleReport} is set to true for an individual target (targetType TARGET_DATABASE), the request will return an error. + * - If {@code isSingleReport} is null or false for an individual target, the value is ignored and the selected output format for the assessment type is returned. + * + * @return the value + **/ + public Boolean getIsSingleReport() { + return isSingleReport; + } + @Override public String toString() { return this.toString(true); @@ -144,6 +210,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("DownloadSecurityAssessmentReportDetails("); sb.append("super=").append(super.toString()); sb.append("format=").append(String.valueOf(this.format)); + sb.append(", isSingleReport=").append(String.valueOf(this.isSingleReport)); sb.append(")"); return sb.toString(); } @@ -158,7 +225,9 @@ public boolean equals(Object o) { } DownloadSecurityAssessmentReportDetails other = (DownloadSecurityAssessmentReportDetails) o; - return java.util.Objects.equals(this.format, other.format) && super.equals(other); + return java.util.Objects.equals(this.format, other.format) + && java.util.Objects.equals(this.isSingleReport, other.isSingleReport) + && super.equals(other); } @Override @@ -166,6 +235,9 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.format == null ? 43 : this.format.hashCode()); + result = + (result * PRIME) + + (this.isSingleReport == null ? 43 : this.isSingleReport.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateReportDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateReportDetails.java index abad95df967..e50f75e33e1 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateReportDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateReportDetails.java @@ -31,7 +31,8 @@ public final class GenerateReportDetails "mimeType", "timeLessThan", "timeGreaterThan", - "rowLimit" + "rowLimit", + "isPaginationEnabled" }) public GenerateReportDetails( String displayName, @@ -42,7 +43,8 @@ public GenerateReportDetails( MimeType mimeType, java.util.Date timeLessThan, java.util.Date timeGreaterThan, - Integer rowLimit) { + Integer rowLimit, + Boolean isPaginationEnabled) { super(); this.displayName = displayName; this.targetIds = targetIds; @@ -53,6 +55,7 @@ public GenerateReportDetails( this.timeLessThan = timeLessThan; this.timeGreaterThan = timeGreaterThan; this.rowLimit = rowLimit; + this.isPaginationEnabled = isPaginationEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -205,6 +208,28 @@ public Builder rowLimit(Integer rowLimit) { this.__explicitlySet__.add("rowLimit"); return this; } + /** + * Indicates if the reports being generated should be pagination enabled. + * If set to true, multiple reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPaginationEnabled") + private Boolean isPaginationEnabled; + + /** + * Indicates if the reports being generated should be pagination enabled. + * If set to true, multiple reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + * + * @param isPaginationEnabled the value to set + * @return this builder + **/ + public Builder isPaginationEnabled(Boolean isPaginationEnabled) { + this.isPaginationEnabled = isPaginationEnabled; + this.__explicitlySet__.add("isPaginationEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -220,7 +245,8 @@ public GenerateReportDetails build() { this.mimeType, this.timeLessThan, this.timeGreaterThan, - this.rowLimit); + this.rowLimit, + this.isPaginationEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -256,6 +282,9 @@ public Builder copy(GenerateReportDetails model) { if (model.wasPropertyExplicitlySet("rowLimit")) { this.rowLimit(model.getRowLimit()); } + if (model.wasPropertyExplicitlySet("isPaginationEnabled")) { + this.isPaginationEnabled(model.getIsPaginationEnabled()); + } return this; } } @@ -437,6 +466,26 @@ public Integer getRowLimit() { return rowLimit; } + /** + * Indicates if the reports being generated should be pagination enabled. + * If set to true, multiple reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPaginationEnabled") + private final Boolean isPaginationEnabled; + + /** + * Indicates if the reports being generated should be pagination enabled. + * If set to true, multiple reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + * + * @return the value + **/ + public Boolean getIsPaginationEnabled() { + return isPaginationEnabled; + } + @Override public String toString() { return this.toString(true); @@ -460,6 +509,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeLessThan=").append(String.valueOf(this.timeLessThan)); sb.append(", timeGreaterThan=").append(String.valueOf(this.timeGreaterThan)); sb.append(", rowLimit=").append(String.valueOf(this.rowLimit)); + sb.append(", isPaginationEnabled=").append(String.valueOf(this.isPaginationEnabled)); sb.append(")"); return sb.toString(); } @@ -483,6 +533,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeLessThan, other.timeLessThan) && java.util.Objects.equals(this.timeGreaterThan, other.timeGreaterThan) && java.util.Objects.equals(this.rowLimit, other.rowLimit) + && java.util.Objects.equals(this.isPaginationEnabled, other.isPaginationEnabled) && super.equals(other); } @@ -505,6 +556,11 @@ public int hashCode() { (result * PRIME) + (this.timeGreaterThan == null ? 43 : this.timeGreaterThan.hashCode()); result = (result * PRIME) + (this.rowLimit == null ? 43 : this.rowLimit.hashCode()); + result = + (result * PRIME) + + (this.isPaginationEnabled == null + ? 43 + : this.isPaginationEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSecurityAssessmentReportDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSecurityAssessmentReportDetails.java index 952c9fe4dc5..1634052a45e 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSecurityAssessmentReportDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateSecurityAssessmentReportDetails.java @@ -22,10 +22,11 @@ public final class GenerateSecurityAssessmentReportDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"format"}) - public GenerateSecurityAssessmentReportDetails(Format format) { + @java.beans.ConstructorProperties({"format", "isSingleReport"}) + public GenerateSecurityAssessmentReportDetails(Format format, Boolean isSingleReport) { super(); this.format = format; + this.isSingleReport = isSingleReport; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -46,13 +47,45 @@ public Builder format(Format format) { this.__explicitlySet__.add("format"); return this; } + /** + * Optional flag controlling the output format of a target group report: + * - true: Generate a single consolidated report file for the entire target group. + * - false: Generate a ZIP archive containing one file per target in the group. + *

+ * Important: + * - This flag is only applicable when the security assessment OCID refers to a target group assessment (targetType TARGET_DATABASE_GROUP). + * - If {@code isSingleReport} is set to true for an individual target (targetType TARGET_DATABASE), the request will return an error. + * - If {@code isSingleReport} is null or false for an individual target, the value is ignored and the selected output format for the assessment type is generated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSingleReport") + private Boolean isSingleReport; + + /** + * Optional flag controlling the output format of a target group report: + * - true: Generate a single consolidated report file for the entire target group. + * - false: Generate a ZIP archive containing one file per target in the group. + *

+ * Important: + * - This flag is only applicable when the security assessment OCID refers to a target group assessment (targetType TARGET_DATABASE_GROUP). + * - If {@code isSingleReport} is set to true for an individual target (targetType TARGET_DATABASE), the request will return an error. + * - If {@code isSingleReport} is null or false for an individual target, the value is ignored and the selected output format for the assessment type is generated. + * + * @param isSingleReport the value to set + * @return this builder + **/ + public Builder isSingleReport(Boolean isSingleReport) { + this.isSingleReport = isSingleReport; + this.__explicitlySet__.add("isSingleReport"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public GenerateSecurityAssessmentReportDetails build() { GenerateSecurityAssessmentReportDetails model = - new GenerateSecurityAssessmentReportDetails(this.format); + new GenerateSecurityAssessmentReportDetails(this.format, this.isSingleReport); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -64,6 +97,9 @@ public Builder copy(GenerateSecurityAssessmentReportDetails model) { if (model.wasPropertyExplicitlySet("format")) { this.format(model.getFormat()); } + if (model.wasPropertyExplicitlySet("isSingleReport")) { + this.isSingleReport(model.getIsSingleReport()); + } return this; } } @@ -129,6 +165,36 @@ public Format getFormat() { return format; } + /** + * Optional flag controlling the output format of a target group report: + * - true: Generate a single consolidated report file for the entire target group. + * - false: Generate a ZIP archive containing one file per target in the group. + *

+ * Important: + * - This flag is only applicable when the security assessment OCID refers to a target group assessment (targetType TARGET_DATABASE_GROUP). + * - If {@code isSingleReport} is set to true for an individual target (targetType TARGET_DATABASE), the request will return an error. + * - If {@code isSingleReport} is null or false for an individual target, the value is ignored and the selected output format for the assessment type is generated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSingleReport") + private final Boolean isSingleReport; + + /** + * Optional flag controlling the output format of a target group report: + * - true: Generate a single consolidated report file for the entire target group. + * - false: Generate a ZIP archive containing one file per target in the group. + *

+ * Important: + * - This flag is only applicable when the security assessment OCID refers to a target group assessment (targetType TARGET_DATABASE_GROUP). + * - If {@code isSingleReport} is set to true for an individual target (targetType TARGET_DATABASE), the request will return an error. + * - If {@code isSingleReport} is null or false for an individual target, the value is ignored and the selected output format for the assessment type is generated. + * + * @return the value + **/ + public Boolean getIsSingleReport() { + return isSingleReport; + } + @Override public String toString() { return this.toString(true); @@ -144,6 +210,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("GenerateSecurityAssessmentReportDetails("); sb.append("super=").append(super.toString()); sb.append("format=").append(String.valueOf(this.format)); + sb.append(", isSingleReport=").append(String.valueOf(this.isSingleReport)); sb.append(")"); return sb.toString(); } @@ -158,7 +225,9 @@ public boolean equals(Object o) { } GenerateSecurityAssessmentReportDetails other = (GenerateSecurityAssessmentReportDetails) o; - return java.util.Objects.equals(this.format, other.format) && super.equals(other); + return java.util.Objects.equals(this.format, other.format) + && java.util.Objects.equals(this.isSingleReport, other.isSingleReport) + && super.equals(other); } @Override @@ -166,6 +235,9 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.format == null ? 43 : this.format.hashCode()); + result = + (result * PRIME) + + (this.isSingleReport == null ? 43 : this.isSingleReport.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Include.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Include.java index ce9259607ba..4bb720682c0 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Include.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Include.java @@ -6,7 +6,7 @@ /** * Criteria to determine whether a target database should be included in the target database group. - * If the database satisfies any of compartments, targetDatabaseIds, freeformTags, or definedTags criteria, it qualifies for inclusion in the target database group + * If the database satisfies any of compartments, targetDatabaseIds, freeformTags, definedTags or systemTags criteria then it qualifies for inclusion in the target database group. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Report.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Report.java index b60e9a33fad..f7ec5617008 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Report.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Report.java @@ -33,6 +33,8 @@ public final class Report extends com.oracle.bmc.http.internal.ExplicitlySetBmcM "type", "dataSource", "lifecycleDetails", + "previousReportId", + "nextReportId", "freeformTags", "definedTags", "systemTags" @@ -51,6 +53,8 @@ public Report( ReportType type, ReportDefinitionDataSource dataSource, String lifecycleDetails, + String previousReportId, + String nextReportId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -68,6 +72,8 @@ public Report( this.type = type; this.dataSource = dataSource; this.lifecycleDetails = lifecycleDetails; + this.previousReportId = previousReportId; + this.nextReportId = nextReportId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -283,6 +289,38 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + /** + * The OCID of the previous report generated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("previousReportId") + private String previousReportId; + + /** + * The OCID of the previous report generated. + * @param previousReportId the value to set + * @return this builder + **/ + public Builder previousReportId(String previousReportId) { + this.previousReportId = previousReportId; + this.__explicitlySet__.add("previousReportId"); + return this; + } + /** + * The OCID of the next report generated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nextReportId") + private String nextReportId; + + /** + * The OCID of the next report generated. + * @param nextReportId the value to set + * @return this builder + **/ + public Builder nextReportId(String nextReportId) { + this.nextReportId = nextReportId; + this.__explicitlySet__.add("nextReportId"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) *

@@ -366,6 +404,8 @@ public Report build() { this.type, this.dataSource, this.lifecycleDetails, + this.previousReportId, + this.nextReportId, this.freeformTags, this.definedTags, this.systemTags); @@ -416,6 +456,12 @@ public Builder copy(Report model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("previousReportId")) { + this.previousReportId(model.getPreviousReportId()); + } + if (model.wasPropertyExplicitlySet("nextReportId")) { + this.nextReportId(model.getNextReportId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -671,6 +717,34 @@ public String getLifecycleDetails() { return lifecycleDetails; } + /** + * The OCID of the previous report generated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("previousReportId") + private final String previousReportId; + + /** + * The OCID of the previous report generated. + * @return the value + **/ + public String getPreviousReportId() { + return previousReportId; + } + + /** + * The OCID of the next report generated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nextReportId") + private final String nextReportId; + + /** + * The OCID of the next report generated. + * @return the value + **/ + public String getNextReportId() { + return nextReportId; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) *

@@ -754,6 +828,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", type=").append(String.valueOf(this.type)); sb.append(", dataSource=").append(String.valueOf(this.dataSource)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", previousReportId=").append(String.valueOf(this.previousReportId)); + sb.append(", nextReportId=").append(String.valueOf(this.nextReportId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -784,6 +860,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.dataSource, other.dataSource) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.previousReportId, other.previousReportId) + && java.util.Objects.equals(this.nextReportId, other.nextReportId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -819,6 +897,10 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.previousReportId == null ? 43 : this.previousReportId.hashCode()); + result = (result * PRIME) + (this.nextReportId == null ? 43 : this.nextReportId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinition.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinition.java index 6f8737e2ff7..af88f28cb7b 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinition.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinition.java @@ -45,6 +45,7 @@ public final class ReportDefinition extends com.oracle.bmc.http.internal.Explici "recordTimeSpan", "complianceStandards", "lifecycleDetails", + "isSchedulePaginationEnabled", "freeformTags", "definedTags", "systemTags" @@ -75,6 +76,7 @@ public ReportDefinition( String recordTimeSpan, java.util.List complianceStandards, String lifecycleDetails, + Boolean isSchedulePaginationEnabled, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -104,6 +106,7 @@ public ReportDefinition( this.recordTimeSpan = recordTimeSpan; this.complianceStandards = complianceStandards; this.lifecycleDetails = lifecycleDetails; + this.isSchedulePaginationEnabled = isSchedulePaginationEnabled; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -559,6 +562,28 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + /** + * Indicates if the reports being generated should be paginated. + * If set to true, multiple reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSchedulePaginationEnabled") + private Boolean isSchedulePaginationEnabled; + + /** + * Indicates if the reports being generated should be paginated. + * If set to true, multiple reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + * + * @param isSchedulePaginationEnabled the value to set + * @return this builder + **/ + public Builder isSchedulePaginationEnabled(Boolean isSchedulePaginationEnabled) { + this.isSchedulePaginationEnabled = isSchedulePaginationEnabled; + this.__explicitlySet__.add("isSchedulePaginationEnabled"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) *

@@ -654,6 +679,7 @@ public ReportDefinition build() { this.recordTimeSpan, this.complianceStandards, this.lifecycleDetails, + this.isSchedulePaginationEnabled, this.freeformTags, this.definedTags, this.systemTags); @@ -740,6 +766,9 @@ public Builder copy(ReportDefinition model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("isSchedulePaginationEnabled")) { + this.isSchedulePaginationEnabled(model.getIsSchedulePaginationEnabled()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -1263,6 +1292,26 @@ public String getLifecycleDetails() { return lifecycleDetails; } + /** + * Indicates if the reports being generated should be paginated. + * If set to true, multiple reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSchedulePaginationEnabled") + private final Boolean isSchedulePaginationEnabled; + + /** + * Indicates if the reports being generated should be paginated. + * If set to true, multiple reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + * + * @return the value + **/ + public Boolean getIsSchedulePaginationEnabled() { + return isSchedulePaginationEnabled; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) *

@@ -1361,6 +1410,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", recordTimeSpan=").append(String.valueOf(this.recordTimeSpan)); sb.append(", complianceStandards=").append(String.valueOf(this.complianceStandards)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", isSchedulePaginationEnabled=") + .append(String.valueOf(this.isSchedulePaginationEnabled)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -1406,6 +1457,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.recordTimeSpan, other.recordTimeSpan) && java.util.Objects.equals(this.complianceStandards, other.complianceStandards) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals( + this.isSchedulePaginationEnabled, other.isSchedulePaginationEnabled) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -1473,6 +1526,11 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.isSchedulePaginationEnabled == null + ? 43 + : this.isSchedulePaginationEnabled.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ScheduleReportDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ScheduleReportDetails.java index 12020c7923f..ff167035898 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ScheduleReportDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ScheduleReportDetails.java @@ -27,20 +27,23 @@ public final class ScheduleReportDetails "schedule", "mimeType", "compartmentId", - "reportDetails" + "reportDetails", + "isPaginationEnabled" }) public ScheduleReportDetails( String displayName, String schedule, MimeType mimeType, String compartmentId, - ReportDetails reportDetails) { + ReportDetails reportDetails, + Boolean isPaginationEnabled) { super(); this.displayName = displayName; this.schedule = schedule; this.mimeType = mimeType; this.compartmentId = compartmentId; this.reportDetails = reportDetails; + this.isPaginationEnabled = isPaginationEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -150,6 +153,28 @@ public Builder reportDetails(ReportDetails reportDetails) { this.__explicitlySet__.add("reportDetails"); return this; } + /** + * Indicates if the reports being generated should be paginated. + * If set to true, multiple reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPaginationEnabled") + private Boolean isPaginationEnabled; + + /** + * Indicates if the reports being generated should be paginated. + * If set to true, multiple reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + * + * @param isPaginationEnabled the value to set + * @return this builder + **/ + public Builder isPaginationEnabled(Boolean isPaginationEnabled) { + this.isPaginationEnabled = isPaginationEnabled; + this.__explicitlySet__.add("isPaginationEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -161,7 +186,8 @@ public ScheduleReportDetails build() { this.schedule, this.mimeType, this.compartmentId, - this.reportDetails); + this.reportDetails, + this.isPaginationEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -185,6 +211,9 @@ public Builder copy(ScheduleReportDetails model) { if (model.wasPropertyExplicitlySet("reportDetails")) { this.reportDetails(model.getReportDetails()); } + if (model.wasPropertyExplicitlySet("isPaginationEnabled")) { + this.isPaginationEnabled(model.getIsPaginationEnabled()); + } return this; } } @@ -331,6 +360,26 @@ public ReportDetails getReportDetails() { return reportDetails; } + /** + * Indicates if the reports being generated should be paginated. + * If set to true, multiple reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPaginationEnabled") + private final Boolean isPaginationEnabled; + + /** + * Indicates if the reports being generated should be paginated. + * If set to true, multiple reports can be generated and the details of next and previous report are present in Report. + * Values can either be 'true' or 'false'. + * + * @return the value + **/ + public Boolean getIsPaginationEnabled() { + return isPaginationEnabled; + } + @Override public String toString() { return this.toString(true); @@ -350,6 +399,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", mimeType=").append(String.valueOf(this.mimeType)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", reportDetails=").append(String.valueOf(this.reportDetails)); + sb.append(", isPaginationEnabled=").append(String.valueOf(this.isPaginationEnabled)); sb.append(")"); return sb.toString(); } @@ -369,6 +419,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.mimeType, other.mimeType) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.reportDetails, other.reportDetails) + && java.util.Objects.equals(this.isPaginationEnabled, other.isPaginationEnabled) && super.equals(other); } @@ -385,6 +436,11 @@ public int hashCode() { result = (result * PRIME) + (this.reportDetails == null ? 43 : this.reportDetails.hashCode()); + result = + (result * PRIME) + + (this.isPaginationEnabled == null + ? 43 + : this.isPaginationEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociation.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociation.java index e6df96f735c..69d4de5019e 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociation.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociation.java @@ -34,6 +34,7 @@ public final class TargetAlertPolicyAssociation "timeUpdated", "lifecycleState", "lifecycleDetails", + "targetType", "freeformTags", "definedTags", "systemTags" @@ -50,6 +51,7 @@ public TargetAlertPolicyAssociation( java.util.Date timeUpdated, AlertPolicyLifecycleState lifecycleState, String lifecycleDetails, + TargetType targetType, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -65,6 +67,7 @@ public TargetAlertPolicyAssociation( this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; + this.targetType = targetType; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -137,13 +140,13 @@ public Builder policyId(String policyId) { return this; } /** - * The OCID of the target on which alert policy is to be applied. + * The OCID of the target or target database group on which alert policy is to be applied. **/ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private String targetId; /** - * The OCID of the target on which alert policy is to be applied. + * The OCID of the target or target database group on which alert policy is to be applied. * @param targetId the value to set * @return this builder **/ @@ -248,6 +251,22 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + /** + * The resource type that is represented by the target alert policy association. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private TargetType targetType; + + /** + * The resource type that is represented by the target alert policy association. + * @param targetType the value to set + * @return this builder + **/ + public Builder targetType(TargetType targetType) { + this.targetType = targetType; + this.__explicitlySet__.add("targetType"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) *

@@ -329,6 +348,7 @@ public TargetAlertPolicyAssociation build() { this.timeUpdated, this.lifecycleState, this.lifecycleDetails, + this.targetType, this.freeformTags, this.definedTags, this.systemTags); @@ -373,6 +393,9 @@ public Builder copy(TargetAlertPolicyAssociation model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("targetType")) { + this.targetType(model.getTargetType()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -454,13 +477,13 @@ public String getPolicyId() { } /** - * The OCID of the target on which alert policy is to be applied. + * The OCID of the target or target database group on which alert policy is to be applied. **/ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private final String targetId; /** - * The OCID of the target on which alert policy is to be applied. + * The OCID of the target or target database group on which alert policy is to be applied. * @return the value **/ public String getTargetId() { @@ -551,6 +574,68 @@ public String getLifecycleDetails() { return lifecycleDetails; } + /** + * The resource type that is represented by the target alert policy association. + **/ + public enum TargetType { + TargetDatabase("TARGET_DATABASE"), + TargetDatabaseGroup("TARGET_DATABASE_GROUP"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(TargetType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TargetType v : TargetType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TargetType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TargetType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TargetType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The resource type that is represented by the target alert policy association. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private final TargetType targetType; + + /** + * The resource type that is represented by the target alert policy association. + * @return the value + **/ + public TargetType getTargetType() { + return targetType; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) *

@@ -632,6 +717,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", targetType=").append(String.valueOf(this.targetType)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -660,6 +746,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.targetType, other.targetType) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -687,6 +774,7 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.targetType == null ? 43 : this.targetType.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociationSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociationSummary.java index ac324a8666a..68a71119a3d 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociationSummary.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyAssociationSummary.java @@ -34,6 +34,7 @@ public final class TargetAlertPolicyAssociationSummary "timeUpdated", "lifecycleState", "lifecycleDetails", + "targetType", "freeformTags", "definedTags" }) @@ -49,6 +50,7 @@ public TargetAlertPolicyAssociationSummary( java.util.Date timeUpdated, AlertPolicyLifecycleState lifecycleState, String lifecycleDetails, + TargetAlertPolicyAssociation.TargetType targetType, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -63,6 +65,7 @@ public TargetAlertPolicyAssociationSummary( this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; + this.targetType = targetType; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -134,13 +137,13 @@ public Builder policyId(String policyId) { return this; } /** - * The OCID of the target on which alert policy is to be applied. + * The OCID of the target or target database group on which alert policy is to be applied. **/ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private String targetId; /** - * The OCID of the target on which alert policy is to be applied. + * The OCID of the target or target database group on which alert policy is to be applied. * @param targetId the value to set * @return this builder **/ @@ -245,6 +248,22 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + /** + * The resource type that is represented by the target alert policy association. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private TargetAlertPolicyAssociation.TargetType targetType; + + /** + * The resource type that is represented by the target alert policy association. + * @param targetType the value to set + * @return this builder + **/ + public Builder targetType(TargetAlertPolicyAssociation.TargetType targetType) { + this.targetType = targetType; + this.__explicitlySet__.add("targetType"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) *

@@ -306,6 +325,7 @@ public TargetAlertPolicyAssociationSummary build() { this.timeUpdated, this.lifecycleState, this.lifecycleDetails, + this.targetType, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -349,6 +369,9 @@ public Builder copy(TargetAlertPolicyAssociationSummary model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("targetType")) { + this.targetType(model.getTargetType()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -427,13 +450,13 @@ public String getPolicyId() { } /** - * The OCID of the target on which alert policy is to be applied. + * The OCID of the target or target database group on which alert policy is to be applied. **/ @com.fasterxml.jackson.annotation.JsonProperty("targetId") private final String targetId; /** - * The OCID of the target on which alert policy is to be applied. + * The OCID of the target or target database group on which alert policy is to be applied. * @return the value **/ public String getTargetId() { @@ -524,6 +547,20 @@ public String getLifecycleDetails() { return lifecycleDetails; } + /** + * The resource type that is represented by the target alert policy association. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private final TargetAlertPolicyAssociation.TargetType targetType; + + /** + * The resource type that is represented by the target alert policy association. + * @return the value + **/ + public TargetAlertPolicyAssociation.TargetType getTargetType() { + return targetType; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) *

@@ -587,6 +624,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", targetType=").append(String.valueOf(this.targetType)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -614,6 +652,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.targetType, other.targetType) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -640,6 +679,7 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.targetType == null ? 43 : this.targetType.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyUnassociatedCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyUnassociatedCollection.java new file mode 100644 index 00000000000..130cdbdcf76 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyUnassociatedCollection.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datasafe.model; + +/** + * Collection of unassociated target alert policy association summary. + *
+ * 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: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TargetAlertPolicyUnassociatedCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class TargetAlertPolicyUnassociatedCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public TargetAlertPolicyUnassociatedCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array of unassociated target alert policy association summary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of unassociated target alert policy association summary. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TargetAlertPolicyUnassociatedCollection build() { + TargetAlertPolicyUnassociatedCollection model = + new TargetAlertPolicyUnassociatedCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TargetAlertPolicyUnassociatedCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array of unassociated target alert policy association summary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of unassociated target alert policy association summary. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TargetAlertPolicyUnassociatedCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TargetAlertPolicyUnassociatedCollection)) { + return false; + } + + TargetAlertPolicyUnassociatedCollection other = (TargetAlertPolicyUnassociatedCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyUnassociatedSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyUnassociatedSummary.java new file mode 100644 index 00000000000..7167689b147 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TargetAlertPolicyUnassociatedSummary.java @@ -0,0 +1,374 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datasafe.model; + +/** + * Summary of the target databases that differ from the association of the target database group. + *
+ * 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: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TargetAlertPolicyUnassociatedSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class TargetAlertPolicyUnassociatedSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "targetDatabaseId", + "isEnabled", + "notAppliedReason", + "freeformTags", + "definedTags", + "systemTags" + }) + public TargetAlertPolicyUnassociatedSummary( + String targetDatabaseId, + Boolean isEnabled, + String notAppliedReason, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.targetDatabaseId = targetDatabaseId; + this.isEnabled = isEnabled; + this.notAppliedReason = notAppliedReason; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the target database that differs from the alert policy association of the target database group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseId") + private String targetDatabaseId; + + /** + * The OCID of the target database that differs from the alert policy association of the target database group. + * @param targetDatabaseId the value to set + * @return this builder + **/ + public Builder targetDatabaseId(String targetDatabaseId) { + this.targetDatabaseId = targetDatabaseId; + this.__explicitlySet__.add("targetDatabaseId"); + return this; + } + /** + * Indicates if the target-alert policy association is enabled or disabled by user. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + /** + * Indicates if the target-alert policy association is enabled or disabled by user. + * @param isEnabled the value to set + * @return this builder + **/ + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + /** + * Details on why policy is not applied on target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notAppliedReason") + private String notAppliedReason; + + /** + * Details on why policy is not applied on target. + * @param notAppliedReason the value to set + * @return this builder + **/ + public Builder notAppliedReason(String notAppliedReason) { + this.notAppliedReason = notAppliedReason; + this.__explicitlySet__.add("notAppliedReason"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + *

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TargetAlertPolicyUnassociatedSummary build() { + TargetAlertPolicyUnassociatedSummary model = + new TargetAlertPolicyUnassociatedSummary( + this.targetDatabaseId, + this.isEnabled, + this.notAppliedReason, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TargetAlertPolicyUnassociatedSummary model) { + if (model.wasPropertyExplicitlySet("targetDatabaseId")) { + this.targetDatabaseId(model.getTargetDatabaseId()); + } + if (model.wasPropertyExplicitlySet("isEnabled")) { + this.isEnabled(model.getIsEnabled()); + } + if (model.wasPropertyExplicitlySet("notAppliedReason")) { + this.notAppliedReason(model.getNotAppliedReason()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the target database that differs from the alert policy association of the target database group. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseId") + private final String targetDatabaseId; + + /** + * The OCID of the target database that differs from the alert policy association of the target database group. + * @return the value + **/ + public String getTargetDatabaseId() { + return targetDatabaseId; + } + + /** + * Indicates if the target-alert policy association is enabled or disabled by user. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private final Boolean isEnabled; + + /** + * Indicates if the target-alert policy association is enabled or disabled by user. + * @return the value + **/ + public Boolean getIsEnabled() { + return isEnabled; + } + + /** + * Details on why policy is not applied on target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notAppliedReason") + private final String notAppliedReason; + + /** + * Details on why policy is not applied on target. + * @return the value + **/ + public String getNotAppliedReason() { + return notAppliedReason; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + *

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TargetAlertPolicyUnassociatedSummary("); + sb.append("super=").append(super.toString()); + sb.append("targetDatabaseId=").append(String.valueOf(this.targetDatabaseId)); + sb.append(", isEnabled=").append(String.valueOf(this.isEnabled)); + sb.append(", notAppliedReason=").append(String.valueOf(this.notAppliedReason)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TargetAlertPolicyUnassociatedSummary)) { + return false; + } + + TargetAlertPolicyUnassociatedSummary other = (TargetAlertPolicyUnassociatedSummary) o; + return java.util.Objects.equals(this.targetDatabaseId, other.targetDatabaseId) + && java.util.Objects.equals(this.isEnabled, other.isEnabled) + && java.util.Objects.equals(this.notAppliedReason, other.notAppliedReason) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.targetDatabaseId == null ? 43 : this.targetDatabaseId.hashCode()); + result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); + result = + (result * PRIME) + + (this.notAppliedReason == null ? 43 : this.notAppliedReason.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateDataSafePrivateEndpointDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateDataSafePrivateEndpointDetails.java index 6367d2ea352..02d7037df21 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateDataSafePrivateEndpointDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateDataSafePrivateEndpointDetails.java @@ -27,20 +27,23 @@ public final class UpdateDataSafePrivateEndpointDetails "description", "nsgIds", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public UpdateDataSafePrivateEndpointDetails( String displayName, String description, java.util.List nsgIds, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.description = description; this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -138,6 +141,29 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -149,7 +175,8 @@ public UpdateDataSafePrivateEndpointDetails build() { this.description, this.nsgIds, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -173,6 +200,9 @@ public Builder copy(UpdateDataSafePrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -270,6 +300,26 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -289,6 +339,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -308,6 +359,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -320,6 +372,11 @@ public int hashCode() { result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequest.java index 894b2994dcc..e46f3bc29bd 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequest.java @@ -373,6 +373,7 @@ public enum OperationType { ChangeReportDefinitionCompartment("CHANGE_REPORT_DEFINITION_COMPARTMENT"), DeleteReportDefinition("DELETE_REPORT_DEFINITION"), GenerateReport("GENERATE_REPORT"), + GeneratePaginatedReport("GENERATE_PAGINATED_REPORT"), ChangeReportCompartment("CHANGE_REPORT_COMPARTMENT"), DeleteArchiveRetrieval("DELETE_ARCHIVE_RETRIEVAL"), CreateArchiveRetrieval("CREATE_ARCHIVE_RETRIEVAL"), diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestSummary.java index 8dba45c40b6..c80ce54750e 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestSummary.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestSummary.java @@ -369,6 +369,7 @@ public enum OperationType { ChangeReportDefinitionCompartment("CHANGE_REPORT_DEFINITION_COMPARTMENT"), DeleteReportDefinition("DELETE_REPORT_DEFINITION"), GenerateReport("GENERATE_REPORT"), + GeneratePaginatedReport("GENERATE_PAGINATED_REPORT"), ChangeReportCompartment("CHANGE_REPORT_COMPARTMENT"), DeleteArchiveRetrieval("DELETE_ARCHIVE_RETRIEVAL"), CreateArchiveRetrieval("CREATE_ARCHIVE_RETRIEVAL"), diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListChecksRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListChecksRequest.java index c779c772bc4..5c1de09990a 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListChecksRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListChecksRequest.java @@ -115,6 +115,7 @@ public SortOrder getSortOrder() { public enum SortBy { Title("title"), Category("category"), + Key("key"), ; private final String value; diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListFindingsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListFindingsRequest.java index 47d8ffd1f18..7328aba0a58 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListFindingsRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListFindingsRequest.java @@ -159,6 +159,58 @@ public java.util.List getContainsSeverity() { public String getCategory() { return category; } + /** + * A filter to return only findings that match the specified risk level(s). Use containsOracleDefinedSeverity parameter if need to filter by one or multiple risk levels. + */ + private java.util.List containsOracleDefinedSeverity; + + /** + * A filter to return only findings that match the specified risk level(s). Use containsOracleDefinedSeverity parameter if need to filter by one or multiple risk levels. + **/ + public enum ContainsOracleDefinedSeverity { + High("HIGH"), + Medium("MEDIUM"), + Low("LOW"), + Evaluate("EVALUATE"), + Advisory("ADVISORY"), + Pass("PASS"), + Deferred("DEFERRED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ContainsOracleDefinedSeverity v : ContainsOracleDefinedSeverity.values()) { + map.put(v.getValue(), v); + } + } + + ContainsOracleDefinedSeverity(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ContainsOracleDefinedSeverity create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ContainsOracleDefinedSeverity: " + key); + } + }; + + /** + * A filter to return only findings that match the specified risk level(s). Use containsOracleDefinedSeverity parameter if need to filter by one or multiple risk levels. + */ + public java.util.List getContainsOracleDefinedSeverity() { + return containsOracleDefinedSeverity; + } /** * A filter to return only the findings that match the specified lifecycle states. */ @@ -656,6 +708,31 @@ public Builder category(String category) { return this; } + /** + * A filter to return only findings that match the specified risk level(s). Use containsOracleDefinedSeverity parameter if need to filter by one or multiple risk levels. + */ + private java.util.List containsOracleDefinedSeverity = null; + + /** + * A filter to return only findings that match the specified risk level(s). Use containsOracleDefinedSeverity parameter if need to filter by one or multiple risk levels. + * @param containsOracleDefinedSeverity the value to set + * @return this builder instance + */ + public Builder containsOracleDefinedSeverity( + java.util.List containsOracleDefinedSeverity) { + this.containsOracleDefinedSeverity = containsOracleDefinedSeverity; + return this; + } + + /** + * Singular setter. A filter to return only findings that match the specified risk level(s). Use containsOracleDefinedSeverity parameter if need to filter by one or multiple risk levels. + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder containsOracleDefinedSeverity(ContainsOracleDefinedSeverity singularValue) { + return this.containsOracleDefinedSeverity(java.util.Arrays.asList(singularValue)); + } + /** * A filter to return only the findings that match the specified lifecycle states. */ @@ -1011,6 +1088,7 @@ public Builder copy(ListFindingsRequest o) { severity(o.getSeverity()); containsSeverity(o.getContainsSeverity()); category(o.getCategory()); + containsOracleDefinedSeverity(o.getContainsOracleDefinedSeverity()); lifecycleState(o.getLifecycleState()); references(o.getReferences()); containsReferences(o.getContainsReferences()); @@ -1064,6 +1142,7 @@ public ListFindingsRequest buildWithoutInvocationCallback() { request.severity = severity; request.containsSeverity = containsSeverity; request.category = category; + request.containsOracleDefinedSeverity = containsOracleDefinedSeverity; request.lifecycleState = lifecycleState; request.references = references; request.containsReferences = containsReferences; @@ -1080,7 +1159,7 @@ public ListFindingsRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.findingKey = findingKey; return request; - // new ListFindingsRequest(securityAssessmentId, opcRequestId, isTopFinding, severity, containsSeverity, category, lifecycleState, references, containsReferences, limit, page, compartmentId, compartmentIdInSubtree, accessLevel, targetId, targetIds, scimQuery, field, sortBy, sortOrder, findingKey); + // new ListFindingsRequest(securityAssessmentId, opcRequestId, isTopFinding, severity, containsSeverity, category, containsOracleDefinedSeverity, lifecycleState, references, containsReferences, limit, page, compartmentId, compartmentIdInSubtree, accessLevel, targetId, targetIds, scimQuery, field, sortBy, sortOrder, findingKey); } } @@ -1096,6 +1175,7 @@ public Builder toBuilder() { .severity(severity) .containsSeverity(containsSeverity) .category(category) + .containsOracleDefinedSeverity(containsOracleDefinedSeverity) .lifecycleState(lifecycleState) .references(references) .containsReferences(containsReferences) @@ -1132,6 +1212,8 @@ public String toString() { sb.append(",severity=").append(String.valueOf(this.severity)); sb.append(",containsSeverity=").append(String.valueOf(this.containsSeverity)); sb.append(",category=").append(String.valueOf(this.category)); + sb.append(",containsOracleDefinedSeverity=") + .append(String.valueOf(this.containsOracleDefinedSeverity)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(",references=").append(String.valueOf(this.references)); sb.append(",containsReferences=").append(String.valueOf(this.containsReferences)); @@ -1168,6 +1250,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.severity, other.severity) && java.util.Objects.equals(this.containsSeverity, other.containsSeverity) && java.util.Objects.equals(this.category, other.category) + && java.util.Objects.equals( + this.containsOracleDefinedSeverity, other.containsOracleDefinedSeverity) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.references, other.references) && java.util.Objects.equals(this.containsReferences, other.containsReferences) @@ -1202,6 +1286,11 @@ public int hashCode() { (result * PRIME) + (this.containsSeverity == null ? 43 : this.containsSeverity.hashCode()); result = (result * PRIME) + (this.category == null ? 43 : this.category.hashCode()); + result = + (result * PRIME) + + (this.containsOracleDefinedSeverity == null + ? 43 + : this.containsOracleDefinedSeverity.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyAssociationsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyAssociationsRequest.java index e623f08cecc..76ea952b08f 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyAssociationsRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyAssociationsRequest.java @@ -187,6 +187,17 @@ public static SortBy create(String key) { public SortBy getSortBy() { return sortBy; } + /** + * A optional filter to return only resources that belong to the specified alert policy association type. + */ + private com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociation.TargetType targetType; + + /** + * A optional filter to return only resources that belong to the specified alert policy association type. + */ + public com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociation.TargetType getTargetType() { + return targetType; + } /** * Unique identifier for the request. */ @@ -462,6 +473,23 @@ public Builder sortBy(SortBy sortBy) { return this; } + /** + * A optional filter to return only resources that belong to the specified alert policy association type. + */ + private com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociation.TargetType targetType = + null; + + /** + * A optional filter to return only resources that belong to the specified alert policy association type. + * @param targetType the value to set + * @return this builder instance + */ + public Builder targetType( + com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociation.TargetType targetType) { + this.targetType = targetType; + return this; + } + /** * Unique identifier for the request. */ @@ -609,6 +637,7 @@ public Builder copy(ListTargetAlertPolicyAssociationsRequest o) { page(o.getPage()); sortOrder(o.getSortOrder()); sortBy(o.getSortBy()); + targetType(o.getTargetType()); opcRequestId(o.getOpcRequestId()); timeCreatedGreaterThanOrEqualTo(o.getTimeCreatedGreaterThanOrEqualTo()); timeCreatedLessThan(o.getTimeCreatedLessThan()); @@ -656,13 +685,14 @@ public ListTargetAlertPolicyAssociationsRequest buildWithoutInvocationCallback() request.page = page; request.sortOrder = sortOrder; request.sortBy = sortBy; + request.targetType = targetType; request.opcRequestId = opcRequestId; request.timeCreatedGreaterThanOrEqualTo = timeCreatedGreaterThanOrEqualTo; request.timeCreatedLessThan = timeCreatedLessThan; request.compartmentIdInSubtree = compartmentIdInSubtree; request.accessLevel = accessLevel; return request; - // new ListTargetAlertPolicyAssociationsRequest(compartmentId, targetAlertPolicyAssociationId, alertPolicyId, targetId, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId, timeCreatedGreaterThanOrEqualTo, timeCreatedLessThan, compartmentIdInSubtree, accessLevel); + // new ListTargetAlertPolicyAssociationsRequest(compartmentId, targetAlertPolicyAssociationId, alertPolicyId, targetId, lifecycleState, limit, page, sortOrder, sortBy, targetType, opcRequestId, timeCreatedGreaterThanOrEqualTo, timeCreatedLessThan, compartmentIdInSubtree, accessLevel); } } @@ -681,6 +711,7 @@ public Builder toBuilder() { .page(page) .sortOrder(sortOrder) .sortBy(sortBy) + .targetType(targetType) .opcRequestId(opcRequestId) .timeCreatedGreaterThanOrEqualTo(timeCreatedGreaterThanOrEqualTo) .timeCreatedLessThan(timeCreatedLessThan) @@ -711,6 +742,7 @@ public String toString() { sb.append(",page=").append(String.valueOf(this.page)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",targetType=").append(String.valueOf(this.targetType)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",timeCreatedGreaterThanOrEqualTo=") .append(String.valueOf(this.timeCreatedGreaterThanOrEqualTo)); @@ -743,6 +775,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.targetType, other.targetType) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals( this.timeCreatedGreaterThanOrEqualTo, other.timeCreatedGreaterThanOrEqualTo) @@ -775,6 +808,7 @@ public int hashCode() { result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.targetType == null ? 43 : this.targetType.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyUnassociatedMembersRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyUnassociatedMembersRequest.java new file mode 100644 index 00000000000..31e28b14476 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListTargetAlertPolicyUnassociatedMembersRequest.java @@ -0,0 +1,410 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use ListTargetAlertPolicyUnassociatedMembersRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListTargetAlertPolicyUnassociatedMembersRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the target-alert policy association. + */ + private String targetAlertPolicyAssociationId; + + /** + * The OCID of the target-alert policy association. + */ + public String getTargetAlertPolicyAssociationId() { + return targetAlertPolicyAssociationId; + } + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** + * The field to sort by. Only one sort parameter may be provided. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort parameter may be provided. + * + **/ + public enum SortBy { + TargetId("targetId"), + NotAppliedReason("notAppliedReason"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort parameter may be provided. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * 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 sort order to use, either ascending (ASC) or descending (DESC). + */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * Unique identifier for the request. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListTargetAlertPolicyUnassociatedMembersRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the target-alert policy association. + */ + private String targetAlertPolicyAssociationId = null; + + /** + * The OCID of the target-alert policy association. + * @param targetAlertPolicyAssociationId the value to set + * @return this builder instance + */ + public Builder targetAlertPolicyAssociationId(String targetAlertPolicyAssociationId) { + this.targetAlertPolicyAssociationId = targetAlertPolicyAssociationId; + return this; + } + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The field to sort by. Only one sort parameter may be provided. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort parameter may be provided. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Unique identifier for the request. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListTargetAlertPolicyUnassociatedMembersRequest o) { + targetAlertPolicyAssociationId(o.getTargetAlertPolicyAssociationId()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListTargetAlertPolicyUnassociatedMembersRequest 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 ListTargetAlertPolicyUnassociatedMembersRequest + */ + public ListTargetAlertPolicyUnassociatedMembersRequest build() { + ListTargetAlertPolicyUnassociatedMembersRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListTargetAlertPolicyUnassociatedMembersRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListTargetAlertPolicyUnassociatedMembersRequest + */ + public ListTargetAlertPolicyUnassociatedMembersRequest buildWithoutInvocationCallback() { + ListTargetAlertPolicyUnassociatedMembersRequest request = + new ListTargetAlertPolicyUnassociatedMembersRequest(); + request.targetAlertPolicyAssociationId = targetAlertPolicyAssociationId; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new ListTargetAlertPolicyUnassociatedMembersRequest(targetAlertPolicyAssociationId, limit, page, sortBy, sortOrder, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .targetAlertPolicyAssociationId(targetAlertPolicyAssociationId) + .limit(limit) + .page(page) + .sortBy(sortBy) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",targetAlertPolicyAssociationId=") + .append(String.valueOf(this.targetAlertPolicyAssociationId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListTargetAlertPolicyUnassociatedMembersRequest)) { + return false; + } + + ListTargetAlertPolicyUnassociatedMembersRequest other = + (ListTargetAlertPolicyUnassociatedMembersRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.targetAlertPolicyAssociationId, other.targetAlertPolicyAssociationId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.targetAlertPolicyAssociationId == null + ? 43 + : this.targetAlertPolicyAssociationId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListUsersRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListUsersRequest.java index 59d3f619bf4..c73e701835a 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListUsersRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListUsersRequest.java @@ -357,6 +357,17 @@ public java.util.Date getTimePasswordExpiryLessThan() { public String getPage() { return page; } + /** + * A filter to return only resources that match the specified compartment OCID. + */ + private String compartmentId; + + /** + * A filter to return only resources that match the specified compartment OCID. + */ + public String getCompartmentId() { + return compartmentId; + } /** * The sort order to use, either ascending (ASC) or descending (DESC). */ @@ -901,6 +912,21 @@ public Builder page(String page) { return this; } + /** + * A filter to return only resources that match the specified compartment OCID. + */ + private String compartmentId = null; + + /** + * A filter to return only resources that match the specified compartment OCID. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + /** * The sort order to use, either ascending (ASC) or descending (DESC). */ @@ -1038,6 +1064,7 @@ public Builder copy(ListUsersRequest o) { timePasswordExpiryGreaterThanOrEqualTo(o.getTimePasswordExpiryGreaterThanOrEqualTo()); timePasswordExpiryLessThan(o.getTimePasswordExpiryLessThan()); page(o.getPage()); + compartmentId(o.getCompartmentId()); sortOrder(o.getSortOrder()); sortBy(o.getSortBy()); opcRequestId(o.getOpcRequestId()); @@ -1098,13 +1125,14 @@ public ListUsersRequest buildWithoutInvocationCallback() { request.timePasswordExpiryGreaterThanOrEqualTo = timePasswordExpiryGreaterThanOrEqualTo; request.timePasswordExpiryLessThan = timePasswordExpiryLessThan; request.page = page; + request.compartmentId = compartmentId; request.sortOrder = sortOrder; request.sortBy = sortBy; request.opcRequestId = opcRequestId; request.schemaList = schemaList; request.areAllSchemasAccessible = areAllSchemasAccessible; return request; - // new ListUsersRequest(userAssessmentId, limit, compartmentIdInSubtree, accessLevel, userCategory, userRole, userProfile, userType, userKey, accountStatus, authenticationType, userName, targetId, timeLastLoginGreaterThanOrEqualTo, timeLastLoginLessThan, timeUserCreatedGreaterThanOrEqualTo, timeUserCreatedLessThan, timePasswordLastChangedGreaterThanOrEqualTo, timePasswordLastChangedLessThan, timePasswordExpiryGreaterThanOrEqualTo, timePasswordExpiryLessThan, page, sortOrder, sortBy, opcRequestId, schemaList, areAllSchemasAccessible); + // new ListUsersRequest(userAssessmentId, limit, compartmentIdInSubtree, accessLevel, userCategory, userRole, userProfile, userType, userKey, accountStatus, authenticationType, userName, targetId, timeLastLoginGreaterThanOrEqualTo, timeLastLoginLessThan, timeUserCreatedGreaterThanOrEqualTo, timeUserCreatedLessThan, timePasswordLastChangedGreaterThanOrEqualTo, timePasswordLastChangedLessThan, timePasswordExpiryGreaterThanOrEqualTo, timePasswordExpiryLessThan, page, compartmentId, sortOrder, sortBy, opcRequestId, schemaList, areAllSchemasAccessible); } } @@ -1137,6 +1165,7 @@ public Builder toBuilder() { .timePasswordExpiryGreaterThanOrEqualTo(timePasswordExpiryGreaterThanOrEqualTo) .timePasswordExpiryLessThan(timePasswordExpiryLessThan) .page(page) + .compartmentId(compartmentId) .sortOrder(sortOrder) .sortBy(sortBy) .opcRequestId(opcRequestId) @@ -1185,6 +1214,7 @@ public String toString() { sb.append(",timePasswordExpiryLessThan=") .append(String.valueOf(this.timePasswordExpiryLessThan)); sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); @@ -1239,6 +1269,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.timePasswordExpiryLessThan, other.timePasswordExpiryLessThan) && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) @@ -1317,6 +1348,9 @@ public int hashCode() { ? 43 : this.timePasswordExpiryLessThan.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListTargetAlertPolicyUnassociatedMembersResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListTargetAlertPolicyUnassociatedMembersResponse.java new file mode 100644 index 00000000000..b8e4011965a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListTargetAlertPolicyUnassociatedMembersResponse.java @@ -0,0 +1,273 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListTargetAlertPolicyUnassociatedMembersResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. Include opc-next-page value as the page parameter for the subsequent GET request to get the next batch of items. For details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. Include opc-next-page value as the page parameter for the subsequent GET request to get the next batch of items. For details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the previous batch of items. + * + */ + private String opcPrevPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the previous batch of items. + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** + * The returned TargetAlertPolicyUnassociatedCollection instance. + */ + private com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedCollection + targetAlertPolicyUnassociatedCollection; + + /** + * The returned TargetAlertPolicyUnassociatedCollection instance. + * @return the value + */ + public com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedCollection + getTargetAlertPolicyUnassociatedCollection() { + return targetAlertPolicyUnassociatedCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "targetAlertPolicyUnassociatedCollection" + }) + private ListTargetAlertPolicyUnassociatedMembersResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedCollection + targetAlertPolicyUnassociatedCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.targetAlertPolicyUnassociatedCollection = targetAlertPolicyUnassociatedCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. Include opc-next-page value as the page parameter for the subsequent GET request to get the next batch of items. For details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. Include opc-next-page value as the page parameter for the subsequent GET request to get the next batch of items. For details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the previous batch of items. + * + */ + private String opcPrevPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the previous batch of items. + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** + * The returned TargetAlertPolicyUnassociatedCollection instance. + */ + private com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedCollection + targetAlertPolicyUnassociatedCollection; + + /** + * The returned TargetAlertPolicyUnassociatedCollection instance. + * @param targetAlertPolicyUnassociatedCollection the value to set + * @return this builder + */ + public Builder targetAlertPolicyUnassociatedCollection( + com.oracle.bmc.datasafe.model.TargetAlertPolicyUnassociatedCollection + targetAlertPolicyUnassociatedCollection) { + this.targetAlertPolicyUnassociatedCollection = targetAlertPolicyUnassociatedCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListTargetAlertPolicyUnassociatedMembersResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + targetAlertPolicyUnassociatedCollection(o.getTargetAlertPolicyUnassociatedCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListTargetAlertPolicyUnassociatedMembersResponse build() { + return new ListTargetAlertPolicyUnassociatedMembersResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + targetAlertPolicyUnassociatedCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",targetAlertPolicyUnassociatedCollection=") + .append(String.valueOf(targetAlertPolicyUnassociatedCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListTargetAlertPolicyUnassociatedMembersResponse)) { + return false; + } + + ListTargetAlertPolicyUnassociatedMembersResponse other = + (ListTargetAlertPolicyUnassociatedMembersResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals( + this.targetAlertPolicyUnassociatedCollection, + other.targetAlertPolicyUnassociatedCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = + (result * PRIME) + + (this.targetAlertPolicyUnassociatedCollection == null + ? 43 + : this.targetAlertPolicyUnassociatedCollection.hashCode()); + return result; + } +} diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 6d947e4789f..39b6e9cbd5b 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-datascience @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ScheduleIntervalTrigger.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ScheduleIntervalTrigger.java index 88d953401f1..60b462759bb 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ScheduleIntervalTrigger.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ScheduleIntervalTrigger.java @@ -77,16 +77,46 @@ public Builder interval(Integer interval) { return this; } /** - * when true and timeStart is null, system generate a random start time between now and now + interval; - * isRandomStartTime can be true if timeStart is null. + * Maximum number of minutes after timeStart that the scheduler may use to randomly select the first execution time. + * This value is considered only when isRandomStartTime is true. + * This value applies only to the initial execution; subsequent executions remain deterministic based on the resolved first trigger time. + * If timeStart is null, the service resolves the effective start time using the current time. + * The initial jitter window is then applied once to that resolved start time to determine the first execution time. + * If not provided and isRandomStartTime is true, the service defaults the jitter window to half of the configured interval duration. + * The value must not exceed the configured interval duration. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialJitterInMinutes") + private Integer initialJitterInMinutes; + + /** + * Maximum number of minutes after timeStart that the scheduler may use to randomly select the first execution time. + * This value is considered only when isRandomStartTime is true. + * This value applies only to the initial execution; subsequent executions remain deterministic based on the resolved first trigger time. + * If timeStart is null, the service resolves the effective start time using the current time. + * The initial jitter window is then applied once to that resolved start time to determine the first execution time. + * If not provided and isRandomStartTime is true, the service defaults the jitter window to half of the configured interval duration. + * The value must not exceed the configured interval duration. + * + * @param initialJitterInMinutes the value to set + * @return this builder + **/ + public Builder initialJitterInMinutes(Integer initialJitterInMinutes) { + this.initialJitterInMinutes = initialJitterInMinutes; + this.__explicitlySet__.add("initialJitterInMinutes"); + return this; + } + /** + * when true, system generates a randomized first start time between timeStart and timeStart + initialJitterInMinutes. + * if timeStart is null, the current time is used as the base start time. * **/ @com.fasterxml.jackson.annotation.JsonProperty("isRandomStartTime") private Boolean isRandomStartTime; /** - * when true and timeStart is null, system generate a random start time between now and now + interval; - * isRandomStartTime can be true if timeStart is null. + * when true, system generates a randomized first start time between timeStart and timeStart + initialJitterInMinutes. + * if timeStart is null, the current time is used as the base start time. * * @param isRandomStartTime the value to set * @return this builder @@ -107,6 +137,7 @@ public ScheduleIntervalTrigger build() { this.timeEnd, this.frequency, this.interval, + this.initialJitterInMinutes, this.isRandomStartTime); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -128,6 +159,9 @@ public Builder copy(ScheduleIntervalTrigger model) { if (model.wasPropertyExplicitlySet("interval")) { this.interval(model.getInterval()); } + if (model.wasPropertyExplicitlySet("initialJitterInMinutes")) { + this.initialJitterInMinutes(model.getInitialJitterInMinutes()); + } if (model.wasPropertyExplicitlySet("isRandomStartTime")) { this.isRandomStartTime(model.getIsRandomStartTime()); } @@ -152,10 +186,12 @@ public ScheduleIntervalTrigger( java.util.Date timeEnd, Frequency frequency, Integer interval, + Integer initialJitterInMinutes, Boolean isRandomStartTime) { super(timeStart, timeEnd); this.frequency = frequency; this.interval = interval; + this.initialJitterInMinutes = initialJitterInMinutes; this.isRandomStartTime = isRandomStartTime; } @@ -236,16 +272,44 @@ public Integer getInterval() { } /** - * when true and timeStart is null, system generate a random start time between now and now + interval; - * isRandomStartTime can be true if timeStart is null. + * Maximum number of minutes after timeStart that the scheduler may use to randomly select the first execution time. + * This value is considered only when isRandomStartTime is true. + * This value applies only to the initial execution; subsequent executions remain deterministic based on the resolved first trigger time. + * If timeStart is null, the service resolves the effective start time using the current time. + * The initial jitter window is then applied once to that resolved start time to determine the first execution time. + * If not provided and isRandomStartTime is true, the service defaults the jitter window to half of the configured interval duration. + * The value must not exceed the configured interval duration. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialJitterInMinutes") + private final Integer initialJitterInMinutes; + + /** + * Maximum number of minutes after timeStart that the scheduler may use to randomly select the first execution time. + * This value is considered only when isRandomStartTime is true. + * This value applies only to the initial execution; subsequent executions remain deterministic based on the resolved first trigger time. + * If timeStart is null, the service resolves the effective start time using the current time. + * The initial jitter window is then applied once to that resolved start time to determine the first execution time. + * If not provided and isRandomStartTime is true, the service defaults the jitter window to half of the configured interval duration. + * The value must not exceed the configured interval duration. + * + * @return the value + **/ + public Integer getInitialJitterInMinutes() { + return initialJitterInMinutes; + } + + /** + * when true, system generates a randomized first start time between timeStart and timeStart + initialJitterInMinutes. + * if timeStart is null, the current time is used as the base start time. * **/ @com.fasterxml.jackson.annotation.JsonProperty("isRandomStartTime") private final Boolean isRandomStartTime; /** - * when true and timeStart is null, system generate a random start time between now and now + interval; - * isRandomStartTime can be true if timeStart is null. + * when true, system generates a randomized first start time between timeStart and timeStart + initialJitterInMinutes. + * if timeStart is null, the current time is used as the base start time. * * @return the value **/ @@ -269,6 +333,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", frequency=").append(String.valueOf(this.frequency)); sb.append(", interval=").append(String.valueOf(this.interval)); + sb.append(", initialJitterInMinutes=").append(String.valueOf(this.initialJitterInMinutes)); sb.append(", isRandomStartTime=").append(String.valueOf(this.isRandomStartTime)); sb.append(")"); return sb.toString(); @@ -286,6 +351,8 @@ public boolean equals(Object o) { ScheduleIntervalTrigger other = (ScheduleIntervalTrigger) o; return java.util.Objects.equals(this.frequency, other.frequency) && java.util.Objects.equals(this.interval, other.interval) + && java.util.Objects.equals( + this.initialJitterInMinutes, other.initialJitterInMinutes) && java.util.Objects.equals(this.isRandomStartTime, other.isRandomStartTime) && super.equals(other); } @@ -296,6 +363,11 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) + (this.frequency == null ? 43 : this.frequency.hashCode()); result = (result * PRIME) + (this.interval == null ? 43 : this.interval.hashCode()); + result = + (result * PRIME) + + (this.initialJitterInMinutes == null + ? 43 + : this.initialJitterInMinutes.hashCode()); result = (result * PRIME) + (this.isRandomStartTime == null ? 43 : this.isRandomStartTime.hashCode()); diff --git a/bmc-dblm/pom.xml b/bmc-dblm/pom.xml index 93d8dfb1bf0..f86731d8f08 100644 --- a/bmc-dblm/pom.xml +++ b/bmc-dblm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-dblm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-dbmulticloud/pom.xml b/bmc-dbmulticloud/pom.xml index 7a3bfee37e0..26207151c5f 100644 --- a/bmc-dbmulticloud/pom.xml +++ b/bmc-dbmulticloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-dbmulticloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index 4d61e828b60..4c3b2f27adf 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControl.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControl.java index a61626a641a..5e05b2b7a41 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControl.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControl.java @@ -8,8 +8,8 @@ import com.oracle.bmc.delegateaccesscontrol.responses.*; /** - * Oracle Delegate Access Control allows ExaCC and ExaCS customers to delegate management of their Exadata resources operators outside their tenancies. - * With Delegate Access Control, Support Providers can deliver managed services using comprehensive and robust tooling built on the OCI platform. + * Oracle Delegate Access Control allows customers of Oracle Exadata Database Service on Cloud@Customer (ExaDB-C@C), Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D), and Oracle Exadata Database Service on Exascale Infrastructure (ExaDB-XS) to delegate management of their Exadata resources operators outside their tenancies. + * With Delegate Access Control, Service Providers can deliver managed services using comprehensive and robust tooling built on the OCI platform. * Customers maintain control over who has access to the delegated resources in their tenancy and what actions can be taken. * Enterprises managing resources across multiple tenants can use Delegate Access Control to streamline management tasks. * Using logging service, customers can view a near real-time audit report of all actions performed by a Service Provider operator. @@ -151,7 +151,7 @@ CreateDelegationSubscriptionResponse createDelegationSubscription( DeleteDelegationControlResponse deleteDelegationControl(DeleteDelegationControlRequest request); /** - * eletes an Delegation Subscription in Delegation Control. + * Deletes an Delegation Subscription in Delegation Control. * @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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlAsync.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlAsync.java index 1d346a7e919..89b900cdd04 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlAsync.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlAsync.java @@ -8,8 +8,8 @@ import com.oracle.bmc.delegateaccesscontrol.responses.*; /** - * Oracle Delegate Access Control allows ExaCC and ExaCS customers to delegate management of their Exadata resources operators outside their tenancies. - * With Delegate Access Control, Support Providers can deliver managed services using comprehensive and robust tooling built on the OCI platform. + * Oracle Delegate Access Control allows customers of Oracle Exadata Database Service on Cloud@Customer (ExaDB-C@C), Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D), and Oracle Exadata Database Service on Exascale Infrastructure (ExaDB-XS) to delegate management of their Exadata resources operators outside their tenancies. + * With Delegate Access Control, Service Providers can deliver managed services using comprehensive and robust tooling built on the OCI platform. * Customers maintain control over who has access to the delegated resources in their tenancy and what actions can be taken. * Enterprises managing resources across multiple tenants can use Delegate Access Control to streamline management tasks. * Using logging service, customers can view a near real-time audit report of all actions performed by a Service Provider operator. @@ -177,7 +177,7 @@ java.util.concurrent.Future deleteDelegationCon handler); /** - * eletes an Delegation Subscription in Delegation Control. + * Deletes an Delegation Subscription in Delegation Control. * * @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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequest.java index bf30e70f112..0f880ca7fa1 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequest.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequest.java @@ -8,8 +8,8 @@ import com.oracle.bmc.delegateaccesscontrol.responses.*; /** - * Oracle Delegate Access Control allows ExaCC and ExaCS customers to delegate management of their Exadata resources operators outside their tenancies. - * With Delegate Access Control, Support Providers can deliver managed services using comprehensive and robust tooling built on the OCI platform. + * Oracle Delegate Access Control allows customers of Oracle Exadata Database Service on Cloud@Customer (ExaDB-C@C), Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D), and Oracle Exadata Database Service on Exascale Infrastructure (ExaDB-XS) to delegate management of their Exadata resources operators outside their tenancies. + * With Delegate Access Control, Service Providers can deliver managed services using comprehensive and robust tooling built on the OCI platform. * Customers maintain control over who has access to the delegated resources in their tenancy and what actions can be taken. * Enterprises managing resources across multiple tenants can use Delegate Access Control to streamline management tasks. * Using logging service, customers can view a near real-time audit report of all actions performed by a Service Provider operator. diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestAsync.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestAsync.java index c8d565458d7..4ed33d9069c 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestAsync.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestAsync.java @@ -8,8 +8,8 @@ import com.oracle.bmc.delegateaccesscontrol.responses.*; /** - * Oracle Delegate Access Control allows ExaCC and ExaCS customers to delegate management of their Exadata resources operators outside their tenancies. - * With Delegate Access Control, Support Providers can deliver managed services using comprehensive and robust tooling built on the OCI platform. + * Oracle Delegate Access Control allows customers of Oracle Exadata Database Service on Cloud@Customer (ExaDB-C@C), Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D), and Oracle Exadata Database Service on Exascale Infrastructure (ExaDB-XS) to delegate management of their Exadata resources operators outside their tenancies. + * With Delegate Access Control, Service Providers can deliver managed services using comprehensive and robust tooling built on the OCI platform. * Customers maintain control over who has access to the delegated resources in their tenancy and what actions can be taken. * Enterprises managing resources across multiple tenants can use Delegate Access Control to streamline management tasks. * Using logging service, customers can view a near real-time audit report of all actions performed by a Service Provider operator. diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationControlDetails.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationControlDetails.java index 2e77ff813e2..7dfb7d7767d 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationControlDetails.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationControlDetails.java @@ -263,13 +263,13 @@ public Builder notificationMessageFormat( return this; } /** - * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. **/ @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; /** - * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. * @param vaultId the value to set * @return this builder **/ @@ -279,13 +279,13 @@ public Builder vaultId(String vaultId) { return this; } /** - * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. **/ @com.fasterxml.jackson.annotation.JsonProperty("vaultKeyId") private String vaultKeyId; /** - * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. * @param vaultKeyId the value to set * @return this builder **/ @@ -593,13 +593,13 @@ public DelegationControl.NotificationMessageFormat getNotificationMessageFormat( } /** - * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. **/ @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private final String vaultId; /** - * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. * @return the value **/ public String getVaultId() { @@ -607,13 +607,13 @@ public String getVaultId() { } /** - * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. **/ @com.fasterxml.jackson.annotation.JsonProperty("vaultKeyId") private final String vaultKeyId; /** - * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. * @return the value **/ public String getVaultKeyId() { diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationSubscriptionDetails.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationSubscriptionDetails.java index b27f49cf54b..e8f179fce8a 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationSubscriptionDetails.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationSubscriptionDetails.java @@ -50,13 +50,13 @@ public CreateDelegationSubscriptionDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The OCID of the compartment that contains the Delegation Control. + * The OCID of the compartment that contains the Delegation Subscription. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The OCID of the compartment that contains the Delegation Control. + * The OCID of the compartment that contains the Delegation Subscription. * @param compartmentId the value to set * @return this builder **/ @@ -219,13 +219,13 @@ public Builder toBuilder() { } /** - * The OCID of the compartment that contains the Delegation Control. + * The OCID of the compartment that contains the Delegation Subscription. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The OCID of the compartment that contains the Delegation Control. + * The OCID of the compartment that contains the Delegation Subscription. * @return the value **/ public String getCompartmentId() { diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequest.java index d8244f90117..95d4d2c9e31 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequest.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequest.java @@ -45,6 +45,7 @@ public final class DelegatedResourceAccessRequest "requesterType", "requestedActionNames", "databaseNameList", + "databaseIdList", "providedServiceTypes", "delegationSubscriptionIds", "severity", @@ -81,6 +82,7 @@ public DelegatedResourceAccessRequest( DelegatedResourceAccessRequesterType requesterType, java.util.List requestedActionNames, java.util.List databaseNameList, + java.util.List databaseIdList, java.util.List providedServiceTypes, java.util.List delegationSubscriptionIds, DelegatedResourceAccessRequestSeverity severity, @@ -116,6 +118,7 @@ public DelegatedResourceAccessRequest( this.requesterType = requesterType; this.requestedActionNames = requestedActionNames; this.databaseNameList = databaseNameList; + this.databaseIdList = databaseIdList; this.providedServiceTypes = providedServiceTypes; this.delegationSubscriptionIds = delegationSubscriptionIds; this.severity = severity; @@ -342,13 +345,13 @@ public Builder requestedActionNames(java.util.List requestedActionNames) return this; } /** - * List of Database unique names for which access is requested. This parameter is required for DLGT_MGMT_SYS_MAINT_ACCESS cage when database access in needed. + * List of Database unique names for which access is requested. This parameter is required when database access in needed. **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseNameList") private java.util.List databaseNameList; /** - * List of Database unique names for which access is requested. This parameter is required for DLGT_MGMT_SYS_MAINT_ACCESS cage when database access in needed. + * List of Database unique names for which access is requested. This parameter is required when database access in needed. * @param databaseNameList the value to set * @return this builder **/ @@ -357,6 +360,22 @@ public Builder databaseNameList(java.util.List databaseNameList) { this.__explicitlySet__.add("databaseNameList"); return this; } + /** + * List of Database ID for which access is requested. This parameter is required when database access is needed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseIdList") + private java.util.List databaseIdList; + + /** + * List of Database ID for which access is requested. This parameter is required when database access is needed. + * @param databaseIdList the value to set + * @return this builder + **/ + public Builder databaseIdList(java.util.List databaseIdList) { + this.databaseIdList = databaseIdList; + this.__explicitlySet__.add("databaseIdList"); + return this; + } /** * List of Service Provider Service Types being provided by the support operator user. **/ @@ -747,6 +766,7 @@ public DelegatedResourceAccessRequest build() { this.requesterType, this.requestedActionNames, this.databaseNameList, + this.databaseIdList, this.providedServiceTypes, this.delegationSubscriptionIds, this.severity, @@ -815,6 +835,9 @@ public Builder copy(DelegatedResourceAccessRequest model) { if (model.wasPropertyExplicitlySet("databaseNameList")) { this.databaseNameList(model.getDatabaseNameList()); } + if (model.wasPropertyExplicitlySet("databaseIdList")) { + this.databaseIdList(model.getDatabaseIdList()); + } if (model.wasPropertyExplicitlySet("providedServiceTypes")) { this.providedServiceTypes(model.getProvidedServiceTypes()); } @@ -1070,19 +1093,33 @@ public java.util.List getRequestedActionNames() { } /** - * List of Database unique names for which access is requested. This parameter is required for DLGT_MGMT_SYS_MAINT_ACCESS cage when database access in needed. + * List of Database unique names for which access is requested. This parameter is required when database access in needed. **/ @com.fasterxml.jackson.annotation.JsonProperty("databaseNameList") private final java.util.List databaseNameList; /** - * List of Database unique names for which access is requested. This parameter is required for DLGT_MGMT_SYS_MAINT_ACCESS cage when database access in needed. + * List of Database unique names for which access is requested. This parameter is required when database access in needed. * @return the value **/ public java.util.List getDatabaseNameList() { return databaseNameList; } + /** + * List of Database ID for which access is requested. This parameter is required when database access is needed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseIdList") + private final java.util.List databaseIdList; + + /** + * List of Database ID for which access is requested. This parameter is required when database access is needed. + * @return the value + **/ + public java.util.List getDatabaseIdList() { + return databaseIdList; + } + /** * List of Service Provider Service Types being provided by the support operator user. **/ @@ -1488,6 +1525,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", requesterType=").append(String.valueOf(this.requesterType)); sb.append(", requestedActionNames=").append(String.valueOf(this.requestedActionNames)); sb.append(", databaseNameList=").append(String.valueOf(this.databaseNameList)); + sb.append(", databaseIdList=").append(String.valueOf(this.databaseIdList)); sb.append(", providedServiceTypes=").append(String.valueOf(this.providedServiceTypes)); sb.append(", delegationSubscriptionIds=") .append(String.valueOf(this.delegationSubscriptionIds)); @@ -1537,6 +1575,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.requesterType, other.requesterType) && java.util.Objects.equals(this.requestedActionNames, other.requestedActionNames) && java.util.Objects.equals(this.databaseNameList, other.databaseNameList) + && java.util.Objects.equals(this.databaseIdList, other.databaseIdList) && java.util.Objects.equals(this.providedServiceTypes, other.providedServiceTypes) && java.util.Objects.equals( this.delegationSubscriptionIds, other.delegationSubscriptionIds) @@ -1597,6 +1636,9 @@ public int hashCode() { result = (result * PRIME) + (this.databaseNameList == null ? 43 : this.databaseNameList.hashCode()); + result = + (result * PRIME) + + (this.databaseIdList == null ? 43 : this.databaseIdList.hashCode()); result = (result * PRIME) + (this.providedServiceTypes == null diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestApprovalDetails.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestApprovalDetails.java index 1a6204bbfda..fce9cb6e9fa 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestApprovalDetails.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestApprovalDetails.java @@ -29,7 +29,8 @@ public final class DelegatedResourceAccessRequestApprovalDetails "approvalType", "approverComment", "approverId", - "approverAdditionalMessage" + "approverAdditionalMessage", + "timeOfAction" }) public DelegatedResourceAccessRequestApprovalDetails( ApprovalAction approvalAction, @@ -37,7 +38,8 @@ public DelegatedResourceAccessRequestApprovalDetails( ApprovalType approvalType, String approverComment, String approverId, - String approverAdditionalMessage) { + String approverAdditionalMessage, + java.util.Date timeOfAction) { super(); this.approvalAction = approvalAction; this.timeApprovedForAccess = timeApprovedForAccess; @@ -45,6 +47,7 @@ public DelegatedResourceAccessRequestApprovalDetails( this.approverComment = approverComment; this.approverId = approverId; this.approverAdditionalMessage = approverAdditionalMessage; + this.timeOfAction = timeOfAction; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -145,6 +148,22 @@ public Builder approverAdditionalMessage(String approverAdditionalMessage) { this.__explicitlySet__.add("approverAdditionalMessage"); return this; } + /** + * Time when the access request was approved or rejected by the customer in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfAction") + private java.util.Date timeOfAction; + + /** + * Time when the access request was approved or rejected by the customer in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + * @param timeOfAction the value to set + * @return this builder + **/ + public Builder timeOfAction(java.util.Date timeOfAction) { + this.timeOfAction = timeOfAction; + this.__explicitlySet__.add("timeOfAction"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -157,7 +176,8 @@ public DelegatedResourceAccessRequestApprovalDetails build() { this.approvalType, this.approverComment, this.approverId, - this.approverAdditionalMessage); + this.approverAdditionalMessage, + this.timeOfAction); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -184,6 +204,9 @@ public Builder copy(DelegatedResourceAccessRequestApprovalDetails model) { if (model.wasPropertyExplicitlySet("approverAdditionalMessage")) { this.approverAdditionalMessage(model.getApproverAdditionalMessage()); } + if (model.wasPropertyExplicitlySet("timeOfAction")) { + this.timeOfAction(model.getTimeOfAction()); + } return this; } } @@ -379,6 +402,20 @@ public String getApproverAdditionalMessage() { return approverAdditionalMessage; } + /** + * Time when the access request was approved or rejected by the customer in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfAction") + private final java.util.Date timeOfAction; + + /** + * Time when the access request was approved or rejected by the customer in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + * @return the value + **/ + public java.util.Date getTimeOfAction() { + return timeOfAction; + } + @Override public String toString() { return this.toString(true); @@ -400,6 +437,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", approverId=").append(String.valueOf(this.approverId)); sb.append(", approverAdditionalMessage=") .append(String.valueOf(this.approverAdditionalMessage)); + sb.append(", timeOfAction=").append(String.valueOf(this.timeOfAction)); sb.append(")"); return sb.toString(); } @@ -422,6 +460,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.approverId, other.approverId) && java.util.Objects.equals( this.approverAdditionalMessage, other.approverAdditionalMessage) + && java.util.Objects.equals(this.timeOfAction, other.timeOfAction) && super.equals(other); } @@ -447,6 +486,7 @@ public int hashCode() { + (this.approverAdditionalMessage == null ? 43 : this.approverAdditionalMessage.hashCode()); + result = (result * PRIME) + (this.timeOfAction == null ? 43 : this.timeOfAction.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControl.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControl.java index bd38fc0d2c4..ed6366c8826 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControl.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControl.java @@ -295,13 +295,13 @@ public Builder notificationMessageFormat( return this; } /** - * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. **/ @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; /** - * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. * @param vaultId the value to set * @return this builder **/ @@ -311,13 +311,13 @@ public Builder vaultId(String vaultId) { return this; } /** - * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. **/ @com.fasterxml.jackson.annotation.JsonProperty("vaultKeyId") private String vaultKeyId; /** - * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. * @param vaultKeyId the value to set * @return this builder **/ @@ -827,13 +827,13 @@ public NotificationMessageFormat getNotificationMessageFormat() { } /** - * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. **/ @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private final String vaultId; /** - * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. Delegate Access Control Service will generate the SSH keys and store them as secrets in the OCI Vault. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. * @return the value **/ public String getVaultId() { @@ -841,13 +841,13 @@ public String getVaultId() { } /** - * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. **/ @com.fasterxml.jackson.annotation.JsonProperty("vaultKeyId") private final String vaultKeyId; /** - * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is required when resourceType is CLOUDVMCLUSTER. + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be used to encrypt the SSH keys to access the resource governed by this Delegation Control by Delegate Access Control Service. This property is optional when the Delegation Control is created for Oracle Managed Software Updates. Otherwise, it is required when resourceType is CLOUDVMCLUSTER or EXADBVMCLUSTER. * @return the value **/ public String getVaultKeyId() { diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceType.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceType.java index 0387b88ced3..074ddcc18ec 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceType.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceType.java @@ -12,6 +12,7 @@ public enum DelegationControlResourceType { Vmcluster("VMCLUSTER"), Cloudvmcluster("CLOUDVMCLUSTER"), + Exadbvmcluster("EXADBVMCLUSTER"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProvider.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProvider.java index 3c9c422a9ad..7a40f396c41 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProvider.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProvider.java @@ -87,13 +87,13 @@ public Builder id(String id) { return this; } /** - * The OCID of the compartment that contains the Delegation Control. + * The OCID of the compartment that contains the Service Provider. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The OCID of the compartment that contains the Delegation Control. + * The OCID of the compartment that contains the Service Provider. * @param compartmentId the value to set * @return this builder **/ @@ -425,13 +425,13 @@ public String getId() { } /** - * The OCID of the compartment that contains the Delegation Control. + * The OCID of the compartment that contains the Service Provider. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The OCID of the compartment that contains the Delegation Control. + * The OCID of the compartment that contains the Service Provider. * @return the value **/ public String getCompartmentId() { diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderAction.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderAction.java index 2bcba3495e9..b8b80dac953 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderAction.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderAction.java @@ -26,10 +26,12 @@ public final class ServiceProviderAction @Deprecated @java.beans.ConstructorProperties({ "id", + "compartmentId", "name", "customerDisplayName", "component", "resourceType", + "isSshAccessAllowed", "serviceProviderServiceTypes", "lifecycleState", "description", @@ -37,20 +39,24 @@ public final class ServiceProviderAction }) public ServiceProviderAction( String id, + String compartmentId, String name, String customerDisplayName, String component, DelegationControlResourceType resourceType, + Boolean isSshAccessAllowed, java.util.List serviceProviderServiceTypes, LifecycleState lifecycleState, String description, java.util.List properties) { super(); this.id = id; + this.compartmentId = compartmentId; this.name = name; this.customerDisplayName = customerDisplayName; this.component = component; this.resourceType = resourceType; + this.isSshAccessAllowed = isSshAccessAllowed; this.serviceProviderServiceTypes = serviceProviderServiceTypes; this.lifecycleState = lifecycleState; this.description = description; @@ -75,6 +81,22 @@ public Builder id(String id) { this.__explicitlySet__.add("id"); return this; } + /** + * The OCID of the compartment that contains the Service Provider Action. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the Service Provider Action. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } /** * Unique name of the Service Provider Action. **/ @@ -139,6 +161,22 @@ public Builder resourceType(DelegationControlResourceType resourceType) { this.__explicitlySet__.add("resourceType"); return this; } + /** + * Indicates whether the service provider action allows SSH access. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSshAccessAllowed") + private Boolean isSshAccessAllowed; + + /** + * Indicates whether the service provider action allows SSH access. + * @param isSshAccessAllowed the value to set + * @return this builder + **/ + public Builder isSshAccessAllowed(Boolean isSshAccessAllowed) { + this.isSshAccessAllowed = isSshAccessAllowed; + this.__explicitlySet__.add("isSshAccessAllowed"); + return this; + } /** * List of Service Provider Service Types that this Service Provider Action is applicable to. **/ @@ -216,10 +254,12 @@ public ServiceProviderAction build() { ServiceProviderAction model = new ServiceProviderAction( this.id, + this.compartmentId, this.name, this.customerDisplayName, this.component, this.resourceType, + this.isSshAccessAllowed, this.serviceProviderServiceTypes, this.lifecycleState, this.description, @@ -235,6 +275,9 @@ public Builder copy(ServiceProviderAction model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } @@ -247,6 +290,9 @@ public Builder copy(ServiceProviderAction model) { if (model.wasPropertyExplicitlySet("resourceType")) { this.resourceType(model.getResourceType()); } + if (model.wasPropertyExplicitlySet("isSshAccessAllowed")) { + this.isSshAccessAllowed(model.getIsSshAccessAllowed()); + } if (model.wasPropertyExplicitlySet("serviceProviderServiceTypes")) { this.serviceProviderServiceTypes(model.getServiceProviderServiceTypes()); } @@ -288,6 +334,20 @@ public String getId() { return id; } + /** + * The OCID of the compartment that contains the Service Provider Action. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the Service Provider Action. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + /** * Unique name of the Service Provider Action. **/ @@ -344,6 +404,20 @@ public DelegationControlResourceType getResourceType() { return resourceType; } + /** + * Indicates whether the service provider action allows SSH access. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSshAccessAllowed") + private final Boolean isSshAccessAllowed; + + /** + * Indicates whether the service provider action allows SSH access. + * @return the value + **/ + public Boolean getIsSshAccessAllowed() { + return isSshAccessAllowed; + } + /** * List of Service Provider Service Types that this Service Provider Action is applicable to. **/ @@ -467,10 +541,12 @@ public String toString(boolean includeByteArrayContents) { sb.append("ServiceProviderAction("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", name=").append(String.valueOf(this.name)); sb.append(", customerDisplayName=").append(String.valueOf(this.customerDisplayName)); sb.append(", component=").append(String.valueOf(this.component)); sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", isSshAccessAllowed=").append(String.valueOf(this.isSshAccessAllowed)); sb.append(", serviceProviderServiceTypes=") .append(String.valueOf(this.serviceProviderServiceTypes)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -491,10 +567,12 @@ public boolean equals(Object o) { ServiceProviderAction other = (ServiceProviderAction) o; return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.customerDisplayName, other.customerDisplayName) && java.util.Objects.equals(this.component, other.component) && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.isSshAccessAllowed, other.isSshAccessAllowed) && java.util.Objects.equals( this.serviceProviderServiceTypes, other.serviceProviderServiceTypes) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -508,6 +586,9 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) @@ -516,6 +597,11 @@ public int hashCode() { : this.customerDisplayName.hashCode()); result = (result * PRIME) + (this.component == null ? 43 : this.component.hashCode()); result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = + (result * PRIME) + + (this.isSshAccessAllowed == null + ? 43 + : this.isSshAccessAllowed.hashCode()); result = (result * PRIME) + (this.serviceProviderServiceTypes == null diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionSummary.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionSummary.java index 1649fa1620e..8245432e792 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionSummary.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionSummary.java @@ -24,29 +24,35 @@ public final class ServiceProviderActionSummary @Deprecated @java.beans.ConstructorProperties({ "id", + "compartmentId", "name", "customerDisplayName", "component", "resourceType", + "isSshAccessAllowed", "serviceProviderServiceTypes", "lifecycleState", "description" }) public ServiceProviderActionSummary( String id, + String compartmentId, String name, String customerDisplayName, String component, DelegationControlResourceType resourceType, + Boolean isSshAccessAllowed, java.util.List serviceProviderServiceTypes, ServiceProviderAction.LifecycleState lifecycleState, String description) { super(); this.id = id; + this.compartmentId = compartmentId; this.name = name; this.customerDisplayName = customerDisplayName; this.component = component; this.resourceType = resourceType; + this.isSshAccessAllowed = isSshAccessAllowed; this.serviceProviderServiceTypes = serviceProviderServiceTypes; this.lifecycleState = lifecycleState; this.description = description; @@ -70,6 +76,22 @@ public Builder id(String id) { this.__explicitlySet__.add("id"); return this; } + /** + * The OCID of the compartment that contains the Service Provider Action. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the Service Provider Action. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } /** * Name of the Service Provider Action. **/ @@ -134,6 +156,22 @@ public Builder resourceType(DelegationControlResourceType resourceType) { this.__explicitlySet__.add("resourceType"); return this; } + /** + * Indicates whether the service provider action allows SSH access. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSshAccessAllowed") + private Boolean isSshAccessAllowed; + + /** + * Indicates whether the service provider action allows SSH access. + * @param isSshAccessAllowed the value to set + * @return this builder + **/ + public Builder isSshAccessAllowed(Boolean isSshAccessAllowed) { + this.isSshAccessAllowed = isSshAccessAllowed; + this.__explicitlySet__.add("isSshAccessAllowed"); + return this; + } /** * List of Service Provider Service Types that this Service Provider Action is applicable to. **/ @@ -195,10 +233,12 @@ public ServiceProviderActionSummary build() { ServiceProviderActionSummary model = new ServiceProviderActionSummary( this.id, + this.compartmentId, this.name, this.customerDisplayName, this.component, this.resourceType, + this.isSshAccessAllowed, this.serviceProviderServiceTypes, this.lifecycleState, this.description); @@ -213,6 +253,9 @@ public Builder copy(ServiceProviderActionSummary model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } @@ -225,6 +268,9 @@ public Builder copy(ServiceProviderActionSummary model) { if (model.wasPropertyExplicitlySet("resourceType")) { this.resourceType(model.getResourceType()); } + if (model.wasPropertyExplicitlySet("isSshAccessAllowed")) { + this.isSshAccessAllowed(model.getIsSshAccessAllowed()); + } if (model.wasPropertyExplicitlySet("serviceProviderServiceTypes")) { this.serviceProviderServiceTypes(model.getServiceProviderServiceTypes()); } @@ -263,6 +309,20 @@ public String getId() { return id; } + /** + * The OCID of the compartment that contains the Service Provider Action. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the Service Provider Action. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + /** * Name of the Service Provider Action. **/ @@ -319,6 +379,20 @@ public DelegationControlResourceType getResourceType() { return resourceType; } + /** + * Indicates whether the service provider action allows SSH access. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSshAccessAllowed") + private final Boolean isSshAccessAllowed; + + /** + * Indicates whether the service provider action allows SSH access. + * @return the value + **/ + public Boolean getIsSshAccessAllowed() { + return isSshAccessAllowed; + } + /** * List of Service Provider Service Types that this Service Provider Action is applicable to. **/ @@ -380,10 +454,12 @@ public String toString(boolean includeByteArrayContents) { sb.append("ServiceProviderActionSummary("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", name=").append(String.valueOf(this.name)); sb.append(", customerDisplayName=").append(String.valueOf(this.customerDisplayName)); sb.append(", component=").append(String.valueOf(this.component)); sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", isSshAccessAllowed=").append(String.valueOf(this.isSshAccessAllowed)); sb.append(", serviceProviderServiceTypes=") .append(String.valueOf(this.serviceProviderServiceTypes)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -403,10 +479,12 @@ public boolean equals(Object o) { ServiceProviderActionSummary other = (ServiceProviderActionSummary) o; return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.customerDisplayName, other.customerDisplayName) && java.util.Objects.equals(this.component, other.component) && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.isSshAccessAllowed, other.isSshAccessAllowed) && java.util.Objects.equals( this.serviceProviderServiceTypes, other.serviceProviderServiceTypes) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -419,6 +497,9 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) @@ -427,6 +508,11 @@ public int hashCode() { : this.customerDisplayName.hashCode()); result = (result * PRIME) + (this.component == null ? 43 : this.component.hashCode()); result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = + (result * PRIME) + + (this.isSshAccessAllowed == null + ? 43 + : this.isSshAccessAllowed.hashCode()); result = (result * PRIME) + (this.serviceProviderServiceTypes == null diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderServiceType.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderServiceType.java index 4eabd1cd612..127f24ae6ff 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderServiceType.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderServiceType.java @@ -11,6 +11,7 @@ public enum ServiceProviderServiceType { Troubleshooting("TROUBLESHOOTING"), AssistedPatching("ASSISTED_PATCHING"), + ManagedSoftwareUpdates("MANAGED_SOFTWARE_UPDATES"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderSummary.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderSummary.java index 8a8ed2a89b5..06524e1b21a 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderSummary.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderSummary.java @@ -87,13 +87,13 @@ public Builder id(String id) { return this; } /** - * The OCID of the compartment that contains the Delegation Control. + * The OCID of the compartment that contains the Service Provider. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The OCID of the compartment that contains the Delegation Control. + * The OCID of the compartment that contains the Service Provider. * @param compartmentId the value to set * @return this builder **/ @@ -404,13 +404,13 @@ public String getId() { } /** - * The OCID of the compartment that contains the Delegation Control. + * The OCID of the compartment that contains the Service Provider. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The OCID of the compartment that contains the Delegation Control. + * The OCID of the compartment that contains the Service Provider. * @return the value **/ public String getCompartmentId() { diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestError.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestError.java index a5a2e4f1033..0774b428ad7 100644 --- a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestError.java +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestError.java @@ -30,7 +30,7 @@ public WorkRequestError(String code, String message, java.util.Date timestamp) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * A machine-usable code for the error that occured. Error codes are listed on + * A machine-usable code for the error that occurred. Error codes are listed on * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) * **/ @@ -38,7 +38,7 @@ public static class Builder { private String code; /** - * A machine-usable code for the error that occured. Error codes are listed on + * A machine-usable code for the error that occurred. Error codes are listed on * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) * * @param code the value to set @@ -66,13 +66,13 @@ public Builder message(String message) { return this; } /** - * The time the error occured. An RFC3339 formatted datetime string. + * The time the error occurred. An RFC3339 formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timestamp") private java.util.Date timestamp; /** - * The time the error occured. An RFC3339 formatted datetime string. + * The time the error occurred. An RFC3339 formatted datetime string. * @param timestamp the value to set * @return this builder **/ @@ -120,7 +120,7 @@ public Builder toBuilder() { } /** - * A machine-usable code for the error that occured. Error codes are listed on + * A machine-usable code for the error that occurred. Error codes are listed on * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) * **/ @@ -128,7 +128,7 @@ public Builder toBuilder() { private final String code; /** - * A machine-usable code for the error that occured. Error codes are listed on + * A machine-usable code for the error that occurred. Error codes are listed on * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) * * @return the value @@ -152,13 +152,13 @@ public String getMessage() { } /** - * The time the error occured. An RFC3339 formatted datetime string. + * The time the error occurred. An RFC3339 formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timestamp") private final java.util.Date timestamp; /** - * The time the error occured. An RFC3339 formatted datetime string. + * The time the error occurred. An RFC3339 formatted datetime string. * @return the value **/ public java.util.Date getTimestamp() { diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index d149e7484fb..f6a789f4b71 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 300d0f79c88..d3f99854923 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolDetails.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolDetails.java index 43721de6e6f..5bde158ff09 100644 --- a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolDetails.java +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolDetails.java @@ -48,6 +48,7 @@ public final class CreateDesktopPoolDetails "definedTags", "nsgIds", "privateAccessDetails", + "securityAttributes", "bootVolumeSizeInGBs" }) public CreateDesktopPoolDetails( @@ -76,6 +77,7 @@ public CreateDesktopPoolDetails( java.util.Map> definedTags, java.util.List nsgIds, CreateDesktopPoolPrivateAccessDetails privateAccessDetails, + java.util.Map> securityAttributes, Integer bootVolumeSizeInGBs) { super(); this.compartmentId = compartmentId; @@ -103,6 +105,7 @@ public CreateDesktopPoolDetails( this.definedTags = definedTags; this.nsgIds = nsgIds; this.privateAccessDetails = privateAccessDetails; + this.securityAttributes = securityAttributes; this.bootVolumeSizeInGBs = bootVolumeSizeInGBs; } @@ -480,6 +483,33 @@ public Builder privateAccessDetails( this.__explicitlySet__.add("privateAccessDetails"); return this; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** * The size in GBs of the boot volume for the desktop pool. **/ @@ -528,6 +558,7 @@ public CreateDesktopPoolDetails build() { this.definedTags, this.nsgIds, this.privateAccessDetails, + this.securityAttributes, this.bootVolumeSizeInGBs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -612,6 +643,9 @@ public Builder copy(CreateDesktopPoolDetails model) { if (model.wasPropertyExplicitlySet("privateAccessDetails")) { this.privateAccessDetails(model.getPrivateAccessDetails()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("bootVolumeSizeInGBs")) { this.bootVolumeSizeInGBs(model.getBootVolumeSizeInGBs()); } @@ -985,6 +1019,30 @@ public CreateDesktopPoolPrivateAccessDetails getPrivateAccessDetails() { return privateAccessDetails; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * The size in GBs of the boot volume for the desktop pool. **/ @@ -1039,6 +1097,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", privateAccessDetails=").append(String.valueOf(this.privateAccessDetails)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", bootVolumeSizeInGBs=").append(String.valueOf(this.bootVolumeSizeInGBs)); sb.append(")"); return sb.toString(); @@ -1080,6 +1139,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.privateAccessDetails, other.privateAccessDetails) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.bootVolumeSizeInGBs, other.bootVolumeSizeInGBs) && super.equals(other); } @@ -1159,6 +1219,11 @@ public int hashCode() { + (this.privateAccessDetails == null ? 43 : this.privateAccessDetails.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.bootVolumeSizeInGBs == null diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolPrivateAccessDetails.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolPrivateAccessDetails.java index fdb8a21b923..43c537ab5ca 100644 --- a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolPrivateAccessDetails.java +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolPrivateAccessDetails.java @@ -23,13 +23,17 @@ public final class CreateDesktopPoolPrivateAccessDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"subnetId", "nsgIds", "privateIp"}) + @java.beans.ConstructorProperties({"subnetId", "nsgIds", "privateIp", "securityAttributes"}) public CreateDesktopPoolPrivateAccessDetails( - String subnetId, java.util.List nsgIds, String privateIp) { + String subnetId, + java.util.List nsgIds, + String privateIp, + java.util.Map> securityAttributes) { super(); this.subnetId = subnetId; this.nsgIds = nsgIds; this.privateIp = privateIp; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -90,6 +94,33 @@ public Builder privateIp(String privateIp) { this.__explicitlySet__.add("privateIp"); return this; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -97,7 +128,7 @@ public Builder privateIp(String privateIp) { public CreateDesktopPoolPrivateAccessDetails build() { CreateDesktopPoolPrivateAccessDetails model = new CreateDesktopPoolPrivateAccessDetails( - this.subnetId, this.nsgIds, this.privateIp); + this.subnetId, this.nsgIds, this.privateIp, this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -115,6 +146,9 @@ public Builder copy(CreateDesktopPoolPrivateAccessDetails model) { if (model.wasPropertyExplicitlySet("privateIp")) { this.privateIp(model.getPrivateIp()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -180,6 +214,30 @@ public String getPrivateIp() { return privateIp; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -197,6 +255,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -214,6 +273,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.privateIp, other.privateIp) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -224,6 +284,11 @@ public int hashCode() { result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopNetworkConfiguration.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopNetworkConfiguration.java index 56f398ae3cd..fdb06152038 100644 --- a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopNetworkConfiguration.java +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopNetworkConfiguration.java @@ -22,11 +22,15 @@ public final class DesktopNetworkConfiguration extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"vcnId", "subnetId"}) - public DesktopNetworkConfiguration(String vcnId, String subnetId) { + @java.beans.ConstructorProperties({"vcnId", "subnetId", "securityAttributes"}) + public DesktopNetworkConfiguration( + String vcnId, + String subnetId, + java.util.Map> securityAttributes) { super(); this.vcnId = vcnId; this.subnetId = subnetId; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -69,13 +73,41 @@ public Builder subnetId(String subnetId) { this.__explicitlySet__.add("subnetId"); return this; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DesktopNetworkConfiguration build() { DesktopNetworkConfiguration model = - new DesktopNetworkConfiguration(this.vcnId, this.subnetId); + new DesktopNetworkConfiguration( + this.vcnId, this.subnetId, this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -90,6 +122,9 @@ public Builder copy(DesktopNetworkConfiguration model) { if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -139,6 +174,30 @@ public String getSubnetId() { return subnetId; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -155,6 +214,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("vcnId=").append(String.valueOf(this.vcnId)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -171,6 +231,7 @@ public boolean equals(Object o) { DesktopNetworkConfiguration other = (DesktopNetworkConfiguration) o; return java.util.Objects.equals(this.vcnId, other.vcnId) && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -180,6 +241,11 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPool.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPool.java index 3ada26b557f..50f22d5ba04 100644 --- a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPool.java +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPool.java @@ -46,6 +46,7 @@ public final class DesktopPool extends com.oracle.bmc.http.internal.ExplicitlySe "availabilityDomain", "freeformTags", "definedTags", + "securityAttributes", "nsgIds", "privateAccessDetails", "bootVolumeSizeInGBs" @@ -77,6 +78,7 @@ public DesktopPool( String availabilityDomain, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.Map> securityAttributes, java.util.List nsgIds, DesktopPoolPrivateAccessDetails privateAccessDetails, Integer bootVolumeSizeInGBs) { @@ -107,6 +109,7 @@ public DesktopPool( this.availabilityDomain = availabilityDomain; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; this.nsgIds = nsgIds; this.privateAccessDetails = privateAccessDetails; this.bootVolumeSizeInGBs = bootVolumeSizeInGBs; @@ -508,6 +511,33 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** * A list of network security groups for the network. **/ @@ -582,6 +612,7 @@ public DesktopPool build() { this.availabilityDomain, this.freeformTags, this.definedTags, + this.securityAttributes, this.nsgIds, this.privateAccessDetails, this.bootVolumeSizeInGBs); @@ -671,6 +702,9 @@ public Builder copy(DesktopPool model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } @@ -1084,6 +1118,30 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * A list of network security groups for the network. **/ @@ -1160,6 +1218,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", privateAccessDetails=").append(String.valueOf(this.privateAccessDetails)); sb.append(", bootVolumeSizeInGBs=").append(String.valueOf(this.bootVolumeSizeInGBs)); @@ -1204,6 +1263,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.privateAccessDetails, other.privateAccessDetails) && java.util.Objects.equals(this.bootVolumeSizeInGBs, other.bootVolumeSizeInGBs) @@ -1284,6 +1344,11 @@ public int hashCode() { : this.availabilityDomain.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolPrivateAccessDetails.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolPrivateAccessDetails.java index 176662cd6d0..7dd24c916e8 100644 --- a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolPrivateAccessDetails.java +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolPrivateAccessDetails.java @@ -23,19 +23,28 @@ public final class DesktopPoolPrivateAccessDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"vcnId", "endpointFqdn", "subnetId", "nsgIds", "privateIp"}) + @java.beans.ConstructorProperties({ + "vcnId", + "endpointFqdn", + "subnetId", + "nsgIds", + "privateIp", + "securityAttributes" + }) public DesktopPoolPrivateAccessDetails( String vcnId, String endpointFqdn, String subnetId, java.util.List nsgIds, - String privateIp) { + String privateIp, + java.util.Map> securityAttributes) { super(); this.vcnId = vcnId; this.endpointFqdn = endpointFqdn; this.subnetId = subnetId; this.nsgIds = nsgIds; this.privateIp = privateIp; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -136,6 +145,33 @@ public Builder privateIp(String privateIp) { this.__explicitlySet__.add("privateIp"); return this; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -147,7 +183,8 @@ public DesktopPoolPrivateAccessDetails build() { this.endpointFqdn, this.subnetId, this.nsgIds, - this.privateIp); + this.privateIp, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -171,6 +208,9 @@ public Builder copy(DesktopPoolPrivateAccessDetails model) { if (model.wasPropertyExplicitlySet("privateIp")) { this.privateIp(model.getPrivateIp()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -272,6 +312,30 @@ public String getPrivateIp() { return privateIp; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -291,6 +355,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -310,6 +375,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.privateIp, other.privateIp) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -322,6 +388,11 @@ public int hashCode() { result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolSummary.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolSummary.java index 63ce7bc2b05..f8e210e199f 100644 --- a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolSummary.java +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolSummary.java @@ -30,6 +30,7 @@ public final class DesktopPoolSummary extends com.oracle.bmc.http.internal.Expli "activeDesktops", "freeformTags", "definedTags", + "securityAttributes", "contactDetails", "compartmentId", "timeCreated" @@ -42,6 +43,7 @@ public DesktopPoolSummary( Integer activeDesktops, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.Map> securityAttributes, String contactDetails, String compartmentId, java.util.Date timeCreated) { @@ -53,6 +55,7 @@ public DesktopPoolSummary( this.activeDesktops = activeDesktops; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; this.contactDetails = contactDetails; this.compartmentId = compartmentId; this.timeCreated = timeCreated; @@ -183,6 +186,33 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** * Contact information of the desktop pool administrator. * Avoid entering confidential information. @@ -249,6 +279,7 @@ public DesktopPoolSummary build() { this.activeDesktops, this.freeformTags, this.definedTags, + this.securityAttributes, this.contactDetails, this.compartmentId, this.timeCreated); @@ -281,6 +312,9 @@ public Builder copy(DesktopPoolSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("contactDetails")) { this.contactDetails(model.getContactDetails()); } @@ -413,6 +447,30 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * Contact information of the desktop pool administrator. * Avoid entering confidential information. @@ -480,6 +538,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", activeDesktops=").append(String.valueOf(this.activeDesktops)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", contactDetails=").append(String.valueOf(this.contactDetails)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -504,6 +563,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.activeDesktops, other.activeDesktops) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.contactDetails, other.contactDetails) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -525,6 +585,11 @@ public int hashCode() { + (this.activeDesktops == null ? 43 : this.activeDesktops.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.contactDetails == null ? 43 : this.contactDetails.hashCode()); diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopNetworkConfiguration.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopNetworkConfiguration.java new file mode 100644 index 00000000000..5051e4c8a8b --- /dev/null +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopNetworkConfiguration.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.desktops.model; + +/** + * Provides information about the network configuration of the desktop pool. + *
+ * 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: 20220618") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDesktopNetworkConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateDesktopNetworkConfiguration + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"securityAttributes"}) + public UpdateDesktopNetworkConfiguration( + java.util.Map> securityAttributes) { + super(); + this.securityAttributes = securityAttributes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDesktopNetworkConfiguration build() { + UpdateDesktopNetworkConfiguration model = + new UpdateDesktopNetworkConfiguration(this.securityAttributes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDesktopNetworkConfiguration model) { + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDesktopNetworkConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDesktopNetworkConfiguration)) { + return false; + } + + UpdateDesktopNetworkConfiguration other = (UpdateDesktopNetworkConfiguration) o; + return java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopPoolDetails.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopPoolDetails.java index 4dcc31deede..9c840bd41b2 100644 --- a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopPoolDetails.java +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopPoolDetails.java @@ -36,6 +36,9 @@ public final class UpdateDesktopPoolDetails "definedTags", "sessionLifecycleActions", "image", + "networkConfiguration", + "privateAccessDetails", + "securityAttributes", "bootVolumeSizeInGBs" }) public UpdateDesktopPoolDetails( @@ -52,6 +55,9 @@ public UpdateDesktopPoolDetails( java.util.Map> definedTags, UpdateDesktopPoolDesktopSessionLifecycleActions sessionLifecycleActions, UpdateDesktopImage image, + UpdateDesktopNetworkConfiguration networkConfiguration, + UpdateDesktopPoolPrivateAccessDetails privateAccessDetails, + java.util.Map> securityAttributes, Integer bootVolumeSizeInGBs) { super(); this.displayName = displayName; @@ -67,6 +73,9 @@ public UpdateDesktopPoolDetails( this.definedTags = definedTags; this.sessionLifecycleActions = sessionLifecycleActions; this.image = image; + this.networkConfiguration = networkConfiguration; + this.privateAccessDetails = privateAccessDetails; + this.securityAttributes = securityAttributes; this.bootVolumeSizeInGBs = bootVolumeSizeInGBs; } @@ -272,6 +281,53 @@ public Builder image(UpdateDesktopImage image) { this.__explicitlySet__.add("image"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("networkConfiguration") + private UpdateDesktopNetworkConfiguration networkConfiguration; + + public Builder networkConfiguration( + UpdateDesktopNetworkConfiguration networkConfiguration) { + this.networkConfiguration = networkConfiguration; + this.__explicitlySet__.add("networkConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("privateAccessDetails") + private UpdateDesktopPoolPrivateAccessDetails privateAccessDetails; + + public Builder privateAccessDetails( + UpdateDesktopPoolPrivateAccessDetails privateAccessDetails) { + this.privateAccessDetails = privateAccessDetails; + this.__explicitlySet__.add("privateAccessDetails"); + return this; + } + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** * The size in GBs of the boot volume for the desktop pool. **/ @@ -308,6 +364,9 @@ public UpdateDesktopPoolDetails build() { this.definedTags, this.sessionLifecycleActions, this.image, + this.networkConfiguration, + this.privateAccessDetails, + this.securityAttributes, this.bootVolumeSizeInGBs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -356,6 +415,15 @@ public Builder copy(UpdateDesktopPoolDetails model) { if (model.wasPropertyExplicitlySet("image")) { this.image(model.getImage()); } + if (model.wasPropertyExplicitlySet("networkConfiguration")) { + this.networkConfiguration(model.getNetworkConfiguration()); + } + if (model.wasPropertyExplicitlySet("privateAccessDetails")) { + this.privateAccessDetails(model.getPrivateAccessDetails()); + } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("bootVolumeSizeInGBs")) { this.bootVolumeSizeInGBs(model.getBootVolumeSizeInGBs()); } @@ -546,6 +614,44 @@ public UpdateDesktopImage getImage() { return image; } + @com.fasterxml.jackson.annotation.JsonProperty("networkConfiguration") + private final UpdateDesktopNetworkConfiguration networkConfiguration; + + public UpdateDesktopNetworkConfiguration getNetworkConfiguration() { + return networkConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("privateAccessDetails") + private final UpdateDesktopPoolPrivateAccessDetails privateAccessDetails; + + public UpdateDesktopPoolPrivateAccessDetails getPrivateAccessDetails() { + return privateAccessDetails; + } + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * The size in GBs of the boot volume for the desktop pool. **/ @@ -588,6 +694,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sessionLifecycleActions=") .append(String.valueOf(this.sessionLifecycleActions)); sb.append(", image=").append(String.valueOf(this.image)); + sb.append(", networkConfiguration=").append(String.valueOf(this.networkConfiguration)); + sb.append(", privateAccessDetails=").append(String.valueOf(this.privateAccessDetails)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", bootVolumeSizeInGBs=").append(String.valueOf(this.bootVolumeSizeInGBs)); sb.append(")"); return sb.toString(); @@ -617,6 +726,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.sessionLifecycleActions, other.sessionLifecycleActions) && java.util.Objects.equals(this.image, other.image) + && java.util.Objects.equals(this.networkConfiguration, other.networkConfiguration) + && java.util.Objects.equals(this.privateAccessDetails, other.privateAccessDetails) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.bootVolumeSizeInGBs, other.bootVolumeSizeInGBs) && super.equals(other); } @@ -654,6 +766,21 @@ public int hashCode() { ? 43 : this.sessionLifecycleActions.hashCode()); result = (result * PRIME) + (this.image == null ? 43 : this.image.hashCode()); + result = + (result * PRIME) + + (this.networkConfiguration == null + ? 43 + : this.networkConfiguration.hashCode()); + result = + (result * PRIME) + + (this.privateAccessDetails == null + ? 43 + : this.privateAccessDetails.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.bootVolumeSizeInGBs == null diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopPoolPrivateAccessDetails.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopPoolPrivateAccessDetails.java new file mode 100644 index 00000000000..70c76ec6773 --- /dev/null +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopPoolPrivateAccessDetails.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.desktops.model; + +/** + * The details of the desktop's private access network connectivity to be set up for the desktop pool. + * + *
+ * 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: 20220618") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDesktopPoolPrivateAccessDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateDesktopPoolPrivateAccessDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"securityAttributes"}) + public UpdateDesktopPoolPrivateAccessDetails( + java.util.Map> securityAttributes) { + super(); + this.securityAttributes = securityAttributes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDesktopPoolPrivateAccessDetails build() { + UpdateDesktopPoolPrivateAccessDetails model = + new UpdateDesktopPoolPrivateAccessDetails(this.securityAttributes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDesktopPoolPrivateAccessDetails model) { + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) for this resource. + * Each attribute can be referenced in a [Zero Trust Packet Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDesktopPoolPrivateAccessDetails("); + sb.append("super=").append(super.toString()); + sb.append("securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDesktopPoolPrivateAccessDetails)) { + return false; + } + + UpdateDesktopPoolPrivateAccessDetails other = (UpdateDesktopPoolPrivateAccessDetails) o; + return java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index ff7015dd7d5..5983b995b31 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-devops @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-dif/pom.xml b/bmc-dif/pom.xml index baeb145c65c..b998e34630b 100644 --- a/bmc-dif/pom.xml +++ b/bmc-dif/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-dif @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 15da6ed17fc..68255ca357a 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-distributeddatabase/pom.xml b/bmc-distributeddatabase/pom.xml index ef32ee4f130..5f9a82779c4 100644 --- a/bmc-distributeddatabase/pom.xml +++ b/bmc-distributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-distributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 15e620662e9..f9428b940f8 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.93.0 + 2.95.0 diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/Dns.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/Dns.java index ccbf1d28757..dc19caa711a 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/Dns.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/Dns.java @@ -225,7 +225,7 @@ CreateSteeringPolicyAttachmentResponse createSteeringPolicyAttachment( * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. - * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * * Example: Click here to see how to use CreateZone API. @@ -265,7 +265,7 @@ CreateSteeringPolicyAttachmentResponse createSteeringPolicyAttachment( * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. - * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * * Example: Click here to see how to use CreateZoneFromZoneFile API. diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/DnsClient.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/DnsClient.java index 2d8dc59c52f..d24ca4cf836 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/DnsClient.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/DnsClient.java @@ -984,7 +984,7 @@ public CreateZoneResponse createZone(CreateZoneRequest request) { final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = @@ -1018,7 +1018,7 @@ public CreateZoneFromZoneFileResponse createZoneFromZoneFile( try { final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - request.getRetryConfiguration(), retryConfiguration, false); + request.getRetryConfiguration(), retryConfiguration, true); if (request.getRetryConfiguration() != null || retryConfiguration != null || shouldRetryBecauseOfWaiterConfiguration(retrier) diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/CreateResolverEndpointDetails.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/CreateResolverEndpointDetails.java index cee0d3fb253..771aaf0fd6d 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/CreateResolverEndpointDetails.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/CreateResolverEndpointDetails.java @@ -39,20 +39,26 @@ public class CreateResolverEndpointDetails "forwardingAddress", "isForwarding", "isListening", - "listeningAddress" + "listeningAddress", + "freeformTags", + "definedTags" }) protected CreateResolverEndpointDetails( String name, String forwardingAddress, Boolean isForwarding, Boolean isListening, - String listeningAddress) { + String listeningAddress, + java.util.Map freeformTags, + java.util.Map> definedTags) { super(); this.name = name; this.forwardingAddress = forwardingAddress; this.isForwarding = isForwarding; this.isListening = isListening; this.listeningAddress = listeningAddress; + this.freeformTags = freeformTags; + this.definedTags = definedTags; } /** @@ -139,6 +145,20 @@ public String getListeningAddress() { return listeningAddress; } + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + public java.util.Map> getDefinedTags() { + return definedTags; + } + @Override public String toString() { return this.toString(true); @@ -158,6 +178,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isForwarding=").append(String.valueOf(this.isForwarding)); sb.append(", isListening=").append(String.valueOf(this.isListening)); sb.append(", listeningAddress=").append(String.valueOf(this.listeningAddress)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); return sb.toString(); } @@ -177,6 +199,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isForwarding, other.isForwarding) && java.util.Objects.equals(this.isListening, other.isListening) && java.util.Objects.equals(this.listeningAddress, other.listeningAddress) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); } @@ -193,6 +217,8 @@ public int hashCode() { result = (result * PRIME) + (this.listeningAddress == null ? 43 : this.listeningAddress.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/CreateResolverVnicEndpointDetails.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/CreateResolverVnicEndpointDetails.java index 09396c2f8ff..1d4a5b57a51 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/CreateResolverVnicEndpointDetails.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/CreateResolverVnicEndpointDetails.java @@ -76,6 +76,25 @@ public Builder listeningAddress(String listeningAddress) { this.__explicitlySet__.add("listeningAddress"); 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; + } /** * The OCID of a subnet. Must be part of the VCN that the resolver is attached to. **/ @@ -113,6 +132,16 @@ public Builder nsgIds(java.util.List nsgIds) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -124,8 +153,11 @@ public CreateResolverVnicEndpointDetails build() { this.isForwarding, this.isListening, this.listeningAddress, + this.freeformTags, + this.definedTags, this.subnetId, - this.nsgIds); + this.nsgIds, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -149,12 +181,21 @@ public Builder copy(CreateResolverVnicEndpointDetails model) { if (model.wasPropertyExplicitlySet("listeningAddress")) { this.listeningAddress(model.getListeningAddress()); } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -177,11 +218,22 @@ public CreateResolverVnicEndpointDetails( Boolean isForwarding, Boolean isListening, String listeningAddress, + java.util.Map freeformTags, + java.util.Map> definedTags, String subnetId, - java.util.List nsgIds) { - super(name, forwardingAddress, isForwarding, isListening, listeningAddress); + java.util.List nsgIds, + java.util.Map> securityAttributes) { + super( + name, + forwardingAddress, + isForwarding, + isListening, + listeningAddress, + freeformTags, + definedTags); this.subnetId = subnetId; this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; } /** @@ -216,6 +268,13 @@ public java.util.List getNsgIds() { return nsgIds; } + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -232,6 +291,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -248,6 +308,7 @@ public boolean equals(Object o) { CreateResolverVnicEndpointDetails other = (CreateResolverVnicEndpointDetails) o; return java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -257,6 +318,11 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); return result; } } diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/CreateZoneDetails.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/CreateZoneDetails.java index 6fb4225b145..48b6cf73c7d 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/CreateZoneDetails.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/CreateZoneDetails.java @@ -161,14 +161,14 @@ public Builder externalDownstreams(java.util.List externalDo return this; } /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * **/ @com.fasterxml.jackson.annotation.JsonProperty("resolutionMode") private ZoneResolutionMode resolutionMode; /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * * @param resolutionMode the value to set * @return this builder @@ -463,14 +463,14 @@ public java.util.List getExternalDownstreams() { } /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * **/ @com.fasterxml.jackson.annotation.JsonProperty("resolutionMode") private final ZoneResolutionMode resolutionMode; /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * * @return the value **/ diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverEndpoint.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverEndpoint.java index 8a0ce123750..5538bc00a4d 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverEndpoint.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverEndpoint.java @@ -39,11 +39,15 @@ public class ResolverEndpoint extends com.oracle.bmc.http.internal.ExplicitlySet "isForwarding", "isListening", "listeningAddress", + "id", + "resolverId", "compartmentId", "timeCreated", "timeUpdated", "lifecycleState", - "self" + "self", + "freeformTags", + "definedTags" }) protected ResolverEndpoint( String name, @@ -51,22 +55,30 @@ protected ResolverEndpoint( Boolean isForwarding, Boolean isListening, String listeningAddress, + String id, + String resolverId, String compartmentId, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, - String self) { + String self, + java.util.Map freeformTags, + java.util.Map> definedTags) { super(); this.name = name; this.forwardingAddress = forwardingAddress; this.isForwarding = isForwarding; this.isListening = isListening; this.listeningAddress = listeningAddress; + this.id = id; + this.resolverId = resolverId; this.compartmentId = compartmentId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.self = self; + this.freeformTags = freeformTags; + this.definedTags = definedTags; } /** @@ -153,6 +165,34 @@ public String getListeningAddress() { return listeningAddress; } + /** + * The OCID of the resolver endpoint. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resolver endpoint. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The OCID of the resolver. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resolverId") + private final String resolverId; + + /** + * The OCID of the resolver. + * @return the value + **/ + public String getResolverId() { + return resolverId; + } + /** * The OCID of the owning compartment. This will match the resolver that the resolver endpoint is under * and will be updated if the resolver's compartment is changed. @@ -295,6 +335,20 @@ public String getSelf() { return self; } + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + public java.util.Map> getDefinedTags() { + return definedTags; + } + @Override public String toString() { return this.toString(true); @@ -314,11 +368,15 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isForwarding=").append(String.valueOf(this.isForwarding)); sb.append(", isListening=").append(String.valueOf(this.isListening)); sb.append(", listeningAddress=").append(String.valueOf(this.listeningAddress)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", resolverId=").append(String.valueOf(this.resolverId)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", self=").append(String.valueOf(this.self)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); return sb.toString(); } @@ -338,11 +396,15 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isForwarding, other.isForwarding) && java.util.Objects.equals(this.isListening, other.isListening) && java.util.Objects.equals(this.listeningAddress, other.listeningAddress) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.resolverId, other.resolverId) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.self, other.self) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); } @@ -359,6 +421,8 @@ public int hashCode() { result = (result * PRIME) + (this.listeningAddress == null ? 43 : this.listeningAddress.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.resolverId == null ? 43 : this.resolverId.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); @@ -368,6 +432,8 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.self == null ? 43 : this.self.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverEndpointSummary.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverEndpointSummary.java index 087439878fc..aae5ecbeae1 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverEndpointSummary.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverEndpointSummary.java @@ -39,11 +39,15 @@ public class ResolverEndpointSummary extends com.oracle.bmc.http.internal.Explic "isForwarding", "isListening", "listeningAddress", + "id", + "resolverId", "compartmentId", "timeCreated", "timeUpdated", "lifecycleState", - "self" + "self", + "freeformTags", + "definedTags" }) protected ResolverEndpointSummary( String name, @@ -51,22 +55,30 @@ protected ResolverEndpointSummary( Boolean isForwarding, Boolean isListening, String listeningAddress, + String id, + String resolverId, String compartmentId, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, - String self) { + String self, + java.util.Map freeformTags, + java.util.Map> definedTags) { super(); this.name = name; this.forwardingAddress = forwardingAddress; this.isForwarding = isForwarding; this.isListening = isListening; this.listeningAddress = listeningAddress; + this.id = id; + this.resolverId = resolverId; this.compartmentId = compartmentId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.self = self; + this.freeformTags = freeformTags; + this.definedTags = definedTags; } /** @@ -153,6 +165,34 @@ public String getListeningAddress() { return listeningAddress; } + /** + * The OCID of the resolver endpoint. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resolver endpoint. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The OCID of the resolver. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resolverId") + private final String resolverId; + + /** + * The OCID of the resolver. + * @return the value + **/ + public String getResolverId() { + return resolverId; + } + /** * The OCID of the owning compartment. This will match the resolver that the resolver endpoint is under * and will be updated if the resolver's compartment is changed. @@ -295,6 +335,20 @@ public String getSelf() { return self; } + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + public java.util.Map> getDefinedTags() { + return definedTags; + } + @Override public String toString() { return this.toString(true); @@ -314,11 +368,15 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isForwarding=").append(String.valueOf(this.isForwarding)); sb.append(", isListening=").append(String.valueOf(this.isListening)); sb.append(", listeningAddress=").append(String.valueOf(this.listeningAddress)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", resolverId=").append(String.valueOf(this.resolverId)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", self=").append(String.valueOf(this.self)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); return sb.toString(); } @@ -338,11 +396,15 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isForwarding, other.isForwarding) && java.util.Objects.equals(this.isListening, other.isListening) && java.util.Objects.equals(this.listeningAddress, other.listeningAddress) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.resolverId, other.resolverId) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.self, other.self) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); } @@ -359,6 +421,8 @@ public int hashCode() { result = (result * PRIME) + (this.listeningAddress == null ? 43 : this.listeningAddress.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.resolverId == null ? 43 : this.resolverId.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); @@ -368,6 +432,8 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.self == null ? 43 : this.self.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverVnicEndpoint.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverVnicEndpoint.java index 7e2f5214bd9..2d2f4d4b85a 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverVnicEndpoint.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverVnicEndpoint.java @@ -76,6 +76,24 @@ public Builder listeningAddress(String listeningAddress) { return this; } + @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("resolverId") + private String resolverId; + + public Builder resolverId(String resolverId) { + this.resolverId = resolverId; + this.__explicitlySet__.add("resolverId"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; @@ -120,6 +138,25 @@ public Builder self(String self) { this.__explicitlySet__.add("self"); 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; + } /** * The OCID of a subnet. Must be part of the VCN that the resolver is attached to. **/ @@ -157,6 +194,48 @@ public Builder nsgIds(java.util.List nsgIds) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint resource that this resolver endpoint corresponds to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("peId") + private String peId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint resource that this resolver endpoint corresponds to. + * @param peId the value to set + * @return this builder + **/ + public Builder peId(String peId) { + this.peId = peId; + this.__explicitlySet__.add("peId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC resource that this resolver endpoint corresponds to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vnicId") + private String vnicId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC resource that this resolver endpoint corresponds to. + * @param vnicId the value to set + * @return this builder + **/ + public Builder vnicId(String vnicId) { + this.vnicId = vnicId; + this.__explicitlySet__.add("vnicId"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -168,13 +247,20 @@ public ResolverVnicEndpoint build() { this.isForwarding, this.isListening, this.listeningAddress, + this.id, + this.resolverId, this.compartmentId, this.timeCreated, this.timeUpdated, this.lifecycleState, this.self, + this.freeformTags, + this.definedTags, this.subnetId, - this.nsgIds); + this.nsgIds, + this.securityAttributes, + this.peId, + this.vnicId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -198,6 +284,12 @@ public Builder copy(ResolverVnicEndpoint model) { if (model.wasPropertyExplicitlySet("listeningAddress")) { this.listeningAddress(model.getListeningAddress()); } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("resolverId")) { + this.resolverId(model.getResolverId()); + } if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } @@ -213,12 +305,27 @@ public Builder copy(ResolverVnicEndpoint model) { if (model.wasPropertyExplicitlySet("self")) { this.self(model.getSelf()); } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } + if (model.wasPropertyExplicitlySet("peId")) { + this.peId(model.getPeId()); + } + if (model.wasPropertyExplicitlySet("vnicId")) { + this.vnicId(model.getVnicId()); + } return this; } } @@ -241,26 +348,40 @@ public ResolverVnicEndpoint( Boolean isForwarding, Boolean isListening, String listeningAddress, + String id, + String resolverId, String compartmentId, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, String self, + java.util.Map freeformTags, + java.util.Map> definedTags, String subnetId, - java.util.List nsgIds) { + java.util.List nsgIds, + java.util.Map> securityAttributes, + String peId, + String vnicId) { super( name, forwardingAddress, isForwarding, isListening, listeningAddress, + id, + resolverId, compartmentId, timeCreated, timeUpdated, lifecycleState, - self); + self, + freeformTags, + definedTags); this.subnetId = subnetId; this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; + this.peId = peId; + this.vnicId = vnicId; } /** @@ -295,6 +416,41 @@ public java.util.List getNsgIds() { return nsgIds; } + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint resource that this resolver endpoint corresponds to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("peId") + private final String peId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint resource that this resolver endpoint corresponds to. + * @return the value + **/ + public String getPeId() { + return peId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC resource that this resolver endpoint corresponds to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vnicId") + private final String vnicId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC resource that this resolver endpoint corresponds to. + * @return the value + **/ + public String getVnicId() { + return vnicId; + } + @Override public String toString() { return this.toString(true); @@ -311,6 +467,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(", peId=").append(String.valueOf(this.peId)); + sb.append(", vnicId=").append(String.valueOf(this.vnicId)); sb.append(")"); return sb.toString(); } @@ -327,6 +486,9 @@ public boolean equals(Object o) { ResolverVnicEndpoint other = (ResolverVnicEndpoint) o; return java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && java.util.Objects.equals(this.peId, other.peId) + && java.util.Objects.equals(this.vnicId, other.vnicId) && super.equals(other); } @@ -336,6 +498,13 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); + result = (result * PRIME) + (this.peId == null ? 43 : this.peId.hashCode()); + result = (result * PRIME) + (this.vnicId == null ? 43 : this.vnicId.hashCode()); return result; } } diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverVnicEndpointSummary.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverVnicEndpointSummary.java index 3c9eec6d697..b57c8bb71d7 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverVnicEndpointSummary.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ResolverVnicEndpointSummary.java @@ -76,6 +76,24 @@ public Builder listeningAddress(String listeningAddress) { return this; } + @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("resolverId") + private String resolverId; + + public Builder resolverId(String resolverId) { + this.resolverId = resolverId; + this.__explicitlySet__.add("resolverId"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; @@ -120,6 +138,25 @@ public Builder self(String self) { this.__explicitlySet__.add("self"); 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; + } /** * The OCID of a subnet. Must be part of the VCN that the resolver is attached to. **/ @@ -137,6 +174,48 @@ public Builder subnetId(String subnetId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint resource that this resolver endpoint corresponds to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("peId") + private String peId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint resource that this resolver endpoint corresponds to. + * @param peId the value to set + * @return this builder + **/ + public Builder peId(String peId) { + this.peId = peId; + this.__explicitlySet__.add("peId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC resource that this resolver endpoint corresponds to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vnicId") + private String vnicId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC resource that this resolver endpoint corresponds to. + * @param vnicId the value to set + * @return this builder + **/ + public Builder vnicId(String vnicId) { + this.vnicId = vnicId; + this.__explicitlySet__.add("vnicId"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -148,12 +227,19 @@ public ResolverVnicEndpointSummary build() { this.isForwarding, this.isListening, this.listeningAddress, + this.id, + this.resolverId, this.compartmentId, this.timeCreated, this.timeUpdated, this.lifecycleState, this.self, - this.subnetId); + this.freeformTags, + this.definedTags, + this.subnetId, + this.securityAttributes, + this.peId, + this.vnicId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -177,6 +263,12 @@ public Builder copy(ResolverVnicEndpointSummary model) { if (model.wasPropertyExplicitlySet("listeningAddress")) { this.listeningAddress(model.getListeningAddress()); } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("resolverId")) { + this.resolverId(model.getResolverId()); + } if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } @@ -192,9 +284,24 @@ public Builder copy(ResolverVnicEndpointSummary model) { if (model.wasPropertyExplicitlySet("self")) { this.self(model.getSelf()); } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } + if (model.wasPropertyExplicitlySet("peId")) { + this.peId(model.getPeId()); + } + if (model.wasPropertyExplicitlySet("vnicId")) { + this.vnicId(model.getVnicId()); + } return this; } } @@ -217,24 +324,38 @@ public ResolverVnicEndpointSummary( Boolean isForwarding, Boolean isListening, String listeningAddress, + String id, + String resolverId, String compartmentId, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, String self, - String subnetId) { + java.util.Map freeformTags, + java.util.Map> definedTags, + String subnetId, + java.util.Map> securityAttributes, + String peId, + String vnicId) { super( name, forwardingAddress, isForwarding, isListening, listeningAddress, + id, + resolverId, compartmentId, timeCreated, timeUpdated, lifecycleState, - self); + self, + freeformTags, + definedTags); this.subnetId = subnetId; + this.securityAttributes = securityAttributes; + this.peId = peId; + this.vnicId = vnicId; } /** @@ -251,6 +372,41 @@ public String getSubnetId() { return subnetId; } + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint resource that this resolver endpoint corresponds to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("peId") + private final String peId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint resource that this resolver endpoint corresponds to. + * @return the value + **/ + public String getPeId() { + return peId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC resource that this resolver endpoint corresponds to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vnicId") + private final String vnicId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC resource that this resolver endpoint corresponds to. + * @return the value + **/ + public String getVnicId() { + return vnicId; + } + @Override public String toString() { return this.toString(true); @@ -266,6 +422,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("ResolverVnicEndpointSummary("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(", peId=").append(String.valueOf(this.peId)); + sb.append(", vnicId=").append(String.valueOf(this.vnicId)); sb.append(")"); return sb.toString(); } @@ -280,7 +439,11 @@ public boolean equals(Object o) { } ResolverVnicEndpointSummary other = (ResolverVnicEndpointSummary) o; - return java.util.Objects.equals(this.subnetId, other.subnetId) && super.equals(other); + return java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && java.util.Objects.equals(this.peId, other.peId) + && java.util.Objects.equals(this.vnicId, other.vnicId) + && super.equals(other); } @Override @@ -288,6 +451,13 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); + result = (result * PRIME) + (this.peId == null ? 43 : this.peId.hashCode()); + result = (result * PRIME) + (this.vnicId == null ? 43 : this.vnicId.hashCode()); return result; } } diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/SteeringPolicy.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/SteeringPolicy.java index 014a618efad..9da540cfe9a 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/SteeringPolicy.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/SteeringPolicy.java @@ -927,6 +927,7 @@ public java.util.Date getTimeCreated() { public enum LifecycleState { Active("ACTIVE"), Creating("CREATING"), + Updating("UPDATING"), Deleted("DELETED"), Deleting("DELETING"), diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/SteeringPolicySummary.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/SteeringPolicySummary.java index c66fabe79d9..1065cfd1171 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/SteeringPolicySummary.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/SteeringPolicySummary.java @@ -824,6 +824,7 @@ public java.util.Date getTimeCreated() { public enum LifecycleState { Active("ACTIVE"), Creating("CREATING"), + Updating("UPDATING"), Deleted("DELETED"), Deleting("DELETING"), diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/UpdateResolverEndpointDetails.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/UpdateResolverEndpointDetails.java index a1dcd815cf3..1532659ef4b 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/UpdateResolverEndpointDetails.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/UpdateResolverEndpointDetails.java @@ -34,9 +34,27 @@ public class UpdateResolverEndpointDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({}) - protected UpdateResolverEndpointDetails() { + @java.beans.ConstructorProperties({"freeformTags", "definedTags"}) + protected UpdateResolverEndpointDetails( + java.util.Map freeformTags, + java.util.Map> definedTags) { super(); + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + public java.util.Map getFreeformTags() { + return freeformTags; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + public java.util.Map> getDefinedTags() { + return definedTags; } @Override @@ -53,6 +71,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateResolverEndpointDetails("); sb.append("super=").append(super.toString()); + sb.append("freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); return sb.toString(); } @@ -67,13 +87,17 @@ public boolean equals(Object o) { } UpdateResolverEndpointDetails other = (UpdateResolverEndpointDetails) o; - return super.equals(other); + return java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/UpdateResolverVnicEndpointDetails.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/UpdateResolverVnicEndpointDetails.java index a2fc9bf8271..d09ce2503a4 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/UpdateResolverVnicEndpointDetails.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/UpdateResolverVnicEndpointDetails.java @@ -30,6 +30,24 @@ public final class UpdateResolverVnicEndpointDetails extends UpdateResolverEndpointDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @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; + } /** * An array of network security group OCIDs for the resolver endpoint. These must be part of the VCN that the * resolver endpoint is a part of. @@ -51,12 +69,26 @@ public Builder nsgIds(java.util.List nsgIds) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateResolverVnicEndpointDetails build() { UpdateResolverVnicEndpointDetails model = - new UpdateResolverVnicEndpointDetails(this.nsgIds); + new UpdateResolverVnicEndpointDetails( + this.freeformTags, + this.definedTags, + this.nsgIds, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -65,9 +97,18 @@ public UpdateResolverVnicEndpointDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(UpdateResolverVnicEndpointDetails model) { + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -84,9 +125,14 @@ public Builder toBuilder() { } @Deprecated - public UpdateResolverVnicEndpointDetails(java.util.List nsgIds) { - super(); + public UpdateResolverVnicEndpointDetails( + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.List nsgIds, + java.util.Map> securityAttributes) { + super(freeformTags, definedTags); this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; } /** @@ -107,6 +153,13 @@ public java.util.List getNsgIds() { return nsgIds; } + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -122,6 +175,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateResolverVnicEndpointDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -136,7 +190,9 @@ public boolean equals(Object o) { } UpdateResolverVnicEndpointDetails other = (UpdateResolverVnicEndpointDetails) o; - return java.util.Objects.equals(this.nsgIds, other.nsgIds) && super.equals(other); + return java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && super.equals(other); } @Override @@ -144,6 +200,11 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); return result; } } diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/UpdateZoneDetails.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/UpdateZoneDetails.java index 465c8af0c78..e5dacb96ffe 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/UpdateZoneDetails.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/UpdateZoneDetails.java @@ -104,14 +104,14 @@ public Builder definedTags( return this; } /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * **/ @com.fasterxml.jackson.annotation.JsonProperty("resolutionMode") private ZoneResolutionMode resolutionMode; /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * * @param resolutionMode the value to set * @return this builder @@ -330,14 +330,14 @@ public java.util.Map> getDefinedTags() { } /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * **/ @com.fasterxml.jackson.annotation.JsonProperty("resolutionMode") private final ZoneResolutionMode resolutionMode; /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * * @return the value **/ diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/Zone.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/Zone.java index 30e4c4046eb..e2a66f59a7f 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/Zone.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/Zone.java @@ -235,14 +235,14 @@ public Builder definedTags( return this; } /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * **/ @com.fasterxml.jackson.annotation.JsonProperty("resolutionMode") private ZoneResolutionMode resolutionMode; /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * * @param resolutionMode the value to set * @return this builder @@ -821,14 +821,14 @@ public java.util.Map> getDefinedTags() { } /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * **/ @com.fasterxml.jackson.annotation.JsonProperty("resolutionMode") private final ZoneResolutionMode resolutionMode; /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * * @return the value **/ diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ZoneResolutionMode.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ZoneResolutionMode.java index 1c65a065aa3..61ee3d8e74d 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ZoneResolutionMode.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ZoneResolutionMode.java @@ -7,14 +7,11 @@ /** * The resolution mode of a zone defines behavior related to how query responses can be handled. *

- * Static - This is the default behavior. - * Transparent - Continue resolution if, and only if, the response is NXDOMAIN for any domain or NODATA at the apex. - * Only supported for private zones. - * RTypeTransparent - Continue resolution if, and only if, the response is NXDOMAIN or NODATA. Only supported for - * private zones. + * - Static: This is the default behavior. If a private zone covers a query name, an NXDOMAIN is returned if the query name isn't present in the zone. A NoData response is returned if the name is present but there is no data for the specific query type requested. + * - Transparent: If the queried domain is covered by the zone, but the domain doesn't exist in the zone or the queried domain matches the zone name but no records of the queried type exist, continue to the next evaluation for the resolver following the normal sequence for checking query resolution. This effectively bypasses NXDOMAIN responses at all domains and NoData responses specifically at the apex. + * - RTypeTransparent: If the queried domain is covered by the zone, but the queried domain doesn't exist in the zone or the queried domain exists in the zone but not for the requested record type, continue to the next evaluation for the resolver following the normal sequence for checking query resolution. This effectively bypasses NXDOMAIN and NoData responses at all domains. *

- * For private DNS, continue resolution means moving on to the next evaluation for the resolver following the normal - * sequence for checking query resolution. + * See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for examples. * **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180115") diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ZoneSummary.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ZoneSummary.java index 29e833c2d20..85d8e75a3ae 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ZoneSummary.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/ZoneSummary.java @@ -223,14 +223,14 @@ public Builder definedTags( return this; } /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * **/ @com.fasterxml.jackson.annotation.JsonProperty("resolutionMode") private ZoneResolutionMode resolutionMode; /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * * @param resolutionMode the value to set * @return this builder @@ -719,14 +719,14 @@ public java.util.Map> getDefinedTags() { } /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * **/ @com.fasterxml.jackson.annotation.JsonProperty("resolutionMode") private final ZoneResolutionMode resolutionMode; /** - * The resolution mode of a zone defines behavior related to how query responses can be handled. + * The resolution mode of a zone defines behavior related to how query responses can be handled. See [Private DNS Zone Transparency](https://docs.oracle.com/iaas/Content/DNS/Tasks/privatedns.htm#use-cases__resolution) for more information. * * @return the value **/ diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 7e01a5fde39..8bf5a6f33e0 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index afd1b4866ac..290730d679d 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 53d9b308ad4..4d461a2363e 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-emwarehouse @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index dc12753fb2d..7732ec706d7 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml @@ -19,18 +19,18 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 2.93.0 + 2.95.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 2.93.0 + 2.95.0 com.fasterxml.jackson.core diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index f1cbc3946d1..0fdf9fdf701 100644 --- a/bmc-enforcer-rules/pom.xml +++ b/bmc-enforcer-rules/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 31783d17071..7ccf9bdd90d 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-events @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index e4012e83710..9ddfacc29c6 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-examples @@ -28,7 +28,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 2.93.0 + 2.95.0 pom import @@ -753,5 +753,9 @@ com.oracle.oci.sdk oci-java-sdk-costad + + com.oracle.oci.sdk + oci-java-sdk-datacc + \ No newline at end of file diff --git a/bmc-examples/src/main/java/InstancePrincipalsMetadataConfiguratorExample.java b/bmc-examples/src/main/java/InstancePrincipalsMetadataConfiguratorExample.java new file mode 100644 index 00000000000..067093782bc --- /dev/null +++ b/bmc-examples/src/main/java/InstancePrincipalsMetadataConfiguratorExample.java @@ -0,0 +1,92 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +import com.oracle.bmc.auth.InstancePrincipalsAuthenticationDetailsProvider; +import com.oracle.bmc.http.ApacheConfigurator; +import com.oracle.bmc.http.ApacheProxyConfig; +import com.oracle.bmc.http.ApacheProxyConfigDecorator; +import com.oracle.bmc.http.ClientConfigDecorator; +import com.oracle.bmc.http.ClientConfigurator; +import com.oracle.bmc.identity.IdentityClient; +import com.oracle.bmc.identity.requests.ListRegionsRequest; +import com.oracle.bmc.identity.responses.ListRegionsResponse; + +import java.net.ConnectException; +import java.net.SocketTimeoutException; +import java.util.Collections; + +/** + * Demonstrates how to configure the metadata-service HTTP client used by instance principals. + * + *

{@code federationClientMetadataConfigurator(...)} is used for IMDS calls made while building + * the instance-principals provider, including region discovery and certificate/key retrieval. It + * does not configure the OCI Auth service token request or later service-client calls, so this + * example wires the same proxy configurator into those clients as well. + * + *

Set {@code OCI_METADATA_PROXY_URI}, and optionally {@code OCI_METADATA_PROXY_USERNAME} and + * {@code OCI_METADATA_PROXY_PASSWORD}, before running this example if the metadata, auth, and + * service calls must go through a proxy. + */ +public class InstancePrincipalsMetadataConfiguratorExample { + private static final String PROXY_URI_ENV_VAR = "OCI_METADATA_PROXY_URI"; + private static final String PROXY_USERNAME_ENV_VAR = "OCI_METADATA_PROXY_USERNAME"; + private static final String PROXY_PASSWORD_ENV_VAR = "OCI_METADATA_PROXY_PASSWORD"; + + public static void main(final String[] args) { + final ClientConfigurator proxyConfigurator = createProxyConfiguratorFromEnvironment(); + + final InstancePrincipalsAuthenticationDetailsProvider provider; + try { + provider = + InstancePrincipalsAuthenticationDetailsProvider.builder() + .federationClientMetadataConfigurator(proxyConfigurator) + .federationClientConfigurator(proxyConfigurator) + .build(); + } catch (Exception e) { + if (e.getCause() instanceof SocketTimeoutException + || e.getCause() instanceof ConnectException) { + System.out.println( + "This sample only works when running on an OCI instance. For more info see: https://docs.oracle.com/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm"); + return; + } + throw e; + } + + final IdentityClient identityClient = + IdentityClient.builder().clientConfigurator(proxyConfigurator).build(provider); + try { + System.out.println("Querying for list of regions via the Identity service"); + final ListRegionsResponse response = + identityClient.listRegions(ListRegionsRequest.builder().build()); + System.out.println("List of regions: " + response.getItems()); + } finally { + identityClient.close(); + } + } + + private static ClientConfigurator createProxyConfiguratorFromEnvironment() { + final String proxyUri = System.getenv(PROXY_URI_ENV_VAR); + if (isBlank(proxyUri)) { + return new ApacheConfigurator(); + } + + final ApacheProxyConfig proxyConfig = + ApacheProxyConfig.builder() + .uri(proxyUri) + .username(emptyToNull(System.getenv(PROXY_USERNAME_ENV_VAR))) + .password(emptyToNull(System.getenv(PROXY_PASSWORD_ENV_VAR))) + .build(); + final ClientConfigDecorator proxyConfigDecorator = + new ApacheProxyConfigDecorator(proxyConfig); + return new ApacheConfigurator(Collections.singletonList(proxyConfigDecorator)); + } + + private static String emptyToNull(final String value) { + return isBlank(value) ? null : value; + } + + private static boolean isBlank(final String value) { + return value == null || value.trim().isEmpty(); + } +} diff --git a/bmc-examples/src/main/java/PlainConnectionSocketFactoryExample.java b/bmc-examples/src/main/java/PlainConnectionSocketFactoryExample.java new file mode 100644 index 00000000000..2d4cfd0718a --- /dev/null +++ b/bmc-examples/src/main/java/PlainConnectionSocketFactoryExample.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +import com.oracle.bmc.ConfigFileReader; +import com.oracle.bmc.auth.AuthenticationDetailsProvider; +import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider; +import com.oracle.bmc.http.ApacheConfigurator; +import com.oracle.bmc.http.ApacheConnectorProperties; +import com.oracle.bmc.identity.Identity; +import com.oracle.bmc.identity.IdentityClient; +import org.apache.http.config.Registry; +import org.apache.http.config.RegistryBuilder; +import org.apache.http.conn.socket.ConnectionSocketFactory; +import org.apache.http.conn.socket.PlainConnectionSocketFactory; +import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; +import org.apache.http.ssl.SSLInitializationException; + +/** + * Demonstrates explicit plaintext transport configuration for the Apache configurator. + * + *

Use only when a trusted endpoint intentionally accepts plaintext HTTP for an {@code https} + * route, or in a controlled test environment. OCI service endpoints require TLS and must not use + * this configuration. + */ +public class PlainConnectionSocketFactoryExample { + public static void main(String[] args) throws Exception { + // Configure OCI authentication in the same way as the other client examples. + final ConfigFileReader.ConfigFile configFile = ConfigFileReader.parseDefault(); + final AuthenticationDetailsProvider provider = + new ConfigFileAuthenticationDetailsProvider(configFile); + + // WARNING: This maps https routes to plaintext. Use only with a trusted plaintext endpoint + // or in a controlled test environment. Supplying this connection manager bypasses the + // ApacheConfigurator default TLS registry. + // The normal configuration fails closed. The second client preserves the previous + // automatic fallback only when the application explicitly chooses plaintext after SSL + // initialization fails. + try (Identity directPlaintextClient = createPlaintextClient(provider); + Identity fallbackPlaintextClient = createClientWithPlaintextFallback(provider)) { + // Use the clients with their corresponding trusted endpoints. + } + } + + /** + * Builds a client that deliberately sends plaintext for both {@code http} and {@code https} + * routes. + * + *

Use when the application explicitly owns the transport decision and its endpoint is known + * to accept plaintext. This bypasses ApacheConfigurator's default TLS socket registry. + * + * @param provider the authentication provider for the client + * @return a client configured with a plaintext connection manager + */ + private static Identity createPlaintextClient(final AuthenticationDetailsProvider provider) { + // ApacheConnectorProperties gives callers ownership of the Apache connection manager. + final ApacheConnectorProperties properties = + ApacheConnectorProperties.builder() + .connectionManager(createPlaintextConnectionManager()) + .build(); + return IdentityClient.builder() + .clientConfigurator(new ApacheConfigurator(properties)) + .build(provider); + } + + /** + * Builds a normal TLS client and catches {@link SSLInitializationException} to explicitly fall + * back to plaintext only if TLS initialization fails. + * + *

Use only for applications that intentionally need the legacy fallback behavior. This + * performs the fallback that the SDK used to do itself. The Apache configurator now fails + * closed and never uses this exception to select the fallback automatically. + * + * @param provider the authentication provider for the client + * @return the TLS client when SSL initialization succeeds, otherwise a plaintext client + */ + private static Identity createClientWithPlaintextFallback( + final AuthenticationDetailsProvider provider) { + try { + // This uses ApacheConfigurator's default TLS setup and throws if it cannot initialize. + return IdentityClient.builder() + .clientConfigurator(new ApacheConfigurator()) + .build(provider); + } catch (SSLInitializationException e) { + // Perform the fallback that the SDK used to do ourselves. + return createPlaintextClient(provider); + } + } + + /** + * Creates the Apache connection manager that maps both URI schemes to a plaintext socket + * factory. + * + *

Use this only when intentionally disabling TLS. A manager supplied through + * ApacheConnectorProperties takes precedence over the configurator's default manager. + * + * @return a connection manager that uses plaintext sockets for {@code http} and {@code https} + */ + private static PoolingHttpClientConnectionManager createPlaintextConnectionManager() { + // Apache HttpClient selects a socket factory by URI scheme. Mapping https to the plain + // factory deliberately disables TLS for those routes. + final Registry registry = + RegistryBuilder.create() + .register("http", PlainConnectionSocketFactory.getSocketFactory()) + .register("https", PlainConnectionSocketFactory.getSocketFactory()) + .build(); + return new PoolingHttpClientConnectionManager(registry); + } +} diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index e4b67bcb4a3..61fb6ebeac6 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/FileSystem.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/FileSystem.java index c649dd664da..1b28dfffb33 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/FileSystem.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/FileSystem.java @@ -53,7 +53,8 @@ public final class FileSystem extends com.oracle.bmc.http.internal.ExplicitlySet "filesystemSnapshotPolicyId", "areQuotaRulesEnabled", "quotaEnforcementState", - "replicationSourceCount" + "replicationSourceCount", + "compartmentQuotaEnforcementState" }) public FileSystem( String availabilityDomain, @@ -79,7 +80,8 @@ public FileSystem( String filesystemSnapshotPolicyId, Boolean areQuotaRulesEnabled, QuotaEnforcementState quotaEnforcementState, - Integer replicationSourceCount) { + Integer replicationSourceCount, + CompartmentQuotaEnforcementState compartmentQuotaEnforcementState) { super(); this.availabilityDomain = availabilityDomain; this.meteredBytes = meteredBytes; @@ -105,6 +107,7 @@ public FileSystem( this.areQuotaRulesEnabled = areQuotaRulesEnabled; this.quotaEnforcementState = quotaEnforcementState; this.replicationSourceCount = replicationSourceCount; + this.compartmentQuotaEnforcementState = compartmentQuotaEnforcementState; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -565,6 +568,23 @@ public Builder replicationSourceCount(Integer replicationSourceCount) { this.__explicitlySet__.add("replicationSourceCount"); return this; } + /** + * Displays the compartment-level quota enforcement state affecting this file system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentQuotaEnforcementState") + private CompartmentQuotaEnforcementState compartmentQuotaEnforcementState; + + /** + * Displays the compartment-level quota enforcement state affecting this file system. + * @param compartmentQuotaEnforcementState the value to set + * @return this builder + **/ + public Builder compartmentQuotaEnforcementState( + CompartmentQuotaEnforcementState compartmentQuotaEnforcementState) { + this.compartmentQuotaEnforcementState = compartmentQuotaEnforcementState; + this.__explicitlySet__.add("compartmentQuotaEnforcementState"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -595,7 +615,8 @@ public FileSystem build() { this.filesystemSnapshotPolicyId, this.areQuotaRulesEnabled, this.quotaEnforcementState, - this.replicationSourceCount); + this.replicationSourceCount, + this.compartmentQuotaEnforcementState); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -676,6 +697,9 @@ public Builder copy(FileSystem model) { if (model.wasPropertyExplicitlySet("replicationSourceCount")) { this.replicationSourceCount(model.getReplicationSourceCount()); } + if (model.wasPropertyExplicitlySet("compartmentQuotaEnforcementState")) { + this.compartmentQuotaEnforcementState(model.getCompartmentQuotaEnforcementState()); + } return this; } } @@ -1251,6 +1275,68 @@ public Integer getReplicationSourceCount() { return replicationSourceCount; } + /** + * Displays the compartment-level quota enforcement state affecting this file system. + **/ + public enum CompartmentQuotaEnforcementState { + NotBlocked("NOT_BLOCKED"), + Blocked("BLOCKED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CompartmentQuotaEnforcementState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CompartmentQuotaEnforcementState v : CompartmentQuotaEnforcementState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CompartmentQuotaEnforcementState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CompartmentQuotaEnforcementState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CompartmentQuotaEnforcementState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Displays the compartment-level quota enforcement state affecting this file system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentQuotaEnforcementState") + private final CompartmentQuotaEnforcementState compartmentQuotaEnforcementState; + + /** + * Displays the compartment-level quota enforcement state affecting this file system. + * @return the value + **/ + public CompartmentQuotaEnforcementState getCompartmentQuotaEnforcementState() { + return compartmentQuotaEnforcementState; + } + @Override public String toString() { return this.toString(true); @@ -1290,6 +1376,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", areQuotaRulesEnabled=").append(String.valueOf(this.areQuotaRulesEnabled)); sb.append(", quotaEnforcementState=").append(String.valueOf(this.quotaEnforcementState)); sb.append(", replicationSourceCount=").append(String.valueOf(this.replicationSourceCount)); + sb.append(", compartmentQuotaEnforcementState=") + .append(String.valueOf(this.compartmentQuotaEnforcementState)); sb.append(")"); return sb.toString(); } @@ -1330,6 +1418,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.quotaEnforcementState, other.quotaEnforcementState) && java.util.Objects.equals( this.replicationSourceCount, other.replicationSourceCount) + && java.util.Objects.equals( + this.compartmentQuotaEnforcementState, + other.compartmentQuotaEnforcementState) && super.equals(other); } @@ -1397,6 +1488,11 @@ public int hashCode() { + (this.replicationSourceCount == null ? 43 : this.replicationSourceCount.hashCode()); + result = + (result * PRIME) + + (this.compartmentQuotaEnforcementState == null + ? 43 + : this.compartmentQuotaEnforcementState.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/FileSystemSummary.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/FileSystemSummary.java index 6d3314f3b7a..b138de95437 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/FileSystemSummary.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/FileSystemSummary.java @@ -41,7 +41,8 @@ public final class FileSystemSummary extends com.oracle.bmc.http.internal.Explic "isHydrated", "lifecycleDetails", "cloneAttachStatus", - "quotaEnforcementState" + "quotaEnforcementState", + "compartmentQuotaEnforcementState" }) public FileSystemSummary( String availabilityDomain, @@ -62,7 +63,8 @@ public FileSystemSummary( Boolean isHydrated, String lifecycleDetails, CloneAttachStatus cloneAttachStatus, - QuotaEnforcementState quotaEnforcementState) { + QuotaEnforcementState quotaEnforcementState, + CompartmentQuotaEnforcementState compartmentQuotaEnforcementState) { super(); this.availabilityDomain = availabilityDomain; this.meteredBytes = meteredBytes; @@ -83,6 +85,7 @@ public FileSystemSummary( this.lifecycleDetails = lifecycleDetails; this.cloneAttachStatus = cloneAttachStatus; this.quotaEnforcementState = quotaEnforcementState; + this.compartmentQuotaEnforcementState = compartmentQuotaEnforcementState; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -449,6 +452,23 @@ public Builder quotaEnforcementState(QuotaEnforcementState quotaEnforcementState this.__explicitlySet__.add("quotaEnforcementState"); return this; } + /** + * Displays the compartment-level quota enforcement state affecting this file system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentQuotaEnforcementState") + private CompartmentQuotaEnforcementState compartmentQuotaEnforcementState; + + /** + * Displays the compartment-level quota enforcement state affecting this file system. + * @param compartmentQuotaEnforcementState the value to set + * @return this builder + **/ + public Builder compartmentQuotaEnforcementState( + CompartmentQuotaEnforcementState compartmentQuotaEnforcementState) { + this.compartmentQuotaEnforcementState = compartmentQuotaEnforcementState; + this.__explicitlySet__.add("compartmentQuotaEnforcementState"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -474,7 +494,8 @@ public FileSystemSummary build() { this.isHydrated, this.lifecycleDetails, this.cloneAttachStatus, - this.quotaEnforcementState); + this.quotaEnforcementState, + this.compartmentQuotaEnforcementState); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -540,6 +561,9 @@ public Builder copy(FileSystemSummary model) { if (model.wasPropertyExplicitlySet("quotaEnforcementState")) { this.quotaEnforcementState(model.getQuotaEnforcementState()); } + if (model.wasPropertyExplicitlySet("compartmentQuotaEnforcementState")) { + this.compartmentQuotaEnforcementState(model.getCompartmentQuotaEnforcementState()); + } return this; } } @@ -1031,6 +1055,68 @@ public QuotaEnforcementState getQuotaEnforcementState() { return quotaEnforcementState; } + /** + * Displays the compartment-level quota enforcement state affecting this file system. + **/ + public enum CompartmentQuotaEnforcementState { + NotBlocked("NOT_BLOCKED"), + Blocked("BLOCKED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CompartmentQuotaEnforcementState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CompartmentQuotaEnforcementState v : CompartmentQuotaEnforcementState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CompartmentQuotaEnforcementState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CompartmentQuotaEnforcementState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CompartmentQuotaEnforcementState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Displays the compartment-level quota enforcement state affecting this file system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentQuotaEnforcementState") + private final CompartmentQuotaEnforcementState compartmentQuotaEnforcementState; + + /** + * Displays the compartment-level quota enforcement state affecting this file system. + * @return the value + **/ + public CompartmentQuotaEnforcementState getCompartmentQuotaEnforcementState() { + return compartmentQuotaEnforcementState; + } + @Override public String toString() { return this.toString(true); @@ -1064,6 +1150,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", cloneAttachStatus=").append(String.valueOf(this.cloneAttachStatus)); sb.append(", quotaEnforcementState=").append(String.valueOf(this.quotaEnforcementState)); + sb.append(", compartmentQuotaEnforcementState=") + .append(String.valueOf(this.compartmentQuotaEnforcementState)); sb.append(")"); return sb.toString(); } @@ -1098,6 +1186,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.cloneAttachStatus, other.cloneAttachStatus) && java.util.Objects.equals(this.quotaEnforcementState, other.quotaEnforcementState) + && java.util.Objects.equals( + this.compartmentQuotaEnforcementState, + other.compartmentQuotaEnforcementState) && super.equals(other); } @@ -1148,6 +1239,11 @@ public int hashCode() { + (this.quotaEnforcementState == null ? 43 : this.quotaEnforcementState.hashCode()); + result = + (result * PRIME) + + (this.compartmentQuotaEnforcementState == null + ? 43 + : this.compartmentQuotaEnforcementState.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/Snapshot.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/Snapshot.java index 0d928881215..656cc139552 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/Snapshot.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/Snapshot.java @@ -38,7 +38,8 @@ public final class Snapshot extends com.oracle.bmc.http.internal.ExplicitlySetBm "definedTags", "systemTags", "expirationTime", - "filesystemSnapshotPolicyId" + "filesystemSnapshotPolicyId", + "exclusiveBytes" }) public Snapshot( String fileSystemId, @@ -58,7 +59,8 @@ public Snapshot( java.util.Map> definedTags, java.util.Map> systemTags, java.util.Date expirationTime, - String filesystemSnapshotPolicyId) { + String filesystemSnapshotPolicyId, + Long exclusiveBytes) { super(); this.fileSystemId = fileSystemId; this.id = id; @@ -78,6 +80,7 @@ public Snapshot( this.systemTags = systemTags; this.expirationTime = expirationTime; this.filesystemSnapshotPolicyId = filesystemSnapshotPolicyId; + this.exclusiveBytes = exclusiveBytes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -442,6 +445,24 @@ public Builder filesystemSnapshotPolicyId(String filesystemSnapshotPolicyId) { this.__explicitlySet__.add("filesystemSnapshotPolicyId"); return this; } + /** + * Bytes referenced only by this snapshot; deducted from compartment usage immediately upon deletion. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("exclusiveBytes") + private Long exclusiveBytes; + + /** + * Bytes referenced only by this snapshot; deducted from compartment usage immediately upon deletion. + * + * @param exclusiveBytes the value to set + * @return this builder + **/ + public Builder exclusiveBytes(Long exclusiveBytes) { + this.exclusiveBytes = exclusiveBytes; + this.__explicitlySet__.add("exclusiveBytes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -466,7 +487,8 @@ public Snapshot build() { this.definedTags, this.systemTags, this.expirationTime, - this.filesystemSnapshotPolicyId); + this.filesystemSnapshotPolicyId, + this.exclusiveBytes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -529,6 +551,9 @@ public Builder copy(Snapshot model) { if (model.wasPropertyExplicitlySet("filesystemSnapshotPolicyId")) { this.filesystemSnapshotPolicyId(model.getFilesystemSnapshotPolicyId()); } + if (model.wasPropertyExplicitlySet("exclusiveBytes")) { + this.exclusiveBytes(model.getExclusiveBytes()); + } return this; } } @@ -967,6 +992,22 @@ public String getFilesystemSnapshotPolicyId() { return filesystemSnapshotPolicyId; } + /** + * Bytes referenced only by this snapshot; deducted from compartment usage immediately upon deletion. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("exclusiveBytes") + private final Long exclusiveBytes; + + /** + * Bytes referenced only by this snapshot; deducted from compartment usage immediately upon deletion. + * + * @return the value + **/ + public Long getExclusiveBytes() { + return exclusiveBytes; + } + @Override public String toString() { return this.toString(true); @@ -1000,6 +1041,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", expirationTime=").append(String.valueOf(this.expirationTime)); sb.append(", filesystemSnapshotPolicyId=") .append(String.valueOf(this.filesystemSnapshotPolicyId)); + sb.append(", exclusiveBytes=").append(String.valueOf(this.exclusiveBytes)); sb.append(")"); return sb.toString(); } @@ -1033,6 +1075,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.expirationTime, other.expirationTime) && java.util.Objects.equals( this.filesystemSnapshotPolicyId, other.filesystemSnapshotPolicyId) + && java.util.Objects.equals(this.exclusiveBytes, other.exclusiveBytes) && super.equals(other); } @@ -1074,6 +1117,9 @@ public int hashCode() { + (this.filesystemSnapshotPolicyId == null ? 43 : this.filesystemSnapshotPolicyId.hashCode()); + result = + (result * PRIME) + + (this.exclusiveBytes == null ? 43 : this.exclusiveBytes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/SnapshotSummary.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/SnapshotSummary.java index 729c390d45a..ab644d057a1 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/SnapshotSummary.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/SnapshotSummary.java @@ -36,7 +36,8 @@ public final class SnapshotSummary extends com.oracle.bmc.http.internal.Explicit "lifecycleDetails", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "exclusiveBytes" }) public SnapshotSummary( String fileSystemId, @@ -54,7 +55,8 @@ public SnapshotSummary( String lifecycleDetails, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + Long exclusiveBytes) { super(); this.fileSystemId = fileSystemId; this.id = id; @@ -72,6 +74,7 @@ public SnapshotSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.exclusiveBytes = exclusiveBytes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -396,6 +399,24 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Bytes referenced only by this snapshot; deducted from compartment usage immediately upon deletion. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("exclusiveBytes") + private Long exclusiveBytes; + + /** + * Bytes referenced only by this snapshot; deducted from compartment usage immediately upon deletion. + * + * @param exclusiveBytes the value to set + * @return this builder + **/ + public Builder exclusiveBytes(Long exclusiveBytes) { + this.exclusiveBytes = exclusiveBytes; + this.__explicitlySet__.add("exclusiveBytes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -418,7 +439,8 @@ public SnapshotSummary build() { this.lifecycleDetails, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.exclusiveBytes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -475,6 +497,9 @@ public Builder copy(SnapshotSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("exclusiveBytes")) { + this.exclusiveBytes(model.getExclusiveBytes()); + } return this; } } @@ -877,6 +902,22 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Bytes referenced only by this snapshot; deducted from compartment usage immediately upon deletion. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("exclusiveBytes") + private final Long exclusiveBytes; + + /** + * Bytes referenced only by this snapshot; deducted from compartment usage immediately upon deletion. + * + * @return the value + **/ + public Long getExclusiveBytes() { + return exclusiveBytes; + } + @Override public String toString() { return this.toString(true); @@ -907,6 +948,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", exclusiveBytes=").append(String.valueOf(this.exclusiveBytes)); sb.append(")"); return sb.toString(); } @@ -937,6 +979,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.exclusiveBytes, other.exclusiveBytes) && super.equals(other); } @@ -972,6 +1015,9 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.exclusiveBytes == null ? 43 : this.exclusiveBytes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index 4c956977335..c93a29e6deb 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index d6d359c632a..230e9a4c01b 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index e8ff6d81744..cabb48c2042 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 2.93.0 + 2.95.0 pom import @@ -699,5 +699,9 @@ com.oracle.oci.sdk oci-java-sdk-costad + + com.oracle.oci.sdk + oci-java-sdk-datacc + \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 65d48e5e5e1..19365125fed 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-functions @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index b3ef93cea38..8e90f5f7e03 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-fusionapps @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-gdp/pom.xml b/bmc-gdp/pom.xml index d650ee16c4e..6928ee93d99 100644 --- a/bmc-gdp/pom.xml +++ b/bmc-gdp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-gdp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index b72ab3c2f9c..d720109ec69 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java index 63b982dae03..3070da1c6fa 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java @@ -177,6 +177,19 @@ ChangeGenerativeAiProjectCompartmentResponse changeGenerativeAiProjectCompartmen ChangeHostedApplicationCompartmentResponse changeHostedApplicationCompartment( ChangeHostedApplicationCompartmentRequest request); + /** + * Moves a hosted application into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ChangeHostedApplicationIamCompartment API. + */ + ChangeHostedApplicationIamCompartmentResponse changeHostedApplicationIamCompartment( + ChangeHostedApplicationIamCompartmentRequest request); + /** * Moves a hosted application storage into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * @param request The request object containing the details to send @@ -309,6 +322,19 @@ CreateGenerativeAiProjectResponse createGenerativeAiProject( */ CreateHostedApplicationResponse createHostedApplication(CreateHostedApplicationRequest request); + /** + * Creates a hosted application. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateHostedApplicationIam API. + */ + CreateHostedApplicationIamResponse createHostedApplicationIam( + CreateHostedApplicationIamRequest request); + /** * Creates a hosted application storage. * @param request The request object containing the details to send @@ -488,6 +514,21 @@ DeleteGenerativeAiProjectResponse deleteGenerativeAiProject( */ DeleteHostedApplicationResponse deleteHostedApplication(DeleteHostedApplicationRequest request); + /** + * Deletes a hosted application. + * You can only delete hosted application without attached resources. Before you delete a hosting hosted application, you must delete the endpoints associated to that application. Before you delete a fine-tuning hosted application, you must delete the custom model on that application. The delete action permanently deletes the cluster. This action can't be undone. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteHostedApplicationIam API. + */ + DeleteHostedApplicationIamResponse deleteHostedApplicationIam( + DeleteHostedApplicationIamRequest request); + /** * Deletes a hosted application. * You can only delete hosted application without attached resources. Before you delete a hosting hosted application, you must delete the endpoints associated to that application. Before you delete a fine-tuning hosted application, you must delete the custom model on that application. The delete action permanently deletes the cluster. This action can't be undone. @@ -653,6 +694,18 @@ GetGenerativeAiPrivateEndpointResponse getGenerativeAiPrivateEndpoint( */ GetHostedApplicationResponse getHostedApplication(GetHostedApplicationRequest request); + /** + * Gets information about a hosted application. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetHostedApplicationIam API. + */ + GetHostedApplicationIamResponse getHostedApplicationIam(GetHostedApplicationIamRequest request); + /** * Gets information about a hosted application storage. * @param request The request object containing the details to send @@ -860,6 +913,19 @@ ListHostedApplicationStoragesResponse listHostedApplicationStorages( * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * + * Example: Click here to see how to use ListHostedApplicationsIam API. + */ + ListHostedApplicationsIamResponse listHostedApplicationsIam( + ListHostedApplicationsIamRequest request); + + /** + * Lists the hosted applications in a specific compartment. Provide either applicationId or applicationIamId to filter by parent. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * * Example: Click here to see how to use ListHostedDeployments API. */ ListHostedDeploymentsResponse listHostedDeployments(ListHostedDeploymentsRequest request); @@ -1089,6 +1155,19 @@ UpdateGenerativeAiProjectResponse updateGenerativeAiProject( */ UpdateHostedApplicationResponse updateHostedApplication(UpdateHostedApplicationRequest request); + /** + * Updates a hosted application. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateHostedApplicationIam API. + */ + UpdateHostedApplicationIamResponse updateHostedApplicationIam( + UpdateHostedApplicationIamRequest request); + /** * Updates a hosted deployment. * @param request The request object containing the details to send diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java index 8412d080096..4cbeb7bc8e7 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java @@ -209,6 +209,24 @@ java.util.concurrent.Future changeEndpointCom ChangeHostedApplicationCompartmentResponse> handler); + /** + * Moves a hosted application into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * @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 + changeHostedApplicationIamCompartment( + ChangeHostedApplicationIamCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeHostedApplicationIamCompartmentRequest, + ChangeHostedApplicationIamCompartmentResponse> + handler); + /** * Moves a hosted application storage into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * @@ -381,6 +399,22 @@ java.util.concurrent.Future createHostedApplica CreateHostedApplicationRequest, CreateHostedApplicationResponse> handler); + /** + * Creates a hosted application. + * + * @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 createHostedApplicationIam( + CreateHostedApplicationIamRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateHostedApplicationIamRequest, CreateHostedApplicationIamResponse> + handler); + /** * Creates a hosted application storage. * @@ -608,6 +642,24 @@ java.util.concurrent.Future deleteHostedApplica DeleteHostedApplicationRequest, DeleteHostedApplicationResponse> handler); + /** + * Deletes a hosted application. + * You can only delete hosted application without attached resources. Before you delete a hosting hosted application, you must delete the endpoints associated to that application. Before you delete a fine-tuning hosted application, you must delete the custom model on that application. The delete action permanently deletes the cluster. This action can't be undone. + * + * + * @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 deleteHostedApplicationIam( + DeleteHostedApplicationIamRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteHostedApplicationIamRequest, DeleteHostedApplicationIamResponse> + handler); + /** * Deletes a hosted application. * You can only delete hosted application without attached resources. Before you delete a hosting hosted application, you must delete the endpoints associated to that application. Before you delete a fine-tuning hosted application, you must delete the custom model on that application. The delete action permanently deletes the cluster. This action can't be undone. @@ -821,6 +873,22 @@ java.util.concurrent.Future getHostedApplication( GetHostedApplicationRequest, GetHostedApplicationResponse> handler); + /** + * Gets information about a hosted application. + * + * @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 getHostedApplicationIam( + GetHostedApplicationIamRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse> + handler); + /** * Gets information about a hosted application storage. * @@ -1087,6 +1155,22 @@ java.util.concurrent.Future listHostedApplicatio * 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 listHostedApplicationsIam( + ListHostedApplicationsIamRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListHostedApplicationsIamRequest, ListHostedApplicationsIamResponse> + handler); + + /** + * Lists the hosted applications in a specific compartment. Provide either applicationId or applicationIamId to filter by parent. + * + * @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 listHostedDeployments( ListHostedDeploymentsRequest request, com.oracle.bmc.responses.AsyncHandler< @@ -1382,6 +1466,22 @@ java.util.concurrent.Future updateHostedApplica UpdateHostedApplicationRequest, UpdateHostedApplicationResponse> handler); + /** + * Updates a hosted application. + * + * @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 updateHostedApplicationIam( + UpdateHostedApplicationIamRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateHostedApplicationIamRequest, UpdateHostedApplicationIamResponse> + handler); + /** * Updates a hosted deployment. * diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java index 28fabf22325..8b556994e29 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java @@ -937,6 +937,66 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + changeHostedApplicationIamCompartment( + ChangeHostedApplicationIamCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeHostedApplicationIamCompartmentRequest, + ChangeHostedApplicationIamCompartmentResponse> + handler) { + LOG.trace("Called async changeHostedApplicationIamCompartment"); + final ChangeHostedApplicationIamCompartmentRequest interceptedRequest = + ChangeHostedApplicationIamCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeHostedApplicationIamCompartmentConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "ChangeHostedApplicationIamCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/ChangeHostedApplicationIamCompartment"); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeHostedApplicationIamCompartmentResponse> + transformer = + ChangeHostedApplicationIamCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeHostedApplicationIamCompartmentRequest, + ChangeHostedApplicationIamCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeHostedApplicationIamCompartmentRequest, + ChangeHostedApplicationIamCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeHostedApplicationCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeHostedApplicationIamCompartmentRequest, + ChangeHostedApplicationIamCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future changeHostedApplicationStorageCompartment( @@ -1492,6 +1552,63 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + createHostedApplicationIam( + CreateHostedApplicationIamRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateHostedApplicationIamRequest, + CreateHostedApplicationIamResponse> + handler) { + LOG.trace("Called async createHostedApplicationIam"); + final CreateHostedApplicationIamRequest interceptedRequest = + CreateHostedApplicationIamConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateHostedApplicationIamConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "CreateHostedApplicationIam", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/CreateHostedApplicationIam"); + final java.util.function.Function< + javax.ws.rs.core.Response, CreateHostedApplicationIamResponse> + transformer = + CreateHostedApplicationIamConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateHostedApplicationIamRequest, CreateHostedApplicationIamResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateHostedApplicationIamRequest, + CreateHostedApplicationIamResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateHostedApplicationIamDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateHostedApplicationIamRequest, CreateHostedApplicationIamResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future createHostedApplicationStorage( @@ -2162,6 +2279,57 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + deleteHostedApplicationIam( + DeleteHostedApplicationIamRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteHostedApplicationIamRequest, + DeleteHostedApplicationIamResponse> + handler) { + LOG.trace("Called async deleteHostedApplicationIam"); + final DeleteHostedApplicationIamRequest interceptedRequest = + DeleteHostedApplicationIamConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteHostedApplicationIamConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "DeleteHostedApplicationIam", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/DeleteHostedApplicationIam"); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteHostedApplicationIamResponse> + transformer = + DeleteHostedApplicationIamConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteHostedApplicationIamRequest, DeleteHostedApplicationIamResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteHostedApplicationIamRequest, + DeleteHostedApplicationIamResponse>, + 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< + DeleteHostedApplicationIamRequest, DeleteHostedApplicationIamResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deleteHostedApplicationStorage( @@ -2781,6 +2949,54 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getHostedApplicationIam( + GetHostedApplicationIamRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse> + handler) { + LOG.trace("Called async getHostedApplicationIam"); + final GetHostedApplicationIamRequest interceptedRequest = + GetHostedApplicationIamConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetHostedApplicationIamConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "GetHostedApplicationIam", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/GetHostedApplicationIam"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetHostedApplicationIamResponse> + transformer = + GetHostedApplicationIamConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse>, + 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< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getHostedApplicationStorage( @@ -3544,6 +3760,55 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listHostedApplicationsIam( + ListHostedApplicationsIamRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListHostedApplicationsIamRequest, ListHostedApplicationsIamResponse> + handler) { + LOG.trace("Called async listHostedApplicationsIam"); + final ListHostedApplicationsIamRequest interceptedRequest = + ListHostedApplicationsIamConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListHostedApplicationsIamConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "ListHostedApplicationsIam", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationCollection/ListHostedApplicationsIam"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListHostedApplicationsIamResponse> + transformer = + ListHostedApplicationsIamConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListHostedApplicationsIamRequest, ListHostedApplicationsIamResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListHostedApplicationsIamRequest, + ListHostedApplicationsIamResponse>, + 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< + ListHostedApplicationsIamRequest, ListHostedApplicationsIamResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listHostedDeployments( ListHostedDeploymentsRequest request, @@ -4496,6 +4761,62 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + updateHostedApplicationIam( + UpdateHostedApplicationIamRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateHostedApplicationIamRequest, + UpdateHostedApplicationIamResponse> + handler) { + LOG.trace("Called async updateHostedApplicationIam"); + final UpdateHostedApplicationIamRequest interceptedRequest = + UpdateHostedApplicationIamConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateHostedApplicationIamConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "UpdateHostedApplicationIam", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/UpdateHostedApplicationIam"); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdateHostedApplicationIamResponse> + transformer = + UpdateHostedApplicationIamConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateHostedApplicationIamRequest, UpdateHostedApplicationIamResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateHostedApplicationIamRequest, + UpdateHostedApplicationIamResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateHostedApplicationIamDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateHostedApplicationIamRequest, UpdateHostedApplicationIamResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateHostedDeployment( UpdateHostedDeploymentRequest request, diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java index f23f137ab76..8591550f766 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java @@ -924,6 +924,52 @@ public ChangeHostedApplicationCompartmentResponse changeHostedApplicationCompart }); } + @Override + public ChangeHostedApplicationIamCompartmentResponse changeHostedApplicationIamCompartment( + ChangeHostedApplicationIamCompartmentRequest request) { + LOG.trace("Called changeHostedApplicationIamCompartment"); + final ChangeHostedApplicationIamCompartmentRequest interceptedRequest = + ChangeHostedApplicationIamCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeHostedApplicationIamCompartmentConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "ChangeHostedApplicationIamCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/ChangeHostedApplicationIamCompartment"); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeHostedApplicationIamCompartmentResponse> + transformer = + ChangeHostedApplicationIamCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getChangeHostedApplicationCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ChangeHostedApplicationStorageCompartmentResponse changeHostedApplicationStorageCompartment( @@ -1360,6 +1406,50 @@ public CreateHostedApplicationResponse createHostedApplication( }); } + @Override + public CreateHostedApplicationIamResponse createHostedApplicationIam( + CreateHostedApplicationIamRequest request) { + LOG.trace("Called createHostedApplicationIam"); + final CreateHostedApplicationIamRequest interceptedRequest = + CreateHostedApplicationIamConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateHostedApplicationIamConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "CreateHostedApplicationIam", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/CreateHostedApplicationIam"); + java.util.function.Function + transformer = + CreateHostedApplicationIamConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getCreateHostedApplicationIamDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateHostedApplicationStorageResponse createHostedApplicationStorage( CreateHostedApplicationStorageRequest request) { @@ -1890,6 +1980,45 @@ public DeleteHostedApplicationResponse deleteHostedApplication( }); } + @Override + public DeleteHostedApplicationIamResponse deleteHostedApplicationIam( + DeleteHostedApplicationIamRequest request) { + LOG.trace("Called deleteHostedApplicationIam"); + final DeleteHostedApplicationIamRequest interceptedRequest = + DeleteHostedApplicationIamConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteHostedApplicationIamConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "DeleteHostedApplicationIam", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/DeleteHostedApplicationIam"); + java.util.function.Function + transformer = + DeleteHostedApplicationIamConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DeleteHostedApplicationStorageResponse deleteHostedApplicationStorage( DeleteHostedApplicationStorageRequest request) { @@ -2381,6 +2510,44 @@ public GetHostedApplicationResponse getHostedApplication(GetHostedApplicationReq }); } + @Override + public GetHostedApplicationIamResponse getHostedApplicationIam( + GetHostedApplicationIamRequest request) { + LOG.trace("Called getHostedApplicationIam"); + final GetHostedApplicationIamRequest interceptedRequest = + GetHostedApplicationIamConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetHostedApplicationIamConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "GetHostedApplicationIam", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/GetHostedApplicationIam"); + java.util.function.Function + transformer = + GetHostedApplicationIamConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetHostedApplicationStorageResponse getHostedApplicationStorage( GetHostedApplicationStorageRequest request) { @@ -2976,6 +3143,44 @@ public ListHostedApplicationsResponse listHostedApplications( }); } + @Override + public ListHostedApplicationsIamResponse listHostedApplicationsIam( + ListHostedApplicationsIamRequest request) { + LOG.trace("Called listHostedApplicationsIam"); + final ListHostedApplicationsIamRequest interceptedRequest = + ListHostedApplicationsIamConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListHostedApplicationsIamConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "ListHostedApplicationsIam", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationCollection/ListHostedApplicationsIam"); + java.util.function.Function + transformer = + ListHostedApplicationsIamConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListHostedDeploymentsResponse listHostedDeployments( ListHostedDeploymentsRequest request) { @@ -3722,6 +3927,49 @@ public UpdateHostedApplicationResponse updateHostedApplication( }); } + @Override + public UpdateHostedApplicationIamResponse updateHostedApplicationIam( + UpdateHostedApplicationIamRequest request) { + LOG.trace("Called updateHostedApplicationIam"); + final UpdateHostedApplicationIamRequest interceptedRequest = + UpdateHostedApplicationIamConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateHostedApplicationIamConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "UpdateHostedApplicationIam", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/HostedApplicationIam/UpdateHostedApplicationIam"); + java.util.function.Function + transformer = + UpdateHostedApplicationIamConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest + .getUpdateHostedApplicationIamDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateHostedDeploymentResponse updateHostedDeployment( UpdateHostedDeploymentRequest request) { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiPaginators.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiPaginators.java index 49f10ac7b6e..ae817471af8 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiPaginators.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiPaginators.java @@ -857,6 +857,125 @@ public ListHostedApplicationsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listHostedApplicationsIam 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 listHostedApplicationsIamResponseIterator( + final ListHostedApplicationsIamRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListHostedApplicationsIamRequest.Builder, ListHostedApplicationsIamRequest, + ListHostedApplicationsIamResponse>( + new java.util.function.Supplier() { + @Override + public ListHostedApplicationsIamRequest.Builder get() { + return ListHostedApplicationsIamRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListHostedApplicationsIamResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListHostedApplicationsIamRequest.Builder>, + ListHostedApplicationsIamRequest>() { + @Override + public ListHostedApplicationsIamRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListHostedApplicationsIamRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListHostedApplicationsIamRequest, ListHostedApplicationsIamResponse>() { + @Override + public ListHostedApplicationsIamResponse apply( + ListHostedApplicationsIamRequest request) { + return client.listHostedApplicationsIam(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.generativeai.model.HostedApplicationSummary} objects + * contained in responses from the listHostedApplicationsIam 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.generativeai.model.HostedApplicationSummary} objects + * contained in responses received from the service. + */ + public Iterable + listHostedApplicationsIamRecordIterator( + final ListHostedApplicationsIamRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListHostedApplicationsIamRequest.Builder, ListHostedApplicationsIamRequest, + ListHostedApplicationsIamResponse, + com.oracle.bmc.generativeai.model.HostedApplicationSummary>( + new java.util.function.Supplier() { + @Override + public ListHostedApplicationsIamRequest.Builder get() { + return ListHostedApplicationsIamRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListHostedApplicationsIamResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListHostedApplicationsIamRequest.Builder>, + ListHostedApplicationsIamRequest>() { + @Override + public ListHostedApplicationsIamRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListHostedApplicationsIamRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListHostedApplicationsIamRequest, ListHostedApplicationsIamResponse>() { + @Override + public ListHostedApplicationsIamResponse apply( + ListHostedApplicationsIamRequest request) { + return client.listHostedApplicationsIam(request); + } + }, + new java.util.function.Function< + ListHostedApplicationsIamResponse, + java.util.List< + com.oracle.bmc.generativeai.model.HostedApplicationSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.generativeai.model.HostedApplicationSummary> + apply(ListHostedApplicationsIamResponse response) { + return response.getHostedApplicationCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listHostedDeployments operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiWaiters.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiWaiters.java index c86f07a1a98..0b6e8b3293f 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiWaiters.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiWaiters.java @@ -662,6 +662,118 @@ public boolean test(GetHostedApplicationResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse> + forHostedApplicationIam( + GetHostedApplicationIamRequest request, + com.oracle.bmc.generativeai.model.HostedApplicationIam.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forHostedApplicationIam( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse> + forHostedApplicationIam( + GetHostedApplicationIamRequest request, + com.oracle.bmc.generativeai.model.HostedApplicationIam.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forHostedApplicationIam( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse> + forHostedApplicationIam( + GetHostedApplicationIamRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.generativeai.model.HostedApplicationIam.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forHostedApplicationIam( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for HostedApplicationIam. + private com.oracle.bmc.waiter.Waiter< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse> + forHostedApplicationIam( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetHostedApplicationIamRequest request, + final com.oracle.bmc.generativeai.model.HostedApplicationIam.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetHostedApplicationIamRequest, GetHostedApplicationIamResponse>() { + @Override + public GetHostedApplicationIamResponse apply( + GetHostedApplicationIamRequest request) { + return client.getHostedApplicationIam(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetHostedApplicationIamResponse response) { + return targetStatesSet.contains( + response.getHostedApplicationIam().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.generativeai.model.HostedApplicationIam + .LifecycleState.Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeHostedApplicationIamCompartmentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeHostedApplicationIamCompartmentConverter.java new file mode 100644 index 00000000000..3a8d5cd3e3b --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeHostedApplicationIamCompartmentConverter.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeai.model.*; +import com.oracle.bmc.generativeai.requests.*; +import com.oracle.bmc.generativeai.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ChangeHostedApplicationIamCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ChangeHostedApplicationIamCompartmentConverter.class); + + public static com.oracle.bmc.generativeai.requests.ChangeHostedApplicationIamCompartmentRequest + interceptRequest( + com.oracle.bmc.generativeai.requests + .ChangeHostedApplicationIamCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeai.requests.ChangeHostedApplicationIamCompartmentRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getHostedApplicationIamId(), "hostedApplicationIamId must not be blank"); + Validate.notNull( + request.getChangeHostedApplicationCompartmentDetails(), + "changeHostedApplicationCompartmentDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationIamId", request.getHostedApplicationIamId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget + .path("/20231130") + .path("hostedApplicationsIam") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getHostedApplicationIamId())) + .path("actions") + .path("changeCompartment"); + + 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()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .ChangeHostedApplicationIamCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .ChangeHostedApplicationIamCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .ChangeHostedApplicationIamCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .ChangeHostedApplicationIamCompartmentResponse>() { + @Override + public com.oracle.bmc.generativeai.responses + .ChangeHostedApplicationIamCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeai.responses.ChangeHostedApplicationIamCompartmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.generativeai.responses + .ChangeHostedApplicationIamCompartmentResponse + .Builder + builder = + com.oracle.bmc.generativeai.responses + .ChangeHostedApplicationIamCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.generativeai.responses + .ChangeHostedApplicationIamCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedApplicationIamConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedApplicationIamConverter.java new file mode 100644 index 00000000000..9e28c6f47c5 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateHostedApplicationIamConverter.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeai.model.*; +import com.oracle.bmc.generativeai.requests.*; +import com.oracle.bmc.generativeai.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class CreateHostedApplicationIamConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CreateHostedApplicationIamConverter.class); + + public static com.oracle.bmc.generativeai.requests.CreateHostedApplicationIamRequest + interceptRequest( + com.oracle.bmc.generativeai.requests.CreateHostedApplicationIamRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeai.requests.CreateHostedApplicationIamRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateHostedApplicationIamDetails(), + "createHostedApplicationIamDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget.path("/20231130").path("hostedApplicationsIam"); + + 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 (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.CreateHostedApplicationIamResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.CreateHostedApplicationIamResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.CreateHostedApplicationIamResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .CreateHostedApplicationIamResponse>() { + @Override + public com.oracle.bmc.generativeai.responses + .CreateHostedApplicationIamResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeai.responses.CreateHostedApplicationIamResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model + .HostedApplicationIam>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model + .HostedApplicationIam + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model + .HostedApplicationIam + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model + .HostedApplicationIam> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.generativeai.responses + .CreateHostedApplicationIamResponse.Builder + builder = + com.oracle.bmc.generativeai.responses + .CreateHostedApplicationIamResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.hostedApplicationIam(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.generativeai.responses + .CreateHostedApplicationIamResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedApplicationIamConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedApplicationIamConverter.java new file mode 100644 index 00000000000..dfa003728cb --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteHostedApplicationIamConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeai.model.*; +import com.oracle.bmc.generativeai.requests.*; +import com.oracle.bmc.generativeai.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class DeleteHostedApplicationIamConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteHostedApplicationIamConverter.class); + + public static com.oracle.bmc.generativeai.requests.DeleteHostedApplicationIamRequest + interceptRequest( + com.oracle.bmc.generativeai.requests.DeleteHostedApplicationIamRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeai.requests.DeleteHostedApplicationIamRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getHostedApplicationIamId(), "hostedApplicationIamId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationIamId", request.getHostedApplicationIamId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget + .path("/20231130") + .path("hostedApplicationsIam") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getHostedApplicationIamId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.DeleteHostedApplicationIamResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.DeleteHostedApplicationIamResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.DeleteHostedApplicationIamResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .DeleteHostedApplicationIamResponse>() { + @Override + public com.oracle.bmc.generativeai.responses + .DeleteHostedApplicationIamResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeai.responses.DeleteHostedApplicationIamResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.generativeai.responses + .DeleteHostedApplicationIamResponse.Builder + builder = + com.oracle.bmc.generativeai.responses + .DeleteHostedApplicationIamResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.generativeai.responses + .DeleteHostedApplicationIamResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedApplicationIamConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedApplicationIamConverter.java new file mode 100644 index 00000000000..0d2f3576dd8 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetHostedApplicationIamConverter.java @@ -0,0 +1,157 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeai.model.*; +import com.oracle.bmc.generativeai.requests.*; +import com.oracle.bmc.generativeai.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class GetHostedApplicationIamConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetHostedApplicationIamConverter.class); + + public static com.oracle.bmc.generativeai.requests.GetHostedApplicationIamRequest + interceptRequest( + com.oracle.bmc.generativeai.requests.GetHostedApplicationIamRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeai.requests.GetHostedApplicationIamRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getHostedApplicationIamId(), "hostedApplicationIamId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationIamId", request.getHostedApplicationIamId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget + .path("/20231130") + .path("hostedApplicationsIam") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getHostedApplicationIamId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.GetHostedApplicationIamResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.GetHostedApplicationIamResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.GetHostedApplicationIamResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .GetHostedApplicationIamResponse>() { + @Override + public com.oracle.bmc.generativeai.responses + .GetHostedApplicationIamResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeai.responses.GetHostedApplicationIamResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model + .HostedApplicationIam>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model + .HostedApplicationIam + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model + .HostedApplicationIam + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model + .HostedApplicationIam> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.generativeai.responses + .GetHostedApplicationIamResponse.Builder + builder = + com.oracle.bmc.generativeai.responses + .GetHostedApplicationIamResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.hostedApplicationIam(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.generativeai.responses + .GetHostedApplicationIamResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedApplicationsIamConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedApplicationsIamConverter.java new file mode 100644 index 00000000000..d604037555d --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListHostedApplicationsIamConverter.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeai.model.*; +import com.oracle.bmc.generativeai.requests.*; +import com.oracle.bmc.generativeai.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ListHostedApplicationsIamConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListHostedApplicationsIamConverter.class); + + public static com.oracle.bmc.generativeai.requests.ListHostedApplicationsIamRequest + interceptRequest( + com.oracle.bmc.generativeai.requests.ListHostedApplicationsIamRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeai.requests.ListHostedApplicationsIamRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget.path("/20231130").path("hostedApplicationsIam"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getId() != null) { + target = + target.queryParam( + "id", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getId())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.ListHostedApplicationsIamResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.ListHostedApplicationsIamResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.ListHostedApplicationsIamResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .ListHostedApplicationsIamResponse>() { + @Override + public com.oracle.bmc.generativeai.responses + .ListHostedApplicationsIamResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeai.responses.ListHostedApplicationsIamResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model + .HostedApplicationCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model + .HostedApplicationCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model + .HostedApplicationCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model + .HostedApplicationCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.generativeai.responses + .ListHostedApplicationsIamResponse.Builder + builder = + com.oracle.bmc.generativeai.responses + .ListHostedApplicationsIamResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.hostedApplicationCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.generativeai.responses + .ListHostedApplicationsIamResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateHostedApplicationIamConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateHostedApplicationIamConverter.java new file mode 100644 index 00000000000..cebcfc0eaf6 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateHostedApplicationIamConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeai.model.*; +import com.oracle.bmc.generativeai.requests.*; +import com.oracle.bmc.generativeai.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class UpdateHostedApplicationIamConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateHostedApplicationIamConverter.class); + + public static com.oracle.bmc.generativeai.requests.UpdateHostedApplicationIamRequest + interceptRequest( + com.oracle.bmc.generativeai.requests.UpdateHostedApplicationIamRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeai.requests.UpdateHostedApplicationIamRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getHostedApplicationIamId(), "hostedApplicationIamId must not be blank"); + Validate.notNull( + request.getUpdateHostedApplicationIamDetails(), + "updateHostedApplicationIamDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("hostedApplicationIamId", request.getHostedApplicationIamId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget + .path("/20231130") + .path("hostedApplicationsIam") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getHostedApplicationIamId())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.UpdateHostedApplicationIamResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.UpdateHostedApplicationIamResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.UpdateHostedApplicationIamResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .UpdateHostedApplicationIamResponse>() { + @Override + public com.oracle.bmc.generativeai.responses + .UpdateHostedApplicationIamResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeai.responses.UpdateHostedApplicationIamResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.generativeai.responses + .UpdateHostedApplicationIamResponse.Builder + builder = + com.oracle.bmc.generativeai.responses + .UpdateHostedApplicationIamResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.generativeai.responses + .UpdateHostedApplicationIamResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Artifact.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Artifact.java index c490c2c0b21..c8ece2b4d86 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Artifact.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Artifact.java @@ -30,13 +30,24 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public class Artifact extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"id", "timeCreated", "hostedDeploymentId", "status"}) + @java.beans.ConstructorProperties({ + "id", + "timeCreated", + "hostedDeploymentId", + "isVulnerabilityScanRequired", + "status" + }) protected Artifact( - String id, java.util.Date timeCreated, String hostedDeploymentId, Status status) { + String id, + java.util.Date timeCreated, + String hostedDeploymentId, + Boolean isVulnerabilityScanRequired, + Status status) { super(); this.id = id; this.timeCreated = timeCreated; this.hostedDeploymentId = hostedDeploymentId; + this.isVulnerabilityScanRequired = isVulnerabilityScanRequired; this.status = status; } @@ -82,6 +93,22 @@ public String getHostedDeploymentId() { return hostedDeploymentId; } + /** + * Optional flag that requires an OCI Vulnerability Scanning Service compliance report for this artifact before it can become active. When not provided, the value defaults to false and the artifact is not blocked on a scan result. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVulnerabilityScanRequired") + private final Boolean isVulnerabilityScanRequired; + + /** + * Optional flag that requires an OCI Vulnerability Scanning Service compliance report for this artifact before it can become active. When not provided, the value defaults to false and the artifact is not blocked on a scan result. + * + * @return the value + **/ + public Boolean getIsVulnerabilityScanRequired() { + return isVulnerabilityScanRequired; + } + /** * The current status of the artifact. **/ @@ -89,6 +116,7 @@ public enum Status { Active("ACTIVE"), Inactive("INACTIVE"), Updating("UPDATING"), + Failed("FAILED"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -161,6 +189,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", hostedDeploymentId=").append(String.valueOf(this.hostedDeploymentId)); + sb.append(", isVulnerabilityScanRequired=") + .append(String.valueOf(this.isVulnerabilityScanRequired)); sb.append(", status=").append(String.valueOf(this.status)); sb.append(")"); return sb.toString(); @@ -179,6 +209,8 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.hostedDeploymentId, other.hostedDeploymentId) + && java.util.Objects.equals( + this.isVulnerabilityScanRequired, other.isVulnerabilityScanRequired) && java.util.Objects.equals(this.status, other.status) && super.equals(other); } @@ -194,6 +226,11 @@ public int hashCode() { + (this.hostedDeploymentId == null ? 43 : this.hostedDeploymentId.hashCode()); + result = + (result * PRIME) + + (this.isVulnerabilityScanRequired == null + ? 43 + : this.isVulnerabilityScanRequired.hashCode()); result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateArtifactDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateArtifactDetails.java index 8b44e2a3c77..5459ef88c32 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateArtifactDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateArtifactDetails.java @@ -30,9 +30,26 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public class CreateArtifactDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({}) - protected CreateArtifactDetails() { + @java.beans.ConstructorProperties({"isVulnerabilityScanRequired"}) + protected CreateArtifactDetails(Boolean isVulnerabilityScanRequired) { super(); + this.isVulnerabilityScanRequired = isVulnerabilityScanRequired; + } + + /** + * Optional flag that requires an OCI Vulnerability Scanning Service compliance report for this artifact before it can become active. When omitted, the value defaults to false. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isVulnerabilityScanRequired") + private final Boolean isVulnerabilityScanRequired; + + /** + * Optional flag that requires an OCI Vulnerability Scanning Service compliance report for this artifact before it can become active. When omitted, the value defaults to false. + * + * @return the value + **/ + public Boolean getIsVulnerabilityScanRequired() { + return isVulnerabilityScanRequired; } @Override @@ -49,6 +66,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateArtifactDetails("); sb.append("super=").append(super.toString()); + sb.append("isVulnerabilityScanRequired=") + .append(String.valueOf(this.isVulnerabilityScanRequired)); sb.append(")"); return sb.toString(); } @@ -63,13 +82,20 @@ public boolean equals(Object o) { } CreateArtifactDetails other = (CreateArtifactDetails) o; - return super.equals(other); + return java.util.Objects.equals( + this.isVulnerabilityScanRequired, other.isVulnerabilityScanRequired) + && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.isVulnerabilityScanRequired == null + ? 43 + : this.isVulnerabilityScanRequired.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java index 199a05b9c21..20beb352517 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java @@ -181,6 +181,8 @@ public Builder unitCount(Integer unitCount) { * - H100_X2 * - H100_X4 * - H100_X8 + * - H100_X16 + * - H100_X32 * - H200_X1 * - H200_X2 * - H200_X4 @@ -191,6 +193,7 @@ public Builder unitCount(Integer unitCount) { * - A100_40G_X1, A100_40G_X2, A100_40G_X4, A100_40G_X8 * - A100_80G_X1, A100_80G_X2, A100_80G_X4, A100_80G_X8 * - H100_X1, H100_X2, H100_X4, H100_X8 + * - H100_X16, H100_X32 * - H200_X1, H200_X2, H200_X4, H200_X8 * - OAI_A10_X2 * - OAI_H100_X1 @@ -200,6 +203,15 @@ public Builder unitCount(Integer unitCount) { * - OAI_A100_80G_X2 * - OAI_A100_40G_X1 * - OAI_A100_40G_X4 + * - B200_X1 + * - B200_X2 + * - B200_X4 + * - B200_X8 + * - OAI_B200_X1 + * - OAI_B200_X2 + * - OAI_B200_X4 + * - OAI_B200_X8 + * - SB_B200_X1 * **/ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") @@ -242,6 +254,8 @@ public Builder unitCount(Integer unitCount) { * - H100_X2 * - H100_X4 * - H100_X8 + * - H100_X16 + * - H100_X32 * - H200_X1 * - H200_X2 * - H200_X4 @@ -252,6 +266,7 @@ public Builder unitCount(Integer unitCount) { * - A100_40G_X1, A100_40G_X2, A100_40G_X4, A100_40G_X8 * - A100_80G_X1, A100_80G_X2, A100_80G_X4, A100_80G_X8 * - H100_X1, H100_X2, H100_X4, H100_X8 + * - H100_X16, H100_X32 * - H200_X1, H200_X2, H200_X4, H200_X8 * - OAI_A10_X2 * - OAI_H100_X1 @@ -261,6 +276,15 @@ public Builder unitCount(Integer unitCount) { * - OAI_A100_80G_X2 * - OAI_A100_40G_X1 * - OAI_A100_40G_X4 + * - B200_X1 + * - B200_X2 + * - B200_X4 + * - B200_X8 + * - OAI_B200_X1 + * - OAI_B200_X2 + * - OAI_B200_X4 + * - OAI_B200_X8 + * - SB_B200_X1 * * @param unitShape the value to set * @return this builder @@ -498,6 +522,8 @@ public Integer getUnitCount() { * - H100_X2 * - H100_X4 * - H100_X8 + * - H100_X16 + * - H100_X32 * - H200_X1 * - H200_X2 * - H200_X4 @@ -508,6 +534,7 @@ public Integer getUnitCount() { * - A100_40G_X1, A100_40G_X2, A100_40G_X4, A100_40G_X8 * - A100_80G_X1, A100_80G_X2, A100_80G_X4, A100_80G_X8 * - H100_X1, H100_X2, H100_X4, H100_X8 + * - H100_X16, H100_X32 * - H200_X1, H200_X2, H200_X4, H200_X8 * - OAI_A10_X2 * - OAI_H100_X1 @@ -517,6 +544,15 @@ public Integer getUnitCount() { * - OAI_A100_80G_X2 * - OAI_A100_40G_X1 * - OAI_A100_40G_X4 + * - B200_X1 + * - B200_X2 + * - B200_X4 + * - B200_X8 + * - OAI_B200_X1 + * - OAI_B200_X2 + * - OAI_B200_X4 + * - OAI_B200_X8 + * - SB_B200_X1 * **/ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") @@ -559,6 +595,8 @@ public Integer getUnitCount() { * - H100_X2 * - H100_X4 * - H100_X8 + * - H100_X16 + * - H100_X32 * - H200_X1 * - H200_X2 * - H200_X4 @@ -569,6 +607,7 @@ public Integer getUnitCount() { * - A100_40G_X1, A100_40G_X2, A100_40G_X4, A100_40G_X8 * - A100_80G_X1, A100_80G_X2, A100_80G_X4, A100_80G_X8 * - H100_X1, H100_X2, H100_X4, H100_X8 + * - H100_X16, H100_X32 * - H200_X1, H200_X2, H200_X4, H200_X8 * - OAI_A10_X2 * - OAI_H100_X1 @@ -578,6 +617,15 @@ public Integer getUnitCount() { * - OAI_A100_80G_X2 * - OAI_A100_40G_X1 * - OAI_A100_40G_X4 + * - B200_X1 + * - B200_X2 + * - B200_X4 + * - B200_X8 + * - OAI_B200_X1 + * - OAI_B200_X2 + * - OAI_B200_X4 + * - OAI_B200_X8 + * - SB_B200_X1 * * @return the value **/ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java new file mode 100644 index 00000000000..92445d56b5b --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java @@ -0,0 +1,503 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.model; + +/** + * Common creation properties shared by HostedApplication and HostedApplicationIam. + *
+ * 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: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateHostedApplicationBaseDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateHostedApplicationBaseDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "compartmentId", + "description", + "scalingConfig", + "networkingConfig", + "storageConfigs", + "environmentVariables", + "freeformTags", + "definedTags" + }) + public CreateHostedApplicationBaseDetails( + String displayName, + String compartmentId, + String description, + ScalingConfig scalingConfig, + NetworkingConfig networkingConfig, + java.util.List storageConfigs, + java.util.List environmentVariables, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.compartmentId = compartmentId; + this.description = description; + this.scalingConfig = scalingConfig; + this.networkingConfig = networkingConfig; + this.storageConfigs = storageConfigs; + this.environmentVariables = environmentVariables; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The user-friendly display name for the Hosted Application. + * Does not need to be unique and can be updated after creation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly display name for the Hosted Application. + * Does not need to be unique and can be updated after creation. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The compartment OCID for the Hosted Application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The compartment OCID for the Hosted Application. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The description for the Hosted Application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description for the Hosted Application. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private ScalingConfig scalingConfig; + + public Builder scalingConfig(ScalingConfig scalingConfig) { + this.scalingConfig = scalingConfig; + this.__explicitlySet__.add("scalingConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private NetworkingConfig networkingConfig; + + public Builder networkingConfig(NetworkingConfig networkingConfig) { + this.networkingConfig = networkingConfig; + this.__explicitlySet__.add("networkingConfig"); + return this; + } + /** + * The list of storage configuration for the Hosted Application. + * Defines a list of service-managed storage back-ends. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private java.util.List storageConfigs; + + /** + * The list of storage configuration for the Hosted Application. + * Defines a list of service-managed storage back-ends. + * + * @param storageConfigs the value to set + * @return this builder + **/ + public Builder storageConfigs(java.util.List storageConfigs) { + this.storageConfigs = storageConfigs; + this.__explicitlySet__.add("storageConfigs"); + return this; + } + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + * @param environmentVariables the value to set + * @return this builder + **/ + public Builder environmentVariables( + java.util.List environmentVariables) { + this.environmentVariables = environmentVariables; + this.__explicitlySet__.add("environmentVariables"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + 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 CreateHostedApplicationBaseDetails build() { + CreateHostedApplicationBaseDetails model = + new CreateHostedApplicationBaseDetails( + this.displayName, + this.compartmentId, + this.description, + this.scalingConfig, + this.networkingConfig, + this.storageConfigs, + this.environmentVariables, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateHostedApplicationBaseDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scalingConfig")) { + this.scalingConfig(model.getScalingConfig()); + } + if (model.wasPropertyExplicitlySet("networkingConfig")) { + this.networkingConfig(model.getNetworkingConfig()); + } + if (model.wasPropertyExplicitlySet("storageConfigs")) { + this.storageConfigs(model.getStorageConfigs()); + } + if (model.wasPropertyExplicitlySet("environmentVariables")) { + this.environmentVariables(model.getEnvironmentVariables()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The user-friendly display name for the Hosted Application. + * Does not need to be unique and can be updated after creation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly display name for the Hosted Application. + * Does not need to be unique and can be updated after creation. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The compartment OCID for the Hosted Application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The compartment OCID for the Hosted Application. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The description for the Hosted Application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description for the Hosted Application. + * @return the value + **/ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private final ScalingConfig scalingConfig; + + public ScalingConfig getScalingConfig() { + return scalingConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private final NetworkingConfig networkingConfig; + + public NetworkingConfig getNetworkingConfig() { + return networkingConfig; + } + + /** + * The list of storage configuration for the Hosted Application. + * Defines a list of service-managed storage back-ends. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private final java.util.List storageConfigs; + + /** + * The list of storage configuration for the Hosted Application. + * Defines a list of service-managed storage back-ends. + * + * @return the value + **/ + public java.util.List getStorageConfigs() { + return storageConfigs; + } + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private final java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + * @return the value + **/ + public java.util.List getEnvironmentVariables() { + return environmentVariables; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateHostedApplicationBaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); + sb.append(", networkingConfig=").append(String.valueOf(this.networkingConfig)); + sb.append(", storageConfigs=").append(String.valueOf(this.storageConfigs)); + sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateHostedApplicationBaseDetails)) { + return false; + } + + CreateHostedApplicationBaseDetails other = (CreateHostedApplicationBaseDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) + && java.util.Objects.equals(this.networkingConfig, other.networkingConfig) + && java.util.Objects.equals(this.storageConfigs, other.storageConfigs) + && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); + result = + (result * PRIME) + + (this.networkingConfig == null ? 43 : this.networkingConfig.hashCode()); + result = + (result * PRIME) + + (this.storageConfigs == null ? 43 : this.storageConfigs.hashCode()); + result = + (result * PRIME) + + (this.environmentVariables == null + ? 43 + : this.environmentVariables.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java index a5f2fde7dce..1883f2f77a9 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java @@ -23,11 +23,11 @@ public final class CreateHostedApplicationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "inboundAuthConfig", "displayName", "compartmentId", "description", "scalingConfig", - "inboundAuthConfig", "networkingConfig", "storageConfigs", "environmentVariables", @@ -35,22 +35,22 @@ public final class CreateHostedApplicationDetails "definedTags" }) public CreateHostedApplicationDetails( + InboundAuthConfig inboundAuthConfig, String displayName, String compartmentId, String description, ScalingConfig scalingConfig, - InboundAuthConfig inboundAuthConfig, NetworkingConfig networkingConfig, java.util.List storageConfigs, java.util.List environmentVariables, java.util.Map freeformTags, java.util.Map> definedTags) { super(); + this.inboundAuthConfig = inboundAuthConfig; this.displayName = displayName; this.compartmentId = compartmentId; this.description = description; this.scalingConfig = scalingConfig; - this.inboundAuthConfig = inboundAuthConfig; this.networkingConfig = networkingConfig; this.storageConfigs = storageConfigs; this.environmentVariables = environmentVariables; @@ -60,6 +60,15 @@ public CreateHostedApplicationDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") + private InboundAuthConfig inboundAuthConfig; + + public Builder inboundAuthConfig(InboundAuthConfig inboundAuthConfig) { + this.inboundAuthConfig = inboundAuthConfig; + this.__explicitlySet__.add("inboundAuthConfig"); + return this; + } /** * The user-friendly display name for the Hosted Application. * Does not need to be unique and can be updated after creation. @@ -122,15 +131,6 @@ public Builder scalingConfig(ScalingConfig scalingConfig) { return this; } - @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") - private InboundAuthConfig inboundAuthConfig; - - public Builder inboundAuthConfig(InboundAuthConfig inboundAuthConfig) { - this.inboundAuthConfig = inboundAuthConfig; - this.__explicitlySet__.add("inboundAuthConfig"); - return this; - } - @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") private NetworkingConfig networkingConfig; @@ -236,11 +236,11 @@ public Builder definedTags( public CreateHostedApplicationDetails build() { CreateHostedApplicationDetails model = new CreateHostedApplicationDetails( + this.inboundAuthConfig, this.displayName, this.compartmentId, this.description, this.scalingConfig, - this.inboundAuthConfig, this.networkingConfig, this.storageConfigs, this.environmentVariables, @@ -254,6 +254,9 @@ public CreateHostedApplicationDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateHostedApplicationDetails model) { + if (model.wasPropertyExplicitlySet("inboundAuthConfig")) { + this.inboundAuthConfig(model.getInboundAuthConfig()); + } if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } @@ -266,9 +269,6 @@ public Builder copy(CreateHostedApplicationDetails model) { if (model.wasPropertyExplicitlySet("scalingConfig")) { this.scalingConfig(model.getScalingConfig()); } - if (model.wasPropertyExplicitlySet("inboundAuthConfig")) { - this.inboundAuthConfig(model.getInboundAuthConfig()); - } if (model.wasPropertyExplicitlySet("networkingConfig")) { this.networkingConfig(model.getNetworkingConfig()); } @@ -299,6 +299,13 @@ public Builder toBuilder() { return new Builder().copy(this); } + @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") + private final InboundAuthConfig inboundAuthConfig; + + public InboundAuthConfig getInboundAuthConfig() { + return inboundAuthConfig; + } + /** * The user-friendly display name for the Hosted Application. * Does not need to be unique and can be updated after creation. @@ -352,13 +359,6 @@ public ScalingConfig getScalingConfig() { return scalingConfig; } - @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") - private final InboundAuthConfig inboundAuthConfig; - - public InboundAuthConfig getInboundAuthConfig() { - return inboundAuthConfig; - } - @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") private final NetworkingConfig networkingConfig; @@ -460,11 +460,11 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateHostedApplicationDetails("); sb.append("super=").append(super.toString()); - sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append("inboundAuthConfig=").append(String.valueOf(this.inboundAuthConfig)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); - sb.append(", inboundAuthConfig=").append(String.valueOf(this.inboundAuthConfig)); sb.append(", networkingConfig=").append(String.valueOf(this.networkingConfig)); sb.append(", storageConfigs=").append(String.valueOf(this.storageConfigs)); sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); @@ -484,11 +484,11 @@ public boolean equals(Object o) { } CreateHostedApplicationDetails other = (CreateHostedApplicationDetails) o; - return java.util.Objects.equals(this.displayName, other.displayName) + return java.util.Objects.equals(this.inboundAuthConfig, other.inboundAuthConfig) + && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) - && java.util.Objects.equals(this.inboundAuthConfig, other.inboundAuthConfig) && java.util.Objects.equals(this.networkingConfig, other.networkingConfig) && java.util.Objects.equals(this.storageConfigs, other.storageConfigs) && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) @@ -501,6 +501,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.inboundAuthConfig == null ? 43 : this.inboundAuthConfig.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) @@ -509,9 +512,6 @@ public int hashCode() { result = (result * PRIME) + (this.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); - result = - (result * PRIME) - + (this.inboundAuthConfig == null ? 43 : this.inboundAuthConfig.hashCode()); result = (result * PRIME) + (this.networkingConfig == null ? 43 : this.networkingConfig.hashCode()); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java new file mode 100644 index 00000000000..e886befc485 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java @@ -0,0 +1,503 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.model; + +/** + * The details required to create a hosted application. + *
+ * 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: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateHostedApplicationIamDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateHostedApplicationIamDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "compartmentId", + "description", + "scalingConfig", + "networkingConfig", + "storageConfigs", + "environmentVariables", + "freeformTags", + "definedTags" + }) + public CreateHostedApplicationIamDetails( + String displayName, + String compartmentId, + String description, + ScalingConfig scalingConfig, + NetworkingConfig networkingConfig, + java.util.List storageConfigs, + java.util.List environmentVariables, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.compartmentId = compartmentId; + this.description = description; + this.scalingConfig = scalingConfig; + this.networkingConfig = networkingConfig; + this.storageConfigs = storageConfigs; + this.environmentVariables = environmentVariables; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The user-friendly display name for the Hosted Application. + * Does not need to be unique and can be updated after creation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly display name for the Hosted Application. + * Does not need to be unique and can be updated after creation. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The compartment OCID for the Hosted Application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The compartment OCID for the Hosted Application. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The description for the Hosted Application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description for the Hosted Application. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private ScalingConfig scalingConfig; + + public Builder scalingConfig(ScalingConfig scalingConfig) { + this.scalingConfig = scalingConfig; + this.__explicitlySet__.add("scalingConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private NetworkingConfig networkingConfig; + + public Builder networkingConfig(NetworkingConfig networkingConfig) { + this.networkingConfig = networkingConfig; + this.__explicitlySet__.add("networkingConfig"); + return this; + } + /** + * The list of storage configuration for the Hosted Application. + * Defines a list of service-managed storage back-ends. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private java.util.List storageConfigs; + + /** + * The list of storage configuration for the Hosted Application. + * Defines a list of service-managed storage back-ends. + * + * @param storageConfigs the value to set + * @return this builder + **/ + public Builder storageConfigs(java.util.List storageConfigs) { + this.storageConfigs = storageConfigs; + this.__explicitlySet__.add("storageConfigs"); + return this; + } + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + * @param environmentVariables the value to set + * @return this builder + **/ + public Builder environmentVariables( + java.util.List environmentVariables) { + this.environmentVariables = environmentVariables; + this.__explicitlySet__.add("environmentVariables"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + 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 CreateHostedApplicationIamDetails build() { + CreateHostedApplicationIamDetails model = + new CreateHostedApplicationIamDetails( + this.displayName, + this.compartmentId, + this.description, + this.scalingConfig, + this.networkingConfig, + this.storageConfigs, + this.environmentVariables, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateHostedApplicationIamDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scalingConfig")) { + this.scalingConfig(model.getScalingConfig()); + } + if (model.wasPropertyExplicitlySet("networkingConfig")) { + this.networkingConfig(model.getNetworkingConfig()); + } + if (model.wasPropertyExplicitlySet("storageConfigs")) { + this.storageConfigs(model.getStorageConfigs()); + } + if (model.wasPropertyExplicitlySet("environmentVariables")) { + this.environmentVariables(model.getEnvironmentVariables()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The user-friendly display name for the Hosted Application. + * Does not need to be unique and can be updated after creation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly display name for the Hosted Application. + * Does not need to be unique and can be updated after creation. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The compartment OCID for the Hosted Application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The compartment OCID for the Hosted Application. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The description for the Hosted Application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description for the Hosted Application. + * @return the value + **/ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private final ScalingConfig scalingConfig; + + public ScalingConfig getScalingConfig() { + return scalingConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private final NetworkingConfig networkingConfig; + + public NetworkingConfig getNetworkingConfig() { + return networkingConfig; + } + + /** + * The list of storage configuration for the Hosted Application. + * Defines a list of service-managed storage back-ends. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private final java.util.List storageConfigs; + + /** + * The list of storage configuration for the Hosted Application. + * Defines a list of service-managed storage back-ends. + * + * @return the value + **/ + public java.util.List getStorageConfigs() { + return storageConfigs; + } + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private final java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + * @return the value + **/ + public java.util.List getEnvironmentVariables() { + return environmentVariables; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateHostedApplicationIamDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); + sb.append(", networkingConfig=").append(String.valueOf(this.networkingConfig)); + sb.append(", storageConfigs=").append(String.valueOf(this.storageConfigs)); + sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateHostedApplicationIamDetails)) { + return false; + } + + CreateHostedApplicationIamDetails other = (CreateHostedApplicationIamDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) + && java.util.Objects.equals(this.networkingConfig, other.networkingConfig) + && java.util.Objects.equals(this.storageConfigs, other.storageConfigs) + && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); + result = + (result * PRIME) + + (this.networkingConfig == null ? 43 : this.networkingConfig.hashCode()); + result = + (result * PRIME) + + (this.storageConfigs == null ? 43 : this.storageConfigs.hashCode()); + result = + (result * PRIME) + + (this.environmentVariables == null + ? 43 + : this.environmentVariables.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedDeploymentDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedDeploymentDetails.java index 6ba2d37958c..058d9ad3a49 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedDeploymentDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedDeploymentDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeai.model; /** - * The data to create a hosted deployment. + * The data to create a hosted deployment. Exactly one of hostedApplicationId or hostedApplicationIamId must be provided. *
* 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 @@ -81,13 +81,13 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. **/ @com.fasterxml.jackson.annotation.JsonProperty("hostedApplicationId") private String hostedApplicationId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. * @param hostedApplicationId the value to set * @return this builder **/ @@ -237,13 +237,13 @@ public String getCompartmentId() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. **/ @com.fasterxml.jackson.annotation.JsonProperty("hostedApplicationId") private final String hostedApplicationId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. * @return the value **/ public String getHostedApplicationId() { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSingleDockerArtifactDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSingleDockerArtifactDetails.java index a46666f0fd5..c7d159ce45e 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSingleDockerArtifactDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSingleDockerArtifactDetails.java @@ -27,6 +27,14 @@ public final class CreateSingleDockerArtifactDetails extends CreateArtifactDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("isVulnerabilityScanRequired") + private Boolean isVulnerabilityScanRequired; + + public Builder isVulnerabilityScanRequired(Boolean isVulnerabilityScanRequired) { + this.isVulnerabilityScanRequired = isVulnerabilityScanRequired; + this.__explicitlySet__.add("isVulnerabilityScanRequired"); + return this; + } /** * image url. **/ @@ -65,7 +73,8 @@ public Builder tag(String tag) { public CreateSingleDockerArtifactDetails build() { CreateSingleDockerArtifactDetails model = - new CreateSingleDockerArtifactDetails(this.containerUri, this.tag); + new CreateSingleDockerArtifactDetails( + this.isVulnerabilityScanRequired, this.containerUri, this.tag); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -74,6 +83,9 @@ public CreateSingleDockerArtifactDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateSingleDockerArtifactDetails model) { + if (model.wasPropertyExplicitlySet("isVulnerabilityScanRequired")) { + this.isVulnerabilityScanRequired(model.getIsVulnerabilityScanRequired()); + } if (model.wasPropertyExplicitlySet("containerUri")) { this.containerUri(model.getContainerUri()); } @@ -96,8 +108,9 @@ public Builder toBuilder() { } @Deprecated - public CreateSingleDockerArtifactDetails(String containerUri, String tag) { - super(); + public CreateSingleDockerArtifactDetails( + Boolean isVulnerabilityScanRequired, String containerUri, String tag) { + super(isVulnerabilityScanRequired); this.containerUri = containerUri; this.tag = tag; } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java index b3d0dc77d63..0b348c14d63 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java @@ -703,6 +703,43 @@ public enum UnitShape { CohereA10080GX1("COHERE_A100_80G_X1"), CohereA10040GX1("COHERE_A100_40G_X1"), CohereA10X1("COHERE_A10_X1"), + CohereA10040GX2("COHERE_A100_40G_X2"), + CohereA10040GX4("COHERE_A100_40G_X4"), + CohereA10040GX8("COHERE_A100_40G_X8"), + CohereA10080GX2("COHERE_A100_80G_X2"), + CohereA10080GX4("COHERE_A100_80G_X4"), + CohereA10080GX8("COHERE_A100_80G_X8"), + CohereH100X2("COHERE_H100_X2"), + CohereH100X4("COHERE_H100_X4"), + CohereH100X8("COHERE_H100_X8"), + CohereH200X1("COHERE_H200_X1"), + CohereH200X2("COHERE_H200_X2"), + CohereH200X4("COHERE_H200_X4"), + CohereH200X8("COHERE_H200_X8"), + CohereB200X1("COHERE_B200_X1"), + CohereB200X2("COHERE_B200_X2"), + CohereB200X4("COHERE_B200_X4"), + CohereB200X8("COHERE_B200_X8"), + MetaA10040GX1("META_A100_40G_X1"), + MetaA10040GX2("META_A100_40G_X2"), + MetaA10040GX4("META_A100_40G_X4"), + MetaA10040GX8("META_A100_40G_X8"), + MetaA10080GX1("META_A100_80G_X1"), + MetaA10080GX2("META_A100_80G_X2"), + MetaA10080GX4("META_A100_80G_X4"), + MetaA10080GX8("META_A100_80G_X8"), + MetaH100X1("META_H100_X1"), + MetaH100X2("META_H100_X2"), + MetaH100X4("META_H100_X4"), + MetaH100X8("META_H100_X8"), + MetaH200X1("META_H200_X1"), + MetaH200X2("META_H200_X2"), + MetaH200X4("META_H200_X4"), + MetaH200X8("META_H200_X8"), + MetaB200X1("META_B200_X1"), + MetaB200X2("META_B200_X2"), + MetaB200X4("META_B200_X4"), + MetaB200X8("META_B200_X8"), LargeCohereV3("LARGE_COHERE_V3"), RerankCohere("RERANK_COHERE"), SmallGenericV1("SMALL_GENERIC_V1"), @@ -723,6 +760,8 @@ public enum UnitShape { H100X2("H100_X2"), H100X4("H100_X4"), H100X8("H100_X8"), + H100X16("H100_X16"), + H100X32("H100_X32"), H200X1("H200_X1"), H200X2("H200_X2"), H200X4("H200_X4"), @@ -735,6 +774,15 @@ public enum UnitShape { OaiA10080GX2("OAI_A100_80G_X2"), OaiA10040GX1("OAI_A100_40G_X1"), OaiA10040GX4("OAI_A100_40G_X4"), + B200X1("B200_X1"), + B200X2("B200_X2"), + B200X4("B200_X4"), + B200X8("B200_X8"), + OaiB200X1("OAI_B200_X1"), + OaiB200X2("OAI_B200_X2"), + OaiB200X4("OAI_B200_X4"), + OaiB200X8("OAI_B200_X8"), + SbB200X1("SB_B200_X1"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java index a8ab4b9fae6..0a1e501b9ac 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java @@ -26,6 +26,7 @@ public final class HostedApplication extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "inboundAuthConfig", "id", "displayName", "description", @@ -36,7 +37,6 @@ public final class HostedApplication extends com.oracle.bmc.http.internal.Explic "lifecycleDetails", "scalingConfig", "storageConfigs", - "inboundAuthConfig", "networkingConfig", "environmentVariables", "freeformTags", @@ -44,6 +44,7 @@ public final class HostedApplication extends com.oracle.bmc.http.internal.Explic "systemTags" }) public HostedApplication( + InboundAuthConfig inboundAuthConfig, String id, String displayName, String description, @@ -54,13 +55,13 @@ public HostedApplication( String lifecycleDetails, ScalingConfig scalingConfig, java.util.List storageConfigs, - InboundAuthConfig inboundAuthConfig, NetworkingConfig networkingConfig, java.util.List environmentVariables, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { super(); + this.inboundAuthConfig = inboundAuthConfig; this.id = id; this.displayName = displayName; this.description = description; @@ -71,7 +72,6 @@ public HostedApplication( this.lifecycleDetails = lifecycleDetails; this.scalingConfig = scalingConfig; this.storageConfigs = storageConfigs; - this.inboundAuthConfig = inboundAuthConfig; this.networkingConfig = networkingConfig; this.environmentVariables = environmentVariables; this.freeformTags = freeformTags; @@ -81,6 +81,15 @@ public HostedApplication( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") + private InboundAuthConfig inboundAuthConfig; + + public Builder inboundAuthConfig(InboundAuthConfig inboundAuthConfig) { + this.inboundAuthConfig = inboundAuthConfig; + this.__explicitlySet__.add("inboundAuthConfig"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. **/ @@ -235,15 +244,6 @@ public Builder storageConfigs(java.util.List storageConfigs) { return this; } - @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") - private InboundAuthConfig inboundAuthConfig; - - public Builder inboundAuthConfig(InboundAuthConfig inboundAuthConfig) { - this.inboundAuthConfig = inboundAuthConfig; - this.__explicitlySet__.add("inboundAuthConfig"); - return this; - } - @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") private NetworkingConfig networkingConfig; @@ -351,6 +351,7 @@ public Builder systemTags(java.util.Map> s public HostedApplication build() { HostedApplication model = new HostedApplication( + this.inboundAuthConfig, this.id, this.displayName, this.description, @@ -361,7 +362,6 @@ public HostedApplication build() { this.lifecycleDetails, this.scalingConfig, this.storageConfigs, - this.inboundAuthConfig, this.networkingConfig, this.environmentVariables, this.freeformTags, @@ -375,6 +375,9 @@ public HostedApplication build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(HostedApplication model) { + if (model.wasPropertyExplicitlySet("inboundAuthConfig")) { + this.inboundAuthConfig(model.getInboundAuthConfig()); + } if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } @@ -405,9 +408,6 @@ public Builder copy(HostedApplication model) { if (model.wasPropertyExplicitlySet("storageConfigs")) { this.storageConfigs(model.getStorageConfigs()); } - if (model.wasPropertyExplicitlySet("inboundAuthConfig")) { - this.inboundAuthConfig(model.getInboundAuthConfig()); - } if (model.wasPropertyExplicitlySet("networkingConfig")) { this.networkingConfig(model.getNetworkingConfig()); } @@ -438,6 +438,13 @@ public Builder toBuilder() { return new Builder().copy(this); } + @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") + private final InboundAuthConfig inboundAuthConfig; + + public InboundAuthConfig getInboundAuthConfig() { + return inboundAuthConfig; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. **/ @@ -623,13 +630,6 @@ public java.util.List getStorageConfigs() { return storageConfigs; } - @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") - private final InboundAuthConfig inboundAuthConfig; - - public InboundAuthConfig getInboundAuthConfig() { - return inboundAuthConfig; - } - @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") private final NetworkingConfig networkingConfig; @@ -733,7 +733,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("HostedApplication("); sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); + sb.append("inboundAuthConfig=").append(String.valueOf(this.inboundAuthConfig)); + sb.append(", id=").append(String.valueOf(this.id)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); @@ -743,7 +744,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); sb.append(", storageConfigs=").append(String.valueOf(this.storageConfigs)); - sb.append(", inboundAuthConfig=").append(String.valueOf(this.inboundAuthConfig)); sb.append(", networkingConfig=").append(String.valueOf(this.networkingConfig)); sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -763,7 +763,8 @@ public boolean equals(Object o) { } HostedApplication other = (HostedApplication) o; - return java.util.Objects.equals(this.id, other.id) + return java.util.Objects.equals(this.inboundAuthConfig, other.inboundAuthConfig) + && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.compartmentId, other.compartmentId) @@ -773,7 +774,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) && java.util.Objects.equals(this.storageConfigs, other.storageConfigs) - && java.util.Objects.equals(this.inboundAuthConfig, other.inboundAuthConfig) && java.util.Objects.equals(this.networkingConfig, other.networkingConfig) && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -786,6 +786,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.inboundAuthConfig == null ? 43 : this.inboundAuthConfig.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); @@ -806,9 +809,6 @@ public int hashCode() { result = (result * PRIME) + (this.storageConfigs == null ? 43 : this.storageConfigs.hashCode()); - result = - (result * PRIME) - + (this.inboundAuthConfig == null ? 43 : this.inboundAuthConfig.hashCode()); result = (result * PRIME) + (this.networkingConfig == null ? 43 : this.networkingConfig.hashCode()); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java new file mode 100644 index 00000000000..69b4caeb013 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java @@ -0,0 +1,782 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.model; + +/** + * Common properties shared by HostedApplication and HostedApplicationIam. + *
+ * 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: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = HostedApplicationBase.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class HostedApplicationBase + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "compartmentId", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "scalingConfig", + "storageConfigs", + "networkingConfig", + "environmentVariables", + "freeformTags", + "definedTags", + "systemTags" + }) + public HostedApplicationBase( + String id, + String displayName, + String description, + String compartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + ScalingConfig scalingConfig, + java.util.List storageConfigs, + NetworkingConfig networkingConfig, + java.util.List environmentVariables, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.scalingConfig = scalingConfig; + this.storageConfigs = storageConfigs; + this.networkingConfig = networkingConfig; + this.environmentVariables = environmentVariables; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * An optional description of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * An optional description of the hosted application. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The compartment OCID to create the hosted application in. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The compartment OCID to create the hosted application in. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The date and time the hosted application was created, in the format defined by RFC 3339 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the hosted application was created, in the format defined by RFC 3339 + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time the hosted application was updated, in the format defined by RFC 3339 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the hosted application was updated, in the format defined by RFC 3339 + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The current state of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the hosted application. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state of the endpoint in more detail that can provide actionable information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state of the endpoint in more detail that can provide actionable information. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private ScalingConfig scalingConfig; + + public Builder scalingConfig(ScalingConfig scalingConfig) { + this.scalingConfig = scalingConfig; + this.__explicitlySet__.add("scalingConfig"); + return this; + } + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private java.util.List storageConfigs; + + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * @param storageConfigs the value to set + * @return this builder + **/ + public Builder storageConfigs(java.util.List storageConfigs) { + this.storageConfigs = storageConfigs; + this.__explicitlySet__.add("storageConfigs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private NetworkingConfig networkingConfig; + + public Builder networkingConfig(NetworkingConfig networkingConfig) { + this.networkingConfig = networkingConfig; + this.__explicitlySet__.add("networkingConfig"); + return this; + } + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + * @param environmentVariables the value to set + * @return this builder + **/ + public Builder environmentVariables( + java.util.List environmentVariables) { + this.environmentVariables = environmentVariables; + this.__explicitlySet__.add("environmentVariables"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HostedApplicationBase build() { + HostedApplicationBase model = + new HostedApplicationBase( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.scalingConfig, + this.storageConfigs, + this.networkingConfig, + this.environmentVariables, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HostedApplicationBase model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("scalingConfig")) { + this.scalingConfig(model.getScalingConfig()); + } + if (model.wasPropertyExplicitlySet("storageConfigs")) { + this.storageConfigs(model.getStorageConfigs()); + } + if (model.wasPropertyExplicitlySet("networkingConfig")) { + this.networkingConfig(model.getNetworkingConfig()); + } + if (model.wasPropertyExplicitlySet("environmentVariables")) { + this.environmentVariables(model.getEnvironmentVariables()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * An optional description of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * An optional description of the hosted application. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The compartment OCID to create the hosted application in. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The compartment OCID to create the hosted application in. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The date and time the hosted application was created, in the format defined by RFC 3339 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the hosted application was created, in the format defined by RFC 3339 + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the hosted application was updated, in the format defined by RFC 3339 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the hosted application was updated, in the format defined by RFC 3339 + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The current state of the hosted application. + **/ + public enum LifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + 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); + } + throw new IllegalArgumentException("Invalid LifecycleState: " + key); + } + }; + /** + * The current state of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the hosted application. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state of the endpoint in more detail that can provide actionable information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state of the endpoint in more detail that can provide actionable information. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private final ScalingConfig scalingConfig; + + public ScalingConfig getScalingConfig() { + return scalingConfig; + } + + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private final java.util.List storageConfigs; + + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * @return the value + **/ + public java.util.List getStorageConfigs() { + return storageConfigs; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private final NetworkingConfig networkingConfig; + + public NetworkingConfig getNetworkingConfig() { + return networkingConfig; + } + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private final java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + * @return the value + **/ + public java.util.List getEnvironmentVariables() { + return environmentVariables; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("HostedApplicationBase("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); + sb.append(", storageConfigs=").append(String.valueOf(this.storageConfigs)); + sb.append(", networkingConfig=").append(String.valueOf(this.networkingConfig)); + sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HostedApplicationBase)) { + return false; + } + + HostedApplicationBase other = (HostedApplicationBase) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) + && java.util.Objects.equals(this.storageConfigs, other.storageConfigs) + && java.util.Objects.equals(this.networkingConfig, other.networkingConfig) + && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); + result = + (result * PRIME) + + (this.storageConfigs == null ? 43 : this.storageConfigs.hashCode()); + result = + (result * PRIME) + + (this.networkingConfig == null ? 43 : this.networkingConfig.hashCode()); + result = + (result * PRIME) + + (this.environmentVariables == null + ? 43 + : this.environmentVariables.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java new file mode 100644 index 00000000000..46fc396cd97 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java @@ -0,0 +1,798 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.model; + +/** + * Hosted Application IAM, defines shared configurations that apply across multiple deployments of the Agent or MCP application. + *

+ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator who gives OCI resource access to users. See + * [Getting Started with Policies](https://docs.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm) and [Getting Access to Generative AI Resources](https://docs.oracle.com/iaas/Content/generative-ai/iam-policies.htm). + * + *
+ * 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: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = HostedApplicationIam.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class HostedApplicationIam extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "compartmentId", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "scalingConfig", + "storageConfigs", + "networkingConfig", + "environmentVariables", + "freeformTags", + "definedTags", + "systemTags" + }) + public HostedApplicationIam( + String id, + String displayName, + String description, + String compartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + ScalingConfig scalingConfig, + java.util.List storageConfigs, + NetworkingConfig networkingConfig, + java.util.List environmentVariables, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.scalingConfig = scalingConfig; + this.storageConfigs = storageConfigs; + this.networkingConfig = networkingConfig; + this.environmentVariables = environmentVariables; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * An optional description of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * An optional description of the hosted application. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The compartment OCID to create the hosted application in. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The compartment OCID to create the hosted application in. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The date and time the hosted application was created, in the format defined by RFC 3339 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the hosted application was created, in the format defined by RFC 3339 + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time the hosted application was updated, in the format defined by RFC 3339 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the hosted application was updated, in the format defined by RFC 3339 + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The current state of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the hosted application. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state of the endpoint in more detail that can provide actionable information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state of the endpoint in more detail that can provide actionable information. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private ScalingConfig scalingConfig; + + public Builder scalingConfig(ScalingConfig scalingConfig) { + this.scalingConfig = scalingConfig; + this.__explicitlySet__.add("scalingConfig"); + return this; + } + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private java.util.List storageConfigs; + + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * @param storageConfigs the value to set + * @return this builder + **/ + public Builder storageConfigs(java.util.List storageConfigs) { + this.storageConfigs = storageConfigs; + this.__explicitlySet__.add("storageConfigs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private NetworkingConfig networkingConfig; + + public Builder networkingConfig(NetworkingConfig networkingConfig) { + this.networkingConfig = networkingConfig; + this.__explicitlySet__.add("networkingConfig"); + return this; + } + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + * @param environmentVariables the value to set + * @return this builder + **/ + public Builder environmentVariables( + java.util.List environmentVariables) { + this.environmentVariables = environmentVariables; + this.__explicitlySet__.add("environmentVariables"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HostedApplicationIam build() { + HostedApplicationIam model = + new HostedApplicationIam( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.scalingConfig, + this.storageConfigs, + this.networkingConfig, + this.environmentVariables, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HostedApplicationIam model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("scalingConfig")) { + this.scalingConfig(model.getScalingConfig()); + } + if (model.wasPropertyExplicitlySet("storageConfigs")) { + this.storageConfigs(model.getStorageConfigs()); + } + if (model.wasPropertyExplicitlySet("networkingConfig")) { + this.networkingConfig(model.getNetworkingConfig()); + } + if (model.wasPropertyExplicitlySet("environmentVariables")) { + this.environmentVariables(model.getEnvironmentVariables()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * An optional description of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * An optional description of the hosted application. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The compartment OCID to create the hosted application in. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The compartment OCID to create the hosted application in. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The date and time the hosted application was created, in the format defined by RFC 3339 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the hosted application was created, in the format defined by RFC 3339 + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the hosted application was updated, in the format defined by RFC 3339 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the hosted application was updated, in the format defined by RFC 3339 + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The current state of the hosted application. + **/ + public enum LifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + 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 hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the hosted application. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state of the endpoint in more detail that can provide actionable information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state of the endpoint in more detail that can provide actionable information. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private final ScalingConfig scalingConfig; + + public ScalingConfig getScalingConfig() { + return scalingConfig; + } + + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") + private final java.util.List storageConfigs; + + /** + * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * @return the value + **/ + public java.util.List getStorageConfigs() { + return storageConfigs; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkingConfig") + private final NetworkingConfig networkingConfig; + + public NetworkingConfig getNetworkingConfig() { + return networkingConfig; + } + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private final java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + * @return the value + **/ + public java.util.List getEnvironmentVariables() { + return environmentVariables; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("HostedApplicationIam("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); + sb.append(", storageConfigs=").append(String.valueOf(this.storageConfigs)); + sb.append(", networkingConfig=").append(String.valueOf(this.networkingConfig)); + sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HostedApplicationIam)) { + return false; + } + + HostedApplicationIam other = (HostedApplicationIam) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) + && java.util.Objects.equals(this.storageConfigs, other.storageConfigs) + && java.util.Objects.equals(this.networkingConfig, other.networkingConfig) + && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); + result = + (result * PRIME) + + (this.storageConfigs == null ? 43 : this.storageConfigs.hashCode()); + result = + (result * PRIME) + + (this.networkingConfig == null ? 43 : this.networkingConfig.hashCode()); + result = + (result * PRIME) + + (this.environmentVariables == null + ? 43 + : this.environmentVariables.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationSummary.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationSummary.java index 995f481874c..0e4ef7e183b 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationSummary.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationSummary.java @@ -41,7 +41,7 @@ public HostedApplicationSummary( String compartmentId, java.util.Date timeCreated, java.util.Date timeUpdated, - HostedApplication.LifecycleState lifecycleState, + HostedApplicationBase.LifecycleState lifecycleState, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -158,34 +158,16 @@ public Builder timeUpdated(java.util.Date timeUpdated) { } /** * The current state of the hosted application. - *

- * Allowed values are: - * - CREATING - * - ACTIVE - * - UPDATING - * - DELETING - * - DELETED - * - FAILED - * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private HostedApplication.LifecycleState lifecycleState; + private HostedApplicationBase.LifecycleState lifecycleState; /** * The current state of the hosted application. - *

- * Allowed values are: - * - CREATING - * - ACTIVE - * - UPDATING - * - DELETING - * - DELETED - * - FAILED - * * @param lifecycleState the value to set * @return this builder **/ - public Builder lifecycleState(HostedApplication.LifecycleState lifecycleState) { + public Builder lifecycleState(HostedApplicationBase.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; this.__explicitlySet__.add("lifecycleState"); return this; @@ -417,33 +399,15 @@ public java.util.Date getTimeUpdated() { /** * The current state of the hosted application. - *

- * Allowed values are: - * - CREATING - * - ACTIVE - * - UPDATING - * - DELETING - * - DELETED - * - FAILED - * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final HostedApplication.LifecycleState lifecycleState; + private final HostedApplicationBase.LifecycleState lifecycleState; /** * The current state of the hosted application. - *

- * Allowed values are: - * - CREATING - * - ACTIVE - * - UPDATING - * - DELETING - * - DELETED - * - FAILED - * * @return the value **/ - public HostedApplication.LifecycleState getLifecycleState() { + public HostedApplicationBase.LifecycleState getLifecycleState() { return lifecycleState; } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeployment.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeployment.java index 354d9792007..da119d38065 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeployment.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeployment.java @@ -164,13 +164,13 @@ public Builder lifecycleState(LifecycleState lifecycleState) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. **/ @com.fasterxml.jackson.annotation.JsonProperty("hostedApplicationId") private String hostedApplicationId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. * @param hostedApplicationId the value to set * @return this builder **/ @@ -428,6 +428,7 @@ public java.util.Date getTimeUpdated() { **/ public enum LifecycleState { Creating("CREATING"), + NeedsAttention("NEEDS_ATTENTION"), Active("ACTIVE"), Inactive("INACTIVE"), Updating("UPDATING"), @@ -491,13 +492,13 @@ public LifecycleState getLifecycleState() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. **/ @com.fasterxml.jackson.annotation.JsonProperty("hostedApplicationId") private final String hostedApplicationId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. * @return the value **/ public String getHostedApplicationId() { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeploymentSummary.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeploymentSummary.java index 210b9cb04f7..a826e5356aa 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeploymentSummary.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedDeploymentSummary.java @@ -143,13 +143,13 @@ public Builder lifecycleState(HostedDeployment.LifecycleState lifecycleState) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. **/ @com.fasterxml.jackson.annotation.JsonProperty("hostedApplicationId") private String hostedApplicationId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. * @param hostedApplicationId the value to set * @return this builder **/ @@ -399,13 +399,13 @@ public HostedDeployment.LifecycleState getLifecycleState() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. **/ @com.fasterxml.jackson.annotation.JsonProperty("hostedApplicationId") private final String hostedApplicationId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. * @return the value **/ public String getHostedApplicationId() { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SchemaItem.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SchemaItem.java index 40f326a2de6..beb3cb0420f 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SchemaItem.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SchemaItem.java @@ -27,10 +27,17 @@ public SchemaItem(String name) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - + /** + * Specifies the name. + **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; + /** + * Specifies the name. + * @param name the value to set + * @return this builder + **/ public Builder name(String name) { this.name = name; this.__explicitlySet__.add("name"); @@ -68,9 +75,16 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** + * Specifies the name. + **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; + /** + * Specifies the name. + * @return the value + **/ public String getName() { return name; } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SingleDockerArtifact.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SingleDockerArtifact.java index d4c2bc6da28..2ebcc731402 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SingleDockerArtifact.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SingleDockerArtifact.java @@ -54,6 +54,15 @@ public Builder hostedDeploymentId(String hostedDeploymentId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isVulnerabilityScanRequired") + private Boolean isVulnerabilityScanRequired; + + public Builder isVulnerabilityScanRequired(Boolean isVulnerabilityScanRequired) { + this.isVulnerabilityScanRequired = isVulnerabilityScanRequired; + this.__explicitlySet__.add("isVulnerabilityScanRequired"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("status") private Status status; @@ -104,6 +113,7 @@ public SingleDockerArtifact build() { this.id, this.timeCreated, this.hostedDeploymentId, + this.isVulnerabilityScanRequired, this.status, this.containerUri, this.tag); @@ -124,6 +134,9 @@ public Builder copy(SingleDockerArtifact model) { if (model.wasPropertyExplicitlySet("hostedDeploymentId")) { this.hostedDeploymentId(model.getHostedDeploymentId()); } + if (model.wasPropertyExplicitlySet("isVulnerabilityScanRequired")) { + this.isVulnerabilityScanRequired(model.getIsVulnerabilityScanRequired()); + } if (model.wasPropertyExplicitlySet("status")) { this.status(model.getStatus()); } @@ -153,10 +166,11 @@ public SingleDockerArtifact( String id, java.util.Date timeCreated, String hostedDeploymentId, + Boolean isVulnerabilityScanRequired, Status status, String containerUri, String tag) { - super(id, timeCreated, hostedDeploymentId, status); + super(id, timeCreated, hostedDeploymentId, isVulnerabilityScanRequired, status); this.containerUri = containerUri; this.tag = tag; } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationBaseDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationBaseDetails.java new file mode 100644 index 00000000000..f3e44c2f88e --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationBaseDetails.java @@ -0,0 +1,375 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.model; + +/** + * Common update properties shared by HostedApplication and HostedApplicationIam. + *
+ * 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: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateHostedApplicationBaseDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateHostedApplicationBaseDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "scalingConfig", + "environmentVariables", + "freeformTags", + "definedTags" + }) + public UpdateHostedApplicationBaseDetails( + String displayName, + String description, + ScalingConfig scalingConfig, + java.util.List environmentVariables, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.scalingConfig = scalingConfig; + this.environmentVariables = environmentVariables; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * An optional description of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * An optional description of the hosted application. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private ScalingConfig scalingConfig; + + public Builder scalingConfig(ScalingConfig scalingConfig) { + this.scalingConfig = scalingConfig; + this.__explicitlySet__.add("scalingConfig"); + return this; + } + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + * @param environmentVariables the value to set + * @return this builder + **/ + public Builder environmentVariables( + java.util.List environmentVariables) { + this.environmentVariables = environmentVariables; + this.__explicitlySet__.add("environmentVariables"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + 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 UpdateHostedApplicationBaseDetails build() { + UpdateHostedApplicationBaseDetails model = + new UpdateHostedApplicationBaseDetails( + this.displayName, + this.description, + this.scalingConfig, + this.environmentVariables, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateHostedApplicationBaseDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scalingConfig")) { + this.scalingConfig(model.getScalingConfig()); + } + if (model.wasPropertyExplicitlySet("environmentVariables")) { + this.environmentVariables(model.getEnvironmentVariables()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * An optional description of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * An optional description of the hosted application. + * @return the value + **/ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private final ScalingConfig scalingConfig; + + public ScalingConfig getScalingConfig() { + return scalingConfig; + } + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private final java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + * @return the value + **/ + public java.util.List getEnvironmentVariables() { + return environmentVariables; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateHostedApplicationBaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); + sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateHostedApplicationBaseDetails)) { + return false; + } + + UpdateHostedApplicationBaseDetails other = (UpdateHostedApplicationBaseDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) + && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); + result = + (result * PRIME) + + (this.environmentVariables == null + ? 43 + : this.environmentVariables.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationDetails.java index 3b89d6f7f11..e91af7fbc8c 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationDetails.java @@ -23,27 +23,27 @@ public final class UpdateHostedApplicationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "inboundAuthConfig", "displayName", "description", "scalingConfig", - "inboundAuthConfig", "environmentVariables", "freeformTags", "definedTags" }) public UpdateHostedApplicationDetails( + InboundAuthConfig inboundAuthConfig, String displayName, String description, ScalingConfig scalingConfig, - InboundAuthConfig inboundAuthConfig, java.util.List environmentVariables, java.util.Map freeformTags, java.util.Map> definedTags) { super(); + this.inboundAuthConfig = inboundAuthConfig; this.displayName = displayName; this.description = description; this.scalingConfig = scalingConfig; - this.inboundAuthConfig = inboundAuthConfig; this.environmentVariables = environmentVariables; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -51,6 +51,15 @@ public UpdateHostedApplicationDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") + private InboundAuthConfig inboundAuthConfig; + + public Builder inboundAuthConfig(InboundAuthConfig inboundAuthConfig) { + this.inboundAuthConfig = inboundAuthConfig; + this.__explicitlySet__.add("inboundAuthConfig"); + return this; + } /** * A user-friendly name. Does not have to be unique, and it's changeable. **/ @@ -92,15 +101,6 @@ public Builder scalingConfig(ScalingConfig scalingConfig) { this.__explicitlySet__.add("scalingConfig"); return this; } - - @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") - private InboundAuthConfig inboundAuthConfig; - - public Builder inboundAuthConfig(InboundAuthConfig inboundAuthConfig) { - this.inboundAuthConfig = inboundAuthConfig; - this.__explicitlySet__.add("inboundAuthConfig"); - return this; - } /** * The list of environment variables for the Hosted Application. * Defines a list of environment variables injected at runtime. @@ -178,10 +178,10 @@ public Builder definedTags( public UpdateHostedApplicationDetails build() { UpdateHostedApplicationDetails model = new UpdateHostedApplicationDetails( + this.inboundAuthConfig, this.displayName, this.description, this.scalingConfig, - this.inboundAuthConfig, this.environmentVariables, this.freeformTags, this.definedTags); @@ -193,6 +193,9 @@ public UpdateHostedApplicationDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(UpdateHostedApplicationDetails model) { + if (model.wasPropertyExplicitlySet("inboundAuthConfig")) { + this.inboundAuthConfig(model.getInboundAuthConfig()); + } if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } @@ -202,9 +205,6 @@ public Builder copy(UpdateHostedApplicationDetails model) { if (model.wasPropertyExplicitlySet("scalingConfig")) { this.scalingConfig(model.getScalingConfig()); } - if (model.wasPropertyExplicitlySet("inboundAuthConfig")) { - this.inboundAuthConfig(model.getInboundAuthConfig()); - } if (model.wasPropertyExplicitlySet("environmentVariables")) { this.environmentVariables(model.getEnvironmentVariables()); } @@ -229,6 +229,13 @@ public Builder toBuilder() { return new Builder().copy(this); } + @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") + private final InboundAuthConfig inboundAuthConfig; + + public InboundAuthConfig getInboundAuthConfig() { + return inboundAuthConfig; + } + /** * A user-friendly name. Does not have to be unique, and it's changeable. **/ @@ -264,13 +271,6 @@ public ScalingConfig getScalingConfig() { return scalingConfig; } - @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfig") - private final InboundAuthConfig inboundAuthConfig; - - public InboundAuthConfig getInboundAuthConfig() { - return inboundAuthConfig; - } - /** * The list of environment variables for the Hosted Application. * Defines a list of environment variables injected at runtime. @@ -347,10 +347,10 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateHostedApplicationDetails("); sb.append("super=").append(super.toString()); - sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append("inboundAuthConfig=").append(String.valueOf(this.inboundAuthConfig)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); - sb.append(", inboundAuthConfig=").append(String.valueOf(this.inboundAuthConfig)); sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -368,10 +368,10 @@ public boolean equals(Object o) { } UpdateHostedApplicationDetails other = (UpdateHostedApplicationDetails) o; - return java.util.Objects.equals(this.displayName, other.displayName) + return java.util.Objects.equals(this.inboundAuthConfig, other.inboundAuthConfig) + && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) - && java.util.Objects.equals(this.inboundAuthConfig, other.inboundAuthConfig) && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -382,14 +382,14 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.inboundAuthConfig == null ? 43 : this.inboundAuthConfig.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); - result = - (result * PRIME) - + (this.inboundAuthConfig == null ? 43 : this.inboundAuthConfig.hashCode()); result = (result * PRIME) + (this.environmentVariables == null diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationIamDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationIamDetails.java new file mode 100644 index 00000000000..937ab8b0909 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateHostedApplicationIamDetails.java @@ -0,0 +1,375 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.model; + +/** + * The data to update a hosted application. + *
+ * 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: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateHostedApplicationIamDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateHostedApplicationIamDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "scalingConfig", + "environmentVariables", + "freeformTags", + "definedTags" + }) + public UpdateHostedApplicationIamDetails( + String displayName, + String description, + ScalingConfig scalingConfig, + java.util.List environmentVariables, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.scalingConfig = scalingConfig; + this.environmentVariables = environmentVariables; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * An optional description of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * An optional description of the hosted application. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private ScalingConfig scalingConfig; + + public Builder scalingConfig(ScalingConfig scalingConfig) { + this.scalingConfig = scalingConfig; + this.__explicitlySet__.add("scalingConfig"); + return this; + } + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + * @param environmentVariables the value to set + * @return this builder + **/ + public Builder environmentVariables( + java.util.List environmentVariables) { + this.environmentVariables = environmentVariables; + this.__explicitlySet__.add("environmentVariables"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + 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 UpdateHostedApplicationIamDetails build() { + UpdateHostedApplicationIamDetails model = + new UpdateHostedApplicationIamDetails( + this.displayName, + this.description, + this.scalingConfig, + this.environmentVariables, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateHostedApplicationIamDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scalingConfig")) { + this.scalingConfig(model.getScalingConfig()); + } + if (model.wasPropertyExplicitlySet("environmentVariables")) { + this.environmentVariables(model.getEnvironmentVariables()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * An optional description of the hosted application. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * An optional description of the hosted application. + * @return the value + **/ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scalingConfig") + private final ScalingConfig scalingConfig; + + public ScalingConfig getScalingConfig() { + return scalingConfig; + } + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("environmentVariables") + private final java.util.List environmentVariables; + + /** + * The list of environment variables for the Hosted Application. + * Defines a list of environment variables injected at runtime. + * + * @return the value + **/ + public java.util.List getEnvironmentVariables() { + return environmentVariables; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateHostedApplicationIamDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scalingConfig=").append(String.valueOf(this.scalingConfig)); + sb.append(", environmentVariables=").append(String.valueOf(this.environmentVariables)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateHostedApplicationIamDetails)) { + return false; + } + + UpdateHostedApplicationIamDetails other = (UpdateHostedApplicationIamDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scalingConfig, other.scalingConfig) + && java.util.Objects.equals(this.environmentVariables, other.environmentVariables) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.scalingConfig == null ? 43 : this.scalingConfig.hashCode()); + result = + (result * PRIME) + + (this.environmentVariables == null + ? 43 + : this.environmentVariables.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ChangeHostedApplicationIamCompartmentRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ChangeHostedApplicationIamCompartmentRequest.java new file mode 100644 index 00000000000..77ae4698467 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ChangeHostedApplicationIamCompartmentRequest.java @@ -0,0 +1,393 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use ChangeHostedApplicationIamCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ChangeHostedApplicationIamCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + private String hostedApplicationIamId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + public String getHostedApplicationIamId() { + return hostedApplicationIamId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails + changeHostedApplicationCompartmentDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails + getChangeHostedApplicationCompartmentDetails() { + return changeHostedApplicationCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails getBody$() { + return changeHostedApplicationCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeHostedApplicationIamCompartmentRequest, + com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + private String hostedApplicationIamId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + * @param hostedApplicationIamId the value to set + * @return this builder instance + */ + public Builder hostedApplicationIamId(String hostedApplicationIamId) { + this.hostedApplicationIamId = hostedApplicationIamId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails + changeHostedApplicationCompartmentDetails = null; + + /** + * The information to be updated. + * @param changeHostedApplicationCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeHostedApplicationCompartmentDetails( + com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails + changeHostedApplicationCompartmentDetails) { + this.changeHostedApplicationCompartmentDetails = + changeHostedApplicationCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(ChangeHostedApplicationIamCompartmentRequest o) { + hostedApplicationIamId(o.getHostedApplicationIamId()); + changeHostedApplicationCompartmentDetails( + o.getChangeHostedApplicationCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeHostedApplicationIamCompartmentRequest 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 ChangeHostedApplicationIamCompartmentRequest + */ + public ChangeHostedApplicationIamCompartmentRequest build() { + ChangeHostedApplicationIamCompartmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.generativeai.model.ChangeHostedApplicationCompartmentDetails body) { + changeHostedApplicationCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeHostedApplicationIamCompartmentRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ChangeHostedApplicationIamCompartmentRequest + */ + public ChangeHostedApplicationIamCompartmentRequest buildWithoutInvocationCallback() { + ChangeHostedApplicationIamCompartmentRequest request = + new ChangeHostedApplicationIamCompartmentRequest(); + request.hostedApplicationIamId = hostedApplicationIamId; + request.changeHostedApplicationCompartmentDetails = + changeHostedApplicationCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeHostedApplicationIamCompartmentRequest(hostedApplicationIamId, changeHostedApplicationCompartmentDetails, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .hostedApplicationIamId(hostedApplicationIamId) + .changeHostedApplicationCompartmentDetails( + changeHostedApplicationCompartmentDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",hostedApplicationIamId=").append(String.valueOf(this.hostedApplicationIamId)); + sb.append(",changeHostedApplicationCompartmentDetails=") + .append(String.valueOf(this.changeHostedApplicationCompartmentDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeHostedApplicationIamCompartmentRequest)) { + return false; + } + + ChangeHostedApplicationIamCompartmentRequest other = + (ChangeHostedApplicationIamCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.hostedApplicationIamId, other.hostedApplicationIamId) + && java.util.Objects.equals( + this.changeHostedApplicationCompartmentDetails, + other.changeHostedApplicationCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.hostedApplicationIamId == null + ? 43 + : this.hostedApplicationIamId.hashCode()); + result = + (result * PRIME) + + (this.changeHostedApplicationCompartmentDetails == null + ? 43 + : this.changeHostedApplicationCompartmentDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateHostedApplicationIamRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateHostedApplicationIamRequest.java new file mode 100644 index 00000000000..1030687640c --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateHostedApplicationIamRequest.java @@ -0,0 +1,302 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use CreateHostedApplicationIamRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class CreateHostedApplicationIamRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails> { + + /** + * Details for the new hosted application. + */ + private com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails + createHostedApplicationIamDetails; + + /** + * Details for the new hosted application. + */ + public com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails + getCreateHostedApplicationIamDetails() { + return createHostedApplicationIamDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails getBody$() { + return createHostedApplicationIamDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateHostedApplicationIamRequest, + com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for the new hosted application. + */ + private com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails + createHostedApplicationIamDetails = null; + + /** + * Details for the new hosted application. + * @param createHostedApplicationIamDetails the value to set + * @return this builder instance + */ + public Builder createHostedApplicationIamDetails( + com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails + createHostedApplicationIamDetails) { + this.createHostedApplicationIamDetails = createHostedApplicationIamDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateHostedApplicationIamRequest o) { + createHostedApplicationIamDetails(o.getCreateHostedApplicationIamDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateHostedApplicationIamRequest 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 CreateHostedApplicationIamRequest + */ + public CreateHostedApplicationIamRequest build() { + CreateHostedApplicationIamRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.generativeai.model.CreateHostedApplicationIamDetails body) { + createHostedApplicationIamDetails(body); + return this; + } + + /** + * Build the instance of CreateHostedApplicationIamRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateHostedApplicationIamRequest + */ + public CreateHostedApplicationIamRequest buildWithoutInvocationCallback() { + CreateHostedApplicationIamRequest request = new CreateHostedApplicationIamRequest(); + request.createHostedApplicationIamDetails = createHostedApplicationIamDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateHostedApplicationIamRequest(createHostedApplicationIamDetails, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createHostedApplicationIamDetails(createHostedApplicationIamDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createHostedApplicationIamDetails=") + .append(String.valueOf(this.createHostedApplicationIamDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateHostedApplicationIamRequest)) { + return false; + } + + CreateHostedApplicationIamRequest other = (CreateHostedApplicationIamRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createHostedApplicationIamDetails, + other.createHostedApplicationIamDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createHostedApplicationIamDetails == null + ? 43 + : this.createHostedApplicationIamDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/DeleteHostedApplicationIamRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/DeleteHostedApplicationIamRequest.java new file mode 100644 index 00000000000..b12e30f4ba2 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/DeleteHostedApplicationIamRequest.java @@ -0,0 +1,265 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use DeleteHostedApplicationIamRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class DeleteHostedApplicationIamRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + private String hostedApplicationIamId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + public String getHostedApplicationIamId() { + return hostedApplicationIamId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteHostedApplicationIamRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + private String hostedApplicationIamId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + * @param hostedApplicationIamId the value to set + * @return this builder instance + */ + public Builder hostedApplicationIamId(String hostedApplicationIamId) { + this.hostedApplicationIamId = hostedApplicationIamId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteHostedApplicationIamRequest o) { + hostedApplicationIamId(o.getHostedApplicationIamId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteHostedApplicationIamRequest 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 DeleteHostedApplicationIamRequest + */ + public DeleteHostedApplicationIamRequest build() { + DeleteHostedApplicationIamRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteHostedApplicationIamRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteHostedApplicationIamRequest + */ + public DeleteHostedApplicationIamRequest buildWithoutInvocationCallback() { + DeleteHostedApplicationIamRequest request = new DeleteHostedApplicationIamRequest(); + request.hostedApplicationIamId = hostedApplicationIamId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteHostedApplicationIamRequest(hostedApplicationIamId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .hostedApplicationIamId(hostedApplicationIamId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",hostedApplicationIamId=").append(String.valueOf(this.hostedApplicationIamId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteHostedApplicationIamRequest)) { + return false; + } + + DeleteHostedApplicationIamRequest other = (DeleteHostedApplicationIamRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.hostedApplicationIamId, other.hostedApplicationIamId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.hostedApplicationIamId == null + ? 43 + : this.hostedApplicationIamId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/GetHostedApplicationIamRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/GetHostedApplicationIamRequest.java new file mode 100644 index 00000000000..c893b855f9e --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/GetHostedApplicationIamRequest.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use GetHostedApplicationIamRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class GetHostedApplicationIamRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + private String hostedApplicationIamId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + public String getHostedApplicationIamId() { + return hostedApplicationIamId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetHostedApplicationIamRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + private String hostedApplicationIamId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + * @param hostedApplicationIamId the value to set + * @return this builder instance + */ + public Builder hostedApplicationIamId(String hostedApplicationIamId) { + this.hostedApplicationIamId = hostedApplicationIamId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetHostedApplicationIamRequest o) { + hostedApplicationIamId(o.getHostedApplicationIamId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetHostedApplicationIamRequest 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 GetHostedApplicationIamRequest + */ + public GetHostedApplicationIamRequest build() { + GetHostedApplicationIamRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetHostedApplicationIamRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetHostedApplicationIamRequest + */ + public GetHostedApplicationIamRequest buildWithoutInvocationCallback() { + GetHostedApplicationIamRequest request = new GetHostedApplicationIamRequest(); + request.hostedApplicationIamId = hostedApplicationIamId; + request.opcRequestId = opcRequestId; + return request; + // new GetHostedApplicationIamRequest(hostedApplicationIamId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .hostedApplicationIamId(hostedApplicationIamId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",hostedApplicationIamId=").append(String.valueOf(this.hostedApplicationIamId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetHostedApplicationIamRequest)) { + return false; + } + + GetHostedApplicationIamRequest other = (GetHostedApplicationIamRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.hostedApplicationIamId, other.hostedApplicationIamId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.hostedApplicationIamId == null + ? 43 + : this.hostedApplicationIamId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsIamRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsIamRequest.java new file mode 100644 index 00000000000..3aa8ce89b64 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsIamRequest.java @@ -0,0 +1,515 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use ListHostedApplicationsIamRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ListHostedApplicationsIamRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state. + */ + private com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState lifecycleState; + + /** + * A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state. + */ + public com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only resources that match the given display name exactly. + */ + private String displayName; + + /** + * A filter to return only resources that match the given display name exactly. + */ + public String getDisplayName() { + return displayName; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + public String getId() { + return id; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.generativeai.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + public com.oracle.bmc.generativeai.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + LifecycleState("lifecycleState"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListHostedApplicationsIamRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state. + */ + private com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState + lifecycleState = null; + + /** + * A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return only resources that match the given display name exactly. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the given display name exactly. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + private String id = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.generativeai.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.generativeai.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListHostedApplicationsIamRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + id(o.getId()); + 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 ListHostedApplicationsIamRequest 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 ListHostedApplicationsIamRequest + */ + public ListHostedApplicationsIamRequest build() { + ListHostedApplicationsIamRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListHostedApplicationsIamRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListHostedApplicationsIamRequest + */ + public ListHostedApplicationsIamRequest buildWithoutInvocationCallback() { + ListHostedApplicationsIamRequest request = new ListHostedApplicationsIamRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.id = id; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListHostedApplicationsIamRequest(compartmentId, lifecycleState, displayName, id, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .id(id) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListHostedApplicationsIamRequest)) { + return false; + } + + ListHostedApplicationsIamRequest other = (ListHostedApplicationsIamRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsRequest.java index 0335057c777..34ca47928c0 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsRequest.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedApplicationsRequest.java @@ -26,12 +26,13 @@ public String getCompartmentId() { /** * A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state. */ - private com.oracle.bmc.generativeai.model.HostedApplication.LifecycleState lifecycleState; + private com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState lifecycleState; /** * A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state. */ - public com.oracle.bmc.generativeai.model.HostedApplication.LifecycleState getLifecycleState() { + public com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState + getLifecycleState() { return lifecycleState; } /** @@ -200,8 +201,8 @@ public Builder compartmentId(String compartmentId) { /** * A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state. */ - private com.oracle.bmc.generativeai.model.HostedApplication.LifecycleState lifecycleState = - null; + private com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState + lifecycleState = null; /** * A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state. @@ -209,7 +210,8 @@ public Builder compartmentId(String compartmentId) { * @return this builder instance */ public Builder lifecycleState( - com.oracle.bmc.generativeai.model.HostedApplication.LifecycleState lifecycleState) { + com.oracle.bmc.generativeai.model.HostedApplicationBase.LifecycleState + lifecycleState) { this.lifecycleState = lifecycleState; return this; } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedDeploymentsRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedDeploymentsRequest.java index 863f2c34644..bddf4d9a97c 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedDeploymentsRequest.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListHostedDeploymentsRequest.java @@ -24,12 +24,12 @@ public String getCompartmentId() { return compartmentId; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. */ private String applicationId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. */ public String getApplicationId() { return applicationId; @@ -209,12 +209,12 @@ public Builder compartmentId(String compartmentId) { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. */ private String applicationId = null; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HostedApplication parent. * @param applicationId the value to set * @return this builder instance */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateHostedApplicationIamRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateHostedApplicationIamRequest.java new file mode 100644 index 00000000000..abcbf7004b8 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateHostedApplicationIamRequest.java @@ -0,0 +1,333 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use UpdateHostedApplicationIamRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class UpdateHostedApplicationIamRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + private String hostedApplicationIamId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + public String getHostedApplicationIamId() { + return hostedApplicationIamId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails + updateHostedApplicationIamDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails + getUpdateHostedApplicationIamDetails() { + return updateHostedApplicationIamDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails getBody$() { + return updateHostedApplicationIamDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateHostedApplicationIamRequest, + com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + */ + private String hostedApplicationIamId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hosted application. + * @param hostedApplicationIamId the value to set + * @return this builder instance + */ + public Builder hostedApplicationIamId(String hostedApplicationIamId) { + this.hostedApplicationIamId = hostedApplicationIamId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails + updateHostedApplicationIamDetails = null; + + /** + * The information to be updated. + * @param updateHostedApplicationIamDetails the value to set + * @return this builder instance + */ + public Builder updateHostedApplicationIamDetails( + com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails + updateHostedApplicationIamDetails) { + this.updateHostedApplicationIamDetails = updateHostedApplicationIamDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateHostedApplicationIamRequest o) { + hostedApplicationIamId(o.getHostedApplicationIamId()); + updateHostedApplicationIamDetails(o.getUpdateHostedApplicationIamDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateHostedApplicationIamRequest 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 UpdateHostedApplicationIamRequest + */ + public UpdateHostedApplicationIamRequest build() { + UpdateHostedApplicationIamRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.generativeai.model.UpdateHostedApplicationIamDetails body) { + updateHostedApplicationIamDetails(body); + return this; + } + + /** + * Build the instance of UpdateHostedApplicationIamRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateHostedApplicationIamRequest + */ + public UpdateHostedApplicationIamRequest buildWithoutInvocationCallback() { + UpdateHostedApplicationIamRequest request = new UpdateHostedApplicationIamRequest(); + request.hostedApplicationIamId = hostedApplicationIamId; + request.updateHostedApplicationIamDetails = updateHostedApplicationIamDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateHostedApplicationIamRequest(hostedApplicationIamId, updateHostedApplicationIamDetails, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .hostedApplicationIamId(hostedApplicationIamId) + .updateHostedApplicationIamDetails(updateHostedApplicationIamDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",hostedApplicationIamId=").append(String.valueOf(this.hostedApplicationIamId)); + sb.append(",updateHostedApplicationIamDetails=") + .append(String.valueOf(this.updateHostedApplicationIamDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateHostedApplicationIamRequest)) { + return false; + } + + UpdateHostedApplicationIamRequest other = (UpdateHostedApplicationIamRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.hostedApplicationIamId, other.hostedApplicationIamId) + && java.util.Objects.equals( + this.updateHostedApplicationIamDetails, + other.updateHostedApplicationIamDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.hostedApplicationIamId == null + ? 43 + : this.hostedApplicationIamId.hashCode()); + result = + (result * PRIME) + + (this.updateHostedApplicationIamDetails == null + ? 43 + : this.updateHostedApplicationIamDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeHostedApplicationIamCompartmentResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeHostedApplicationIamCompartmentResponse.java new file mode 100644 index 00000000000..d04031d0324 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeHostedApplicationIamCompartmentResponse.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ChangeHostedApplicationIamCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private ChangeHostedApplicationIamCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeHostedApplicationIamCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeHostedApplicationIamCompartmentResponse build() { + return new ChangeHostedApplicationIamCompartmentResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeHostedApplicationIamCompartmentResponse)) { + return false; + } + + ChangeHostedApplicationIamCompartmentResponse other = + (ChangeHostedApplicationIamCompartmentResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/CreateHostedApplicationIamResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/CreateHostedApplicationIamResponse.java new file mode 100644 index 00000000000..8394943e52b --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/CreateHostedApplicationIamResponse.java @@ -0,0 +1,265 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class CreateHostedApplicationIamResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned HostedApplicationIam instance. + */ + private com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam; + + /** + * The returned HostedApplicationIam instance. + * @return the value + */ + public com.oracle.bmc.generativeai.model.HostedApplicationIam getHostedApplicationIam() { + return hostedApplicationIam; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcWorkRequestId", + "opcRequestId", + "hostedApplicationIam" + }) + private CreateHostedApplicationIamResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.hostedApplicationIam = hostedApplicationIam; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned HostedApplicationIam instance. + */ + private com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam; + + /** + * The returned HostedApplicationIam instance. + * @param hostedApplicationIam the value to set + * @return this builder + */ + public Builder hostedApplicationIam( + com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam) { + this.hostedApplicationIam = hostedApplicationIam; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateHostedApplicationIamResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + hostedApplicationIam(o.getHostedApplicationIam()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateHostedApplicationIamResponse build() { + return new CreateHostedApplicationIamResponse( + __httpStatusCode__, + headers, + etag, + opcWorkRequestId, + opcRequestId, + hostedApplicationIam); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",hostedApplicationIam=").append(String.valueOf(hostedApplicationIam)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateHostedApplicationIamResponse)) { + return false; + } + + CreateHostedApplicationIamResponse other = (CreateHostedApplicationIamResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.hostedApplicationIam, other.hostedApplicationIam); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.hostedApplicationIam == null + ? 43 + : this.hostedApplicationIam.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/DeleteHostedApplicationIamResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/DeleteHostedApplicationIamResponse.java new file mode 100644 index 00000000000..c9d230c39a5 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/DeleteHostedApplicationIamResponse.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class DeleteHostedApplicationIamResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteHostedApplicationIamResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteHostedApplicationIamResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteHostedApplicationIamResponse build() { + return new DeleteHostedApplicationIamResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteHostedApplicationIamResponse)) { + return false; + } + + DeleteHostedApplicationIamResponse other = (DeleteHostedApplicationIamResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/GetHostedApplicationIamResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/GetHostedApplicationIamResponse.java new file mode 100644 index 00000000000..7499c3a34f4 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/GetHostedApplicationIamResponse.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class GetHostedApplicationIamResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned HostedApplicationIam instance. + */ + private com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam; + + /** + * The returned HostedApplicationIam instance. + * @return the value + */ + public com.oracle.bmc.generativeai.model.HostedApplicationIam getHostedApplicationIam() { + return hostedApplicationIam; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "hostedApplicationIam" + }) + private GetHostedApplicationIamResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.hostedApplicationIam = hostedApplicationIam; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned HostedApplicationIam instance. + */ + private com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam; + + /** + * The returned HostedApplicationIam instance. + * @param hostedApplicationIam the value to set + * @return this builder + */ + public Builder hostedApplicationIam( + com.oracle.bmc.generativeai.model.HostedApplicationIam hostedApplicationIam) { + this.hostedApplicationIam = hostedApplicationIam; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetHostedApplicationIamResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + hostedApplicationIam(o.getHostedApplicationIam()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetHostedApplicationIamResponse build() { + return new GetHostedApplicationIamResponse( + __httpStatusCode__, headers, etag, opcRequestId, hostedApplicationIam); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",hostedApplicationIam=").append(String.valueOf(hostedApplicationIam)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetHostedApplicationIamResponse)) { + return false; + } + + GetHostedApplicationIamResponse other = (GetHostedApplicationIamResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.hostedApplicationIam, other.hostedApplicationIam); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.hostedApplicationIam == null + ? 43 + : this.hostedApplicationIam.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListHostedApplicationsIamResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListHostedApplicationsIamResponse.java new file mode 100644 index 00000000000..58af7e53a63 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListHostedApplicationsIamResponse.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ListHostedApplicationsIamResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned HostedApplicationCollection instance. + */ + private com.oracle.bmc.generativeai.model.HostedApplicationCollection + hostedApplicationCollection; + + /** + * The returned HostedApplicationCollection instance. + * @return the value + */ + public com.oracle.bmc.generativeai.model.HostedApplicationCollection + getHostedApplicationCollection() { + return hostedApplicationCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "hostedApplicationCollection" + }) + private ListHostedApplicationsIamResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.generativeai.model.HostedApplicationCollection + hostedApplicationCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.hostedApplicationCollection = hostedApplicationCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned HostedApplicationCollection instance. + */ + private com.oracle.bmc.generativeai.model.HostedApplicationCollection + hostedApplicationCollection; + + /** + * The returned HostedApplicationCollection instance. + * @param hostedApplicationCollection the value to set + * @return this builder + */ + public Builder hostedApplicationCollection( + com.oracle.bmc.generativeai.model.HostedApplicationCollection + hostedApplicationCollection) { + this.hostedApplicationCollection = hostedApplicationCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListHostedApplicationsIamResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + hostedApplicationCollection(o.getHostedApplicationCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListHostedApplicationsIamResponse build() { + return new ListHostedApplicationsIamResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + hostedApplicationCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",hostedApplicationCollection=") + .append(String.valueOf(hostedApplicationCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListHostedApplicationsIamResponse)) { + return false; + } + + ListHostedApplicationsIamResponse other = (ListHostedApplicationsIamResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.hostedApplicationCollection, other.hostedApplicationCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.hostedApplicationCollection == null + ? 43 + : this.hostedApplicationCollection.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateHostedApplicationIamResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateHostedApplicationIamResponse.java new file mode 100644 index 00000000000..36ac883f4a5 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateHostedApplicationIamResponse.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class UpdateHostedApplicationIamResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateHostedApplicationIamResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateHostedApplicationIamResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateHostedApplicationIamResponse build() { + return new UpdateHostedApplicationIamResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateHostedApplicationIamResponse)) { + return false; + } + + UpdateHostedApplicationIamResponse other = (UpdateHostedApplicationIamResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index 6be2392dd97..075ee6fabee 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index e9f107b721a..be2a21cc98f 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-generativeaidata/pom.xml b/bmc-generativeaidata/pom.xml index 4a9cbac2672..4908d1e6690 100644 --- a/bmc-generativeaidata/pom.xml +++ b/bmc-generativeaidata/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-generativeaidata @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index ac182cec338..6f2dcc6f5e7 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index b5b89bdb036..44d7a7f8a9a 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index 37d8d45d2c0..716ed3bfffd 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-goldengate @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGate.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGate.java index ff3f2af10ec..71c78955a3f 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGate.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGate.java @@ -698,6 +698,34 @@ GetDisasterRecoveryPrecheckReportResponse getDisasterRecoveryPrecheckReport( */ ImportDeploymentWalletResponse importDeploymentWallet(ImportDeploymentWalletRequest request); + /** + * Returns the list of AI models for the specified provider. If the + * provider requires additional context to resolve its supported models, + * that context must be supplied in the request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListAiModels API. + */ + ListAiModelsResponse listAiModels(ListAiModelsRequest request); + + /** + * Returns the list of AI providers along with their supported models. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListAiProviders API. + */ + ListAiProvidersResponse listAiProviders(ListAiProvidersRequest request); + /** * Returns a list of certificates from truststore. * @param request The request object containing the details to send diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsync.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsync.java index ab6222e99ca..3a878d0131f 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsync.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsync.java @@ -868,6 +868,40 @@ java.util.concurrent.Future importDeploymentWall ImportDeploymentWalletRequest, ImportDeploymentWalletResponse> handler); + /** + * Returns the list of AI models for the specified provider. If the + * provider requires additional context to resolve its supported models, + * that context must be supplied in the request. + * + * + * @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 listAiModels( + ListAiModelsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns the list of AI providers along with their supported models. + * + * + * @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 listAiProviders( + ListAiProvidersRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Returns a list of certificates from truststore. * diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsyncClient.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsyncClient.java index c8e8190969b..ca656e87146 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsyncClient.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsyncClient.java @@ -2901,6 +2901,96 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listAiModels( + ListAiModelsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listAiModels"); + final ListAiModelsRequest interceptedRequest = + ListAiModelsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAiModelsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "ListAiModels", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/AiModelCollection/ListAiModels"); + final java.util.function.Function + transformer = + ListAiModelsConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAiModelsRequest, ListAiModelsResponse>, + 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< + ListAiModelsRequest, ListAiModelsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listAiProviders( + ListAiProvidersRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAiProvidersRequest, ListAiProvidersResponse> + handler) { + LOG.trace("Called async listAiProviders"); + final ListAiProvidersRequest interceptedRequest = + ListAiProvidersConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAiProvidersConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "ListAiProviders", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/AiProviderCollection/ListAiProviders"); + final java.util.function.Function + transformer = + ListAiProvidersConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAiProvidersRequest, ListAiProvidersResponse>, + 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< + ListAiProvidersRequest, ListAiProvidersResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listCertificates( ListCertificatesRequest request, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateClient.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateClient.java index a8011d1695d..474cd1876cb 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateClient.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateClient.java @@ -2481,6 +2481,78 @@ public ImportDeploymentWalletResponse importDeploymentWallet( }); } + @Override + public ListAiModelsResponse listAiModels(ListAiModelsRequest request) { + LOG.trace("Called listAiModels"); + final ListAiModelsRequest interceptedRequest = + ListAiModelsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAiModelsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "ListAiModels", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/AiModelCollection/ListAiModels"); + java.util.function.Function transformer = + ListAiModelsConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListAiProvidersResponse listAiProviders(ListAiProvidersRequest request) { + LOG.trace("Called listAiProviders"); + final ListAiProvidersRequest interceptedRequest = + ListAiProvidersConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAiProvidersConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "ListAiProviders", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/AiProviderCollection/ListAiProviders"); + java.util.function.Function + transformer = + ListAiProvidersConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListCertificatesResponse listCertificates(ListCertificatesRequest request) { LOG.trace("Called listCertificates"); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ListAiModelsConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ListAiModelsConverter.java new file mode 100644 index 00000000000..4029bb21824 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ListAiModelsConverter.java @@ -0,0 +1,159 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.goldengate.model.*; +import com.oracle.bmc.goldengate.requests.*; +import com.oracle.bmc.goldengate.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListAiModelsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListAiModelsConverter.class); + + public static com.oracle.bmc.goldengate.requests.ListAiModelsRequest interceptRequest( + com.oracle.bmc.goldengate.requests.ListAiModelsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.goldengate.requests.ListAiModelsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + Validate.notNull(request.getProviderType(), "providerType is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20200407").path("aiModels"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + target = + target.queryParam( + "providerType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getProviderType().getValue())); + + if (request.getRegion() != null) { + target = + target.queryParam( + "region", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getRegion())); + } + + if (request.getTenancyId() != null) { + target = + target.queryParam( + "tenancyId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTenancyId())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.ListAiModelsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.ListAiModelsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.ListAiModelsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.ListAiModelsResponse>() { + @Override + public com.oracle.bmc.goldengate.responses.ListAiModelsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.goldengate.responses.ListAiModelsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model + .AiModelCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model + .AiModelCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model + .AiModelCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model.AiModelCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.goldengate.responses.ListAiModelsResponse.Builder + builder = + com.oracle.bmc.goldengate.responses + .ListAiModelsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.aiModelCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.goldengate.responses.ListAiModelsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ListAiProvidersConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ListAiProvidersConverter.java new file mode 100644 index 00000000000..174314a1364 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ListAiProvidersConverter.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.goldengate.model.*; +import com.oracle.bmc.goldengate.requests.*; +import com.oracle.bmc.goldengate.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListAiProvidersConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListAiProvidersConverter.class); + + public static com.oracle.bmc.goldengate.requests.ListAiProvidersRequest interceptRequest( + com.oracle.bmc.goldengate.requests.ListAiProvidersRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.goldengate.requests.ListAiProvidersRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20200407").path("aiProviders"); + + 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.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.ListAiProvidersResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.ListAiProvidersResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.ListAiProvidersResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.ListAiProvidersResponse>() { + @Override + public com.oracle.bmc.goldengate.responses.ListAiProvidersResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.goldengate.responses.ListAiProvidersResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model + .AiProviderCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model + .AiProviderCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model + .AiProviderCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model + .AiProviderCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.goldengate.responses.ListAiProvidersResponse.Builder + builder = + com.oracle.bmc.goldengate.responses + .ListAiProvidersResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.aiProviderCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.goldengate.responses.ListAiProvidersResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ListConnectionAssignmentsConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ListConnectionAssignmentsConverter.java index 6ae9698754c..966cd20930d 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ListConnectionAssignmentsConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ListConnectionAssignmentsConverter.java @@ -57,6 +57,24 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getConnectionId())); } + if (request.getConnectionType() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "connectionType", + request.getConnectionType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getConnectionTypeNotEqualTo() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "connectionTypeNotEqualTo", + request.getConnectionTypeNotEqualTo(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + if (request.getName() != null) { target = target.queryParam( diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ListConnectionsConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ListConnectionsConverter.java index fe815c9b562..aee96fbe144 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ListConnectionsConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ListConnectionsConverter.java @@ -58,6 +58,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.CollectionFormatType.Multi); } + if (request.getConnectionTypeNotEqualTo() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "connectionTypeNotEqualTo", + request.getConnectionTypeNotEqualTo(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + if (request.getAssignedDeploymentId() != null) { target = target.queryParam( diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelAuthDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelAuthDetails.java new file mode 100644 index 00000000000..2ba875c008a --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelAuthDetails.java @@ -0,0 +1,81 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Represents authentication details for an AI Model connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "authType", + defaultImpl = AiModelAuthDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OciGenAiModelAuthDetails.class, + name = "OCI_GEN_AI" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ApiKeyAiModelAuthDetails.class, + name = "API_KEY" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class AiModelAuthDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected AiModelAuthDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AiModelAuthDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AiModelAuthDetails)) { + return false; + } + + AiModelAuthDetails other = (AiModelAuthDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelAuthDetailsSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelAuthDetailsSummary.java new file mode 100644 index 00000000000..92a17373485 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelAuthDetailsSummary.java @@ -0,0 +1,81 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Summary of authentication details for an AI Model connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "authType", + defaultImpl = AiModelAuthDetailsSummary.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ApiKeyAiModelAuthDetailsSummary.class, + name = "API_KEY" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OciGenAiModelAuthDetailsSummary.class, + name = "OCI_GEN_AI" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class AiModelAuthDetailsSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected AiModelAuthDetailsSummary() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AiModelAuthDetailsSummary("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AiModelAuthDetailsSummary)) { + return false; + } + + AiModelAuthDetailsSummary other = (AiModelAuthDetailsSummary) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelAuthType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelAuthType.java new file mode 100644 index 00000000000..cb4609257c4 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelAuthType.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Authentication type used by the AI model connection. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum AiModelAuthType { + OciGenAi("OCI_GEN_AI"), + ApiKey("API_KEY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AiModelAuthType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AiModelAuthType v : AiModelAuthType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AiModelAuthType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AiModelAuthType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AiModelAuthType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelCollection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelCollection.java new file mode 100644 index 00000000000..33b21d96769 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelCollection.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Collection of AI models currently known by GoldenGate for the specified provider. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AiModelCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AiModelCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AiModelCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * An array of AI models. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of AI models. + * + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AiModelCollection build() { + AiModelCollection model = new AiModelCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AiModelCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * An array of AI models. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of AI models. + * + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AiModelCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AiModelCollection)) { + return false; + } + + AiModelCollection other = (AiModelCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelConnection.java new file mode 100644 index 00000000000..ad9d2784718 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelConnection.java @@ -0,0 +1,729 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Represents the metadata of an AI Model Connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AiModelConnection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectionType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AiModelConnection extends Connection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + 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("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + 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("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("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + 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("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + 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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ingressIps") + private java.util.List ingressIps; + + public Builder ingressIps(java.util.List ingressIps) { + this.ingressIps = ingressIps; + this.__explicitlySet__.add("ingressIps"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + private RoutingMethod routingMethod; + + public Builder routingMethod(RoutingMethod routingMethod) { + this.routingMethod = routingMethod; + this.__explicitlySet__.add("routingMethod"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + private Boolean doesUseSecretIds; + + public Builder doesUseSecretIds(Boolean doesUseSecretIds) { + this.doesUseSecretIds = doesUseSecretIds; + this.__explicitlySet__.add("doesUseSecretIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private String subscriptionId; + + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + this.__explicitlySet__.add("subscriptionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + private String clusterPlacementGroupId; + + public Builder clusterPlacementGroupId(String clusterPlacementGroupId) { + this.clusterPlacementGroupId = clusterPlacementGroupId; + this.__explicitlySet__.add("clusterPlacementGroupId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } + /** + * The AI Model technology type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private TechnologyType technologyType; + + /** + * The AI Model technology type. + * @param technologyType the value to set + * @return this builder + **/ + public Builder technologyType(TechnologyType technologyType) { + this.technologyType = technologyType; + this.__explicitlySet__.add("technologyType"); + return this; + } + /** + * AI Provider type used by the AI Model Connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerType") + private ProviderType providerType; + + /** + * AI Provider type used by the AI Model Connection. + * + * @param providerType the value to set + * @return this builder + **/ + public Builder providerType(ProviderType providerType) { + this.providerType = providerType; + this.__explicitlySet__.add("providerType"); + return this; + } + /** + * AI model identifier. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelKey") + private String modelKey; + + /** + * AI model identifier. + * + * @param modelKey the value to set + * @return this builder + **/ + public Builder modelKey(String modelKey) { + this.modelKey = modelKey; + this.__explicitlySet__.add("modelKey"); + return this; + } + /** + * Maximum number of input characters supported by this AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxInputChars") + private Integer maxInputChars; + + /** + * Maximum number of input characters supported by this AI model connection. + * + * @param maxInputChars the value to set + * @return this builder + **/ + public Builder maxInputChars(Integer maxInputChars) { + this.maxInputChars = maxInputChars; + this.__explicitlySet__.add("maxInputChars"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("authDetails") + private AiModelAuthDetails authDetails; + + public Builder authDetails(AiModelAuthDetails authDetails) { + this.authDetails = authDetails; + this.__explicitlySet__.add("authDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AiModelConnection build() { + AiModelConnection model = + new AiModelConnection( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.freeformTags, + this.definedTags, + this.systemTags, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.locks, + this.vaultId, + this.keyId, + this.ingressIps, + this.nsgIds, + this.subnetId, + this.routingMethod, + this.doesUseSecretIds, + this.subscriptionId, + this.clusterPlacementGroupId, + this.securityAttributes, + this.technologyType, + this.providerType, + this.modelKey, + this.maxInputChars, + this.authDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AiModelConnection model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("ingressIps")) { + this.ingressIps(model.getIngressIps()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("routingMethod")) { + this.routingMethod(model.getRoutingMethod()); + } + if (model.wasPropertyExplicitlySet("doesUseSecretIds")) { + this.doesUseSecretIds(model.getDoesUseSecretIds()); + } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } + if (model.wasPropertyExplicitlySet("clusterPlacementGroupId")) { + this.clusterPlacementGroupId(model.getClusterPlacementGroupId()); + } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } + if (model.wasPropertyExplicitlySet("technologyType")) { + this.technologyType(model.getTechnologyType()); + } + if (model.wasPropertyExplicitlySet("providerType")) { + this.providerType(model.getProviderType()); + } + if (model.wasPropertyExplicitlySet("modelKey")) { + this.modelKey(model.getModelKey()); + } + if (model.wasPropertyExplicitlySet("maxInputChars")) { + this.maxInputChars(model.getMaxInputChars()); + } + if (model.wasPropertyExplicitlySet("authDetails")) { + this.authDetails(model.getAuthDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AiModelConnection( + String id, + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.List locks, + String vaultId, + String keyId, + java.util.List ingressIps, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + TechnologyType technologyType, + ProviderType providerType, + String modelKey, + Integer maxInputChars, + AiModelAuthDetails authDetails) { + super( + id, + displayName, + description, + compartmentId, + freeformTags, + definedTags, + systemTags, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + locks, + vaultId, + keyId, + ingressIps, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.providerType = providerType; + this.modelKey = modelKey; + this.maxInputChars = maxInputChars; + this.authDetails = authDetails; + } + + /** + * The AI Model technology type. + **/ + public enum TechnologyType { + AiModel("AI_MODEL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(TechnologyType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TechnologyType v : TechnologyType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TechnologyType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TechnologyType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TechnologyType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The AI Model technology type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private final TechnologyType technologyType; + + /** + * The AI Model technology type. + * @return the value + **/ + public TechnologyType getTechnologyType() { + return technologyType; + } + + /** + * AI Provider type used by the AI Model Connection. + * + **/ + public enum ProviderType { + OciGenerativeAi("OCI_GENERATIVE_AI"), + Gemini("GEMINI"), + OpenAi("OPEN_AI"), + VoyageAi("VOYAGE_AI"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ProviderType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ProviderType v : ProviderType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ProviderType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ProviderType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ProviderType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * AI Provider type used by the AI Model Connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerType") + private final ProviderType providerType; + + /** + * AI Provider type used by the AI Model Connection. + * + * @return the value + **/ + public ProviderType getProviderType() { + return providerType; + } + + /** + * AI model identifier. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelKey") + private final String modelKey; + + /** + * AI model identifier. + * + * @return the value + **/ + public String getModelKey() { + return modelKey; + } + + /** + * Maximum number of input characters supported by this AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxInputChars") + private final Integer maxInputChars; + + /** + * Maximum number of input characters supported by this AI model connection. + * + * @return the value + **/ + public Integer getMaxInputChars() { + return maxInputChars; + } + + @com.fasterxml.jackson.annotation.JsonProperty("authDetails") + private final AiModelAuthDetails authDetails; + + public AiModelAuthDetails getAuthDetails() { + return authDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AiModelConnection("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", providerType=").append(String.valueOf(this.providerType)); + sb.append(", modelKey=").append(String.valueOf(this.modelKey)); + sb.append(", maxInputChars=").append(String.valueOf(this.maxInputChars)); + sb.append(", authDetails=").append(String.valueOf(this.authDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AiModelConnection)) { + return false; + } + + AiModelConnection other = (AiModelConnection) o; + return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.providerType, other.providerType) + && java.util.Objects.equals(this.modelKey, other.modelKey) + && java.util.Objects.equals(this.maxInputChars, other.maxInputChars) + && java.util.Objects.equals(this.authDetails, other.authDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = (result * PRIME) + (this.providerType == null ? 43 : this.providerType.hashCode()); + result = (result * PRIME) + (this.modelKey == null ? 43 : this.modelKey.hashCode()); + result = + (result * PRIME) + + (this.maxInputChars == null ? 43 : this.maxInputChars.hashCode()); + result = (result * PRIME) + (this.authDetails == null ? 43 : this.authDetails.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelConnectionSummary.java new file mode 100644 index 00000000000..0c55bd7f918 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelConnectionSummary.java @@ -0,0 +1,686 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Summary of the AI Model Connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AiModelConnectionSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectionType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AiModelConnectionSummary extends ConnectionSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + 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("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + 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("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("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Connection.LifecycleState lifecycleState; + + public Builder lifecycleState(Connection.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + 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("vaultId") + private String vaultId; + + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ingressIps") + private java.util.List ingressIps; + + public Builder ingressIps(java.util.List ingressIps) { + this.ingressIps = ingressIps; + this.__explicitlySet__.add("ingressIps"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + private RoutingMethod routingMethod; + + public Builder routingMethod(RoutingMethod routingMethod) { + this.routingMethod = routingMethod; + this.__explicitlySet__.add("routingMethod"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + private Boolean doesUseSecretIds; + + public Builder doesUseSecretIds(Boolean doesUseSecretIds) { + this.doesUseSecretIds = doesUseSecretIds; + this.__explicitlySet__.add("doesUseSecretIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private String subscriptionId; + + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + this.__explicitlySet__.add("subscriptionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + private String clusterPlacementGroupId; + + public Builder clusterPlacementGroupId(String clusterPlacementGroupId) { + this.clusterPlacementGroupId = clusterPlacementGroupId; + this.__explicitlySet__.add("clusterPlacementGroupId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } + /** + * The AI Model technology type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private AiModelConnection.TechnologyType technologyType; + + /** + * The AI Model technology type. + * + * @param technologyType the value to set + * @return this builder + **/ + public Builder technologyType(AiModelConnection.TechnologyType technologyType) { + this.technologyType = technologyType; + this.__explicitlySet__.add("technologyType"); + return this; + } + /** + * AI Provider type used by the AI Model Connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerType") + private ProviderType providerType; + + /** + * AI Provider type used by the AI Model Connection. + * + * @param providerType the value to set + * @return this builder + **/ + public Builder providerType(ProviderType providerType) { + this.providerType = providerType; + this.__explicitlySet__.add("providerType"); + return this; + } + /** + * AI model identifier. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelKey") + private String modelKey; + + /** + * AI model identifier. + * + * @param modelKey the value to set + * @return this builder + **/ + public Builder modelKey(String modelKey) { + this.modelKey = modelKey; + this.__explicitlySet__.add("modelKey"); + return this; + } + /** + * Maximum number of input characters supported by this AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxInputChars") + private Integer maxInputChars; + + /** + * Maximum number of input characters supported by this AI model connection. + * + * @param maxInputChars the value to set + * @return this builder + **/ + public Builder maxInputChars(Integer maxInputChars) { + this.maxInputChars = maxInputChars; + this.__explicitlySet__.add("maxInputChars"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("authDetails") + private AiModelAuthDetailsSummary authDetails; + + public Builder authDetails(AiModelAuthDetailsSummary authDetails) { + this.authDetails = authDetails; + this.__explicitlySet__.add("authDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AiModelConnectionSummary build() { + AiModelConnectionSummary model = + new AiModelConnectionSummary( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.freeformTags, + this.definedTags, + this.systemTags, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.vaultId, + this.keyId, + this.ingressIps, + this.nsgIds, + this.subnetId, + this.routingMethod, + this.locks, + this.doesUseSecretIds, + this.subscriptionId, + this.clusterPlacementGroupId, + this.securityAttributes, + this.technologyType, + this.providerType, + this.modelKey, + this.maxInputChars, + this.authDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AiModelConnectionSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("ingressIps")) { + this.ingressIps(model.getIngressIps()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("routingMethod")) { + this.routingMethod(model.getRoutingMethod()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("doesUseSecretIds")) { + this.doesUseSecretIds(model.getDoesUseSecretIds()); + } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } + if (model.wasPropertyExplicitlySet("clusterPlacementGroupId")) { + this.clusterPlacementGroupId(model.getClusterPlacementGroupId()); + } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } + if (model.wasPropertyExplicitlySet("technologyType")) { + this.technologyType(model.getTechnologyType()); + } + if (model.wasPropertyExplicitlySet("providerType")) { + this.providerType(model.getProviderType()); + } + if (model.wasPropertyExplicitlySet("modelKey")) { + this.modelKey(model.getModelKey()); + } + if (model.wasPropertyExplicitlySet("maxInputChars")) { + this.maxInputChars(model.getMaxInputChars()); + } + if (model.wasPropertyExplicitlySet("authDetails")) { + this.authDetails(model.getAuthDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AiModelConnectionSummary( + String id, + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + Connection.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String vaultId, + String keyId, + java.util.List ingressIps, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + java.util.List locks, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + AiModelConnection.TechnologyType technologyType, + ProviderType providerType, + String modelKey, + Integer maxInputChars, + AiModelAuthDetailsSummary authDetails) { + super( + id, + displayName, + description, + compartmentId, + freeformTags, + definedTags, + systemTags, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + vaultId, + keyId, + ingressIps, + nsgIds, + subnetId, + routingMethod, + locks, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.providerType = providerType; + this.modelKey = modelKey; + this.maxInputChars = maxInputChars; + this.authDetails = authDetails; + } + + /** + * The AI Model technology type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private final AiModelConnection.TechnologyType technologyType; + + /** + * The AI Model technology type. + * + * @return the value + **/ + public AiModelConnection.TechnologyType getTechnologyType() { + return technologyType; + } + + /** + * AI Provider type used by the AI Model Connection. + * + **/ + public enum ProviderType { + OciGenerativeAi("OCI_GENERATIVE_AI"), + Gemini("GEMINI"), + OpenAi("OPEN_AI"), + VoyageAi("VOYAGE_AI"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ProviderType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ProviderType v : ProviderType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ProviderType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ProviderType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ProviderType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * AI Provider type used by the AI Model Connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerType") + private final ProviderType providerType; + + /** + * AI Provider type used by the AI Model Connection. + * + * @return the value + **/ + public ProviderType getProviderType() { + return providerType; + } + + /** + * AI model identifier. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelKey") + private final String modelKey; + + /** + * AI model identifier. + * + * @return the value + **/ + public String getModelKey() { + return modelKey; + } + + /** + * Maximum number of input characters supported by this AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxInputChars") + private final Integer maxInputChars; + + /** + * Maximum number of input characters supported by this AI model connection. + * + * @return the value + **/ + public Integer getMaxInputChars() { + return maxInputChars; + } + + @com.fasterxml.jackson.annotation.JsonProperty("authDetails") + private final AiModelAuthDetailsSummary authDetails; + + public AiModelAuthDetailsSummary getAuthDetails() { + return authDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AiModelConnectionSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", providerType=").append(String.valueOf(this.providerType)); + sb.append(", modelKey=").append(String.valueOf(this.modelKey)); + sb.append(", maxInputChars=").append(String.valueOf(this.maxInputChars)); + sb.append(", authDetails=").append(String.valueOf(this.authDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AiModelConnectionSummary)) { + return false; + } + + AiModelConnectionSummary other = (AiModelConnectionSummary) o; + return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.providerType, other.providerType) + && java.util.Objects.equals(this.modelKey, other.modelKey) + && java.util.Objects.equals(this.maxInputChars, other.maxInputChars) + && java.util.Objects.equals(this.authDetails, other.authDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = (result * PRIME) + (this.providerType == null ? 43 : this.providerType.hashCode()); + result = (result * PRIME) + (this.modelKey == null ? 43 : this.modelKey.hashCode()); + result = + (result * PRIME) + + (this.maxInputChars == null ? 43 : this.maxInputChars.hashCode()); + result = (result * PRIME) + (this.authDetails == null ? 43 : this.authDetails.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelSummary.java new file mode 100644 index 00000000000..f0531d374bc --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiModelSummary.java @@ -0,0 +1,315 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Summary details of an AI model supported by a provider. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AiModelSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AiModelSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"key", "providerType", "displayName", "description"}) + public AiModelSummary( + String key, ProviderType providerType, String displayName, String description) { + super(); + this.key = key; + this.providerType = providerType; + this.displayName = displayName; + this.description = description; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The identifier of the AI model offered by a provider. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * The identifier of the AI model offered by a provider. + * + * @param key the value to set + * @return this builder + **/ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** + * AI Provider type used by the AI Model Connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerType") + private ProviderType providerType; + + /** + * AI Provider type used by the AI Model Connection. + * + * @param providerType the value to set + * @return this builder + **/ + public Builder providerType(ProviderType providerType) { + this.providerType = providerType; + this.__explicitlySet__.add("providerType"); + return this; + } + /** + * An object's Display Name. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * An object's Display Name. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Metadata about this specific object. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Metadata about this specific object. + * + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AiModelSummary build() { + AiModelSummary model = + new AiModelSummary( + this.key, this.providerType, this.displayName, this.description); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AiModelSummary model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("providerType")) { + this.providerType(model.getProviderType()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The identifier of the AI model offered by a provider. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * The identifier of the AI model offered by a provider. + * + * @return the value + **/ + public String getKey() { + return key; + } + + /** + * AI Provider type used by the AI Model Connection. + * + **/ + public enum ProviderType { + OciGenerativeAi("OCI_GENERATIVE_AI"), + Gemini("GEMINI"), + OpenAi("OPEN_AI"), + VoyageAi("VOYAGE_AI"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ProviderType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ProviderType v : ProviderType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ProviderType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ProviderType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ProviderType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * AI Provider type used by the AI Model Connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerType") + private final ProviderType providerType; + + /** + * AI Provider type used by the AI Model Connection. + * + * @return the value + **/ + public ProviderType getProviderType() { + return providerType; + } + + /** + * An object's Display Name. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * An object's Display Name. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Metadata about this specific object. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Metadata about this specific object. + * + * @return the value + **/ + public String getDescription() { + return description; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AiModelSummary("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", providerType=").append(String.valueOf(this.providerType)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AiModelSummary)) { + return false; + } + + AiModelSummary other = (AiModelSummary) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.providerType, other.providerType) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.providerType == null ? 43 : this.providerType.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiProviderCollection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiProviderCollection.java new file mode 100644 index 00000000000..55d98b54514 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiProviderCollection.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Collection of AI providers supported by GoldenGate. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AiProviderCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AiProviderCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AiProviderCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * An array of AI providers. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of AI providers. + * + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AiProviderCollection build() { + AiProviderCollection model = new AiProviderCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AiProviderCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * An array of AI providers. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of AI providers. + * + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AiProviderCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AiProviderCollection)) { + return false; + } + + AiProviderCollection other = (AiProviderCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiProviderSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiProviderSummary.java new file mode 100644 index 00000000000..ec3983ff57d --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AiProviderSummary.java @@ -0,0 +1,430 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Summary details of an AI provider and its supported models. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AiProviderSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AiProviderSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "providerType", + "displayName", + "description", + "authType", + "defaultBaseUrl", + "models" + }) + public AiProviderSummary( + ProviderType providerType, + String displayName, + String description, + java.util.List authType, + String defaultBaseUrl, + java.util.List models) { + super(); + this.providerType = providerType; + this.displayName = displayName; + this.description = description; + this.authType = authType; + this.defaultBaseUrl = defaultBaseUrl; + this.models = models; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * AI Provider type used by the AI Model Connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerType") + private ProviderType providerType; + + /** + * AI Provider type used by the AI Model Connection. + * + * @param providerType the value to set + * @return this builder + **/ + public Builder providerType(ProviderType providerType) { + this.providerType = providerType; + this.__explicitlySet__.add("providerType"); + return this; + } + /** + * An object's Display Name. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * An object's Display Name. + * + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Metadata about this specific object. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Metadata about this specific object. + * + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Authentication types supported by the AI provider. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authType") + private java.util.List authType; + + /** + * Authentication types supported by the AI provider. + * + * @param authType the value to set + * @return this builder + **/ + public Builder authType(java.util.List authType) { + this.authType = authType; + this.__explicitlySet__.add("authType"); + return this; + } + /** + * Default base URL for the AI provider. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultBaseUrl") + private String defaultBaseUrl; + + /** + * Default base URL for the AI provider. + * + * @param defaultBaseUrl the value to set + * @return this builder + **/ + public Builder defaultBaseUrl(String defaultBaseUrl) { + this.defaultBaseUrl = defaultBaseUrl; + this.__explicitlySet__.add("defaultBaseUrl"); + return this; + } + /** + * List of AI models supported by this provider, when available. This + * field is null when the provider's models can be retrieved only after + * supplying additional context. For example, OCI_GENERATIVE_AI model + * availability may vary by region. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("models") + private java.util.List models; + + /** + * List of AI models supported by this provider, when available. This + * field is null when the provider's models can be retrieved only after + * supplying additional context. For example, OCI_GENERATIVE_AI model + * availability may vary by region. + * + * @param models the value to set + * @return this builder + **/ + public Builder models(java.util.List models) { + this.models = models; + this.__explicitlySet__.add("models"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AiProviderSummary build() { + AiProviderSummary model = + new AiProviderSummary( + this.providerType, + this.displayName, + this.description, + this.authType, + this.defaultBaseUrl, + this.models); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AiProviderSummary model) { + if (model.wasPropertyExplicitlySet("providerType")) { + this.providerType(model.getProviderType()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("authType")) { + this.authType(model.getAuthType()); + } + if (model.wasPropertyExplicitlySet("defaultBaseUrl")) { + this.defaultBaseUrl(model.getDefaultBaseUrl()); + } + if (model.wasPropertyExplicitlySet("models")) { + this.models(model.getModels()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * AI Provider type used by the AI Model Connection. + * + **/ + public enum ProviderType { + OciGenerativeAi("OCI_GENERATIVE_AI"), + Gemini("GEMINI"), + OpenAi("OPEN_AI"), + VoyageAi("VOYAGE_AI"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ProviderType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ProviderType v : ProviderType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ProviderType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ProviderType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ProviderType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * AI Provider type used by the AI Model Connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerType") + private final ProviderType providerType; + + /** + * AI Provider type used by the AI Model Connection. + * + * @return the value + **/ + public ProviderType getProviderType() { + return providerType; + } + + /** + * An object's Display Name. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * An object's Display Name. + * + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Metadata about this specific object. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Metadata about this specific object. + * + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Authentication types supported by the AI provider. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authType") + private final java.util.List authType; + + /** + * Authentication types supported by the AI provider. + * + * @return the value + **/ + public java.util.List getAuthType() { + return authType; + } + + /** + * Default base URL for the AI provider. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultBaseUrl") + private final String defaultBaseUrl; + + /** + * Default base URL for the AI provider. + * + * @return the value + **/ + public String getDefaultBaseUrl() { + return defaultBaseUrl; + } + + /** + * List of AI models supported by this provider, when available. This + * field is null when the provider's models can be retrieved only after + * supplying additional context. For example, OCI_GENERATIVE_AI model + * availability may vary by region. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("models") + private final java.util.List models; + + /** + * List of AI models supported by this provider, when available. This + * field is null when the provider's models can be retrieved only after + * supplying additional context. For example, OCI_GENERATIVE_AI model + * availability may vary by region. + * + * @return the value + **/ + public java.util.List getModels() { + return models; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AiProviderSummary("); + sb.append("super=").append(super.toString()); + sb.append("providerType=").append(String.valueOf(this.providerType)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", authType=").append(String.valueOf(this.authType)); + sb.append(", defaultBaseUrl=").append(String.valueOf(this.defaultBaseUrl)); + sb.append(", models=").append(String.valueOf(this.models)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AiProviderSummary)) { + return false; + } + + AiProviderSummary other = (AiProviderSummary) o; + return java.util.Objects.equals(this.providerType, other.providerType) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.authType, other.authType) + && java.util.Objects.equals(this.defaultBaseUrl, other.defaultBaseUrl) + && java.util.Objects.equals(this.models, other.models) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.providerType == null ? 43 : this.providerType.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.authType == null ? 43 : this.authType.hashCode()); + result = + (result * PRIME) + + (this.defaultBaseUrl == null ? 43 : this.defaultBaseUrl.hashCode()); + result = (result * PRIME) + (this.models == null ? 43 : this.models.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnection.java index bd4bf2ecbba..5715316f9bb 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnection.java @@ -245,6 +245,7 @@ public Builder technologyType(TechnologyType technologyType) { } /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -252,6 +253,7 @@ public Builder technologyType(TechnologyType technologyType) { /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @param accessKeyId the value to set * @return this builder @@ -585,6 +587,7 @@ public TechnologyType getTechnologyType() { /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -592,6 +595,7 @@ public TechnologyType getTechnologyType() { /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnectionSummary.java index 26b93f7b220..21617b8f7c7 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnectionSummary.java @@ -245,6 +245,7 @@ public Builder technologyType(AmazonKinesisConnection.TechnologyType technologyT } /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -252,6 +253,7 @@ public Builder technologyType(AmazonKinesisConnection.TechnologyType technologyT /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @param accessKeyId the value to set * @return this builder @@ -538,6 +540,7 @@ public AmazonKinesisConnection.TechnologyType getTechnologyType() { /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -545,6 +548,7 @@ public AmazonKinesisConnection.TechnologyType getTechnologyType() { /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3Connection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3Connection.java index 2b55b866f27..33bf4c6684c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3Connection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3Connection.java @@ -245,7 +245,7 @@ public Builder technologyType(TechnologyType technologyType) { } /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -253,7 +253,7 @@ public Builder technologyType(TechnologyType technologyType) { /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @param accessKeyId the value to set * @return this builder @@ -587,7 +587,7 @@ public TechnologyType getTechnologyType() { /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -595,7 +595,7 @@ public TechnologyType getTechnologyType() { /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3ConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3ConnectionSummary.java index 6311d649e60..0f11ece8413 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3ConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3ConnectionSummary.java @@ -245,7 +245,7 @@ public Builder technologyType(AmazonS3Connection.TechnologyType technologyType) } /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -253,7 +253,7 @@ public Builder technologyType(AmazonS3Connection.TechnologyType technologyType) /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @param accessKeyId the value to set * @return this builder @@ -540,7 +540,7 @@ public AmazonS3Connection.TechnologyType getTechnologyType() { /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -548,7 +548,7 @@ public AmazonS3Connection.TechnologyType getTechnologyType() { /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3IcebergStorage.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3IcebergStorage.java index e2dc660cca8..7b914716462 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3IcebergStorage.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3IcebergStorage.java @@ -66,6 +66,7 @@ public Builder endpoint(String endpoint) { } /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -73,6 +74,7 @@ public Builder endpoint(String endpoint) { /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @param accessKeyId the value to set * @return this builder @@ -289,6 +291,7 @@ public String getEndpoint() { /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -296,6 +299,7 @@ public String getEndpoint() { /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3IcebergStorageSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3IcebergStorageSummary.java index 4dfc829c75e..e1259d8a84f 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3IcebergStorageSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3IcebergStorageSummary.java @@ -68,6 +68,7 @@ public Builder endpoint(String endpoint) { } /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -75,6 +76,7 @@ public Builder endpoint(String endpoint) { /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @param accessKeyId the value to set * @return this builder @@ -245,6 +247,7 @@ public String getEndpoint() { /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -252,6 +255,7 @@ public String getEndpoint() { /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ApiKeyAiModelAuthDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ApiKeyAiModelAuthDetails.java new file mode 100644 index 00000000000..a92ef1c53dc --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ApiKeyAiModelAuthDetails.java @@ -0,0 +1,276 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * API key authentication details for an AI Model connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ApiKeyAiModelAuthDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "authType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ApiKeyAiModelAuthDetails extends AiModelAuthDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseUrl") + private String baseUrl; + + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + * @param baseUrl the value to set + * @return this builder + **/ + public Builder baseUrl(String baseUrl) { + this.baseUrl = baseUrl; + this.__explicitlySet__.add("baseUrl"); + return this; + } + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + private char[] apiKey; + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @param apiKey the value to set + * @return this builder + **/ + public Builder apiKey(char[] apiKey) { + this.apiKey = apiKey; + this.__explicitlySet__.add("apiKey"); + return this; + } + + public Builder apiKey(String apiKey) { + this.apiKey = apiKey != null ? apiKey.toCharArray() : null; + this.__explicitlySet__.add("apiKey"); + return this; + } + + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @param apiKeySecretId the value to set + * @return this builder + **/ + public Builder apiKeySecretId(String apiKeySecretId) { + this.apiKeySecretId = apiKeySecretId; + this.__explicitlySet__.add("apiKeySecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ApiKeyAiModelAuthDetails build() { + ApiKeyAiModelAuthDetails model = + new ApiKeyAiModelAuthDetails(this.baseUrl, this.apiKey, this.apiKeySecretId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ApiKeyAiModelAuthDetails model) { + if (model.wasPropertyExplicitlySet("baseUrl")) { + this.baseUrl(model.getBaseUrl()); + } + if (model.wasPropertyExplicitlySet("apiKey")) { + this.apiKey(model.getApiKey()); + } + if (model.wasPropertyExplicitlySet("apiKeySecretId")) { + this.apiKeySecretId(model.getApiKeySecretId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ApiKeyAiModelAuthDetails(String baseUrl, String apiKey, String apiKeySecretId) { + super(); + this.baseUrl = baseUrl; + this.apiKey = apiKey != null ? apiKey.toCharArray() : null; + this.apiKeySecretId = apiKeySecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ApiKeyAiModelAuthDetails(String baseUrl, char[] apiKey, String apiKeySecretId) { + super(); + this.baseUrl = baseUrl; + this.apiKey = apiKey; + this.apiKeySecretId = apiKeySecretId; + } + + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseUrl") + private final String baseUrl; + + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + * @return the value + **/ + public String getBaseUrl() { + return baseUrl; + } + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + private final char[] apiKey; + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getApiKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getApiKey() { + return apiKey != null ? new String(apiKey) : null; + } + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + public char[] getApiKey__AsCharArray() { + return apiKey; + } + + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private final String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @return the value + **/ + public String getApiKeySecretId() { + return apiKeySecretId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ApiKeyAiModelAuthDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", baseUrl=").append(String.valueOf(this.baseUrl)); + sb.append(", apiKey=").append(""); + sb.append(", apiKeySecretId=").append(String.valueOf(this.apiKeySecretId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ApiKeyAiModelAuthDetails)) { + return false; + } + + ApiKeyAiModelAuthDetails other = (ApiKeyAiModelAuthDetails) o; + return java.util.Objects.equals(this.baseUrl, other.baseUrl) + && java.util.Objects.equals(this.apiKey, other.apiKey) + && java.util.Objects.equals(this.apiKeySecretId, other.apiKeySecretId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.baseUrl == null ? 43 : this.baseUrl.hashCode()); + result = (result * PRIME) + (this.apiKey == null ? 43 : this.apiKey.hashCode()); + result = + (result * PRIME) + + (this.apiKeySecretId == null ? 43 : this.apiKeySecretId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ApiKeyAiModelAuthDetailsSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ApiKeyAiModelAuthDetailsSummary.java new file mode 100644 index 00000000000..03c9bc0a9f5 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ApiKeyAiModelAuthDetailsSummary.java @@ -0,0 +1,191 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Summary of API key authentication details for an AI Model connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ApiKeyAiModelAuthDetailsSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "authType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ApiKeyAiModelAuthDetailsSummary extends AiModelAuthDetailsSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseUrl") + private String baseUrl; + + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + * @param baseUrl the value to set + * @return this builder + **/ + public Builder baseUrl(String baseUrl) { + this.baseUrl = baseUrl; + this.__explicitlySet__.add("baseUrl"); + return this; + } + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @param apiKeySecretId the value to set + * @return this builder + **/ + public Builder apiKeySecretId(String apiKeySecretId) { + this.apiKeySecretId = apiKeySecretId; + this.__explicitlySet__.add("apiKeySecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ApiKeyAiModelAuthDetailsSummary build() { + ApiKeyAiModelAuthDetailsSummary model = + new ApiKeyAiModelAuthDetailsSummary(this.baseUrl, this.apiKeySecretId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ApiKeyAiModelAuthDetailsSummary model) { + if (model.wasPropertyExplicitlySet("baseUrl")) { + this.baseUrl(model.getBaseUrl()); + } + if (model.wasPropertyExplicitlySet("apiKeySecretId")) { + this.apiKeySecretId(model.getApiKeySecretId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ApiKeyAiModelAuthDetailsSummary(String baseUrl, String apiKeySecretId) { + super(); + this.baseUrl = baseUrl; + this.apiKeySecretId = apiKeySecretId; + } + + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseUrl") + private final String baseUrl; + + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + * @return the value + **/ + public String getBaseUrl() { + return baseUrl; + } + + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private final String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @return the value + **/ + public String getApiKeySecretId() { + return apiKeySecretId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ApiKeyAiModelAuthDetailsSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", baseUrl=").append(String.valueOf(this.baseUrl)); + sb.append(", apiKeySecretId=").append(String.valueOf(this.apiKeySecretId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ApiKeyAiModelAuthDetailsSummary)) { + return false; + } + + ApiKeyAiModelAuthDetailsSummary other = (ApiKeyAiModelAuthDetailsSummary) o; + return java.util.Objects.equals(this.baseUrl, other.baseUrl) + && java.util.Objects.equals(this.apiKeySecretId, other.apiKeySecretId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.baseUrl == null ? 43 : this.baseUrl.hashCode()); + result = + (result * PRIME) + + (this.apiKeySecretId == null ? 43 : this.apiKeySecretId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Connection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Connection.java index ab9d54caa84..9876ed96d79 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Connection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Connection.java @@ -40,6 +40,10 @@ value = AmazonRedshiftConnection.class, name = "AMAZON_REDSHIFT" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AiModelConnection.class, + name = "AI_MODEL" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = AmazonS3Connection.class, name = "AMAZON_S3" @@ -355,6 +359,7 @@ public enum LifecycleState { Deleting("DELETING"), Deleted("DELETED"), Failed("FAILED"), + NeedsAttention("NEEDS_ATTENTION"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -482,18 +487,30 @@ public java.util.List getLocks() { } /** - * Refers to the customer's vault OCID. - * If provided, it references a vault where GoldenGate can manage secrets. Customers must add policies to permit GoldenGate - * to manage secrets contained within this vault. + * References the OCI Vault that contains the customer-managed encryption key identified by {@code keyId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. + * If {@code vaultId} is provided, {@code keyId} must also be provided. * **/ @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private final String vaultId; /** - * Refers to the customer's vault OCID. - * If provided, it references a vault where GoldenGate can manage secrets. Customers must add policies to permit GoldenGate - * to manage secrets contained within this vault. + * References the OCI Vault that contains the customer-managed encryption key identified by {@code keyId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. + * If {@code vaultId} is provided, {@code keyId} must also be provided. * * @return the value **/ @@ -502,16 +519,34 @@ public String getVaultId() { } /** - * Refers to the customer's master key OCID. - * If provided, it references a key to manage secrets. Customers must add policies to permit GoldenGate to use this key. + * References the OCI Vault key in the OCI Vault identified by {@code vaultId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * The GoldenGate service uses this key to encrypt sensitive information (for example, {@code password}) that is provided in plain-text connection attributes through the API. + * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. If both {@code vaultId} and {@code keyId} are provided, + * the GoldenGate service uses the specified customer-managed key to encrypt the sensitive data. + * If neither {@code vaultId} nor {@code keyId} is provided, the GoldenGate service uses Oracle-managed encryption keys. * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyId") private final String keyId; /** - * Refers to the customer's master key OCID. - * If provided, it references a key to manage secrets. Customers must add policies to permit GoldenGate to use this key. + * References the OCI Vault key in the OCI Vault identified by {@code vaultId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * The GoldenGate service uses this key to encrypt sensitive information (for example, {@code password}) that is provided in plain-text connection attributes through the API. + * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. If both {@code vaultId} and {@code keyId} are provided, + * the GoldenGate service uses the specified customer-managed key to encrypt the sensitive data. + * If neither {@code vaultId} nor {@code keyId} is provided, the GoldenGate service uses Oracle-managed encryption keys. * * @return the value **/ @@ -571,9 +606,13 @@ public String getSubnetId() { /** * Controls the network traffic direction to the target: - * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. * SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. * DEDICATED_ENDPOINT: A dedicated private endpoint is created in the target VCN subnet for the connection. The subnetId is required when DEDICATED_ENDPOINT networking is selected. + * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. + *

+ * Deprecated: SHARED_SERVICE_ENDPOINT is deprecated. Use another supported routingMethod value, or update existing connections to use a supported routing method. + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") @@ -581,9 +620,13 @@ public String getSubnetId() { /** * Controls the network traffic direction to the target: - * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. * SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. * DEDICATED_ENDPOINT: A dedicated private endpoint is created in the target VCN subnet for the connection. The subnetId is required when DEDICATED_ENDPOINT networking is selected. + * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. + *

+ * Deprecated: SHARED_SERVICE_ENDPOINT is deprecated. Use another supported routingMethod value, or update existing connections to use a supported routing method. + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -593,6 +636,21 @@ public RoutingMethod getRoutingMethod() { /** * Indicates that sensitive attributes are provided via Secrets. + *

+ * Deprecated: This field is deprecated. Sensitive attributes should be provided using the corresponding Secret OCID + * attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text attributes. This change follows + * the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * When set to {@code true}, all sensitive information must be provided as OCI Vault secrets using the corresponding + * {@code *SecretId} attributes of the connection (for example, {@code passwordSecretId}). Plain-text sensitive attributes (for example, {@code password}) must not be used. + * This ensures that sensitive information remains stored and managed in the customer's OCI Vault rather than by the GoldenGate service. + *

+ * When set to false, sensitive information must be provided in the corresponding plain-text attributes (for example, {@code password}) rather than in secret OCID attributes. + * In this mode, the sensitive information is stored by the GoldenGate service. If {@code vaultId} and {@code keyId} are not specified, + * the GoldenGate service uses Oracle-managed encryption keys to encrypt the stored data. + *

+ * If {@code vaultId} and {@code keyId} are provided, the specified customer-managed key is used. * **/ @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") @@ -600,6 +658,21 @@ public RoutingMethod getRoutingMethod() { /** * Indicates that sensitive attributes are provided via Secrets. + *

+ * Deprecated: This field is deprecated. Sensitive attributes should be provided using the corresponding Secret OCID + * attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text attributes. This change follows + * the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * When set to {@code true}, all sensitive information must be provided as OCI Vault secrets using the corresponding + * {@code *SecretId} attributes of the connection (for example, {@code passwordSecretId}). Plain-text sensitive attributes (for example, {@code password}) must not be used. + * This ensures that sensitive information remains stored and managed in the customer's OCI Vault rather than by the GoldenGate service. + *

+ * When set to false, sensitive information must be provided in the corresponding plain-text attributes (for example, {@code password}) rather than in secret OCID attributes. + * In this mode, the sensitive information is stored by the GoldenGate service. If {@code vaultId} and {@code keyId} are not specified, + * the GoldenGate service uses Oracle-managed encryption keys to encrypt the stored data. + *

+ * If {@code vaultId} and {@code keyId} are provided, the specified customer-managed key is used. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionAssignment.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionAssignment.java index 739917cf865..896164850a2 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionAssignment.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionAssignment.java @@ -26,6 +26,7 @@ public final class ConnectionAssignment extends com.oracle.bmc.http.internal.Exp @java.beans.ConstructorProperties({ "id", "connectionId", + "connectionType", "deploymentId", "aliasName", "compartmentId", @@ -36,6 +37,7 @@ public final class ConnectionAssignment extends com.oracle.bmc.http.internal.Exp public ConnectionAssignment( String id, String connectionId, + ConnectionType connectionType, String deploymentId, String aliasName, String compartmentId, @@ -45,6 +47,7 @@ public ConnectionAssignment( super(); this.id = id; this.connectionId = connectionId; + this.connectionType = connectionType; this.deploymentId = deploymentId; this.aliasName = aliasName; this.compartmentId = compartmentId; @@ -95,6 +98,24 @@ public Builder connectionId(String connectionId) { this.__explicitlySet__.add("connectionId"); return this; } + /** + * The connection type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionType") + private ConnectionType connectionType; + + /** + * The connection type. + * + * @param connectionType the value to set + * @return this builder + **/ + public Builder connectionType(ConnectionType connectionType) { + this.connectionType = connectionType; + this.__explicitlySet__.add("connectionType"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the deployment being referenced. * @@ -214,6 +235,7 @@ public ConnectionAssignment build() { new ConnectionAssignment( this.id, this.connectionId, + this.connectionType, this.deploymentId, this.aliasName, this.compartmentId, @@ -234,6 +256,9 @@ public Builder copy(ConnectionAssignment model) { if (model.wasPropertyExplicitlySet("connectionId")) { this.connectionId(model.getConnectionId()); } + if (model.wasPropertyExplicitlySet("connectionType")) { + this.connectionType(model.getConnectionType()); + } if (model.wasPropertyExplicitlySet("deploymentId")) { this.deploymentId(model.getDeploymentId()); } @@ -303,6 +328,22 @@ public String getConnectionId() { return connectionId; } + /** + * The connection type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionType") + private final ConnectionType connectionType; + + /** + * The connection type. + * + * @return the value + **/ + public ConnectionType getConnectionType() { + return connectionType; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the deployment being referenced. * @@ -468,6 +509,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", connectionId=").append(String.valueOf(this.connectionId)); + sb.append(", connectionType=").append(String.valueOf(this.connectionType)); sb.append(", deploymentId=").append(String.valueOf(this.deploymentId)); sb.append(", aliasName=").append(String.valueOf(this.aliasName)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); @@ -490,6 +532,7 @@ public boolean equals(Object o) { ConnectionAssignment other = (ConnectionAssignment) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.connectionId, other.connectionId) + && java.util.Objects.equals(this.connectionType, other.connectionType) && java.util.Objects.equals(this.deploymentId, other.deploymentId) && java.util.Objects.equals(this.aliasName, other.aliasName) && java.util.Objects.equals(this.compartmentId, other.compartmentId) @@ -505,6 +548,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.connectionId == null ? 43 : this.connectionId.hashCode()); + result = + (result * PRIME) + + (this.connectionType == null ? 43 : this.connectionType.hashCode()); result = (result * PRIME) + (this.deploymentId == null ? 43 : this.deploymentId.hashCode()); result = (result * PRIME) + (this.aliasName == null ? 43 : this.aliasName.hashCode()); result = diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionAssignmentSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionAssignmentSummary.java index 570b0791e52..d23bb8f77db 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionAssignmentSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionAssignmentSummary.java @@ -26,6 +26,7 @@ public final class ConnectionAssignmentSummary "id", "compartmentId", "connectionId", + "connectionType", "deploymentId", "aliasName", "lifecycleState", @@ -36,6 +37,7 @@ public ConnectionAssignmentSummary( String id, String compartmentId, String connectionId, + ConnectionType connectionType, String deploymentId, String aliasName, ConnectionAssignment.LifecycleState lifecycleState, @@ -45,6 +47,7 @@ public ConnectionAssignmentSummary( this.id = id; this.compartmentId = compartmentId; this.connectionId = connectionId; + this.connectionType = connectionType; this.deploymentId = deploymentId; this.aliasName = aliasName; this.lifecycleState = lifecycleState; @@ -112,6 +115,24 @@ public Builder connectionId(String connectionId) { this.__explicitlySet__.add("connectionId"); return this; } + /** + * The connection type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionType") + private ConnectionType connectionType; + + /** + * The connection type. + * + * @param connectionType the value to set + * @return this builder + **/ + public Builder connectionType(ConnectionType connectionType) { + this.connectionType = connectionType; + this.__explicitlySet__.add("connectionType"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the deployment being referenced. * @@ -214,6 +235,7 @@ public ConnectionAssignmentSummary build() { this.id, this.compartmentId, this.connectionId, + this.connectionType, this.deploymentId, this.aliasName, this.lifecycleState, @@ -236,6 +258,9 @@ public Builder copy(ConnectionAssignmentSummary model) { if (model.wasPropertyExplicitlySet("connectionId")) { this.connectionId(model.getConnectionId()); } + if (model.wasPropertyExplicitlySet("connectionType")) { + this.connectionType(model.getConnectionType()); + } if (model.wasPropertyExplicitlySet("deploymentId")) { this.deploymentId(model.getDeploymentId()); } @@ -318,6 +343,22 @@ public String getConnectionId() { return connectionId; } + /** + * The connection type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionType") + private final ConnectionType connectionType; + + /** + * The connection type. + * + * @return the value + **/ + public ConnectionType getConnectionType() { + return connectionType; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the deployment being referenced. * @@ -417,6 +458,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", connectionId=").append(String.valueOf(this.connectionId)); + sb.append(", connectionType=").append(String.valueOf(this.connectionType)); sb.append(", deploymentId=").append(String.valueOf(this.deploymentId)); sb.append(", aliasName=").append(String.valueOf(this.aliasName)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -439,6 +481,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.connectionId, other.connectionId) + && java.util.Objects.equals(this.connectionType, other.connectionType) && java.util.Objects.equals(this.deploymentId, other.deploymentId) && java.util.Objects.equals(this.aliasName, other.aliasName) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -456,6 +499,9 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.connectionId == null ? 43 : this.connectionId.hashCode()); + result = + (result * PRIME) + + (this.connectionType == null ? 43 : this.connectionType.hashCode()); result = (result * PRIME) + (this.deploymentId == null ? 43 : this.deploymentId.hashCode()); result = (result * PRIME) + (this.aliasName == null ? 43 : this.aliasName.hashCode()); result = diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionSummary.java index a562c9ded5c..a21ae3e67eb 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionSummary.java @@ -123,6 +123,10 @@ value = KafkaConnectionSummary.class, name = "KAFKA" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AiModelConnectionSummary.class, + name = "AI_MODEL" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = Db2ConnectionSummary.class, name = "DB2" @@ -418,18 +422,30 @@ public java.util.Date getTimeUpdated() { } /** - * Refers to the customer's vault OCID. - * If provided, it references a vault where GoldenGate can manage secrets. Customers must add policies to permit GoldenGate - * to manage secrets contained within this vault. + * References the OCI Vault that contains the customer-managed encryption key identified by {@code keyId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. + * If {@code vaultId} is provided, {@code keyId} must also be provided. * **/ @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private final String vaultId; /** - * Refers to the customer's vault OCID. - * If provided, it references a vault where GoldenGate can manage secrets. Customers must add policies to permit GoldenGate - * to manage secrets contained within this vault. + * References the OCI Vault that contains the customer-managed encryption key identified by {@code keyId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. + * If {@code vaultId} is provided, {@code keyId} must also be provided. * * @return the value **/ @@ -438,16 +454,34 @@ public String getVaultId() { } /** - * Refers to the customer's master key OCID. - * If provided, it references a key to manage secrets. Customers must add policies to permit GoldenGate to use this key. + * References the OCI Vault key in the OCI Vault identified by {@code vaultId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * The GoldenGate service uses this key to encrypt sensitive information (for example, {@code password}) that is provided in plain-text connection attributes through the API. + * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. If both {@code vaultId} and {@code keyId} are provided, + * the GoldenGate service uses the specified customer-managed key to encrypt the sensitive data. + * If neither {@code vaultId} nor {@code keyId} is provided, the GoldenGate service uses Oracle-managed encryption keys. * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyId") private final String keyId; /** - * Refers to the customer's master key OCID. - * If provided, it references a key to manage secrets. Customers must add policies to permit GoldenGate to use this key. + * References the OCI Vault key in the OCI Vault identified by {@code vaultId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * The GoldenGate service uses this key to encrypt sensitive information (for example, {@code password}) that is provided in plain-text connection attributes through the API. + * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. If both {@code vaultId} and {@code keyId} are provided, + * the GoldenGate service uses the specified customer-managed key to encrypt the sensitive data. + * If neither {@code vaultId} nor {@code keyId} is provided, the GoldenGate service uses Oracle-managed encryption keys. * * @return the value **/ @@ -507,9 +541,13 @@ public String getSubnetId() { /** * Controls the network traffic direction to the target: - * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. * SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. * DEDICATED_ENDPOINT: A dedicated private endpoint is created in the target VCN subnet for the connection. The subnetId is required when DEDICATED_ENDPOINT networking is selected. + * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. + *

+ * Deprecated: SHARED_SERVICE_ENDPOINT is deprecated. Use another supported routingMethod value, or update existing connections to use a supported routing method. + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") @@ -517,9 +555,13 @@ public String getSubnetId() { /** * Controls the network traffic direction to the target: - * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. * SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. * DEDICATED_ENDPOINT: A dedicated private endpoint is created in the target VCN subnet for the connection. The subnetId is required when DEDICATED_ENDPOINT networking is selected. + * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. + *

+ * Deprecated: SHARED_SERVICE_ENDPOINT is deprecated. Use another supported routingMethod value, or update existing connections to use a supported routing method. + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -543,6 +585,21 @@ public java.util.List getLocks() { /** * Indicates that sensitive attributes are provided via Secrets. + *

+ * Deprecated: This field is deprecated. Sensitive attributes should be provided using the corresponding Secret OCID + * attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text attributes. This change follows + * the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * When set to {@code true}, all sensitive information must be provided as OCI Vault secrets using the corresponding + * {@code *SecretId} attributes of the connection (for example, {@code passwordSecretId}). Plain-text sensitive attributes (for example, {@code password}) must not be used. + * This ensures that sensitive information remains stored and managed in the customer's OCI Vault rather than by the GoldenGate service. + *

+ * When set to false, sensitive information must be provided in the corresponding plain-text attributes (for example, {@code password}) rather than in secret OCID attributes. + * In this mode, the sensitive information is stored by the GoldenGate service. If {@code vaultId} and {@code keyId} are not specified, + * the GoldenGate service uses Oracle-managed encryption keys to encrypt the stored data. + *

+ * If {@code vaultId} and {@code keyId} are provided, the specified customer-managed key is used. * **/ @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") @@ -550,6 +607,21 @@ public java.util.List getLocks() { /** * Indicates that sensitive attributes are provided via Secrets. + *

+ * Deprecated: This field is deprecated. Sensitive attributes should be provided using the corresponding Secret OCID + * attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text attributes. This change follows + * the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * When set to {@code true}, all sensitive information must be provided as OCI Vault secrets using the corresponding + * {@code *SecretId} attributes of the connection (for example, {@code passwordSecretId}). Plain-text sensitive attributes (for example, {@code password}) must not be used. + * This ensures that sensitive information remains stored and managed in the customer's OCI Vault rather than by the GoldenGate service. + *

+ * When set to false, sensitive information must be provided in the corresponding plain-text attributes (for example, {@code password}) rather than in secret OCID attributes. + * In this mode, the sensitive information is stored by the GoldenGate service. If {@code vaultId} and {@code keyId} are not specified, + * the GoldenGate service uses Oracle-managed encryption keys to encrypt the stored data. + *

+ * If {@code vaultId} and {@code keyId} are provided, the specified customer-managed key is used. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionType.java index 52d21d8c429..d1385a1e20a 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionType.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionType.java @@ -39,6 +39,7 @@ public enum ConnectionType { GooglePubsub("GOOGLE_PUBSUB"), MicrosoftFabric("MICROSOFT_FABRIC"), Iceberg("ICEBERG"), + AiModel("AI_MODEL"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAiModelAuthDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAiModelAuthDetails.java new file mode 100644 index 00000000000..e2b5a96a631 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAiModelAuthDetails.java @@ -0,0 +1,81 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * The information about new authentication details for an AI Model connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "authType", + defaultImpl = CreateAiModelAuthDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateApiKeyAiModelAuthDetails.class, + name = "API_KEY" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOciGenAiModelAuthDetails.class, + name = "OCI_GEN_AI" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateAiModelAuthDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateAiModelAuthDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAiModelAuthDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAiModelAuthDetails)) { + return false; + } + + CreateAiModelAuthDetails other = (CreateAiModelAuthDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAiModelConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAiModelConnectionDetails.java new file mode 100644 index 00000000000..ae051247163 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAiModelConnectionDetails.java @@ -0,0 +1,568 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * The information about a new AI Model Connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAiModelConnectionDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectionType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateAiModelConnectionDetails extends CreateConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + 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("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + 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("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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + private RoutingMethod routingMethod; + + public Builder routingMethod(RoutingMethod routingMethod) { + this.routingMethod = routingMethod; + this.__explicitlySet__.add("routingMethod"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + private Boolean doesUseSecretIds; + + public Builder doesUseSecretIds(Boolean doesUseSecretIds) { + this.doesUseSecretIds = doesUseSecretIds; + this.__explicitlySet__.add("doesUseSecretIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private String subscriptionId; + + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + this.__explicitlySet__.add("subscriptionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + private String clusterPlacementGroupId; + + public Builder clusterPlacementGroupId(String clusterPlacementGroupId) { + this.clusterPlacementGroupId = clusterPlacementGroupId; + this.__explicitlySet__.add("clusterPlacementGroupId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } + /** + * The AI Model technology type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private AiModelConnection.TechnologyType technologyType; + + /** + * The AI Model technology type. + * + * @param technologyType the value to set + * @return this builder + **/ + public Builder technologyType(AiModelConnection.TechnologyType technologyType) { + this.technologyType = technologyType; + this.__explicitlySet__.add("technologyType"); + return this; + } + /** + * AI Provider type used by the AI Model Connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerType") + private ProviderType providerType; + + /** + * AI Provider type used by the AI Model Connection. + * + * @param providerType the value to set + * @return this builder + **/ + public Builder providerType(ProviderType providerType) { + this.providerType = providerType; + this.__explicitlySet__.add("providerType"); + return this; + } + /** + * AI model identifier. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelKey") + private String modelKey; + + /** + * AI model identifier. + * + * @param modelKey the value to set + * @return this builder + **/ + public Builder modelKey(String modelKey) { + this.modelKey = modelKey; + this.__explicitlySet__.add("modelKey"); + return this; + } + /** + * Maximum number of input characters supported by this AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxInputChars") + private Integer maxInputChars; + + /** + * Maximum number of input characters supported by this AI model connection. + * + * @param maxInputChars the value to set + * @return this builder + **/ + public Builder maxInputChars(Integer maxInputChars) { + this.maxInputChars = maxInputChars; + this.__explicitlySet__.add("maxInputChars"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("authDetails") + private CreateAiModelAuthDetails authDetails; + + public Builder authDetails(CreateAiModelAuthDetails authDetails) { + this.authDetails = authDetails; + this.__explicitlySet__.add("authDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAiModelConnectionDetails build() { + CreateAiModelConnectionDetails model = + new CreateAiModelConnectionDetails( + this.displayName, + this.description, + this.compartmentId, + this.freeformTags, + this.definedTags, + this.locks, + this.vaultId, + this.keyId, + this.nsgIds, + this.subnetId, + this.routingMethod, + this.doesUseSecretIds, + this.subscriptionId, + this.clusterPlacementGroupId, + this.securityAttributes, + this.technologyType, + this.providerType, + this.modelKey, + this.maxInputChars, + this.authDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAiModelConnectionDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("routingMethod")) { + this.routingMethod(model.getRoutingMethod()); + } + if (model.wasPropertyExplicitlySet("doesUseSecretIds")) { + this.doesUseSecretIds(model.getDoesUseSecretIds()); + } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } + if (model.wasPropertyExplicitlySet("clusterPlacementGroupId")) { + this.clusterPlacementGroupId(model.getClusterPlacementGroupId()); + } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } + if (model.wasPropertyExplicitlySet("technologyType")) { + this.technologyType(model.getTechnologyType()); + } + if (model.wasPropertyExplicitlySet("providerType")) { + this.providerType(model.getProviderType()); + } + if (model.wasPropertyExplicitlySet("modelKey")) { + this.modelKey(model.getModelKey()); + } + if (model.wasPropertyExplicitlySet("maxInputChars")) { + this.maxInputChars(model.getMaxInputChars()); + } + if (model.wasPropertyExplicitlySet("authDetails")) { + this.authDetails(model.getAuthDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateAiModelConnectionDetails( + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.List locks, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + AiModelConnection.TechnologyType technologyType, + ProviderType providerType, + String modelKey, + Integer maxInputChars, + CreateAiModelAuthDetails authDetails) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.providerType = providerType; + this.modelKey = modelKey; + this.maxInputChars = maxInputChars; + this.authDetails = authDetails; + } + + /** + * The AI Model technology type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private final AiModelConnection.TechnologyType technologyType; + + /** + * The AI Model technology type. + * + * @return the value + **/ + public AiModelConnection.TechnologyType getTechnologyType() { + return technologyType; + } + + /** + * AI Provider type used by the AI Model Connection. + * + **/ + public enum ProviderType { + OciGenerativeAi("OCI_GENERATIVE_AI"), + Gemini("GEMINI"), + OpenAi("OPEN_AI"), + VoyageAi("VOYAGE_AI"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ProviderType v : ProviderType.values()) { + map.put(v.getValue(), v); + } + } + + ProviderType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ProviderType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ProviderType: " + key); + } + }; + /** + * AI Provider type used by the AI Model Connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("providerType") + private final ProviderType providerType; + + /** + * AI Provider type used by the AI Model Connection. + * + * @return the value + **/ + public ProviderType getProviderType() { + return providerType; + } + + /** + * AI model identifier. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelKey") + private final String modelKey; + + /** + * AI model identifier. + * + * @return the value + **/ + public String getModelKey() { + return modelKey; + } + + /** + * Maximum number of input characters supported by this AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxInputChars") + private final Integer maxInputChars; + + /** + * Maximum number of input characters supported by this AI model connection. + * + * @return the value + **/ + public Integer getMaxInputChars() { + return maxInputChars; + } + + @com.fasterxml.jackson.annotation.JsonProperty("authDetails") + private final CreateAiModelAuthDetails authDetails; + + public CreateAiModelAuthDetails getAuthDetails() { + return authDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAiModelConnectionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", providerType=").append(String.valueOf(this.providerType)); + sb.append(", modelKey=").append(String.valueOf(this.modelKey)); + sb.append(", maxInputChars=").append(String.valueOf(this.maxInputChars)); + sb.append(", authDetails=").append(String.valueOf(this.authDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAiModelConnectionDetails)) { + return false; + } + + CreateAiModelConnectionDetails other = (CreateAiModelConnectionDetails) o; + return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.providerType, other.providerType) + && java.util.Objects.equals(this.modelKey, other.modelKey) + && java.util.Objects.equals(this.maxInputChars, other.maxInputChars) + && java.util.Objects.equals(this.authDetails, other.authDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = (result * PRIME) + (this.providerType == null ? 43 : this.providerType.hashCode()); + result = (result * PRIME) + (this.modelKey == null ? 43 : this.modelKey.hashCode()); + result = + (result * PRIME) + + (this.maxInputChars == null ? 43 : this.maxInputChars.hashCode()); + result = (result * PRIME) + (this.authDetails == null ? 43 : this.authDetails.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonKinesisConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonKinesisConnectionDetails.java index 3ab454f2683..4fef831d3ec 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonKinesisConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonKinesisConnectionDetails.java @@ -182,6 +182,7 @@ public Builder technologyType(AmazonKinesisConnection.TechnologyType technologyT } /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -189,6 +190,7 @@ public Builder technologyType(AmazonKinesisConnection.TechnologyType technologyT /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @param accessKeyId the value to set * @return this builder @@ -200,7 +202,9 @@ public Builder accessKeyId(String accessKeyId) { } /** * Secret access key to access the Amazon Kinesis. - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") @@ -208,7 +212,9 @@ public Builder accessKeyId(String accessKeyId) { /** * Secret access key to access the Amazon Kinesis. - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param secretAccessKey the value to set * @return this builder @@ -514,6 +520,7 @@ public AmazonKinesisConnection.TechnologyType getTechnologyType() { /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -521,6 +528,7 @@ public AmazonKinesisConnection.TechnologyType getTechnologyType() { /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @return the value **/ @@ -530,7 +538,9 @@ public String getAccessKeyId() { /** * Secret access key to access the Amazon Kinesis. - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") @@ -538,7 +548,9 @@ public String getAccessKeyId() { /** * Secret access key to access the Amazon Kinesis. - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. @@ -551,7 +563,9 @@ public String getSecretAccessKey() { /** * Secret access key to access the Amazon Kinesis. - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonRedshiftConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonRedshiftConnectionDetails.java index 047ef330b70..f3a53e34fc6 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonRedshiftConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonRedshiftConnectionDetails.java @@ -225,7 +225,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -234,7 +236,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -533,7 +537,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -542,7 +548,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -556,7 +564,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3ConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3ConnectionDetails.java index ce2a3adee3e..7a58309c3ab 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3ConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3ConnectionDetails.java @@ -182,7 +182,7 @@ public Builder technologyType(AmazonS3Connection.TechnologyType technologyType) } /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -190,7 +190,7 @@ public Builder technologyType(AmazonS3Connection.TechnologyType technologyType) /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @param accessKeyId the value to set * @return this builder @@ -202,8 +202,10 @@ public Builder accessKeyId(String accessKeyId) { } /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") @@ -211,8 +213,10 @@ public Builder accessKeyId(String accessKeyId) { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param secretAccessKey the value to set * @return this builder @@ -518,7 +522,7 @@ public AmazonS3Connection.TechnologyType getTechnologyType() { /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -526,7 +530,7 @@ public AmazonS3Connection.TechnologyType getTechnologyType() { /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @return the value **/ @@ -536,8 +540,10 @@ public String getAccessKeyId() { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") @@ -545,8 +551,10 @@ public String getAccessKeyId() { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * <p> + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. @@ -559,8 +567,10 @@ public String getSecretAccessKey() { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3IcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3IcebergStorageDetails.java index 767f1c999ea..de824cc514b 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3IcebergStorageDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3IcebergStorageDetails.java @@ -68,6 +68,7 @@ public Builder endpoint(String endpoint) { } /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -75,6 +76,7 @@ public Builder endpoint(String endpoint) { /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @param accessKeyId the value to set * @return this builder @@ -104,8 +106,10 @@ public Builder secretAccessKeySecretId(String secretAccessKeySecretId) { } /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") @@ -113,8 +117,10 @@ public Builder secretAccessKeySecretId(String secretAccessKeySecretId) { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param secretAccessKey the value to set * @return this builder @@ -300,6 +306,7 @@ public String getEndpoint() { /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -307,6 +314,7 @@ public String getEndpoint() { /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @return the value **/ @@ -332,8 +340,10 @@ public String getSecretAccessKeySecretId() { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") @@ -341,8 +351,10 @@ public String getSecretAccessKeySecretId() { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * <p> + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. @@ -355,8 +367,10 @@ public String getSecretAccessKey() { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateApiKeyAiModelAuthDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateApiKeyAiModelAuthDetails.java new file mode 100644 index 00000000000..64d4d187826 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateApiKeyAiModelAuthDetails.java @@ -0,0 +1,277 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * The information about new API key authentication details for an AI Model connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateApiKeyAiModelAuthDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "authType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateApiKeyAiModelAuthDetails extends CreateAiModelAuthDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseUrl") + private String baseUrl; + + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + * @param baseUrl the value to set + * @return this builder + **/ + public Builder baseUrl(String baseUrl) { + this.baseUrl = baseUrl; + this.__explicitlySet__.add("baseUrl"); + return this; + } + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + private char[] apiKey; + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @param apiKey the value to set + * @return this builder + **/ + public Builder apiKey(char[] apiKey) { + this.apiKey = apiKey; + this.__explicitlySet__.add("apiKey"); + return this; + } + + public Builder apiKey(String apiKey) { + this.apiKey = apiKey != null ? apiKey.toCharArray() : null; + this.__explicitlySet__.add("apiKey"); + return this; + } + + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @param apiKeySecretId the value to set + * @return this builder + **/ + public Builder apiKeySecretId(String apiKeySecretId) { + this.apiKeySecretId = apiKeySecretId; + this.__explicitlySet__.add("apiKeySecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateApiKeyAiModelAuthDetails build() { + CreateApiKeyAiModelAuthDetails model = + new CreateApiKeyAiModelAuthDetails( + this.baseUrl, this.apiKey, this.apiKeySecretId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateApiKeyAiModelAuthDetails model) { + if (model.wasPropertyExplicitlySet("baseUrl")) { + this.baseUrl(model.getBaseUrl()); + } + if (model.wasPropertyExplicitlySet("apiKey")) { + this.apiKey(model.getApiKey()); + } + if (model.wasPropertyExplicitlySet("apiKeySecretId")) { + this.apiKeySecretId(model.getApiKeySecretId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateApiKeyAiModelAuthDetails(String baseUrl, String apiKey, String apiKeySecretId) { + super(); + this.baseUrl = baseUrl; + this.apiKey = apiKey != null ? apiKey.toCharArray() : null; + this.apiKeySecretId = apiKeySecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateApiKeyAiModelAuthDetails(String baseUrl, char[] apiKey, String apiKeySecretId) { + super(); + this.baseUrl = baseUrl; + this.apiKey = apiKey; + this.apiKeySecretId = apiKeySecretId; + } + + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseUrl") + private final String baseUrl; + + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + * @return the value + **/ + public String getBaseUrl() { + return baseUrl; + } + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + private final char[] apiKey; + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getApiKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getApiKey() { + return apiKey != null ? new String(apiKey) : null; + } + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + public char[] getApiKey__AsCharArray() { + return apiKey; + } + + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private final String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @return the value + **/ + public String getApiKeySecretId() { + return apiKeySecretId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateApiKeyAiModelAuthDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", baseUrl=").append(String.valueOf(this.baseUrl)); + sb.append(", apiKey=").append(""); + sb.append(", apiKeySecretId=").append(String.valueOf(this.apiKeySecretId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateApiKeyAiModelAuthDetails)) { + return false; + } + + CreateApiKeyAiModelAuthDetails other = (CreateApiKeyAiModelAuthDetails) o; + return java.util.Objects.equals(this.baseUrl, other.baseUrl) + && java.util.Objects.equals(this.apiKey, other.apiKey) + && java.util.Objects.equals(this.apiKeySecretId, other.apiKeySecretId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.baseUrl == null ? 43 : this.baseUrl.hashCode()); + result = (result * PRIME) + (this.apiKey == null ? 43 : this.apiKey.hashCode()); + result = + (result * PRIME) + + (this.apiKeySecretId == null ? 43 : this.apiKeySecretId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageConnectionDetails.java index 89ebb921c76..9b0da27fb9b 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageConnectionDetails.java @@ -221,7 +221,9 @@ public Builder accountName(String accountName) { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") @@ -230,7 +232,9 @@ public Builder accountName(String accountName) { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param accountKey the value to set * @return this builder @@ -271,7 +275,9 @@ public Builder accountKeySecretId(String accountKeySecretId) { * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is * required when 'authenticationType' is set to 'SHARED_ACCESS_SIGNATURE'. * e.g.: ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D - * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sasToken") @@ -281,7 +287,9 @@ public Builder accountKeySecretId(String accountKeySecretId) { * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is * required when 'authenticationType' is set to 'SHARED_ACCESS_SIGNATURE'. * e.g.: ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D - * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sasToken the value to set * @return this builder @@ -361,7 +369,9 @@ public Builder clientId(String clientId) { /** * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. * e.g.: dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1 - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") @@ -370,7 +380,9 @@ public Builder clientId(String clientId) { /** * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. * e.g.: dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1 - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param clientSecret the value to set * @return this builder @@ -767,7 +779,9 @@ public String getAccountName() { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") @@ -776,7 +790,9 @@ public String getAccountName() { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getAccountKey__AsCharArray() instead. @@ -790,7 +806,9 @@ public String getAccountKey() { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -821,7 +839,9 @@ public String getAccountKeySecretId() { * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is * required when 'authenticationType' is set to 'SHARED_ACCESS_SIGNATURE'. * e.g.: ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D - * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sasToken") @@ -831,7 +851,9 @@ public String getAccountKeySecretId() { * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is * required when 'authenticationType' is set to 'SHARED_ACCESS_SIGNATURE'. * e.g.: ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D - * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getSasToken__AsCharArray() instead. @@ -846,7 +868,9 @@ public String getSasToken() { * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is * required when 'authenticationType' is set to 'SHARED_ACCESS_SIGNATURE'. * e.g.: ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D - * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -912,7 +936,9 @@ public String getClientId() { /** * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. * e.g.: dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1 - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") @@ -921,7 +947,9 @@ public String getClientId() { /** * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. * e.g.: dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1 - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getClientSecret__AsCharArray() instead. @@ -935,7 +963,9 @@ public String getClientSecret() { /** * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. * e.g.: dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1 - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageIcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageIcebergStorageDetails.java index 798771a3103..d97269219fa 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageIcebergStorageDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageIcebergStorageDetails.java @@ -84,7 +84,9 @@ public Builder accountKeySecretId(String accountKeySecretId) { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") @@ -93,7 +95,9 @@ public Builder accountKeySecretId(String accountKeySecretId) { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param accountKey the value to set * @return this builder @@ -260,7 +264,9 @@ public String getAccountKeySecretId() { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") @@ -269,7 +275,9 @@ public String getAccountKeySecretId() { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getAccountKey__AsCharArray() instead. @@ -283,7 +291,9 @@ public String getAccountKey() { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureSynapseConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureSynapseConnectionDetails.java index 11960df569e..8f3aea61244 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureSynapseConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureSynapseConnectionDetails.java @@ -225,7 +225,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -234,7 +236,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -533,7 +537,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -542,7 +548,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -556,7 +564,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateConnectionDetails.java index f1af458d7b1..5b5b889f427 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateConnectionDetails.java @@ -111,6 +111,10 @@ value = CreateElasticsearchConnectionDetails.class, name = "ELASTICSEARCH" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateAiModelConnectionDetails.class, + name = "AI_MODEL" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateAzureSynapseConnectionDetails.class, name = "AZURE_SYNAPSE_ANALYTICS" @@ -299,18 +303,30 @@ public java.util.List getLocks() { } /** - * Refers to the customer's vault OCID. - * If provided, it references a vault where GoldenGate can manage secrets. Customers must add policies to permit GoldenGate - * to manage secrets contained within this vault. + * References the OCI Vault that contains the customer-managed encryption key identified by {@code keyId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. + * If {@code vaultId} is provided, {@code keyId} must also be provided. * **/ @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private final String vaultId; /** - * Refers to the customer's vault OCID. - * If provided, it references a vault where GoldenGate can manage secrets. Customers must add policies to permit GoldenGate - * to manage secrets contained within this vault. + * References the OCI Vault that contains the customer-managed encryption key identified by {@code keyId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. + * If {@code vaultId} is provided, {@code keyId} must also be provided. * * @return the value **/ @@ -319,16 +335,34 @@ public String getVaultId() { } /** - * Refers to the customer's master key OCID. - * If provided, it references a key to manage secrets. Customers must add policies to permit GoldenGate to use this key. + * References the OCI Vault key in the OCI Vault identified by {@code vaultId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * The GoldenGate service uses this key to encrypt sensitive information (for example, {@code password}) that is provided in plain-text connection attributes through the API. + * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. If both {@code vaultId} and {@code keyId} are provided, + * the GoldenGate service uses the specified customer-managed key to encrypt the sensitive data. + * If neither {@code vaultId} nor {@code keyId} is provided, the GoldenGate service uses Oracle-managed encryption keys. * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyId") private final String keyId; /** - * Refers to the customer's master key OCID. - * If provided, it references a key to manage secrets. Customers must add policies to permit GoldenGate to use this key. + * References the OCI Vault key in the OCI Vault identified by {@code vaultId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * The GoldenGate service uses this key to encrypt sensitive information (for example, {@code password}) that is provided in plain-text connection attributes through the API. + * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. If both {@code vaultId} and {@code keyId} are provided, + * the GoldenGate service uses the specified customer-managed key to encrypt the sensitive data. + * If neither {@code vaultId} nor {@code keyId} is provided, the GoldenGate service uses Oracle-managed encryption keys. * * @return the value **/ @@ -370,9 +404,13 @@ public String getSubnetId() { /** * Controls the network traffic direction to the target: - * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. * SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. * DEDICATED_ENDPOINT: A dedicated private endpoint is created in the target VCN subnet for the connection. The subnetId is required when DEDICATED_ENDPOINT networking is selected. + * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. + *

+ * Deprecated: SHARED_SERVICE_ENDPOINT is deprecated. Use another supported routingMethod value, or update existing connections to use a supported routing method. + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") @@ -380,9 +418,13 @@ public String getSubnetId() { /** * Controls the network traffic direction to the target: - * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. * SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. * DEDICATED_ENDPOINT: A dedicated private endpoint is created in the target VCN subnet for the connection. The subnetId is required when DEDICATED_ENDPOINT networking is selected. + * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. + *

+ * Deprecated: SHARED_SERVICE_ENDPOINT is deprecated. Use another supported routingMethod value, or update existing connections to use a supported routing method. + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -392,6 +434,21 @@ public RoutingMethod getRoutingMethod() { /** * Indicates that sensitive attributes are provided via Secrets. + *

+ * Deprecated: This field is deprecated. Sensitive attributes should be provided using the corresponding Secret OCID + * attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text attributes. This change follows + * the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * When set to {@code true}, all sensitive information must be provided as OCI Vault secrets using the corresponding + * {@code *SecretId} attributes of the connection (for example, {@code passwordSecretId}). Plain-text sensitive attributes (for example, {@code password}) must not be used. + * This ensures that sensitive information remains stored and managed in the customer's OCI Vault rather than by the GoldenGate service. + *

+ * When set to false, sensitive information must be provided in the corresponding plain-text attributes (for example, {@code password}) rather than in secret OCID attributes. + * In this mode, the sensitive information is stored by the GoldenGate service. If {@code vaultId} and {@code keyId} are not specified, + * the GoldenGate service uses Oracle-managed encryption keys to encrypt the stored data. + *

+ * If {@code vaultId} and {@code keyId} are provided, the specified customer-managed key is used. * **/ @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") @@ -399,6 +456,21 @@ public RoutingMethod getRoutingMethod() { /** * Indicates that sensitive attributes are provided via Secrets. + *

+ * Deprecated: This field is deprecated. Sensitive attributes should be provided using the corresponding Secret OCID + * attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text attributes. This change follows + * the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * When set to {@code true}, all sensitive information must be provided as OCI Vault secrets using the corresponding + * {@code *SecretId} attributes of the connection (for example, {@code passwordSecretId}). Plain-text sensitive attributes (for example, {@code password}) must not be used. + * This ensures that sensitive information remains stored and managed in the customer's OCI Vault rather than by the GoldenGate service. + *

+ * When set to false, sensitive information must be provided in the corresponding plain-text attributes (for example, {@code password}) rather than in secret OCID attributes. + * In this mode, the sensitive information is stored by the GoldenGate service. If {@code vaultId} and {@code keyId} are not specified, + * the GoldenGate service uses Oracle-managed encryption keys to encrypt the stored data. + *

+ * If {@code vaultId} and {@code keyId} are provided, the specified customer-managed key is used. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabaseRegistrationDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabaseRegistrationDetails.java index 7d991a8c87c..40948ff81b9 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabaseRegistrationDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabaseRegistrationDetails.java @@ -56,7 +56,7 @@ public CreateDatabaseRegistrationDetails( this.password = password != null ? password.toCharArray() : null; this.connectionString = connectionString; this.sessionMode = sessionMode; - this.wallet = wallet; + this.wallet = wallet != null ? wallet.toCharArray() : null; this.aliasName = aliasName; this.vaultId = vaultId; this.keyId = keyId; @@ -99,7 +99,7 @@ public CreateDatabaseRegistrationDetails( char[] password, String connectionString, SessionMode sessionMode, - String wallet, + char[] wallet, String aliasName, String vaultId, String keyId, @@ -327,7 +327,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -336,7 +338,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -398,25 +402,36 @@ public Builder sessionMode(SessionMode sessionMode) { /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("wallet") - private String wallet; + private char[] wallet; /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param wallet the value to set * @return this builder **/ - public Builder wallet(String wallet) { + public Builder wallet(char[] wallet) { this.wallet = wallet; this.__explicitlySet__.add("wallet"); return this; } + + public Builder wallet(String wallet) { + this.wallet = wallet != null ? wallet.toCharArray() : null; + this.__explicitlySet__.add("wallet"); + return this; + } + /** * Credential store alias. * @@ -778,7 +793,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -787,7 +804,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -801,7 +820,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -890,20 +911,41 @@ public SessionMode getSessionMode() { /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("wallet") - private final String wallet; + private final char[] wallet; + + /** + * The wallet contents Oracle GoldenGate uses to make connections to a database. + * This attribute is expected to be base64 encoded. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getWallet__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getWallet() { + return wallet != null ? new String(wallet) : null; + } /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getWallet() { + @com.fasterxml.jackson.annotation.JsonProperty("wallet") + public char[] getWallet__AsCharArray() { return wallet; } @@ -1006,7 +1048,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", password=").append(""); sb.append(", connectionString=").append(String.valueOf(this.connectionString)); sb.append(", sessionMode=").append(String.valueOf(this.sessionMode)); - sb.append(", wallet=").append(String.valueOf(this.wallet)); + sb.append(", wallet=").append(""); sb.append(", aliasName=").append(String.valueOf(this.aliasName)); sb.append(", vaultId=").append(String.valueOf(this.vaultId)); sb.append(", keyId=").append(String.valueOf(this.keyId)); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabricksConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabricksConnectionDetails.java index 35ffacfe1aa..f11b755bd84 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabricksConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabricksConnectionDetails.java @@ -222,7 +222,9 @@ public Builder connectionUrl(String connectionUrl) { /** * The password used to connect to Databricks. * Only applicable for authenticationType == PERSONAL_ACCESS_TOKEN. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -231,7 +233,9 @@ public Builder connectionUrl(String connectionUrl) { /** * The password used to connect to Databricks. * Only applicable for authenticationType == PERSONAL_ACCESS_TOKEN. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -288,7 +292,9 @@ public Builder clientId(String clientId) { } /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") @@ -296,7 +302,9 @@ public Builder clientId(String clientId) { /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param clientSecret the value to set * @return this builder @@ -637,7 +645,9 @@ public String getConnectionUrl() { /** * The password used to connect to Databricks. * Only applicable for authenticationType == PERSONAL_ACCESS_TOKEN. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -646,7 +656,9 @@ public String getConnectionUrl() { /** * The password used to connect to Databricks. * Only applicable for authenticationType == PERSONAL_ACCESS_TOKEN. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -660,7 +672,9 @@ public String getPassword() { /** * The password used to connect to Databricks. * Only applicable for authenticationType == PERSONAL_ACCESS_TOKEN. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -705,7 +719,9 @@ public String getClientId() { /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") @@ -713,7 +729,9 @@ public String getClientId() { /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getClientSecret__AsCharArray() instead. @@ -726,7 +744,9 @@ public String getClientSecret() { /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDb2ConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDb2ConnectionDetails.java index e35bd619816..50f5ea57285 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDb2ConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDb2ConnectionDetails.java @@ -256,7 +256,9 @@ public Builder username(String username) { } /** * The password Oracle GoldenGate uses to connect the associated DB2 database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -264,7 +266,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated DB2 database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -343,26 +347,38 @@ public Builder securityProtocol(Db2Connection.SecurityProtocol securityProtocol) * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystoredb") - private String sslClientKeystoredb; + private char[] sslClientKeystoredb; /** * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sslClientKeystoredb the value to set * @return this builder **/ - public Builder sslClientKeystoredb(String sslClientKeystoredb) { + public Builder sslClientKeystoredb(char[] sslClientKeystoredb) { this.sslClientKeystoredb = sslClientKeystoredb; this.__explicitlySet__.add("sslClientKeystoredb"); return this; } + + public Builder sslClientKeystoredb(String sslClientKeystoredb) { + this.sslClientKeystoredb = + sslClientKeystoredb != null ? sslClientKeystoredb.toCharArray() : null; + this.__explicitlySet__.add("sslClientKeystoredb"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystore file stored, * which created at the client containing the server certificate / CA root certificate. @@ -393,26 +409,38 @@ public Builder sslClientKeystoredbSecretId(String sslClientKeystoredbSecretId) { * The base64 encoded keystash file which contains the encrypted password to the key database file. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystash") - private String sslClientKeystash; + private char[] sslClientKeystash; /** * The base64 encoded keystash file which contains the encrypted password to the key database file. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sslClientKeystash the value to set * @return this builder **/ - public Builder sslClientKeystash(String sslClientKeystash) { + public Builder sslClientKeystash(char[] sslClientKeystash) { this.sslClientKeystash = sslClientKeystash; this.__explicitlySet__.add("sslClientKeystash"); return this; } + + public Builder sslClientKeystash(String sslClientKeystash) { + this.sslClientKeystash = + sslClientKeystash != null ? sslClientKeystash.toCharArray() : null; + this.__explicitlySet__.add("sslClientKeystash"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystash file is stored, * which contains the encrypted password to the key database file. @@ -661,9 +689,10 @@ public CreateDb2ConnectionDetails( this.passwordSecretId = passwordSecretId; this.additionalAttributes = additionalAttributes; this.securityProtocol = securityProtocol; - this.sslClientKeystoredb = sslClientKeystoredb; + this.sslClientKeystoredb = + sslClientKeystoredb != null ? sslClientKeystoredb.toCharArray() : null; this.sslClientKeystoredbSecretId = sslClientKeystoredbSecretId; - this.sslClientKeystash = sslClientKeystash; + this.sslClientKeystash = sslClientKeystash != null ? sslClientKeystash.toCharArray() : null; this.sslClientKeystashSecretId = sslClientKeystashSecretId; this.sslServerCertificate = sslServerCertificate; } @@ -695,9 +724,9 @@ public CreateDb2ConnectionDetails( String passwordSecretId, java.util.List additionalAttributes, Db2Connection.SecurityProtocol securityProtocol, - String sslClientKeystoredb, + char[] sslClientKeystoredb, String sslClientKeystoredbSecretId, - String sslClientKeystash, + char[] sslClientKeystash, String sslClientKeystashSecretId, String sslServerCertificate) { super( @@ -814,7 +843,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated DB2 database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -822,7 +853,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated DB2 database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -835,7 +868,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated DB2 database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -900,21 +935,43 @@ public Db2Connection.SecurityProtocol getSecurityProtocol() { * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystoredb") - private final String sslClientKeystoredb; + private final char[] sslClientKeystoredb; + + /** + * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. + * This property is not supported for IBM Db2 for i, as client TLS mode is not available. + * <p> + * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getSslClientKeystoredb__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslClientKeystoredb() { + return sslClientKeystoredb != null ? new String(sslClientKeystoredb) : null; + } /** * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getSslClientKeystoredb() { + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystoredb") + public char[] getSslClientKeystoredb__AsCharArray() { return sslClientKeystoredb; } @@ -946,21 +1003,43 @@ public String getSslClientKeystoredbSecretId() { * The base64 encoded keystash file which contains the encrypted password to the key database file. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystash") - private final String sslClientKeystash; + private final char[] sslClientKeystash; + + /** + * The base64 encoded keystash file which contains the encrypted password to the key database file. + * This property is not supported for IBM Db2 for i, as client TLS mode is not available. + * <p> + * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getSslClientKeystash__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslClientKeystash() { + return sslClientKeystash != null ? new String(sslClientKeystash) : null; + } /** * The base64 encoded keystash file which contains the encrypted password to the key database file. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getSslClientKeystash() { + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystash") + public char[] getSslClientKeystash__AsCharArray() { return sslClientKeystash; } @@ -1029,10 +1108,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); - sb.append(", sslClientKeystoredb=").append(String.valueOf(this.sslClientKeystoredb)); + sb.append(", sslClientKeystoredb=").append(""); sb.append(", sslClientKeystoredbSecretId=") .append(String.valueOf(this.sslClientKeystoredbSecretId)); - sb.append(", sslClientKeystash=").append(String.valueOf(this.sslClientKeystash)); + sb.append(", sslClientKeystash=").append(""); sb.append(", sslClientKeystashSecretId=") .append(String.valueOf(this.sslClientKeystashSecretId)); sb.append(", sslServerCertificate=").append(String.valueOf(this.sslServerCertificate)); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateElasticsearchConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateElasticsearchConnectionDetails.java index d65c03502c3..b2bf0fe3044 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateElasticsearchConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateElasticsearchConnectionDetails.java @@ -262,7 +262,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -271,7 +273,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -646,7 +650,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -655,7 +661,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -669,7 +677,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoldenGateConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoldenGateConnectionDetails.java index cbd28873fa5..6e59290b2b7 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoldenGateConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoldenGateConnectionDetails.java @@ -254,7 +254,9 @@ public Builder username(String username) { } /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -262,7 +264,9 @@ public Builder username(String username) { /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -598,7 +602,9 @@ public String getUsername() { /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -606,7 +612,9 @@ public String getUsername() { /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -619,7 +627,9 @@ public String getPassword() { /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleBigQueryConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleBigQueryConnectionDetails.java index 3b0e75bc705..b7c7cd10ed0 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleBigQueryConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleBigQueryConnectionDetails.java @@ -203,25 +203,37 @@ public Builder endpoint(String endpoint) { /** * The base64 encoded content of the service account key file containing * the credentials required to use Google BigQuery. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private String serviceAccountKeyFile; + private char[] serviceAccountKeyFile; /** * The base64 encoded content of the service account key file containing * the credentials required to use Google BigQuery. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param serviceAccountKeyFile the value to set * @return this builder **/ - public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + public Builder serviceAccountKeyFile(char[] serviceAccountKeyFile) { this.serviceAccountKeyFile = serviceAccountKeyFile; this.__explicitlySet__.add("serviceAccountKeyFile"); return this; } + + public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.__explicitlySet__.add("serviceAccountKeyFile"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, * which contains the credentials required to use Google BigQuery. @@ -389,6 +401,51 @@ public CreateGoogleBigQueryConnectionDetails( securityAttributes); this.technologyType = technologyType; this.endpoint = endpoint; + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateGoogleBigQueryConnectionDetails( + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.List locks, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + GoogleBigQueryConnection.TechnologyType technologyType, + String endpoint, + char[] serviceAccountKeyFile, + String serviceAccountKeyFileSecretId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.endpoint = endpoint; this.serviceAccountKeyFile = serviceAccountKeyFile; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; } @@ -428,20 +485,41 @@ public String getEndpoint() { /** * The base64 encoded content of the service account key file containing * the credentials required to use Google BigQuery. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private final String serviceAccountKeyFile; + private final char[] serviceAccountKeyFile; + + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google BigQuery. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getServiceAccountKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getServiceAccountKeyFile() { + return serviceAccountKeyFile != null ? new String(serviceAccountKeyFile) : null; + } /** * The base64 encoded content of the service account key file containing * the credentials required to use Google BigQuery. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getServiceAccountKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") + public char[] getServiceAccountKeyFile__AsCharArray() { return serviceAccountKeyFile; } @@ -481,7 +559,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", technologyType=").append(String.valueOf(this.technologyType)); sb.append(", endpoint=").append(String.valueOf(this.endpoint)); - sb.append(", serviceAccountKeyFile=").append(String.valueOf(this.serviceAccountKeyFile)); + sb.append(", serviceAccountKeyFile=").append(""); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); sb.append(")"); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageConnectionDetails.java index 07b51130dbe..dc71ba8e952 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageConnectionDetails.java @@ -203,25 +203,37 @@ public Builder endpoint(String endpoint) { /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private String serviceAccountKeyFile; + private char[] serviceAccountKeyFile; /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param serviceAccountKeyFile the value to set * @return this builder **/ - public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + public Builder serviceAccountKeyFile(char[] serviceAccountKeyFile) { this.serviceAccountKeyFile = serviceAccountKeyFile; this.__explicitlySet__.add("serviceAccountKeyFile"); return this; } + + public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.__explicitlySet__.add("serviceAccountKeyFile"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, * which contains the credentials required to use Google Cloud Storage. @@ -389,6 +401,51 @@ public CreateGoogleCloudStorageConnectionDetails( securityAttributes); this.technologyType = technologyType; this.endpoint = endpoint; + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateGoogleCloudStorageConnectionDetails( + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.List locks, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + GoogleCloudStorageConnection.TechnologyType technologyType, + String endpoint, + char[] serviceAccountKeyFile, + String serviceAccountKeyFileSecretId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.endpoint = endpoint; this.serviceAccountKeyFile = serviceAccountKeyFile; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; } @@ -428,20 +485,41 @@ public String getEndpoint() { /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private final String serviceAccountKeyFile; + private final char[] serviceAccountKeyFile; + + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google Cloud Storage. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getServiceAccountKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getServiceAccountKeyFile() { + return serviceAccountKeyFile != null ? new String(serviceAccountKeyFile) : null; + } /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getServiceAccountKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") + public char[] getServiceAccountKeyFile__AsCharArray() { return serviceAccountKeyFile; } @@ -481,7 +559,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", technologyType=").append(String.valueOf(this.technologyType)); sb.append(", endpoint=").append(String.valueOf(this.endpoint)); - sb.append(", serviceAccountKeyFile=").append(String.valueOf(this.serviceAccountKeyFile)); + sb.append(", serviceAccountKeyFile=").append(""); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); sb.append(")"); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageIcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageIcebergStorageDetails.java index 3bedcfe122c..bb38ce02d20 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageIcebergStorageDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageIcebergStorageDetails.java @@ -84,25 +84,37 @@ public Builder serviceAccountKeyFileSecretId(String serviceAccountKeyFileSecretI /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private String serviceAccountKeyFile; + private char[] serviceAccountKeyFile; /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param serviceAccountKeyFile the value to set * @return this builder **/ - public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + public Builder serviceAccountKeyFile(char[] serviceAccountKeyFile) { this.serviceAccountKeyFile = serviceAccountKeyFile; this.__explicitlySet__.add("serviceAccountKeyFile"); return this; } + + public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.__explicitlySet__.add("serviceAccountKeyFile"); + return this; + } + /** * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). * Default: https://storage.googleapis.com @@ -184,6 +196,23 @@ public CreateGoogleCloudStorageIcebergStorageDetails( this.bucket = bucket; this.projectId = projectId; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.endpoint = endpoint; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateGoogleCloudStorageIcebergStorageDetails( + String bucket, + String projectId, + String serviceAccountKeyFileSecretId, + char[] serviceAccountKeyFile, + String endpoint) { + super(); + this.bucket = bucket; + this.projectId = projectId; + this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; this.serviceAccountKeyFile = serviceAccountKeyFile; this.endpoint = endpoint; } @@ -237,20 +266,41 @@ public String getServiceAccountKeyFileSecretId() { /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private final String serviceAccountKeyFile; + private final char[] serviceAccountKeyFile; /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getServiceAccountKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getServiceAccountKeyFile() { + return serviceAccountKeyFile != null ? new String(serviceAccountKeyFile) : null; + } + + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google Cloud Storage. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getServiceAccountKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") + public char[] getServiceAccountKeyFile__AsCharArray() { return serviceAccountKeyFile; } @@ -290,7 +340,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", projectId=").append(String.valueOf(this.projectId)); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); - sb.append(", serviceAccountKeyFile=").append(String.valueOf(this.serviceAccountKeyFile)); + sb.append(", serviceAccountKeyFile=").append(""); sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(")"); return sb.toString(); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGooglePubSubConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGooglePubSubConnectionDetails.java index b271d0d0422..0948576f3ce 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGooglePubSubConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGooglePubSubConnectionDetails.java @@ -183,25 +183,37 @@ public Builder technologyType(GooglePubSubConnection.TechnologyType technologyTy /** * The base64 encoded content of the service account key file containing * the credentials required to use Google PubSub. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private String serviceAccountKeyFile; + private char[] serviceAccountKeyFile; /** * The base64 encoded content of the service account key file containing * the credentials required to use Google PubSub. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param serviceAccountKeyFile the value to set * @return this builder **/ - public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + public Builder serviceAccountKeyFile(char[] serviceAccountKeyFile) { this.serviceAccountKeyFile = serviceAccountKeyFile; this.__explicitlySet__.add("serviceAccountKeyFile"); return this; } + + public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.__explicitlySet__.add("serviceAccountKeyFile"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, * which contains the credentials required to use Google PubSub. @@ -363,6 +375,49 @@ public CreateGooglePubSubConnectionDetails( clusterPlacementGroupId, securityAttributes); this.technologyType = technologyType; + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateGooglePubSubConnectionDetails( + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.List locks, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + GooglePubSubConnection.TechnologyType technologyType, + char[] serviceAccountKeyFile, + String serviceAccountKeyFileSecretId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; this.serviceAccountKeyFile = serviceAccountKeyFile; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; } @@ -384,20 +439,41 @@ public GooglePubSubConnection.TechnologyType getTechnologyType() { /** * The base64 encoded content of the service account key file containing * the credentials required to use Google PubSub. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private final String serviceAccountKeyFile; + private final char[] serviceAccountKeyFile; + + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google PubSub. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getServiceAccountKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getServiceAccountKeyFile() { + return serviceAccountKeyFile != null ? new String(serviceAccountKeyFile) : null; + } /** * The base64 encoded content of the service account key file containing * the credentials required to use Google PubSub. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getServiceAccountKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") + public char[] getServiceAccountKeyFile__AsCharArray() { return serviceAccountKeyFile; } @@ -436,7 +512,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("CreateGooglePubSubConnectionDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", technologyType=").append(String.valueOf(this.technologyType)); - sb.append(", serviceAccountKeyFile=").append(String.valueOf(this.serviceAccountKeyFile)); + sb.append(", serviceAccountKeyFile=").append(""); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); sb.append(")"); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateIcebergConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateIcebergConnectionDetails.java index 1ff76de2c17..a2e8255e76e 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateIcebergConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateIcebergConnectionDetails.java @@ -166,12 +166,14 @@ public Builder securityAttributes( } /** * The Iceberg technology type. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("technologyType") private IcebergConnection.TechnologyType technologyType; /** * The Iceberg technology type. + * * @param technologyType the value to set * @return this builder **/ @@ -343,12 +345,14 @@ public CreateIcebergConnectionDetails( /** * The Iceberg technology type. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("technologyType") private final IcebergConnection.TechnologyType technologyType; /** * The Iceberg technology type. + * * @return the value **/ public IcebergConnection.TechnologyType getTechnologyType() { diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateIcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateIcebergStorageDetails.java index 3615abde0c9..f9cd9978a4f 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateIcebergStorageDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateIcebergStorageDetails.java @@ -27,6 +27,10 @@ value = CreateAzureDataLakeStorageIcebergStorageDetails.class, name = "AZURE_DATA_LAKE_STORAGE" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateNoIcebergStorageDetails.class, + name = "NONE" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateGoogleCloudStorageIcebergStorageDetails.class, name = "GOOGLE_CLOUD_STORAGE" @@ -34,6 +38,10 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateAmazonS3IcebergStorageDetails.class, name = "AMAZON_S3" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOciObjectStorageS3ApiIcebergStorageDetails.class, + name = "OCI_OBJECT_STORAGE_S3_API" ) }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateJavaMessageServiceConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateJavaMessageServiceConnectionDetails.java index 227a89a695c..143eddc86e0 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateJavaMessageServiceConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateJavaMessageServiceConnectionDetails.java @@ -284,7 +284,9 @@ public Builder jndiSecurityPrincipal(String jndiSecurityPrincipal) { } /** * The password associated to the principal. - * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") @@ -292,7 +294,9 @@ public Builder jndiSecurityPrincipal(String jndiSecurityPrincipal) { /** * The password associated to the principal. - * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param jndiSecurityCredentials the value to set * @return this builder @@ -394,7 +398,9 @@ public Builder username(String username) { } /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -402,7 +408,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -485,24 +493,35 @@ public Builder authenticationType( } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private String trustStore; + private char[] trustStore; /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStore the value to set * @return this builder **/ - public Builder trustStore(String trustStore) { + public Builder trustStore(char[] trustStore) { this.trustStore = trustStore; this.__explicitlySet__.add("trustStore"); return this; } + + public Builder trustStore(String trustStore) { + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; + this.__explicitlySet__.add("trustStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the TrustStore file is stored. * Note: When provided, 'trustStore' field must not be provided. @@ -525,7 +544,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { } /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -533,7 +554,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStorePassword the value to set * @return this builder @@ -573,24 +596,35 @@ public Builder trustStorePasswordSecretId(String trustStorePasswordSecretId) { } /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private String keyStore; + private char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStore the value to set * @return this builder **/ - public Builder keyStore(String keyStore) { + public Builder keyStore(char[] keyStore) { this.keyStore = keyStore; this.__explicitlySet__.add("keyStore"); return this; } + + public Builder keyStore(String keyStore) { + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; + this.__explicitlySet__.add("keyStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the KeyStore file is stored. * Note: When provided, 'keyStore' field must not be provided. @@ -613,7 +647,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { } /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -621,7 +657,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStorePassword the value to set * @return this builder @@ -662,7 +700,9 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") @@ -671,7 +711,9 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sslKeyPassword the value to set * @return this builder @@ -974,12 +1016,12 @@ public CreateJavaMessageServiceConnectionDetails( this.passwordSecretId = passwordSecretId; this.securityProtocol = securityProtocol; this.authenticationType = authenticationType; - this.trustStore = trustStore; + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; this.trustStoreSecretId = trustStoreSecretId; this.trustStorePassword = trustStorePassword != null ? trustStorePassword.toCharArray() : null; this.trustStorePasswordSecretId = trustStorePasswordSecretId; - this.keyStore = keyStore; + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; this.keyStoreSecretId = keyStoreSecretId; this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; this.keyStorePasswordSecretId = keyStorePasswordSecretId; @@ -1020,11 +1062,11 @@ public CreateJavaMessageServiceConnectionDetails( String passwordSecretId, JavaMessageServiceConnection.SecurityProtocol securityProtocol, JavaMessageServiceConnection.AuthenticationType authenticationType, - String trustStore, + char[] trustStore, String trustStoreSecretId, char[] trustStorePassword, String trustStorePasswordSecretId, - String keyStore, + char[] keyStore, String keyStoreSecretId, char[] keyStorePassword, String keyStorePasswordSecretId, @@ -1181,7 +1223,9 @@ public String getJndiSecurityPrincipal() { /** * The password associated to the principal. - * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") @@ -1189,7 +1233,9 @@ public String getJndiSecurityPrincipal() { /** * The password associated to the principal. - * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getJndiSecurityCredentials__AsCharArray() instead. @@ -1202,7 +1248,9 @@ public String getJndiSecurityCredentials() { /** * The password associated to the principal. - * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1287,7 +1335,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -1295,7 +1345,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -1308,7 +1360,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1375,19 +1429,39 @@ public JavaMessageServiceConnection.AuthenticationType getAuthenticationType() { /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private final String trustStore; + private final char[] trustStore; + + /** + * The base64 encoded content of the TrustStore file. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getTrustStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStore() { + return trustStore != null ? new String(trustStore) : null; + } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getTrustStore() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") + public char[] getTrustStore__AsCharArray() { return trustStore; } @@ -1411,7 +1485,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -1419,7 +1495,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. @@ -1432,7 +1510,9 @@ public String getTrustStorePassword() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1461,19 +1541,39 @@ public String getTrustStorePasswordSecretId() { /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private final String keyStore; + private final char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getKeyStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStore() { + return keyStore != null ? new String(keyStore) : null; + } + + /** + * The base64 encoded content of the KeyStore file. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getKeyStore() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") + public char[] getKeyStore__AsCharArray() { return keyStore; } @@ -1497,7 +1597,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -1505,7 +1607,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. @@ -1518,7 +1622,9 @@ public String getKeyStorePassword() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1548,7 +1654,9 @@ public String getKeyStorePasswordSecretId() { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") @@ -1557,7 +1665,9 @@ public String getKeyStorePasswordSecretId() { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getSslKeyPassword__AsCharArray() instead. @@ -1571,7 +1681,9 @@ public String getSslKeyPassword() { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1631,12 +1743,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); sb.append(", authenticationType=").append(String.valueOf(this.authenticationType)); - sb.append(", trustStore=").append(String.valueOf(this.trustStore)); + sb.append(", trustStore=").append(""); sb.append(", trustStoreSecretId=").append(String.valueOf(this.trustStoreSecretId)); sb.append(", trustStorePassword=").append(""); sb.append(", trustStorePasswordSecretId=") .append(String.valueOf(this.trustStorePasswordSecretId)); - sb.append(", keyStore=").append(String.valueOf(this.keyStore)); + sb.append(", keyStore=").append(""); sb.append(", keyStoreSecretId=").append(String.valueOf(this.keyStoreSecretId)); sb.append(", keyStorePassword=").append(""); sb.append(", keyStorePasswordSecretId=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaConnectionDetails.java index 687e58e3875..229c705c45f 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaConnectionDetails.java @@ -288,7 +288,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -297,7 +299,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -342,24 +346,35 @@ public Builder passwordSecretId(String passwordSecretId) { } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private String trustStore; + private char[] trustStore; /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStore the value to set * @return this builder **/ - public Builder trustStore(String trustStore) { + public Builder trustStore(char[] trustStore) { this.trustStore = trustStore; this.__explicitlySet__.add("trustStore"); return this; } + + public Builder trustStore(String trustStore) { + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; + this.__explicitlySet__.add("trustStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the TrustStore file is stored. * Note: When provided, 'trustStore' field must not be provided. @@ -382,7 +397,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { } /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -390,7 +407,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStorePassword the value to set * @return this builder @@ -430,24 +449,35 @@ public Builder trustStorePasswordSecretId(String trustStorePasswordSecretId) { } /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private String keyStore; + private char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStore the value to set * @return this builder **/ - public Builder keyStore(String keyStore) { + public Builder keyStore(char[] keyStore) { this.keyStore = keyStore; this.__explicitlySet__.add("keyStore"); return this; } + + public Builder keyStore(String keyStore) { + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; + this.__explicitlySet__.add("keyStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the KeyStore file is stored. * Note: When provided, 'keyStore' field must not be provided. @@ -470,7 +500,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { } /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -478,7 +510,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStorePassword the value to set * @return this builder @@ -519,7 +553,9 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") @@ -528,7 +564,9 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sslKeyPassword the value to set * @return this builder @@ -863,12 +901,12 @@ public CreateKafkaConnectionDetails( this.username = username; this.password = password != null ? password.toCharArray() : null; this.passwordSecretId = passwordSecretId; - this.trustStore = trustStore; + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; this.trustStoreSecretId = trustStoreSecretId; this.trustStorePassword = trustStorePassword != null ? trustStorePassword.toCharArray() : null; this.trustStorePasswordSecretId = trustStorePasswordSecretId; - this.keyStore = keyStore; + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; this.keyStoreSecretId = keyStoreSecretId; this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; this.keyStorePasswordSecretId = keyStorePasswordSecretId; @@ -905,11 +943,11 @@ public CreateKafkaConnectionDetails( String username, char[] password, String passwordSecretId, - String trustStore, + char[] trustStore, String trustStoreSecretId, char[] trustStorePassword, String trustStorePasswordSecretId, - String keyStore, + char[] keyStore, String keyStoreSecretId, char[] keyStorePassword, String keyStorePasswordSecretId, @@ -1068,7 +1106,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -1077,7 +1117,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -1091,7 +1133,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1126,19 +1170,39 @@ public String getPasswordSecretId() { /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private final String trustStore; + private final char[] trustStore; + + /** + * The base64 encoded content of the TrustStore file. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getTrustStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStore() { + return trustStore != null ? new String(trustStore) : null; + } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getTrustStore() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") + public char[] getTrustStore__AsCharArray() { return trustStore; } @@ -1162,7 +1226,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -1170,7 +1236,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. @@ -1183,7 +1251,9 @@ public String getTrustStorePassword() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1212,19 +1282,39 @@ public String getTrustStorePasswordSecretId() { /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private final String keyStore; + private final char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getKeyStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStore() { + return keyStore != null ? new String(keyStore) : null; + } + + /** + * The base64 encoded content of the KeyStore file. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getKeyStore() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") + public char[] getKeyStore__AsCharArray() { return keyStore; } @@ -1248,7 +1338,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -1256,7 +1348,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. @@ -1269,7 +1363,9 @@ public String getKeyStorePassword() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1299,7 +1395,9 @@ public String getKeyStorePasswordSecretId() { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") @@ -1308,7 +1406,9 @@ public String getKeyStorePasswordSecretId() { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getSslKeyPassword__AsCharArray() instead. @@ -1322,7 +1422,9 @@ public String getSslKeyPassword() { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1427,12 +1529,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", username=").append(String.valueOf(this.username)); sb.append(", password=").append(""); sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); - sb.append(", trustStore=").append(String.valueOf(this.trustStore)); + sb.append(", trustStore=").append(""); sb.append(", trustStoreSecretId=").append(String.valueOf(this.trustStoreSecretId)); sb.append(", trustStorePassword=").append(""); sb.append(", trustStorePasswordSecretId=") .append(String.valueOf(this.trustStorePasswordSecretId)); - sb.append(", keyStore=").append(String.valueOf(this.keyStore)); + sb.append(", keyStore=").append(""); sb.append(", keyStoreSecretId=").append(String.valueOf(this.keyStoreSecretId)); sb.append(", keyStorePassword=").append(""); sb.append(", keyStorePasswordSecretId=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaSchemaRegistryConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaSchemaRegistryConnectionDetails.java index bb1a17b415d..5b3508e411c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaSchemaRegistryConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaSchemaRegistryConnectionDetails.java @@ -244,7 +244,9 @@ public Builder username(String username) { /** * The password to access Schema Registry using basic authentication. * This value is injected into 'schema.registry.basic.auth.user.info=user:password' configuration property. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -253,7 +255,9 @@ public Builder username(String username) { /** * The password to access Schema Registry using basic authentication. * This value is injected into 'schema.registry.basic.auth.user.info=user:password' configuration property. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -296,24 +300,35 @@ public Builder passwordSecretId(String passwordSecretId) { } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private String trustStore; + private char[] trustStore; /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStore the value to set * @return this builder **/ - public Builder trustStore(String trustStore) { + public Builder trustStore(char[] trustStore) { this.trustStore = trustStore; this.__explicitlySet__.add("trustStore"); return this; } + + public Builder trustStore(String trustStore) { + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; + this.__explicitlySet__.add("trustStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the content of the TrustStore file. * Note: When provided, 'trustStore' field must not be provided. @@ -336,7 +351,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { } /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -344,7 +361,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStorePassword the value to set * @return this builder @@ -384,24 +403,35 @@ public Builder trustStorePasswordSecretId(String trustStorePasswordSecretId) { } /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private String keyStore; + private char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStore the value to set * @return this builder **/ - public Builder keyStore(String keyStore) { + public Builder keyStore(char[] keyStore) { this.keyStore = keyStore; this.__explicitlySet__.add("keyStore"); return this; } + + public Builder keyStore(String keyStore) { + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; + this.__explicitlySet__.add("keyStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the content of the KeyStore file. * Note: When provided, 'keyStore' field must not be provided. @@ -424,7 +454,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { } /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -432,7 +464,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStorePassword the value to set * @return this builder @@ -473,7 +507,9 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { /** * The password for the cert inside the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") @@ -482,7 +518,9 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { /** * The password for the cert inside the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sslKeyPassword the value to set * @return this builder @@ -730,12 +768,12 @@ public CreateKafkaSchemaRegistryConnectionDetails( this.username = username; this.password = password != null ? password.toCharArray() : null; this.passwordSecretId = passwordSecretId; - this.trustStore = trustStore; + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; this.trustStoreSecretId = trustStoreSecretId; this.trustStorePassword = trustStorePassword != null ? trustStorePassword.toCharArray() : null; this.trustStorePasswordSecretId = trustStorePasswordSecretId; - this.keyStore = keyStore; + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; this.keyStoreSecretId = keyStoreSecretId; this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; this.keyStorePasswordSecretId = keyStorePasswordSecretId; @@ -767,11 +805,11 @@ public CreateKafkaSchemaRegistryConnectionDetails( String username, char[] password, String passwordSecretId, - String trustStore, + char[] trustStore, String trustStoreSecretId, char[] trustStorePassword, String trustStorePasswordSecretId, - String keyStore, + char[] keyStore, String keyStoreSecretId, char[] keyStorePassword, String keyStorePasswordSecretId, @@ -882,7 +920,9 @@ public String getUsername() { /** * The password to access Schema Registry using basic authentication. * This value is injected into 'schema.registry.basic.auth.user.info=user:password' configuration property. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -891,7 +931,9 @@ public String getUsername() { /** * The password to access Schema Registry using basic authentication. * This value is injected into 'schema.registry.basic.auth.user.info=user:password' configuration property. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -905,7 +947,9 @@ public String getPassword() { /** * The password to access Schema Registry using basic authentication. * This value is injected into 'schema.registry.basic.auth.user.info=user:password' configuration property. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -938,19 +982,39 @@ public String getPasswordSecretId() { /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private final String trustStore; + private final char[] trustStore; + + /** + * The base64 encoded content of the TrustStore file. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getTrustStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStore() { + return trustStore != null ? new String(trustStore) : null; + } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getTrustStore() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") + public char[] getTrustStore__AsCharArray() { return trustStore; } @@ -974,7 +1038,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -982,7 +1048,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. @@ -995,7 +1063,9 @@ public String getTrustStorePassword() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1024,19 +1094,39 @@ public String getTrustStorePasswordSecretId() { /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private final String keyStore; + private final char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getKeyStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStore() { + return keyStore != null ? new String(keyStore) : null; + } + + /** + * The base64 encoded content of the KeyStore file. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getKeyStore() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") + public char[] getKeyStore__AsCharArray() { return keyStore; } @@ -1060,7 +1150,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -1068,7 +1160,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. @@ -1081,7 +1175,9 @@ public String getKeyStorePassword() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1111,7 +1207,9 @@ public String getKeyStorePasswordSecretId() { /** * The password for the cert inside the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") @@ -1120,7 +1218,9 @@ public String getKeyStorePasswordSecretId() { /** * The password for the cert inside the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getSslKeyPassword__AsCharArray() instead. @@ -1134,7 +1234,9 @@ public String getSslKeyPassword() { /** * The password for the cert inside the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1183,12 +1285,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", username=").append(String.valueOf(this.username)); sb.append(", password=").append(""); sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); - sb.append(", trustStore=").append(String.valueOf(this.trustStore)); + sb.append(", trustStore=").append(""); sb.append(", trustStoreSecretId=").append(String.valueOf(this.trustStoreSecretId)); sb.append(", trustStorePassword=").append(""); sb.append(", trustStorePasswordSecretId=") .append(String.valueOf(this.trustStorePasswordSecretId)); - sb.append(", keyStore=").append(String.valueOf(this.keyStore)); + sb.append(", keyStore=").append(""); sb.append(", keyStoreSecretId=").append(String.valueOf(this.keyStoreSecretId)); sb.append(", keyStorePassword=").append(""); sb.append(", keyStorePasswordSecretId=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftFabricConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftFabricConnectionDetails.java index c2559d9deb7..6b8f83ad80e 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftFabricConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftFabricConnectionDetails.java @@ -222,24 +222,35 @@ public Builder clientId(String clientId) { } /** * Client secret associated with the client id. - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * Client secret associated with the client id. - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param clientSecret the value to set * @return this builder **/ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the client secret is stored. * Note: When provided, 'clientSecret' field must not be provided. @@ -436,6 +447,54 @@ public CreateMicrosoftFabricConnectionDetails( this.technologyType = technologyType; this.tenantId = tenantId; this.clientId = clientId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.clientSecretSecretId = clientSecretSecretId; + this.endpoint = endpoint; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateMicrosoftFabricConnectionDetails( + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.List locks, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + String subscriptionId, + String clusterPlacementGroupId, + java.util.Map> securityAttributes, + MicrosoftFabricConnection.TechnologyType technologyType, + String tenantId, + String clientId, + char[] clientSecret, + String clientSecretSecretId, + String endpoint) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.tenantId = tenantId; + this.clientId = clientId; this.clientSecret = clientSecret; this.clientSecretSecretId = clientSecretSecretId; this.endpoint = endpoint; @@ -493,19 +552,39 @@ public String getClientId() { /** * Client secret associated with the client id. - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; /** * Client secret associated with the client id. - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } + + /** + * Client secret associated with the client id. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getClientSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } @@ -562,7 +641,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", technologyType=").append(String.valueOf(this.technologyType)); sb.append(", tenantId=").append(String.valueOf(this.tenantId)); sb.append(", clientId=").append(String.valueOf(this.clientId)); - sb.append(", clientSecret=").append(String.valueOf(this.clientSecret)); + sb.append(", clientSecret=").append(""); sb.append(", clientSecretSecretId=").append(String.valueOf(this.clientSecretSecretId)); sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(")"); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftSqlserverConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftSqlserverConnectionDetails.java index 0100b7bf587..1050ee6dc1e 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftSqlserverConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftSqlserverConnectionDetails.java @@ -256,7 +256,9 @@ public Builder username(String username) { } /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -264,7 +266,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -707,7 +711,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -715,7 +721,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -728,7 +736,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMongoDbConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMongoDbConnectionDetails.java index abfaeb51ca7..3334355bf13 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMongoDbConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMongoDbConnectionDetails.java @@ -222,7 +222,9 @@ public Builder username(String username) { } /** * The password Oracle GoldenGate uses to connect the associated database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -230,7 +232,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -323,24 +327,36 @@ public Builder tlsCaFile(String tlsCaFile) { } /** * Client Certificate - The base64 encoded content of a .pem file, containing the client public key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFile") - private String tlsCertificateKeyFile; + private char[] tlsCertificateKeyFile; /** * Client Certificate - The base64 encoded content of a .pem file, containing the client public key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param tlsCertificateKeyFile the value to set * @return this builder **/ - public Builder tlsCertificateKeyFile(String tlsCertificateKeyFile) { + public Builder tlsCertificateKeyFile(char[] tlsCertificateKeyFile) { this.tlsCertificateKeyFile = tlsCertificateKeyFile; this.__explicitlySet__.add("tlsCertificateKeyFile"); return this; } + + public Builder tlsCertificateKeyFile(String tlsCertificateKeyFile) { + this.tlsCertificateKeyFile = + tlsCertificateKeyFile != null ? tlsCertificateKeyFile.toCharArray() : null; + this.__explicitlySet__.add("tlsCertificateKeyFile"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the certificate key file of the mtls connection. * - The content of a .pem file containing the client private key (for 2-way SSL). @@ -365,7 +381,9 @@ public Builder tlsCertificateKeyFileSecretId(String tlsCertificateKeyFileSecretI } /** * Client Certificate key file password. - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") @@ -373,7 +391,9 @@ public Builder tlsCertificateKeyFileSecretId(String tlsCertificateKeyFileSecretI /** * Client Certificate key file password. - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param tlsCertificateKeyFilePassword the value to set * @return this builder @@ -606,7 +626,8 @@ public CreateMongoDbConnectionDetails( this.databaseId = databaseId; this.securityProtocol = securityProtocol; this.tlsCaFile = tlsCaFile; - this.tlsCertificateKeyFile = tlsCertificateKeyFile; + this.tlsCertificateKeyFile = + tlsCertificateKeyFile != null ? tlsCertificateKeyFile.toCharArray() : null; this.tlsCertificateKeyFileSecretId = tlsCertificateKeyFileSecretId; this.tlsCertificateKeyFilePassword = tlsCertificateKeyFilePassword != null @@ -641,7 +662,7 @@ public CreateMongoDbConnectionDetails( String databaseId, MongoDbConnection.SecurityProtocol securityProtocol, String tlsCaFile, - String tlsCertificateKeyFile, + char[] tlsCertificateKeyFile, String tlsCertificateKeyFileSecretId, char[] tlsCertificateKeyFilePassword, String tlsCertificateKeyFilePasswordSecretId) { @@ -727,7 +748,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -735,7 +758,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -748,7 +773,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -825,19 +852,39 @@ public String getTlsCaFile() { /** * Client Certificate - The base64 encoded content of a .pem file, containing the client public key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFile") - private final String tlsCertificateKeyFile; + private final char[] tlsCertificateKeyFile; /** * Client Certificate - The base64 encoded content of a .pem file, containing the client public key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getTlsCertificateKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTlsCertificateKeyFile() { + return tlsCertificateKeyFile != null ? new String(tlsCertificateKeyFile) : null; + } + + /** + * Client Certificate - The base64 encoded content of a .pem file, containing the client public key (for 2-way SSL). + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getTlsCertificateKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFile") + public char[] getTlsCertificateKeyFile__AsCharArray() { return tlsCertificateKeyFile; } @@ -863,7 +910,9 @@ public String getTlsCertificateKeyFileSecretId() { /** * Client Certificate key file password. - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") @@ -871,7 +920,9 @@ public String getTlsCertificateKeyFileSecretId() { /** * Client Certificate key file password. - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getTlsCertificateKeyFilePassword__AsCharArray() instead. @@ -886,7 +937,9 @@ public String getTlsCertificateKeyFilePassword() { /** * Client Certificate key file password. - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -935,7 +988,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", databaseId=").append(String.valueOf(this.databaseId)); sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); sb.append(", tlsCaFile=").append(String.valueOf(this.tlsCaFile)); - sb.append(", tlsCertificateKeyFile=").append(String.valueOf(this.tlsCertificateKeyFile)); + sb.append(", tlsCertificateKeyFile=").append(""); sb.append(", tlsCertificateKeyFileSecretId=") .append(String.valueOf(this.tlsCertificateKeyFileSecretId)); sb.append(", tlsCertificateKeyFilePassword=").append(""); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java index d5642a3341e..64e972e2250 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java @@ -205,7 +205,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -214,7 +216,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -411,24 +415,35 @@ public Builder sslCert(String sslCert) { } /** * Client Key - The base64 encoded content of a .pem or .crt file containing the client private key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKey") - private String sslKey; + private char[] sslKey; /** * Client Key - The base64 encoded content of a .pem or .crt file containing the client private key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sslKey the value to set * @return this builder **/ - public Builder sslKey(String sslKey) { + public Builder sslKey(char[] sslKey) { this.sslKey = sslKey; this.__explicitlySet__.add("sslKey"); return this; } + + public Builder sslKey(String sslKey) { + this.sslKey = sslKey != null ? sslKey.toCharArray() : null; + this.__explicitlySet__.add("sslKey"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the Client Key * - The content of a .pem or .crt file containing the client private key (for 2-way SSL). @@ -704,7 +719,7 @@ public CreateMysqlConnectionDetails( this.sslCa = sslCa; this.sslCrl = sslCrl; this.sslCert = sslCert; - this.sslKey = sslKey; + this.sslKey = sslKey != null ? sslKey.toCharArray() : null; this.sslKeySecretId = sslKeySecretId; this.additionalAttributes = additionalAttributes; this.dbSystemId = dbSystemId; @@ -740,7 +755,7 @@ public CreateMysqlConnectionDetails( String sslCa, String sslCrl, String sslCert, - String sslKey, + char[] sslKey, String sslKeySecretId, java.util.List additionalAttributes, String dbSystemId) { @@ -815,7 +830,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -824,7 +841,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -838,7 +857,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1009,19 +1030,39 @@ public String getSslCert() { /** * Client Key - The base64 encoded content of a .pem or .crt file containing the client private key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKey") - private final String sslKey; + private final char[] sslKey; /** * Client Key - The base64 encoded content of a .pem or .crt file containing the client private key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getSslKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslKey() { + return sslKey != null ? new String(sslKey) : null; + } + + /** + * Client Key - The base64 encoded content of a .pem or .crt file containing the client private key (for 2-way SSL). + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getSslKey() { + @com.fasterxml.jackson.annotation.JsonProperty("sslKey") + public char[] getSslKey__AsCharArray() { return sslKey; } @@ -1105,7 +1146,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sslCa=").append(String.valueOf(this.sslCa)); sb.append(", sslCrl=").append(String.valueOf(this.sslCrl)); sb.append(", sslCert=").append(String.valueOf(this.sslCert)); - sb.append(", sslKey=").append(String.valueOf(this.sslKey)); + sb.append(", sslKey=").append(""); sb.append(", sslKeySecretId=").append(String.valueOf(this.sslKeySecretId)); sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateNoIcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateNoIcebergStorageDetails.java new file mode 100644 index 00000000000..c5111f3d9d4 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateNoIcebergStorageDetails.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * The information indicating the absence of a storage configuration in an + * Iceberg connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateNoIcebergStorageDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "storageType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateNoIcebergStorageDetails extends CreateIcebergStorageDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateNoIcebergStorageDetails build() { + CreateNoIcebergStorageDetails model = new CreateNoIcebergStorageDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateNoIcebergStorageDetails model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateNoIcebergStorageDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateNoIcebergStorageDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateNoIcebergStorageDetails)) { + return false; + } + + CreateNoIcebergStorageDetails other = (CreateNoIcebergStorageDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciGenAiModelAuthDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciGenAiModelAuthDetails.java new file mode 100644 index 00000000000..9abcba16282 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciGenAiModelAuthDetails.java @@ -0,0 +1,430 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * The information about new OCI Generative AI authentication details for an AI Model connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOciGenAiModelAuthDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "authType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateOciGenAiModelAuthDetails extends CreateAiModelAuthDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + private char[] apiKey; + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @param apiKey the value to set + * @return this builder + **/ + public Builder apiKey(char[] apiKey) { + this.apiKey = apiKey; + this.__explicitlySet__.add("apiKey"); + return this; + } + + public Builder apiKey(String apiKey) { + this.apiKey = apiKey != null ? apiKey.toCharArray() : null; + this.__explicitlySet__.add("apiKey"); + return this; + } + + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @param apiKeySecretId the value to set + * @return this builder + **/ + public Builder apiKeySecretId(String apiKeySecretId) { + this.apiKeySecretId = apiKeySecretId; + this.__explicitlySet__.add("apiKeySecretId"); + return this; + } + /** + * OCI Generative AI key fingerprint. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyFingerprint") + private String keyFingerprint; + + /** + * OCI Generative AI key fingerprint. + * + * @param keyFingerprint the value to set + * @return this builder + **/ + public Builder keyFingerprint(String keyFingerprint) { + this.keyFingerprint = keyFingerprint; + this.__explicitlySet__.add("keyFingerprint"); + return this; + } + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + * @param region the value to set + * @return this builder + **/ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private String tenancyId; + + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + * @param tenancyId the value to set + * @return this builder + **/ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + this.__explicitlySet__.add("tenancyId"); + return this; + } + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userId") + private String userId; + + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + * @param userId the value to set + * @return this builder + **/ + public Builder userId(String userId) { + this.userId = userId; + this.__explicitlySet__.add("userId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOciGenAiModelAuthDetails build() { + CreateOciGenAiModelAuthDetails model = + new CreateOciGenAiModelAuthDetails( + this.apiKey, + this.apiKeySecretId, + this.keyFingerprint, + this.region, + this.tenancyId, + this.userId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOciGenAiModelAuthDetails model) { + if (model.wasPropertyExplicitlySet("apiKey")) { + this.apiKey(model.getApiKey()); + } + if (model.wasPropertyExplicitlySet("apiKeySecretId")) { + this.apiKeySecretId(model.getApiKeySecretId()); + } + if (model.wasPropertyExplicitlySet("keyFingerprint")) { + this.keyFingerprint(model.getKeyFingerprint()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + if (model.wasPropertyExplicitlySet("tenancyId")) { + this.tenancyId(model.getTenancyId()); + } + if (model.wasPropertyExplicitlySet("userId")) { + this.userId(model.getUserId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOciGenAiModelAuthDetails( + String apiKey, + String apiKeySecretId, + String keyFingerprint, + String region, + String tenancyId, + String userId) { + super(); + this.apiKey = apiKey != null ? apiKey.toCharArray() : null; + this.apiKeySecretId = apiKeySecretId; + this.keyFingerprint = keyFingerprint; + this.region = region; + this.tenancyId = tenancyId; + this.userId = userId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOciGenAiModelAuthDetails( + char[] apiKey, + String apiKeySecretId, + String keyFingerprint, + String region, + String tenancyId, + String userId) { + super(); + this.apiKey = apiKey; + this.apiKeySecretId = apiKeySecretId; + this.keyFingerprint = keyFingerprint; + this.region = region; + this.tenancyId = tenancyId; + this.userId = userId; + } + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + private final char[] apiKey; + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getApiKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getApiKey() { + return apiKey != null ? new String(apiKey) : null; + } + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + public char[] getApiKey__AsCharArray() { + return apiKey; + } + + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private final String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @return the value + **/ + public String getApiKeySecretId() { + return apiKeySecretId; + } + + /** + * OCI Generative AI key fingerprint. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyFingerprint") + private final String keyFingerprint; + + /** + * OCI Generative AI key fingerprint. + * + * @return the value + **/ + public String getKeyFingerprint() { + return keyFingerprint; + } + + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + * @return the value + **/ + public String getRegion() { + return region; + } + + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private final String tenancyId; + + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + * @return the value + **/ + public String getTenancyId() { + return tenancyId; + } + + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userId") + private final String userId; + + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + * @return the value + **/ + public String getUserId() { + return userId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOciGenAiModelAuthDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", apiKey=").append(""); + sb.append(", apiKeySecretId=").append(String.valueOf(this.apiKeySecretId)); + sb.append(", keyFingerprint=").append(String.valueOf(this.keyFingerprint)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(", userId=").append(String.valueOf(this.userId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciGenAiModelAuthDetails)) { + return false; + } + + CreateOciGenAiModelAuthDetails other = (CreateOciGenAiModelAuthDetails) o; + return java.util.Objects.equals(this.apiKey, other.apiKey) + && java.util.Objects.equals(this.apiKeySecretId, other.apiKeySecretId) + && java.util.Objects.equals(this.keyFingerprint, other.keyFingerprint) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.tenancyId, other.tenancyId) + && java.util.Objects.equals(this.userId, other.userId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.apiKey == null ? 43 : this.apiKey.hashCode()); + result = + (result * PRIME) + + (this.apiKeySecretId == null ? 43 : this.apiKeySecretId.hashCode()); + result = + (result * PRIME) + + (this.keyFingerprint == null ? 43 : this.keyFingerprint.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = (result * PRIME) + (this.userId == null ? 43 : this.userId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageConnectionDetails.java index 25d59f8eed2..2543acdf039 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageConnectionDetails.java @@ -243,25 +243,36 @@ public Builder userId(String userId) { /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private String privateKeyFile; + private char[] privateKeyFile; /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyFile the value to set * @return this builder **/ - public Builder privateKeyFile(String privateKeyFile) { + public Builder privateKeyFile(char[] privateKeyFile) { this.privateKeyFile = privateKeyFile; this.__explicitlySet__.add("privateKeyFile"); return this; } + + public Builder privateKeyFile(String privateKeyFile) { + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; + this.__explicitlySet__.add("privateKeyFile"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm @@ -286,7 +297,9 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { } /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -294,7 +307,9 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyPassphrase the value to set * @return this builder @@ -549,7 +564,7 @@ public CreateOciObjectStorageConnectionDetails( this.tenancyId = tenancyId; this.region = region; this.userId = userId; - this.privateKeyFile = privateKeyFile; + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphrase = privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; @@ -580,7 +595,7 @@ public CreateOciObjectStorageConnectionDetails( String tenancyId, String region, String userId, - String privateKeyFile, + char[] privateKeyFile, String privateKeyFileSecretId, char[] privateKeyPassphrase, String privateKeyPassphraseSecretId, @@ -685,20 +700,41 @@ public String getUserId() { /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private final String privateKeyFile; + private final char[] privateKeyFile; + + /** + * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. + * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getPrivateKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyFile() { + return privateKeyFile != null ? new String(privateKeyFile) : null; + } /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getPrivateKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") + public char[] getPrivateKeyFile__AsCharArray() { return privateKeyFile; } @@ -724,7 +760,9 @@ public String getPrivateKeyFileSecretId() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -732,7 +770,9 @@ public String getPrivateKeyFileSecretId() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. @@ -745,7 +785,9 @@ public String getPrivateKeyPassphrase() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -826,7 +868,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); sb.append(", region=").append(String.valueOf(this.region)); sb.append(", userId=").append(String.valueOf(this.userId)); - sb.append(", privateKeyFile=").append(String.valueOf(this.privateKeyFile)); + sb.append(", privateKeyFile=").append(""); sb.append(", privateKeyFileSecretId=").append(String.valueOf(this.privateKeyFileSecretId)); sb.append(", privateKeyPassphrase=").append(""); sb.append(", privateKeyPassphraseSecretId=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageS3ApiIcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageS3ApiIcebergStorageDetails.java new file mode 100644 index 00000000000..9f20c033673 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageS3ApiIcebergStorageDetails.java @@ -0,0 +1,409 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * The information to create the OCI Object Storage (S3 Compatibility API) configuration used by the + * Iceberg connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOciObjectStorageS3ApiIcebergStorageDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "storageType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateOciObjectStorageS3ApiIcebergStorageDetails + extends CreateIcebergStorageDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") + private String accessKeyId; + + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + * @param accessKeyId the value to set + * @return this builder + **/ + public Builder accessKeyId(String accessKeyId) { + this.accessKeyId = accessKeyId; + this.__explicitlySet__.add("accessKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKeySecretId") + private String secretAccessKeySecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + * @param secretAccessKeySecretId the value to set + * @return this builder + **/ + public Builder secretAccessKeySecretId(String secretAccessKeySecretId) { + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.__explicitlySet__.add("secretAccessKeySecretId"); + return this; + } + /** + * Secret Access Key from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + private char[] secretAccessKey; + + /** + * Secret Access Key from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @param secretAccessKey the value to set + * @return this builder + **/ + public Builder secretAccessKey(char[] secretAccessKey) { + this.secretAccessKey = secretAccessKey; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private String bucket; + + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + * @param bucket the value to set + * @return this builder + **/ + public Builder bucket(String bucket) { + this.bucket = bucket; + this.__explicitlySet__.add("bucket"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOciObjectStorageS3ApiIcebergStorageDetails build() { + CreateOciObjectStorageS3ApiIcebergStorageDetails model = + new CreateOciObjectStorageS3ApiIcebergStorageDetails( + this.endpoint, + this.accessKeyId, + this.secretAccessKeySecretId, + this.secretAccessKey, + this.bucket); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOciObjectStorageS3ApiIcebergStorageDetails model) { + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } + if (model.wasPropertyExplicitlySet("accessKeyId")) { + this.accessKeyId(model.getAccessKeyId()); + } + if (model.wasPropertyExplicitlySet("secretAccessKeySecretId")) { + this.secretAccessKeySecretId(model.getSecretAccessKeySecretId()); + } + if (model.wasPropertyExplicitlySet("secretAccessKey")) { + this.secretAccessKey(model.getSecretAccessKey()); + } + if (model.wasPropertyExplicitlySet("bucket")) { + this.bucket(model.getBucket()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOciObjectStorageS3ApiIcebergStorageDetails( + String endpoint, + String accessKeyId, + String secretAccessKeySecretId, + String secretAccessKey, + String bucket) { + super(); + this.endpoint = endpoint; + this.accessKeyId = accessKeyId; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.bucket = bucket; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOciObjectStorageS3ApiIcebergStorageDetails( + String endpoint, + String accessKeyId, + String secretAccessKeySecretId, + char[] secretAccessKey, + String bucket) { + super(); + this.endpoint = endpoint; + this.accessKeyId = accessKeyId; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.secretAccessKey = secretAccessKey; + this.bucket = bucket; + } + + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") + private final String accessKeyId; + + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + * @return the value + **/ + public String getAccessKeyId() { + return accessKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKeySecretId") + private final String secretAccessKeySecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + * @return the value + **/ + public String getSecretAccessKeySecretId() { + return secretAccessKeySecretId; + } + + /** + * Secret Access Key from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + private final char[] secretAccessKey; + + /** + * Secret Access Key from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } + + /** + * Secret Access Key from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { + return secretAccessKey; + } + + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private final String bucket; + + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + * @return the value + **/ + public String getBucket() { + return bucket; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOciObjectStorageS3ApiIcebergStorageDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); + sb.append(", accessKeyId=").append(String.valueOf(this.accessKeyId)); + sb.append(", secretAccessKeySecretId=") + .append(String.valueOf(this.secretAccessKeySecretId)); + sb.append(", secretAccessKey=").append(""); + sb.append(", bucket=").append(String.valueOf(this.bucket)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOciObjectStorageS3ApiIcebergStorageDetails)) { + return false; + } + + CreateOciObjectStorageS3ApiIcebergStorageDetails other = + (CreateOciObjectStorageS3ApiIcebergStorageDetails) o; + return java.util.Objects.equals(this.endpoint, other.endpoint) + && java.util.Objects.equals(this.accessKeyId, other.accessKeyId) + && java.util.Objects.equals( + this.secretAccessKeySecretId, other.secretAccessKeySecretId) + && java.util.Objects.equals(this.secretAccessKey, other.secretAccessKey) + && java.util.Objects.equals(this.bucket, other.bucket) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); + result = (result * PRIME) + (this.accessKeyId == null ? 43 : this.accessKeyId.hashCode()); + result = + (result * PRIME) + + (this.secretAccessKeySecretId == null + ? 43 + : this.secretAccessKeySecretId.hashCode()); + result = + (result * PRIME) + + (this.secretAccessKey == null ? 43 : this.secretAccessKey.hashCode()); + result = (result * PRIME) + (this.bucket == null ? 43 : this.bucket.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOggDeploymentDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOggDeploymentDetails.java index 4708a294fbb..d33cd4e0a5e 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOggDeploymentDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOggDeploymentDetails.java @@ -43,7 +43,7 @@ public CreateOggDeploymentDetails( this.adminUsername = adminUsername; this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; this.certificate = certificate; - this.key = key; + this.key = key != null ? key.toCharArray() : null; this.keySecretId = keySecretId; this.oggVersion = oggVersion; this.groupToRolesMapping = groupToRolesMapping; @@ -72,7 +72,7 @@ public CreateOggDeploymentDetails( String adminUsername, char[] adminPassword, String certificate, - String key, + char[] key, String keySecretId, String oggVersion, GroupToRolesMappingDetails groupToRolesMapping) { @@ -240,7 +240,7 @@ public Builder certificate(String certificate) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("key") - private String key; + private char[] key; /** * The base64 encoded content of the PEM file containing the private key. @@ -248,11 +248,18 @@ public Builder certificate(String certificate) { * @param key the value to set * @return this builder **/ - public Builder key(String key) { + public Builder key(char[] key) { this.key = key; this.__explicitlySet__.add("key"); return this; } + + public Builder key(String key) { + this.key = key != null ? key.toCharArray() : null; + this.__explicitlySet__.add("key"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the deployment ssl private key is stored in PEM format. * @@ -515,14 +522,27 @@ public String getCertificate() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("key") - private final String key; + private final char[] key; + + /** + * The base64 encoded content of the PEM file containing the private key. + * + * return the value + * @Deprecated - Use getKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKey() { + return key != null ? new String(key) : null; + } /** * The base64 encoded content of the PEM file containing the private key. * * @return the value **/ - public String getKey() { + @com.fasterxml.jackson.annotation.JsonProperty("key") + public char[] getKey__AsCharArray() { return key; } @@ -586,7 +606,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", adminUsername=").append(String.valueOf(this.adminUsername)); sb.append(", adminPassword=").append(""); sb.append(", certificate=").append(String.valueOf(this.certificate)); - sb.append(", key=").append(String.valueOf(this.key)); + sb.append(", key=").append(""); sb.append(", keySecretId=").append(String.valueOf(this.keySecretId)); sb.append(", oggVersion=").append(String.valueOf(this.oggVersion)); sb.append(", groupToRolesMapping=").append(String.valueOf(this.groupToRolesMapping)); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleAiDataPlatformConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleAiDataPlatformConnectionDetails.java index d063921266c..fda4d43f309 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleAiDataPlatformConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleAiDataPlatformConnectionDetails.java @@ -306,28 +306,41 @@ public Builder privateKeyPassphraseSecretId(String privateKeyPassphraseSecretId) /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private String privateKeyFile; + private char[] privateKeyFile; /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyFile the value to set * @return this builder **/ - public Builder privateKeyFile(String privateKeyFile) { + public Builder privateKeyFile(char[] privateKeyFile) { this.privateKeyFile = privateKeyFile; this.__explicitlySet__.add("privateKeyFile"); return this; } + + public Builder privateKeyFile(String privateKeyFile) { + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; + this.__explicitlySet__.add("privateKeyFile"); + return this; + } + /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -335,7 +348,9 @@ public Builder privateKeyFile(String privateKeyFile) { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyPassphrase the value to set * @return this builder @@ -578,7 +593,7 @@ public CreateOracleAiDataPlatformConnectionDetails( this.userId = userId; this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; - this.privateKeyFile = privateKeyFile; + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; this.privateKeyPassphrase = privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; this.publicKeyFingerprint = publicKeyFingerprint; @@ -610,7 +625,7 @@ public CreateOracleAiDataPlatformConnectionDetails( String userId, String privateKeyFileSecretId, String privateKeyPassphraseSecretId, - String privateKeyFile, + char[] privateKeyFile, char[] privateKeyPassphrase, String publicKeyFingerprint, Boolean shouldUseResourcePrincipal) { @@ -770,26 +785,49 @@ public String getPrivateKeyPassphraseSecretId() { /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private final String privateKeyFile; + private final char[] privateKeyFile; + + /** + * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. + * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getPrivateKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyFile() { + return privateKeyFile != null ? new String(privateKeyFile) : null; + } /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getPrivateKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") + public char[] getPrivateKeyFile__AsCharArray() { return privateKeyFile; } /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -797,7 +835,9 @@ public String getPrivateKeyFile() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. @@ -810,7 +850,9 @@ public String getPrivateKeyPassphrase() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -877,7 +919,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", privateKeyFileSecretId=").append(String.valueOf(this.privateKeyFileSecretId)); sb.append(", privateKeyPassphraseSecretId=") .append(String.valueOf(this.privateKeyPassphraseSecretId)); - sb.append(", privateKeyFile=").append(String.valueOf(this.privateKeyFile)); + sb.append(", privateKeyFile=").append(""); sb.append(", privateKeyPassphrase=").append(""); sb.append(", publicKeyFingerprint=").append(String.valueOf(this.publicKeyFingerprint)); sb.append(", shouldUseResourcePrincipal=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleConnectionDetails.java index 8cf2f74e326..55df74f2d20 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleConnectionDetails.java @@ -205,7 +205,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -214,7 +216,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -298,25 +302,36 @@ public Builder authenticationMode(OracleConnection.AuthenticationMode authentica /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("wallet") - private String wallet; + private char[] wallet; /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param wallet the value to set * @return this builder **/ - public Builder wallet(String wallet) { + public Builder wallet(char[] wallet) { this.wallet = wallet; this.__explicitlySet__.add("wallet"); return this; } + + public Builder wallet(String wallet) { + this.wallet = wallet != null ? wallet.toCharArray() : null; + this.__explicitlySet__.add("wallet"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the wallet file is stored. * The wallet contents Oracle GoldenGate uses to make connections to a database. @@ -349,7 +364,7 @@ public Builder walletSecretId(String walletSecretId) { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") @@ -365,7 +380,7 @@ public Builder walletSecretId(String walletSecretId) { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * * @param sessionMode the value to set * @return this builder @@ -572,7 +587,7 @@ public CreateOracleConnectionDetails( this.passwordSecretId = passwordSecretId; this.connectionString = connectionString; this.authenticationMode = authenticationMode; - this.wallet = wallet; + this.wallet = wallet != null ? wallet.toCharArray() : null; this.walletSecretId = walletSecretId; this.sessionMode = sessionMode; this.databaseId = databaseId; @@ -602,7 +617,7 @@ public CreateOracleConnectionDetails( String passwordSecretId, String connectionString, OracleConnection.AuthenticationMode authenticationMode, - String wallet, + char[] wallet, String walletSecretId, OracleConnection.SessionMode sessionMode, String databaseId) { @@ -671,7 +686,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -680,7 +697,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -694,7 +713,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -764,20 +785,41 @@ public OracleConnection.AuthenticationMode getAuthenticationMode() { /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("wallet") - private final String wallet; + private final char[] wallet; + + /** + * The wallet contents Oracle GoldenGate uses to make connections to a database. + * This attribute is expected to be base64 encoded. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getWallet__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getWallet() { + return wallet != null ? new String(wallet) : null; + } /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getWallet() { + @com.fasterxml.jackson.annotation.JsonProperty("wallet") + public char[] getWallet__AsCharArray() { return wallet; } @@ -811,7 +853,7 @@ public String getWalletSecretId() { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") @@ -827,7 +869,7 @@ public String getWalletSecretId() { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * * @return the value **/ @@ -871,7 +913,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); sb.append(", connectionString=").append(String.valueOf(this.connectionString)); sb.append(", authenticationMode=").append(String.valueOf(this.authenticationMode)); - sb.append(", wallet=").append(String.valueOf(this.wallet)); + sb.append(", wallet=").append(""); sb.append(", walletSecretId=").append(String.valueOf(this.walletSecretId)); sb.append(", sessionMode=").append(String.valueOf(this.sessionMode)); sb.append(", databaseId=").append(String.valueOf(this.databaseId)); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleNosqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleNosqlConnectionDetails.java index c3949c97e8f..56ac947db33 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleNosqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleNosqlConnectionDetails.java @@ -243,25 +243,36 @@ public Builder userId(String userId) { /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private String privateKeyFile; + private char[] privateKeyFile; /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyFile the value to set * @return this builder **/ - public Builder privateKeyFile(String privateKeyFile) { + public Builder privateKeyFile(char[] privateKeyFile) { this.privateKeyFile = privateKeyFile; this.__explicitlySet__.add("privateKeyFile"); return this; } + + public Builder privateKeyFile(String privateKeyFile) { + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; + this.__explicitlySet__.add("privateKeyFile"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm @@ -286,7 +297,9 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { } /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -294,7 +307,9 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyPassphrase the value to set * @return this builder @@ -549,7 +564,7 @@ public CreateOracleNosqlConnectionDetails( this.tenancyId = tenancyId; this.region = region; this.userId = userId; - this.privateKeyFile = privateKeyFile; + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphrase = privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; @@ -580,7 +595,7 @@ public CreateOracleNosqlConnectionDetails( String tenancyId, String region, String userId, - String privateKeyFile, + char[] privateKeyFile, String privateKeyFileSecretId, char[] privateKeyPassphrase, String privateKeyPassphraseSecretId, @@ -685,20 +700,41 @@ public String getUserId() { /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private final String privateKeyFile; + private final char[] privateKeyFile; + + /** + * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. + * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getPrivateKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyFile() { + return privateKeyFile != null ? new String(privateKeyFile) : null; + } /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getPrivateKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") + public char[] getPrivateKeyFile__AsCharArray() { return privateKeyFile; } @@ -724,7 +760,9 @@ public String getPrivateKeyFileSecretId() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -732,7 +770,9 @@ public String getPrivateKeyFileSecretId() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. @@ -745,7 +785,9 @@ public String getPrivateKeyPassphrase() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -826,7 +868,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); sb.append(", region=").append(String.valueOf(this.region)); sb.append(", userId=").append(String.valueOf(this.userId)); - sb.append(", privateKeyFile=").append(String.valueOf(this.privateKeyFile)); + sb.append(", privateKeyFile=").append(""); sb.append(", privateKeyFileSecretId=").append(String.valueOf(this.privateKeyFileSecretId)); sb.append(", privateKeyPassphrase=").append(""); sb.append(", privateKeyPassphraseSecretId=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePostgresqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePostgresqlConnectionDetails.java index 5570990522e..ba19f4f9ce2 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePostgresqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePostgresqlConnectionDetails.java @@ -259,7 +259,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -268,7 +270,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -427,24 +431,35 @@ public Builder sslCert(String sslCert) { } /** * The base64 encoded private key of the PostgreSQL server. The supported file formats are .pem and .crt. - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKey") - private String sslKey; + private char[] sslKey; /** * The base64 encoded private key of the PostgreSQL server. The supported file formats are .pem and .crt. - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sslKey the value to set * @return this builder **/ - public Builder sslKey(String sslKey) { + public Builder sslKey(char[] sslKey) { this.sslKey = sslKey; this.__explicitlySet__.add("sslKey"); return this; } + + public Builder sslKey(String sslKey) { + this.sslKey = sslKey != null ? sslKey.toCharArray() : null; + this.__explicitlySet__.add("sslKey"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the private key of the PostgreSQL server. The supported file formats are .pem and .crt. * Note: When provided, 'sslKey' field must not be provided. @@ -699,7 +714,7 @@ public CreatePostgresqlConnectionDetails( this.sslCa = sslCa; this.sslCrl = sslCrl; this.sslCert = sslCert; - this.sslKey = sslKey; + this.sslKey = sslKey != null ? sslKey.toCharArray() : null; this.sslKeySecretId = sslKeySecretId; this.dbSystemId = dbSystemId; } @@ -735,7 +750,7 @@ public CreatePostgresqlConnectionDetails( String sslCa, String sslCrl, String sslCert, - String sslKey, + char[] sslKey, String sslKeySecretId, String dbSystemId) { super( @@ -857,7 +872,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -866,7 +883,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -880,7 +899,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1017,19 +1038,39 @@ public String getSslCert() { /** * The base64 encoded private key of the PostgreSQL server. The supported file formats are .pem and .crt. - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKey") - private final String sslKey; + private final char[] sslKey; /** * The base64 encoded private key of the PostgreSQL server. The supported file formats are .pem and .crt. - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getSslKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslKey() { + return sslKey != null ? new String(sslKey) : null; + } + + /** + * The base64 encoded private key of the PostgreSQL server. The supported file formats are .pem and .crt. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getSslKey() { + @com.fasterxml.jackson.annotation.JsonProperty("sslKey") + public char[] getSslKey__AsCharArray() { return sslKey; } @@ -1094,7 +1135,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sslCa=").append(String.valueOf(this.sslCa)); sb.append(", sslCrl=").append(String.valueOf(this.sslCrl)); sb.append(", sslCert=").append(String.valueOf(this.sslCert)); - sb.append(", sslKey=").append(String.valueOf(this.sslKey)); + sb.append(", sslKey=").append(""); sb.append(", sslKeySecretId=").append(String.valueOf(this.sslKeySecretId)); sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); sb.append(")"); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRedisConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRedisConnectionDetails.java index 3e875799c1f..e5f63f74934 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRedisConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRedisConnectionDetails.java @@ -261,7 +261,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -270,7 +272,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -315,24 +319,35 @@ public Builder passwordSecretId(String passwordSecretId) { } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private String trustStore; + private char[] trustStore; /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStore the value to set * @return this builder **/ - public Builder trustStore(String trustStore) { + public Builder trustStore(char[] trustStore) { this.trustStore = trustStore; this.__explicitlySet__.add("trustStore"); return this; } + + public Builder trustStore(String trustStore) { + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; + this.__explicitlySet__.add("trustStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the content of the TrustStore file. * Note: When provided, 'trustStore' field must not be provided. @@ -355,7 +370,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { } /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -363,7 +380,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStorePassword the value to set * @return this builder @@ -403,24 +422,35 @@ public Builder trustStorePasswordSecretId(String trustStorePasswordSecretId) { } /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private String keyStore; + private char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStore the value to set * @return this builder **/ - public Builder keyStore(String keyStore) { + public Builder keyStore(char[] keyStore) { this.keyStore = keyStore; this.__explicitlySet__.add("keyStore"); return this; } + + public Builder keyStore(String keyStore) { + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; + this.__explicitlySet__.add("keyStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the content of the KeyStore file. * Note: When provided, 'keyStore' field must not be provided. @@ -443,7 +473,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { } /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -451,7 +483,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStorePassword the value to set * @return this builder @@ -717,12 +751,12 @@ public CreateRedisConnectionDetails( this.username = username; this.password = password != null ? password.toCharArray() : null; this.passwordSecretId = passwordSecretId; - this.trustStore = trustStore; + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; this.trustStoreSecretId = trustStoreSecretId; this.trustStorePassword = trustStorePassword != null ? trustStorePassword.toCharArray() : null; this.trustStorePasswordSecretId = trustStorePasswordSecretId; - this.keyStore = keyStore; + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; this.keyStoreSecretId = keyStoreSecretId; this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; this.keyStorePasswordSecretId = keyStorePasswordSecretId; @@ -754,11 +788,11 @@ public CreateRedisConnectionDetails( String username, char[] password, String passwordSecretId, - String trustStore, + char[] trustStore, String trustStoreSecretId, char[] trustStorePassword, String trustStorePasswordSecretId, - String keyStore, + char[] keyStore, String keyStoreSecretId, char[] keyStorePassword, String keyStorePasswordSecretId, @@ -884,7 +918,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -893,7 +929,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -907,7 +945,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -942,19 +982,39 @@ public String getPasswordSecretId() { /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private final String trustStore; + private final char[] trustStore; + + /** + * The base64 encoded content of the TrustStore file. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getTrustStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStore() { + return trustStore != null ? new String(trustStore) : null; + } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getTrustStore() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") + public char[] getTrustStore__AsCharArray() { return trustStore; } @@ -978,7 +1038,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -986,7 +1048,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. @@ -999,7 +1063,9 @@ public String getTrustStorePassword() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1028,19 +1094,39 @@ public String getTrustStorePasswordSecretId() { /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private final String keyStore; + private final char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getKeyStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStore() { + return keyStore != null ? new String(keyStore) : null; + } + + /** + * The base64 encoded content of the KeyStore file. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getKeyStore() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") + public char[] getKeyStore__AsCharArray() { return keyStore; } @@ -1064,7 +1150,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -1072,7 +1160,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. @@ -1085,7 +1175,9 @@ public String getKeyStorePassword() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1149,12 +1241,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", username=").append(String.valueOf(this.username)); sb.append(", password=").append(""); sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); - sb.append(", trustStore=").append(String.valueOf(this.trustStore)); + sb.append(", trustStore=").append(""); sb.append(", trustStoreSecretId=").append(String.valueOf(this.trustStoreSecretId)); sb.append(", trustStorePassword=").append(""); sb.append(", trustStorePasswordSecretId=") .append(String.valueOf(this.trustStorePasswordSecretId)); - sb.append(", keyStore=").append(String.valueOf(this.keyStore)); + sb.append(", keyStore=").append(""); sb.append(", keyStoreSecretId=").append(String.valueOf(this.keyStoreSecretId)); sb.append(", keyStorePassword=").append(""); sb.append(", keyStorePasswordSecretId=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRestIcebergCatalogDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRestIcebergCatalogDetails.java index f2998bdb954..c957f7746dd 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRestIcebergCatalogDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRestIcebergCatalogDetails.java @@ -75,7 +75,7 @@ public Builder propertiesSecretId(String propertiesSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("properties") - private String properties; + private char[] properties; /** * The base64 encoded content of the configuration file containing additional properties for the REST catalog. @@ -83,12 +83,18 @@ public Builder propertiesSecretId(String propertiesSecretId) { * @param properties the value to set * @return this builder **/ - public Builder properties(String properties) { + public Builder properties(char[] properties) { this.properties = properties; this.__explicitlySet__.add("properties"); return this; } + public Builder properties(String properties) { + this.properties = properties != null ? properties.toCharArray() : null; + this.__explicitlySet__.add("properties"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -134,6 +140,16 @@ public CreateRestIcebergCatalogDetails( super(); this.uri = uri; this.propertiesSecretId = propertiesSecretId; + this.properties = properties != null ? properties.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateRestIcebergCatalogDetails( + String uri, String propertiesSecretId, char[] properties) { + super(); + this.uri = uri; + this.propertiesSecretId = propertiesSecretId; this.properties = properties; } @@ -180,14 +196,27 @@ public String getPropertiesSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("properties") - private final String properties; + private final char[] properties; + + /** + * The base64 encoded content of the configuration file containing additional properties for the REST catalog. + * + * return the value + * @Deprecated - Use getProperties__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getProperties() { + return properties != null ? new String(properties) : null; + } /** * The base64 encoded content of the configuration file containing additional properties for the REST catalog. * * @return the value **/ - public String getProperties() { + @com.fasterxml.jackson.annotation.JsonProperty("properties") + public char[] getProperties__AsCharArray() { return properties; } @@ -207,7 +236,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", uri=").append(String.valueOf(this.uri)); sb.append(", propertiesSecretId=").append(String.valueOf(this.propertiesSecretId)); - sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", properties=").append(""); sb.append(")"); return sb.toString(); } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateSnowflakeConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateSnowflakeConnectionDetails.java index e59b5a42df1..d022906a658 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateSnowflakeConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateSnowflakeConnectionDetails.java @@ -241,7 +241,9 @@ public Builder username(String username) { } /** * The password Oracle GoldenGate uses to connect to Snowflake platform. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -249,7 +251,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect to Snowflake platform. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -294,24 +298,35 @@ public Builder passwordSecretId(String passwordSecretId) { } /** * The base64 encoded content of private key file in PEM format. - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private String privateKeyFile; + private char[] privateKeyFile; /** * The base64 encoded content of private key file in PEM format. - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyFile the value to set * @return this builder **/ - public Builder privateKeyFile(String privateKeyFile) { + public Builder privateKeyFile(char[] privateKeyFile) { this.privateKeyFile = privateKeyFile; this.__explicitlySet__.add("privateKeyFile"); return this; } + + public Builder privateKeyFile(String privateKeyFile) { + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; + this.__explicitlySet__.add("privateKeyFile"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm @@ -336,7 +351,9 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { } /** * Password if the private key file is encrypted. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -344,7 +361,9 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { /** * Password if the private key file is encrypted. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyPassphrase the value to set * @return this builder @@ -561,7 +580,7 @@ public CreateSnowflakeConnectionDetails( this.username = username; this.password = password != null ? password.toCharArray() : null; this.passwordSecretId = passwordSecretId; - this.privateKeyFile = privateKeyFile; + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphrase = privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; @@ -592,7 +611,7 @@ public CreateSnowflakeConnectionDetails( String username, char[] password, String passwordSecretId, - String privateKeyFile, + char[] privateKeyFile, String privateKeyFileSecretId, char[] privateKeyPassphrase, String privateKeyPassphraseSecretId) { @@ -692,7 +711,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect to Snowflake platform. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -700,7 +721,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect to Snowflake platform. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -713,7 +736,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect to Snowflake platform. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -748,19 +773,39 @@ public String getPasswordSecretId() { /** * The base64 encoded content of private key file in PEM format. - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private final String privateKeyFile; + private final char[] privateKeyFile; /** * The base64 encoded content of private key file in PEM format. - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getPrivateKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyFile() { + return privateKeyFile != null ? new String(privateKeyFile) : null; + } + + /** + * The base64 encoded content of private key file in PEM format. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getPrivateKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") + public char[] getPrivateKeyFile__AsCharArray() { return privateKeyFile; } @@ -786,7 +831,9 @@ public String getPrivateKeyFileSecretId() { /** * Password if the private key file is encrypted. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -794,7 +841,9 @@ public String getPrivateKeyFileSecretId() { /** * Password if the private key file is encrypted. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. @@ -807,7 +856,9 @@ public String getPrivateKeyPassphrase() { /** * Password if the private key file is encrypted. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -854,7 +905,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", username=").append(String.valueOf(this.username)); sb.append(", password=").append(""); sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); - sb.append(", privateKeyFile=").append(String.valueOf(this.privateKeyFile)); + sb.append(", privateKeyFile=").append(""); sb.append(", privateKeyFileSecretId=").append(String.valueOf(this.privateKeyFileSecretId)); sb.append(", privateKeyPassphrase=").append(""); sb.append(", privateKeyPassphraseSecretId=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergConnection.java index b3f46cc9176..bf747a19ccb 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergConnection.java @@ -229,12 +229,14 @@ public Builder securityAttributes( } /** * The Iceberg technology type. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("technologyType") private TechnologyType technologyType; /** * The Iceberg technology type. + * * @param technologyType the value to set * @return this builder **/ @@ -448,6 +450,7 @@ public IcebergConnection( /** * The Iceberg technology type. + * **/ public enum TechnologyType { ApacheIceberg("APACHE_ICEBERG"), @@ -495,12 +498,14 @@ public static TechnologyType create(String key) { }; /** * The Iceberg technology type. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("technologyType") private final TechnologyType technologyType; /** * The Iceberg technology type. + * * @return the value **/ public TechnologyType getTechnologyType() { diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergConnectionSummary.java index 0d417d5de50..98f104e9c52 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergConnectionSummary.java @@ -229,12 +229,14 @@ public Builder securityAttributes( } /** * The Iceberg technology type. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("technologyType") private IcebergConnection.TechnologyType technologyType; /** * The Iceberg technology type. + * * @param technologyType the value to set * @return this builder **/ @@ -448,12 +450,14 @@ public IcebergConnectionSummary( /** * The Iceberg technology type. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("technologyType") private final IcebergConnection.TechnologyType technologyType; /** * The Iceberg technology type. + * * @return the value **/ public IcebergConnection.TechnologyType getTechnologyType() { diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergStorage.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergStorage.java index aabe2df2d6e..9969b8b3cf4 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergStorage.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergStorage.java @@ -23,6 +23,10 @@ defaultImpl = IcebergStorage.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OciObjectStorageS3ApiIcebergStorage.class, + name = "OCI_OBJECT_STORAGE_S3_API" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = AmazonS3IcebergStorage.class, name = "AMAZON_S3" @@ -31,6 +35,10 @@ value = AzureDataLakeStorageIcebergStorage.class, name = "AZURE_DATA_LAKE_STORAGE" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = NoIcebergStorage.class, + name = "NONE" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = GoogleCloudStorageIcebergStorage.class, name = "GOOGLE_CLOUD_STORAGE" diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergStorageSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergStorageSummary.java index cd611224d10..73fe102a479 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergStorageSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergStorageSummary.java @@ -27,10 +27,18 @@ value = GoogleCloudStorageIcebergStorageSummary.class, name = "GOOGLE_CLOUD_STORAGE" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OciObjectStorageS3ApiIcebergStorageSummary.class, + name = "OCI_OBJECT_STORAGE_S3_API" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = AzureDataLakeStorageIcebergStorageSummary.class, name = "AZURE_DATA_LAKE_STORAGE" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = NoIcebergStorageSummary.class, + name = "NONE" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = AmazonS3IcebergStorageSummary.class, name = "AMAZON_S3" diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergStorageType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergStorageType.java index b24719de730..85afe2caa6a 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergStorageType.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/IcebergStorageType.java @@ -13,6 +13,8 @@ public enum IcebergStorageType { AmazonS3("AMAZON_S3"), GoogleCloudStorage("GOOGLE_CLOUD_STORAGE"), AzureDataLakeStorage("AZURE_DATA_LAKE_STORAGE"), + None("NONE"), + OciObjectStorageS3Api("OCI_OBJECT_STORAGE_S3_API"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaConnection.java index 74ec57c436a..10e7721c703 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaConnection.java @@ -798,6 +798,7 @@ public enum TechnologyType { ApacheKafka("APACHE_KAFKA"), AzureEventHubs("AZURE_EVENT_HUBS"), ConfluentKafka("CONFLUENT_KAFKA"), + GoogleCloudManagedServiceForApacheKafka("GOOGLE_CLOUD_MANAGED_SERVICE_FOR_APACHE_KAFKA"), MicrosoftFabricEventstream("MICROSOFT_FABRIC_EVENTSTREAM"), OciStreaming("OCI_STREAMING"), OciStreamingWithApacheKafka("OCI_STREAMING_WITH_APACHE_KAFKA"), diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/NoIcebergStorage.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/NoIcebergStorage.java new file mode 100644 index 00000000000..98c6fc74423 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/NoIcebergStorage.java @@ -0,0 +1,101 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Represents the absence of a storage configuration in an Iceberg + * connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = NoIcebergStorage.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "storageType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class NoIcebergStorage extends IcebergStorage { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NoIcebergStorage build() { + NoIcebergStorage model = new NoIcebergStorage(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NoIcebergStorage model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public NoIcebergStorage() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NoIcebergStorage("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NoIcebergStorage)) { + return false; + } + + NoIcebergStorage other = (NoIcebergStorage) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/NoIcebergStorageSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/NoIcebergStorageSummary.java new file mode 100644 index 00000000000..37b6ed82d4c --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/NoIcebergStorageSummary.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Summary of the absence of a storage configuration in an Iceberg + * connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NoIcebergStorageSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "storageType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class NoIcebergStorageSummary extends IcebergStorageSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NoIcebergStorageSummary build() { + NoIcebergStorageSummary model = new NoIcebergStorageSummary(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NoIcebergStorageSummary model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public NoIcebergStorageSummary() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NoIcebergStorageSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NoIcebergStorageSummary)) { + return false; + } + + NoIcebergStorageSummary other = (NoIcebergStorageSummary) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciGenAiModelAuthDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciGenAiModelAuthDetails.java new file mode 100644 index 00000000000..f351fa6953c --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciGenAiModelAuthDetails.java @@ -0,0 +1,430 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * OCI Generative AI authentication details for an AI Model connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OciGenAiModelAuthDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "authType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OciGenAiModelAuthDetails extends AiModelAuthDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + private char[] apiKey; + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @param apiKey the value to set + * @return this builder + **/ + public Builder apiKey(char[] apiKey) { + this.apiKey = apiKey; + this.__explicitlySet__.add("apiKey"); + return this; + } + + public Builder apiKey(String apiKey) { + this.apiKey = apiKey != null ? apiKey.toCharArray() : null; + this.__explicitlySet__.add("apiKey"); + return this; + } + + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @param apiKeySecretId the value to set + * @return this builder + **/ + public Builder apiKeySecretId(String apiKeySecretId) { + this.apiKeySecretId = apiKeySecretId; + this.__explicitlySet__.add("apiKeySecretId"); + return this; + } + /** + * OCI Generative AI key fingerprint. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyFingerprint") + private String keyFingerprint; + + /** + * OCI Generative AI key fingerprint. + * + * @param keyFingerprint the value to set + * @return this builder + **/ + public Builder keyFingerprint(String keyFingerprint) { + this.keyFingerprint = keyFingerprint; + this.__explicitlySet__.add("keyFingerprint"); + return this; + } + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + * @param region the value to set + * @return this builder + **/ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private String tenancyId; + + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + * @param tenancyId the value to set + * @return this builder + **/ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + this.__explicitlySet__.add("tenancyId"); + return this; + } + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userId") + private String userId; + + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + * @param userId the value to set + * @return this builder + **/ + public Builder userId(String userId) { + this.userId = userId; + this.__explicitlySet__.add("userId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OciGenAiModelAuthDetails build() { + OciGenAiModelAuthDetails model = + new OciGenAiModelAuthDetails( + this.apiKey, + this.apiKeySecretId, + this.keyFingerprint, + this.region, + this.tenancyId, + this.userId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciGenAiModelAuthDetails model) { + if (model.wasPropertyExplicitlySet("apiKey")) { + this.apiKey(model.getApiKey()); + } + if (model.wasPropertyExplicitlySet("apiKeySecretId")) { + this.apiKeySecretId(model.getApiKeySecretId()); + } + if (model.wasPropertyExplicitlySet("keyFingerprint")) { + this.keyFingerprint(model.getKeyFingerprint()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + if (model.wasPropertyExplicitlySet("tenancyId")) { + this.tenancyId(model.getTenancyId()); + } + if (model.wasPropertyExplicitlySet("userId")) { + this.userId(model.getUserId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OciGenAiModelAuthDetails( + String apiKey, + String apiKeySecretId, + String keyFingerprint, + String region, + String tenancyId, + String userId) { + super(); + this.apiKey = apiKey != null ? apiKey.toCharArray() : null; + this.apiKeySecretId = apiKeySecretId; + this.keyFingerprint = keyFingerprint; + this.region = region; + this.tenancyId = tenancyId; + this.userId = userId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public OciGenAiModelAuthDetails( + char[] apiKey, + String apiKeySecretId, + String keyFingerprint, + String region, + String tenancyId, + String userId) { + super(); + this.apiKey = apiKey; + this.apiKeySecretId = apiKeySecretId; + this.keyFingerprint = keyFingerprint; + this.region = region; + this.tenancyId = tenancyId; + this.userId = userId; + } + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + private final char[] apiKey; + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getApiKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getApiKey() { + return apiKey != null ? new String(apiKey) : null; + } + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + public char[] getApiKey__AsCharArray() { + return apiKey; + } + + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private final String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @return the value + **/ + public String getApiKeySecretId() { + return apiKeySecretId; + } + + /** + * OCI Generative AI key fingerprint. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyFingerprint") + private final String keyFingerprint; + + /** + * OCI Generative AI key fingerprint. + * + * @return the value + **/ + public String getKeyFingerprint() { + return keyFingerprint; + } + + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + * @return the value + **/ + public String getRegion() { + return region; + } + + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private final String tenancyId; + + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + * @return the value + **/ + public String getTenancyId() { + return tenancyId; + } + + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userId") + private final String userId; + + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + * @return the value + **/ + public String getUserId() { + return userId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciGenAiModelAuthDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", apiKey=").append(""); + sb.append(", apiKeySecretId=").append(String.valueOf(this.apiKeySecretId)); + sb.append(", keyFingerprint=").append(String.valueOf(this.keyFingerprint)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(", userId=").append(String.valueOf(this.userId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciGenAiModelAuthDetails)) { + return false; + } + + OciGenAiModelAuthDetails other = (OciGenAiModelAuthDetails) o; + return java.util.Objects.equals(this.apiKey, other.apiKey) + && java.util.Objects.equals(this.apiKeySecretId, other.apiKeySecretId) + && java.util.Objects.equals(this.keyFingerprint, other.keyFingerprint) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.tenancyId, other.tenancyId) + && java.util.Objects.equals(this.userId, other.userId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.apiKey == null ? 43 : this.apiKey.hashCode()); + result = + (result * PRIME) + + (this.apiKeySecretId == null ? 43 : this.apiKeySecretId.hashCode()); + result = + (result * PRIME) + + (this.keyFingerprint == null ? 43 : this.keyFingerprint.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = (result * PRIME) + (this.userId == null ? 43 : this.userId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciGenAiModelAuthDetailsSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciGenAiModelAuthDetailsSummary.java new file mode 100644 index 00000000000..b046d444e83 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciGenAiModelAuthDetailsSummary.java @@ -0,0 +1,334 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Summary of OCI Generative AI authentication details for an AI Model connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OciGenAiModelAuthDetailsSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "authType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OciGenAiModelAuthDetailsSummary extends AiModelAuthDetailsSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @param apiKeySecretId the value to set + * @return this builder + **/ + public Builder apiKeySecretId(String apiKeySecretId) { + this.apiKeySecretId = apiKeySecretId; + this.__explicitlySet__.add("apiKeySecretId"); + return this; + } + /** + * OCI Generative AI key fingerprint. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyFingerprint") + private String keyFingerprint; + + /** + * OCI Generative AI key fingerprint. + * + * @param keyFingerprint the value to set + * @return this builder + **/ + public Builder keyFingerprint(String keyFingerprint) { + this.keyFingerprint = keyFingerprint; + this.__explicitlySet__.add("keyFingerprint"); + return this; + } + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + * @param region the value to set + * @return this builder + **/ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private String tenancyId; + + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + * @param tenancyId the value to set + * @return this builder + **/ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + this.__explicitlySet__.add("tenancyId"); + return this; + } + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userId") + private String userId; + + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + * @param userId the value to set + * @return this builder + **/ + public Builder userId(String userId) { + this.userId = userId; + this.__explicitlySet__.add("userId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OciGenAiModelAuthDetailsSummary build() { + OciGenAiModelAuthDetailsSummary model = + new OciGenAiModelAuthDetailsSummary( + this.apiKeySecretId, + this.keyFingerprint, + this.region, + this.tenancyId, + this.userId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciGenAiModelAuthDetailsSummary model) { + if (model.wasPropertyExplicitlySet("apiKeySecretId")) { + this.apiKeySecretId(model.getApiKeySecretId()); + } + if (model.wasPropertyExplicitlySet("keyFingerprint")) { + this.keyFingerprint(model.getKeyFingerprint()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + if (model.wasPropertyExplicitlySet("tenancyId")) { + this.tenancyId(model.getTenancyId()); + } + if (model.wasPropertyExplicitlySet("userId")) { + this.userId(model.getUserId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OciGenAiModelAuthDetailsSummary( + String apiKeySecretId, + String keyFingerprint, + String region, + String tenancyId, + String userId) { + super(); + this.apiKeySecretId = apiKeySecretId; + this.keyFingerprint = keyFingerprint; + this.region = region; + this.tenancyId = tenancyId; + this.userId = userId; + } + + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private final String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @return the value + **/ + public String getApiKeySecretId() { + return apiKeySecretId; + } + + /** + * OCI Generative AI key fingerprint. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyFingerprint") + private final String keyFingerprint; + + /** + * OCI Generative AI key fingerprint. + * + * @return the value + **/ + public String getKeyFingerprint() { + return keyFingerprint; + } + + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + * @return the value + **/ + public String getRegion() { + return region; + } + + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private final String tenancyId; + + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + * @return the value + **/ + public String getTenancyId() { + return tenancyId; + } + + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userId") + private final String userId; + + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + * @return the value + **/ + public String getUserId() { + return userId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciGenAiModelAuthDetailsSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", apiKeySecretId=").append(String.valueOf(this.apiKeySecretId)); + sb.append(", keyFingerprint=").append(String.valueOf(this.keyFingerprint)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(", userId=").append(String.valueOf(this.userId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciGenAiModelAuthDetailsSummary)) { + return false; + } + + OciGenAiModelAuthDetailsSummary other = (OciGenAiModelAuthDetailsSummary) o; + return java.util.Objects.equals(this.apiKeySecretId, other.apiKeySecretId) + && java.util.Objects.equals(this.keyFingerprint, other.keyFingerprint) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.tenancyId, other.tenancyId) + && java.util.Objects.equals(this.userId, other.userId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.apiKeySecretId == null ? 43 : this.apiKeySecretId.hashCode()); + result = + (result * PRIME) + + (this.keyFingerprint == null ? 43 : this.keyFingerprint.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = (result * PRIME) + (this.userId == null ? 43 : this.userId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciObjectStorageS3ApiIcebergStorage.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciObjectStorageS3ApiIcebergStorage.java new file mode 100644 index 00000000000..9ab6135a5da --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciObjectStorageS3ApiIcebergStorage.java @@ -0,0 +1,303 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Connection details of the OCI Object Storage (S3 Compatibility API) configuration used by the + * Iceberg connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OciObjectStorageS3ApiIcebergStorage.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "storageType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OciObjectStorageS3ApiIcebergStorage extends IcebergStorage { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") + private String accessKeyId; + + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + * @param accessKeyId the value to set + * @return this builder + **/ + public Builder accessKeyId(String accessKeyId) { + this.accessKeyId = accessKeyId; + this.__explicitlySet__.add("accessKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKeySecretId") + private String secretAccessKeySecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + * @param secretAccessKeySecretId the value to set + * @return this builder + **/ + public Builder secretAccessKeySecretId(String secretAccessKeySecretId) { + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.__explicitlySet__.add("secretAccessKeySecretId"); + return this; + } + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private String bucket; + + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + * @param bucket the value to set + * @return this builder + **/ + public Builder bucket(String bucket) { + this.bucket = bucket; + this.__explicitlySet__.add("bucket"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OciObjectStorageS3ApiIcebergStorage build() { + OciObjectStorageS3ApiIcebergStorage model = + new OciObjectStorageS3ApiIcebergStorage( + this.endpoint, + this.accessKeyId, + this.secretAccessKeySecretId, + this.bucket); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciObjectStorageS3ApiIcebergStorage model) { + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } + if (model.wasPropertyExplicitlySet("accessKeyId")) { + this.accessKeyId(model.getAccessKeyId()); + } + if (model.wasPropertyExplicitlySet("secretAccessKeySecretId")) { + this.secretAccessKeySecretId(model.getSecretAccessKeySecretId()); + } + if (model.wasPropertyExplicitlySet("bucket")) { + this.bucket(model.getBucket()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OciObjectStorageS3ApiIcebergStorage( + String endpoint, String accessKeyId, String secretAccessKeySecretId, String bucket) { + super(); + this.endpoint = endpoint; + this.accessKeyId = accessKeyId; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.bucket = bucket; + } + + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") + private final String accessKeyId; + + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + * @return the value + **/ + public String getAccessKeyId() { + return accessKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKeySecretId") + private final String secretAccessKeySecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + * @return the value + **/ + public String getSecretAccessKeySecretId() { + return secretAccessKeySecretId; + } + + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private final String bucket; + + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + * @return the value + **/ + public String getBucket() { + return bucket; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciObjectStorageS3ApiIcebergStorage("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); + sb.append(", accessKeyId=").append(String.valueOf(this.accessKeyId)); + sb.append(", secretAccessKeySecretId=") + .append(String.valueOf(this.secretAccessKeySecretId)); + sb.append(", bucket=").append(String.valueOf(this.bucket)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciObjectStorageS3ApiIcebergStorage)) { + return false; + } + + OciObjectStorageS3ApiIcebergStorage other = (OciObjectStorageS3ApiIcebergStorage) o; + return java.util.Objects.equals(this.endpoint, other.endpoint) + && java.util.Objects.equals(this.accessKeyId, other.accessKeyId) + && java.util.Objects.equals( + this.secretAccessKeySecretId, other.secretAccessKeySecretId) + && java.util.Objects.equals(this.bucket, other.bucket) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); + result = (result * PRIME) + (this.accessKeyId == null ? 43 : this.accessKeyId.hashCode()); + result = + (result * PRIME) + + (this.secretAccessKeySecretId == null + ? 43 + : this.secretAccessKeySecretId.hashCode()); + result = (result * PRIME) + (this.bucket == null ? 43 : this.bucket.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciObjectStorageS3ApiIcebergStorageSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciObjectStorageS3ApiIcebergStorageSummary.java new file mode 100644 index 00000000000..12846b58e71 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciObjectStorageS3ApiIcebergStorageSummary.java @@ -0,0 +1,304 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * Summary of the OCI Object Storage (S3 Compatibility API) configuration used by the + * Iceberg connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OciObjectStorageS3ApiIcebergStorageSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "storageType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OciObjectStorageS3ApiIcebergStorageSummary extends IcebergStorageSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") + private String accessKeyId; + + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + * @param accessKeyId the value to set + * @return this builder + **/ + public Builder accessKeyId(String accessKeyId) { + this.accessKeyId = accessKeyId; + this.__explicitlySet__.add("accessKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKeySecretId") + private String secretAccessKeySecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + * @param secretAccessKeySecretId the value to set + * @return this builder + **/ + public Builder secretAccessKeySecretId(String secretAccessKeySecretId) { + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.__explicitlySet__.add("secretAccessKeySecretId"); + return this; + } + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private String bucket; + + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + * @param bucket the value to set + * @return this builder + **/ + public Builder bucket(String bucket) { + this.bucket = bucket; + this.__explicitlySet__.add("bucket"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OciObjectStorageS3ApiIcebergStorageSummary build() { + OciObjectStorageS3ApiIcebergStorageSummary model = + new OciObjectStorageS3ApiIcebergStorageSummary( + this.endpoint, + this.accessKeyId, + this.secretAccessKeySecretId, + this.bucket); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OciObjectStorageS3ApiIcebergStorageSummary model) { + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } + if (model.wasPropertyExplicitlySet("accessKeyId")) { + this.accessKeyId(model.getAccessKeyId()); + } + if (model.wasPropertyExplicitlySet("secretAccessKeySecretId")) { + this.secretAccessKeySecretId(model.getSecretAccessKeySecretId()); + } + if (model.wasPropertyExplicitlySet("bucket")) { + this.bucket(model.getBucket()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OciObjectStorageS3ApiIcebergStorageSummary( + String endpoint, String accessKeyId, String secretAccessKeySecretId, String bucket) { + super(); + this.endpoint = endpoint; + this.accessKeyId = accessKeyId; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.bucket = bucket; + } + + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") + private final String accessKeyId; + + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + * @return the value + **/ + public String getAccessKeyId() { + return accessKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKeySecretId") + private final String secretAccessKeySecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + * @return the value + **/ + public String getSecretAccessKeySecretId() { + return secretAccessKeySecretId; + } + + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private final String bucket; + + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + * @return the value + **/ + public String getBucket() { + return bucket; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OciObjectStorageS3ApiIcebergStorageSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); + sb.append(", accessKeyId=").append(String.valueOf(this.accessKeyId)); + sb.append(", secretAccessKeySecretId=") + .append(String.valueOf(this.secretAccessKeySecretId)); + sb.append(", bucket=").append(String.valueOf(this.bucket)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OciObjectStorageS3ApiIcebergStorageSummary)) { + return false; + } + + OciObjectStorageS3ApiIcebergStorageSummary other = + (OciObjectStorageS3ApiIcebergStorageSummary) o; + return java.util.Objects.equals(this.endpoint, other.endpoint) + && java.util.Objects.equals(this.accessKeyId, other.accessKeyId) + && java.util.Objects.equals( + this.secretAccessKeySecretId, other.secretAccessKeySecretId) + && java.util.Objects.equals(this.bucket, other.bucket) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); + result = (result * PRIME) + (this.accessKeyId == null ? 43 : this.accessKeyId.hashCode()); + result = + (result * PRIME) + + (this.secretAccessKeySecretId == null + ? 43 + : this.secretAccessKeySecretId.hashCode()); + result = (result * PRIME) + (this.bucket == null ? 43 : this.bucket.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnection.java index 932df6a2222..ba2675f5e7b 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnection.java @@ -311,7 +311,7 @@ public Builder authenticationMode(AuthenticationMode authenticationMode) { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") @@ -327,7 +327,7 @@ public Builder authenticationMode(AuthenticationMode authenticationMode) { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * * @param sessionMode the value to set * @return this builder @@ -654,9 +654,12 @@ public enum TechnologyType { OciAutonomousDatabase("OCI_AUTONOMOUS_DATABASE"), OracleDatabase("ORACLE_DATABASE"), OracleExadata("ORACLE_EXADATA"), + OracleExadataExascale("ORACLE_EXADATA_EXASCALE"), OracleExadataDatabaseAtAzure("ORACLE_EXADATA_DATABASE_AT_AZURE"), + OracleExadataExascaleAtAzure("ORACLE_EXADATA_EXASCALE_AT_AZURE"), OracleAutonomousDatabaseAtAzure("ORACLE_AUTONOMOUS_DATABASE_AT_AZURE"), OracleExadataDatabaseAtGoogleCloud("ORACLE_EXADATA_DATABASE_AT_GOOGLE_CLOUD"), + OracleExadataExascaleAtGoogleCloud("ORACLE_EXADATA_EXASCALE_AT_GOOGLE_CLOUD"), OracleAutonomousDatabaseAtGoogleCloud("ORACLE_AUTONOMOUS_DATABASE_AT_GOOGLE_CLOUD"), OracleExadataDatabaseAtAws("ORACLE_EXADATA_DATABASE_AT_AWS"), OracleAutonomousDatabaseAtAws("ORACLE_AUTONOMOUS_DATABASE_AT_AWS"), @@ -830,7 +833,7 @@ public AuthenticationMode getAuthenticationMode() { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * **/ public enum SessionMode { @@ -888,7 +891,7 @@ public static SessionMode create(String key) { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") @@ -904,7 +907,7 @@ public static SessionMode create(String key) { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnectionSummary.java index a6b36a34352..9e02368d91c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnectionSummary.java @@ -313,7 +313,7 @@ public Builder authenticationMode(OracleConnection.AuthenticationMode authentica * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") @@ -329,7 +329,7 @@ public Builder authenticationMode(OracleConnection.AuthenticationMode authentica * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * * @param sessionMode the value to set * @return this builder @@ -726,7 +726,7 @@ public OracleConnection.AuthenticationMode getAuthenticationMode() { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") @@ -742,7 +742,7 @@ public OracleConnection.AuthenticationMode getAuthenticationMode() { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TechnologyType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TechnologyType.java index f1d951a9ea3..4b0c697fea0 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TechnologyType.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TechnologyType.java @@ -22,10 +22,13 @@ public enum TechnologyType { OciStreamingWithApacheKafka("OCI_STREAMING_WITH_APACHE_KAFKA"), OracleDatabase("ORACLE_DATABASE"), OracleExadata("ORACLE_EXADATA"), + OracleExadataExascale("ORACLE_EXADATA_EXASCALE"), OracleExadataDatabaseAtAzure("ORACLE_EXADATA_DATABASE_AT_AZURE"), + OracleExadataExascaleAtAzure("ORACLE_EXADATA_EXASCALE_AT_AZURE"), OracleAutonomousDatabaseAtAzure("ORACLE_AUTONOMOUS_DATABASE_AT_AZURE"), OracleJsonCollection("ORACLE_JSON_COLLECTION"), OracleExadataDatabaseAtGoogleCloud("ORACLE_EXADATA_DATABASE_AT_GOOGLE_CLOUD"), + OracleExadataExascaleAtGoogleCloud("ORACLE_EXADATA_EXASCALE_AT_GOOGLE_CLOUD"), OracleAutonomousDatabaseAtGoogleCloud("ORACLE_AUTONOMOUS_DATABASE_AT_GOOGLE_CLOUD"), OracleExadataDatabaseAtAws("ORACLE_EXADATA_DATABASE_AT_AWS"), OracleAutonomousDatabaseAtAws("ORACLE_AUTONOMOUS_DATABASE_AT_AWS"), @@ -64,6 +67,7 @@ public enum TechnologyType { EdbPostgresAdvancedServer("EDB_POSTGRES_ADVANCED_SERVER"), GoogleAlloyDbForPostgresql("GOOGLE_ALLOY_DB_FOR_POSTGRESQL"), GoogleBigquery("GOOGLE_BIGQUERY"), + GoogleCloudManagedServiceForApacheKafka("GOOGLE_CLOUD_MANAGED_SERVICE_FOR_APACHE_KAFKA"), GoogleCloudStorage("GOOGLE_CLOUD_STORAGE"), GoogleCloudSqlMysql("GOOGLE_CLOUD_SQL_MYSQL"), GoogleCloudSqlPostgresql("GOOGLE_CLOUD_SQL_POSTGRESQL"), @@ -85,6 +89,7 @@ public enum TechnologyType { SinglestoredbCloud("SINGLESTOREDB_CLOUD"), Snowflake("SNOWFLAKE"), YugabyteDb("YUGABYTE_DB"), + AiModel("AI_MODEL"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAiModelAuthDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAiModelAuthDetails.java new file mode 100644 index 00000000000..68955532903 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAiModelAuthDetails.java @@ -0,0 +1,81 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * The information to update authentication details for an AI Model connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "authType", + defaultImpl = UpdateAiModelAuthDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOciGenAiModelAuthDetails.class, + name = "OCI_GEN_AI" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateApiKeyAiModelAuthDetails.class, + name = "API_KEY" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateAiModelAuthDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected UpdateAiModelAuthDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateAiModelAuthDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateAiModelAuthDetails)) { + return false; + } + + UpdateAiModelAuthDetails other = (UpdateAiModelAuthDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAiModelConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAiModelConnectionDetails.java new file mode 100644 index 00000000000..c07ea382e59 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAiModelConnectionDetails.java @@ -0,0 +1,382 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * The information to update an AI Model Connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateAiModelConnectionDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectionType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateAiModelConnectionDetails extends UpdateConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + 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("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + 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("vaultId") + private String vaultId; + + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + private RoutingMethod routingMethod; + + public Builder routingMethod(RoutingMethod routingMethod) { + this.routingMethod = routingMethod; + this.__explicitlySet__.add("routingMethod"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + private Boolean doesUseSecretIds; + + public Builder doesUseSecretIds(Boolean doesUseSecretIds) { + this.doesUseSecretIds = doesUseSecretIds; + this.__explicitlySet__.add("doesUseSecretIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } + /** + * AI model identifier. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelKey") + private String modelKey; + + /** + * AI model identifier. + * + * @param modelKey the value to set + * @return this builder + **/ + public Builder modelKey(String modelKey) { + this.modelKey = modelKey; + this.__explicitlySet__.add("modelKey"); + return this; + } + /** + * Maximum number of input characters supported by this AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxInputChars") + private Integer maxInputChars; + + /** + * Maximum number of input characters supported by this AI model connection. + * + * @param maxInputChars the value to set + * @return this builder + **/ + public Builder maxInputChars(Integer maxInputChars) { + this.maxInputChars = maxInputChars; + this.__explicitlySet__.add("maxInputChars"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("authDetails") + private UpdateAiModelAuthDetails authDetails; + + public Builder authDetails(UpdateAiModelAuthDetails authDetails) { + this.authDetails = authDetails; + this.__explicitlySet__.add("authDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateAiModelConnectionDetails build() { + UpdateAiModelConnectionDetails model = + new UpdateAiModelConnectionDetails( + this.displayName, + this.description, + this.freeformTags, + this.definedTags, + this.vaultId, + this.keyId, + this.nsgIds, + this.subnetId, + this.routingMethod, + this.doesUseSecretIds, + this.securityAttributes, + this.modelKey, + this.maxInputChars, + this.authDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateAiModelConnectionDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("routingMethod")) { + this.routingMethod(model.getRoutingMethod()); + } + if (model.wasPropertyExplicitlySet("doesUseSecretIds")) { + this.doesUseSecretIds(model.getDoesUseSecretIds()); + } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } + if (model.wasPropertyExplicitlySet("modelKey")) { + this.modelKey(model.getModelKey()); + } + if (model.wasPropertyExplicitlySet("maxInputChars")) { + this.maxInputChars(model.getMaxInputChars()); + } + if (model.wasPropertyExplicitlySet("authDetails")) { + this.authDetails(model.getAuthDetails()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateAiModelConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String modelKey, + Integer maxInputChars, + UpdateAiModelAuthDetails authDetails) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.modelKey = modelKey; + this.maxInputChars = maxInputChars; + this.authDetails = authDetails; + } + + /** + * AI model identifier. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelKey") + private final String modelKey; + + /** + * AI model identifier. + * + * @return the value + **/ + public String getModelKey() { + return modelKey; + } + + /** + * Maximum number of input characters supported by this AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxInputChars") + private final Integer maxInputChars; + + /** + * Maximum number of input characters supported by this AI model connection. + * + * @return the value + **/ + public Integer getMaxInputChars() { + return maxInputChars; + } + + @com.fasterxml.jackson.annotation.JsonProperty("authDetails") + private final UpdateAiModelAuthDetails authDetails; + + public UpdateAiModelAuthDetails getAuthDetails() { + return authDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateAiModelConnectionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", modelKey=").append(String.valueOf(this.modelKey)); + sb.append(", maxInputChars=").append(String.valueOf(this.maxInputChars)); + sb.append(", authDetails=").append(String.valueOf(this.authDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateAiModelConnectionDetails)) { + return false; + } + + UpdateAiModelConnectionDetails other = (UpdateAiModelConnectionDetails) o; + return java.util.Objects.equals(this.modelKey, other.modelKey) + && java.util.Objects.equals(this.maxInputChars, other.maxInputChars) + && java.util.Objects.equals(this.authDetails, other.authDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.modelKey == null ? 43 : this.modelKey.hashCode()); + result = + (result * PRIME) + + (this.maxInputChars == null ? 43 : this.maxInputChars.hashCode()); + result = (result * PRIME) + (this.authDetails == null ? 43 : this.authDetails.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonKinesisConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonKinesisConnectionDetails.java index 493d68178d1..c80ac8b046f 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonKinesisConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonKinesisConnectionDetails.java @@ -130,6 +130,7 @@ public Builder securityAttributes( } /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -137,6 +138,7 @@ public Builder securityAttributes( /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @param accessKeyId the value to set * @return this builder @@ -148,7 +150,9 @@ public Builder accessKeyId(String accessKeyId) { } /** * Secret access key to access the Amazon Kinesis. - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") @@ -156,7 +160,9 @@ public Builder accessKeyId(String accessKeyId) { /** * Secret access key to access the Amazon Kinesis. - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param secretAccessKey the value to set * @return this builder @@ -408,6 +414,7 @@ public UpdateAmazonKinesisConnectionDetails( /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -415,6 +422,7 @@ public UpdateAmazonKinesisConnectionDetails( /** * Access key ID to access the Amazon Kinesis. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @return the value **/ @@ -424,7 +432,9 @@ public String getAccessKeyId() { /** * Secret access key to access the Amazon Kinesis. - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") @@ -432,7 +442,9 @@ public String getAccessKeyId() { /** * Secret access key to access the Amazon Kinesis. - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. @@ -445,7 +457,9 @@ public String getSecretAccessKey() { /** * Secret access key to access the Amazon Kinesis. - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonRedshiftConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonRedshiftConnectionDetails.java index d6871aa5268..d6c538f9822 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonRedshiftConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonRedshiftConnectionDetails.java @@ -173,7 +173,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -182,7 +184,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -427,7 +431,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -436,7 +442,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -450,7 +458,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3ConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3ConnectionDetails.java index e5f2d1cddf5..3afc7942ae7 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3ConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3ConnectionDetails.java @@ -130,7 +130,7 @@ public Builder securityAttributes( } /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -138,7 +138,7 @@ public Builder securityAttributes( /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @param accessKeyId the value to set * @return this builder @@ -150,8 +150,10 @@ public Builder accessKeyId(String accessKeyId) { } /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") @@ -159,8 +161,10 @@ public Builder accessKeyId(String accessKeyId) { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param secretAccessKey the value to set * @return this builder @@ -412,7 +416,7 @@ public UpdateAmazonS3ConnectionDetails( /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -420,7 +424,7 @@ public UpdateAmazonS3ConnectionDetails( /** * Access key ID to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @return the value **/ @@ -430,8 +434,10 @@ public String getAccessKeyId() { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") @@ -439,8 +445,10 @@ public String getAccessKeyId() { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * <p> + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. @@ -453,8 +461,10 @@ public String getSecretAccessKey() { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3IcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3IcebergStorageDetails.java index c1aac2ddecb..e55ec886dcd 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3IcebergStorageDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3IcebergStorageDetails.java @@ -68,6 +68,7 @@ public Builder endpoint(String endpoint) { } /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -75,6 +76,7 @@ public Builder endpoint(String endpoint) { /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @param accessKeyId the value to set * @return this builder @@ -104,8 +106,10 @@ public Builder secretAccessKeySecretId(String secretAccessKeySecretId) { } /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") @@ -113,8 +117,10 @@ public Builder secretAccessKeySecretId(String secretAccessKeySecretId) { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param secretAccessKey the value to set * @return this builder @@ -300,6 +306,7 @@ public String getEndpoint() { /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * **/ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") @@ -307,6 +314,7 @@ public String getEndpoint() { /** * Access key ID to access the Amazon S3 bucket. + * Note: Despite the "Id" suffix, this value is not an OCI OCID. * * @return the value **/ @@ -332,8 +340,10 @@ public String getSecretAccessKeySecretId() { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") @@ -341,8 +351,10 @@ public String getSecretAccessKeySecretId() { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * <p> + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. @@ -355,8 +367,10 @@ public String getSecretAccessKey() { /** * Secret access key to access the Amazon S3 bucket. - * e.g.: "this-is-not-the-secret" - * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + *

+ * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateApiKeyAiModelAuthDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateApiKeyAiModelAuthDetails.java new file mode 100644 index 00000000000..f504e0c07f0 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateApiKeyAiModelAuthDetails.java @@ -0,0 +1,277 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * The information to update API key authentication details for an AI Model connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateApiKeyAiModelAuthDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "authType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateApiKeyAiModelAuthDetails extends UpdateAiModelAuthDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseUrl") + private String baseUrl; + + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + * @param baseUrl the value to set + * @return this builder + **/ + public Builder baseUrl(String baseUrl) { + this.baseUrl = baseUrl; + this.__explicitlySet__.add("baseUrl"); + return this; + } + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + private char[] apiKey; + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @param apiKey the value to set + * @return this builder + **/ + public Builder apiKey(char[] apiKey) { + this.apiKey = apiKey; + this.__explicitlySet__.add("apiKey"); + return this; + } + + public Builder apiKey(String apiKey) { + this.apiKey = apiKey != null ? apiKey.toCharArray() : null; + this.__explicitlySet__.add("apiKey"); + return this; + } + + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @param apiKeySecretId the value to set + * @return this builder + **/ + public Builder apiKeySecretId(String apiKeySecretId) { + this.apiKeySecretId = apiKeySecretId; + this.__explicitlySet__.add("apiKeySecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateApiKeyAiModelAuthDetails build() { + UpdateApiKeyAiModelAuthDetails model = + new UpdateApiKeyAiModelAuthDetails( + this.baseUrl, this.apiKey, this.apiKeySecretId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateApiKeyAiModelAuthDetails model) { + if (model.wasPropertyExplicitlySet("baseUrl")) { + this.baseUrl(model.getBaseUrl()); + } + if (model.wasPropertyExplicitlySet("apiKey")) { + this.apiKey(model.getApiKey()); + } + if (model.wasPropertyExplicitlySet("apiKeySecretId")) { + this.apiKeySecretId(model.getApiKeySecretId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateApiKeyAiModelAuthDetails(String baseUrl, String apiKey, String apiKeySecretId) { + super(); + this.baseUrl = baseUrl; + this.apiKey = apiKey != null ? apiKey.toCharArray() : null; + this.apiKeySecretId = apiKeySecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateApiKeyAiModelAuthDetails(String baseUrl, char[] apiKey, String apiKeySecretId) { + super(); + this.baseUrl = baseUrl; + this.apiKey = apiKey; + this.apiKeySecretId = apiKeySecretId; + } + + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("baseUrl") + private final String baseUrl; + + /** + * Base URL of the AI model endpoint. + * If not specified, the default base URL for the selected AI provider will be used. + * + * @return the value + **/ + public String getBaseUrl() { + return baseUrl; + } + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + private final char[] apiKey; + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getApiKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getApiKey() { + return apiKey != null ? new String(apiKey) : null; + } + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + public char[] getApiKey__AsCharArray() { + return apiKey; + } + + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private final String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @return the value + **/ + public String getApiKeySecretId() { + return apiKeySecretId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateApiKeyAiModelAuthDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", baseUrl=").append(String.valueOf(this.baseUrl)); + sb.append(", apiKey=").append(""); + sb.append(", apiKeySecretId=").append(String.valueOf(this.apiKeySecretId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateApiKeyAiModelAuthDetails)) { + return false; + } + + UpdateApiKeyAiModelAuthDetails other = (UpdateApiKeyAiModelAuthDetails) o; + return java.util.Objects.equals(this.baseUrl, other.baseUrl) + && java.util.Objects.equals(this.apiKey, other.apiKey) + && java.util.Objects.equals(this.apiKeySecretId, other.apiKeySecretId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.baseUrl == null ? 43 : this.baseUrl.hashCode()); + result = (result * PRIME) + (this.apiKey == null ? 43 : this.apiKey.hashCode()); + result = + (result * PRIME) + + (this.apiKeySecretId == null ? 43 : this.apiKeySecretId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageConnectionDetails.java index c7516fef73d..f8aa0bfa14c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageConnectionDetails.java @@ -168,7 +168,9 @@ public Builder accountName(String accountName) { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") @@ -177,7 +179,9 @@ public Builder accountName(String accountName) { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param accountKey the value to set * @return this builder @@ -218,7 +222,9 @@ public Builder accountKeySecretId(String accountKeySecretId) { * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is * required when 'authenticationType' is set to 'SHARED_ACCESS_SIGNATURE'. * e.g.: ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D - * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sasToken") @@ -228,7 +234,9 @@ public Builder accountKeySecretId(String accountKeySecretId) { * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is * required when 'authenticationType' is set to 'SHARED_ACCESS_SIGNATURE'. * e.g.: ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D - * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sasToken the value to set * @return this builder @@ -308,7 +316,9 @@ public Builder clientId(String clientId) { /** * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. * e.g.: dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1 - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") @@ -317,7 +327,9 @@ public Builder clientId(String clientId) { /** * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. * e.g.: dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1 - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param clientSecret the value to set * @return this builder @@ -660,7 +672,9 @@ public String getAccountName() { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") @@ -669,7 +683,9 @@ public String getAccountName() { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getAccountKey__AsCharArray() instead. @@ -683,7 +699,9 @@ public String getAccountKey() { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -714,7 +732,9 @@ public String getAccountKeySecretId() { * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is * required when 'authenticationType' is set to 'SHARED_ACCESS_SIGNATURE'. * e.g.: ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D - * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sasToken") @@ -724,7 +744,9 @@ public String getAccountKeySecretId() { * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is * required when 'authenticationType' is set to 'SHARED_ACCESS_SIGNATURE'. * e.g.: ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D - * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getSasToken__AsCharArray() instead. @@ -739,7 +761,9 @@ public String getSasToken() { * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is * required when 'authenticationType' is set to 'SHARED_ACCESS_SIGNATURE'. * e.g.: ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D - * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -805,7 +829,9 @@ public String getClientId() { /** * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. * e.g.: dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1 - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") @@ -814,7 +840,9 @@ public String getClientId() { /** * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. * e.g.: dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1 - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getClientSecret__AsCharArray() instead. @@ -828,7 +856,9 @@ public String getClientSecret() { /** * Azure client secret (aka application password) for authentication. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. * e.g.: dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1 - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageIcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageIcebergStorageDetails.java index 7fc9347e606..9dd20278d05 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageIcebergStorageDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageIcebergStorageDetails.java @@ -84,7 +84,9 @@ public Builder accountKeySecretId(String accountKeySecretId) { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") @@ -93,7 +95,9 @@ public Builder accountKeySecretId(String accountKeySecretId) { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param accountKey the value to set * @return this builder @@ -260,7 +264,9 @@ public String getAccountKeySecretId() { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") @@ -269,7 +275,9 @@ public String getAccountKeySecretId() { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getAccountKey__AsCharArray() instead. @@ -283,7 +291,9 @@ public String getAccountKey() { /** * Azure storage account key. This property is required when 'authenticationType' is set to 'SHARED_KEY'. * e.g.: pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== - * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureSynapseConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureSynapseConnectionDetails.java index a779048e286..3bf71e7326a 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureSynapseConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureSynapseConnectionDetails.java @@ -173,7 +173,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -182,7 +184,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -427,7 +431,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -436,7 +442,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -450,7 +458,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateConnectionDetails.java index 0df2689b49c..cd732a67a59 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateConnectionDetails.java @@ -59,6 +59,10 @@ value = UpdateOracleAiDataPlatformConnectionDetails.class, name = "ORACLE_AI_DATA_PLATFORM" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateAiModelConnectionDetails.class, + name = "AI_MODEL" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateMicrosoftFabricConnectionDetails.class, name = "MICROSOFT_FABRIC" @@ -257,18 +261,30 @@ public java.util.Map> getDefinedTags() { } /** - * Refers to the customer's vault OCID. - * If provided, it references a vault where GoldenGate can manage secrets. Customers must add policies to permit GoldenGate - * to manage secrets contained within this vault. + * References the OCI Vault that contains the customer-managed encryption key identified by {@code keyId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. + * If {@code vaultId} is provided, {@code keyId} must also be provided. * **/ @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private final String vaultId; /** - * Refers to the customer's vault OCID. - * If provided, it references a vault where GoldenGate can manage secrets. Customers must add policies to permit GoldenGate - * to manage secrets contained within this vault. + * References the OCI Vault that contains the customer-managed encryption key identified by {@code keyId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. + * If {@code vaultId} is provided, {@code keyId} must also be provided. * * @return the value **/ @@ -277,16 +293,34 @@ public String getVaultId() { } /** - * Refers to the customer's master key OCID. - * If provided, it references a key to manage secrets. Customers must add policies to permit GoldenGate to use this key. + * References the OCI Vault key in the OCI Vault identified by {@code vaultId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * The GoldenGate service uses this key to encrypt sensitive information (for example, {@code password}) that is provided in plain-text connection attributes through the API. + * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. If both {@code vaultId} and {@code keyId} are provided, + * the GoldenGate service uses the specified customer-managed key to encrypt the sensitive data. + * If neither {@code vaultId} nor {@code keyId} is provided, the GoldenGate service uses Oracle-managed encryption keys. * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyId") private final String keyId; /** - * Refers to the customer's master key OCID. - * If provided, it references a key to manage secrets. Customers must add policies to permit GoldenGate to use this key. + * References the OCI Vault key in the OCI Vault identified by {@code vaultId}. + *

+ * Deprecated: This field is deprecated for GoldenGate connections. Sensitive attributes should be provided using the + * corresponding Secret OCID attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text + * attributes encrypted with {@code vaultId} and {@code keyId}. This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * The GoldenGate service uses this key to encrypt sensitive information (for example, {@code password}) that is provided in plain-text connection attributes through the API. + * This field is applicable only when {@code doesUseSecretIds} is set to {@code false}. If both {@code vaultId} and {@code keyId} are provided, + * the GoldenGate service uses the specified customer-managed key to encrypt the sensitive data. + * If neither {@code vaultId} nor {@code keyId} is provided, the GoldenGate service uses Oracle-managed encryption keys. * * @return the value **/ @@ -328,9 +362,13 @@ public String getSubnetId() { /** * Controls the network traffic direction to the target: - * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. * SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. * DEDICATED_ENDPOINT: A dedicated private endpoint is created in the target VCN subnet for the connection. The subnetId is required when DEDICATED_ENDPOINT networking is selected. + * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. + *

+ * Deprecated: SHARED_SERVICE_ENDPOINT is deprecated. Use another supported routingMethod value, or update existing connections to use a supported routing method. + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") @@ -338,9 +376,13 @@ public String getSubnetId() { /** * Controls the network traffic direction to the target: - * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. * SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. * DEDICATED_ENDPOINT: A dedicated private endpoint is created in the target VCN subnet for the connection. The subnetId is required when DEDICATED_ENDPOINT networking is selected. + * SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. + *

+ * Deprecated: SHARED_SERVICE_ENDPOINT is deprecated. Use another supported routingMethod value, or update existing connections to use a supported routing method. + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -350,6 +392,21 @@ public RoutingMethod getRoutingMethod() { /** * Indicates that sensitive attributes are provided via Secrets. + *

+ * Deprecated: This field is deprecated. Sensitive attributes should be provided using the corresponding Secret OCID + * attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text attributes. This change follows + * the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * When set to {@code true}, all sensitive information must be provided as OCI Vault secrets using the corresponding + * {@code *SecretId} attributes of the connection (for example, {@code passwordSecretId}). Plain-text sensitive attributes (for example, {@code password}) must not be used. + * This ensures that sensitive information remains stored and managed in the customer's OCI Vault rather than by the GoldenGate service. + *

+ * When set to false, sensitive information must be provided in the corresponding plain-text attributes (for example, {@code password}) rather than in secret OCID attributes. + * In this mode, the sensitive information is stored by the GoldenGate service. If {@code vaultId} and {@code keyId} are not specified, + * the GoldenGate service uses Oracle-managed encryption keys to encrypt the stored data. + *

+ * If {@code vaultId} and {@code keyId} are provided, the specified customer-managed key is used. * **/ @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") @@ -357,6 +414,21 @@ public RoutingMethod getRoutingMethod() { /** * Indicates that sensitive attributes are provided via Secrets. + *

+ * Deprecated: This field is deprecated. Sensitive attributes should be provided using the corresponding Secret OCID + * attributes of the connection (for example, {@code passwordSecretId}) instead of plain-text attributes. This change follows + * the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + *

+ * When set to {@code true}, all sensitive information must be provided as OCI Vault secrets using the corresponding + * {@code *SecretId} attributes of the connection (for example, {@code passwordSecretId}). Plain-text sensitive attributes (for example, {@code password}) must not be used. + * This ensures that sensitive information remains stored and managed in the customer's OCI Vault rather than by the GoldenGate service. + *

+ * When set to false, sensitive information must be provided in the corresponding plain-text attributes (for example, {@code password}) rather than in secret OCID attributes. + * In this mode, the sensitive information is stored by the GoldenGate service. If {@code vaultId} and {@code keyId} are not specified, + * the GoldenGate service uses Oracle-managed encryption keys to encrypt the stored data. + *

+ * If {@code vaultId} and {@code keyId} are provided, the specified customer-managed key is used. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabaseRegistrationDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabaseRegistrationDetails.java index 3d3c0b2800d..b817372f019 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabaseRegistrationDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabaseRegistrationDetails.java @@ -45,7 +45,7 @@ public UpdateDatabaseRegistrationDetails( this.password = password != null ? password.toCharArray() : null; this.connectionString = connectionString; this.sessionMode = sessionMode; - this.wallet = wallet; + this.wallet = wallet != null ? wallet.toCharArray() : null; this.aliasName = aliasName; } @@ -74,7 +74,7 @@ public UpdateDatabaseRegistrationDetails( char[] password, String connectionString, SessionMode sessionMode, - String wallet, + char[] wallet, String aliasName) { super(); this.displayName = displayName; @@ -218,7 +218,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -227,7 +229,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -289,25 +293,36 @@ public Builder sessionMode(SessionMode sessionMode) { /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("wallet") - private String wallet; + private char[] wallet; /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param wallet the value to set * @return this builder **/ - public Builder wallet(String wallet) { + public Builder wallet(char[] wallet) { this.wallet = wallet; this.__explicitlySet__.add("wallet"); return this; } + + public Builder wallet(String wallet) { + this.wallet = wallet != null ? wallet.toCharArray() : null; + this.__explicitlySet__.add("wallet"); + return this; + } + /** * Credential store alias. * @@ -513,7 +528,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -522,7 +539,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -536,7 +555,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -625,20 +646,41 @@ public SessionMode getSessionMode() { /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("wallet") - private final String wallet; + private final char[] wallet; + + /** + * The wallet contents Oracle GoldenGate uses to make connections to a database. + * This attribute is expected to be base64 encoded. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getWallet__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getWallet() { + return wallet != null ? new String(wallet) : null; + } /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getWallet() { + @com.fasterxml.jackson.annotation.JsonProperty("wallet") + public char[] getWallet__AsCharArray() { return wallet; } @@ -681,7 +723,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", password=").append(""); sb.append(", connectionString=").append(String.valueOf(this.connectionString)); sb.append(", sessionMode=").append(String.valueOf(this.sessionMode)); - sb.append(", wallet=").append(String.valueOf(this.wallet)); + sb.append(", wallet=").append(""); sb.append(", aliasName=").append(String.valueOf(this.aliasName)); sb.append(")"); return sb.toString(); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabricksConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabricksConnectionDetails.java index 22c4c8c810c..28feae63119 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabricksConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabricksConnectionDetails.java @@ -170,7 +170,9 @@ public Builder connectionUrl(String connectionUrl) { /** * The password used to connect to Databricks. * Only applicable for authenticationType == PERSONAL_ACCESS_TOKEN. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -179,7 +181,9 @@ public Builder connectionUrl(String connectionUrl) { /** * The password used to connect to Databricks. * Only applicable for authenticationType == PERSONAL_ACCESS_TOKEN. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -236,7 +240,9 @@ public Builder clientId(String clientId) { } /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") @@ -244,7 +250,9 @@ public Builder clientId(String clientId) { /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param clientSecret the value to set * @return this builder @@ -531,7 +539,9 @@ public String getConnectionUrl() { /** * The password used to connect to Databricks. * Only applicable for authenticationType == PERSONAL_ACCESS_TOKEN. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -540,7 +550,9 @@ public String getConnectionUrl() { /** * The password used to connect to Databricks. * Only applicable for authenticationType == PERSONAL_ACCESS_TOKEN. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -554,7 +566,9 @@ public String getPassword() { /** * The password used to connect to Databricks. * Only applicable for authenticationType == PERSONAL_ACCESS_TOKEN. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -599,7 +613,9 @@ public String getClientId() { /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") @@ -607,7 +623,9 @@ public String getClientId() { /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getClientSecret__AsCharArray() instead. @@ -620,7 +638,9 @@ public String getClientSecret() { /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDb2ConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDb2ConnectionDetails.java index bd8019ca2a3..cda44d7efc2 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDb2ConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDb2ConnectionDetails.java @@ -204,7 +204,9 @@ public Builder username(String username) { } /** * The password Oracle GoldenGate uses to connect the associated DB2 database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -212,7 +214,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated DB2 database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -291,26 +295,38 @@ public Builder securityProtocol(Db2Connection.SecurityProtocol securityProtocol) * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystoredb") - private String sslClientKeystoredb; + private char[] sslClientKeystoredb; /** * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sslClientKeystoredb the value to set * @return this builder **/ - public Builder sslClientKeystoredb(String sslClientKeystoredb) { + public Builder sslClientKeystoredb(char[] sslClientKeystoredb) { this.sslClientKeystoredb = sslClientKeystoredb; this.__explicitlySet__.add("sslClientKeystoredb"); return this; } + + public Builder sslClientKeystoredb(String sslClientKeystoredb) { + this.sslClientKeystoredb = + sslClientKeystoredb != null ? sslClientKeystoredb.toCharArray() : null; + this.__explicitlySet__.add("sslClientKeystoredb"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystore file stored, * which created at the client containing the server certificate / CA root certificate. @@ -341,26 +357,38 @@ public Builder sslClientKeystoredbSecretId(String sslClientKeystoredbSecretId) { * The base64 encoded keystash file which contains the encrypted password to the key database file. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystash") - private String sslClientKeystash; + private char[] sslClientKeystash; /** * The base64 encoded keystash file which contains the encrypted password to the key database file. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sslClientKeystash the value to set * @return this builder **/ - public Builder sslClientKeystash(String sslClientKeystash) { + public Builder sslClientKeystash(char[] sslClientKeystash) { this.sslClientKeystash = sslClientKeystash; this.__explicitlySet__.add("sslClientKeystash"); return this; } + + public Builder sslClientKeystash(String sslClientKeystash) { + this.sslClientKeystash = + sslClientKeystash != null ? sslClientKeystash.toCharArray() : null; + this.__explicitlySet__.add("sslClientKeystash"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystash file is stored, * which contains the encrypted password to the key database file. @@ -579,9 +607,10 @@ public UpdateDb2ConnectionDetails( this.passwordSecretId = passwordSecretId; this.additionalAttributes = additionalAttributes; this.securityProtocol = securityProtocol; - this.sslClientKeystoredb = sslClientKeystoredb; + this.sslClientKeystoredb = + sslClientKeystoredb != null ? sslClientKeystoredb.toCharArray() : null; this.sslClientKeystoredbSecretId = sslClientKeystoredbSecretId; - this.sslClientKeystash = sslClientKeystash; + this.sslClientKeystash = sslClientKeystash != null ? sslClientKeystash.toCharArray() : null; this.sslClientKeystashSecretId = sslClientKeystashSecretId; this.sslServerCertificate = sslServerCertificate; } @@ -608,9 +637,9 @@ public UpdateDb2ConnectionDetails( String passwordSecretId, java.util.List additionalAttributes, Db2Connection.SecurityProtocol securityProtocol, - String sslClientKeystoredb, + char[] sslClientKeystoredb, String sslClientKeystoredbSecretId, - String sslClientKeystash, + char[] sslClientKeystash, String sslClientKeystashSecretId, String sslServerCertificate) { super( @@ -708,7 +737,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated DB2 database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -716,7 +747,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated DB2 database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -729,7 +762,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated DB2 database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -794,21 +829,43 @@ public Db2Connection.SecurityProtocol getSecurityProtocol() { * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystoredb") - private final String sslClientKeystoredb; + private final char[] sslClientKeystoredb; + + /** + * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. + * This property is not supported for IBM Db2 for i, as client TLS mode is not available. + * <p> + * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getSslClientKeystoredb__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslClientKeystoredb() { + return sslClientKeystoredb != null ? new String(sslClientKeystoredb) : null; + } /** * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getSslClientKeystoredb() { + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystoredb") + public char[] getSslClientKeystoredb__AsCharArray() { return sslClientKeystoredb; } @@ -840,21 +897,43 @@ public String getSslClientKeystoredbSecretId() { * The base64 encoded keystash file which contains the encrypted password to the key database file. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystash") - private final String sslClientKeystash; + private final char[] sslClientKeystash; + + /** + * The base64 encoded keystash file which contains the encrypted password to the key database file. + * This property is not supported for IBM Db2 for i, as client TLS mode is not available. + * <p> + * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getSslClientKeystash__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslClientKeystash() { + return sslClientKeystash != null ? new String(sslClientKeystash) : null; + } /** * The base64 encoded keystash file which contains the encrypted password to the key database file. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

- * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getSslClientKeystash() { + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystash") + public char[] getSslClientKeystash__AsCharArray() { return sslClientKeystash; } @@ -922,10 +1001,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); - sb.append(", sslClientKeystoredb=").append(String.valueOf(this.sslClientKeystoredb)); + sb.append(", sslClientKeystoredb=").append(""); sb.append(", sslClientKeystoredbSecretId=") .append(String.valueOf(this.sslClientKeystoredbSecretId)); - sb.append(", sslClientKeystash=").append(String.valueOf(this.sslClientKeystash)); + sb.append(", sslClientKeystash=").append(""); sb.append(", sslClientKeystashSecretId=") .append(String.valueOf(this.sslClientKeystashSecretId)); sb.append(", sslServerCertificate=").append(String.valueOf(this.sslServerCertificate)); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateElasticsearchConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateElasticsearchConnectionDetails.java index 709303c7e40..219c56b1b0c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateElasticsearchConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateElasticsearchConnectionDetails.java @@ -210,7 +210,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -219,7 +221,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -540,7 +544,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -549,7 +555,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -563,7 +571,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoldenGateConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoldenGateConnectionDetails.java index 22e0b240989..72873f9d319 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoldenGateConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoldenGateConnectionDetails.java @@ -202,7 +202,9 @@ public Builder username(String username) { } /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -210,7 +212,9 @@ public Builder username(String username) { /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -522,7 +526,9 @@ public String getUsername() { /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -530,7 +536,9 @@ public String getUsername() { /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -543,7 +551,9 @@ public String getPassword() { /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleBigQueryConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleBigQueryConnectionDetails.java index 846cf404827..19412fddc67 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleBigQueryConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleBigQueryConnectionDetails.java @@ -151,25 +151,37 @@ public Builder endpoint(String endpoint) { /** * The base64 encoded content of the service account key file containing * the credentials required to use Google BigQuery. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private String serviceAccountKeyFile; + private char[] serviceAccountKeyFile; /** * The base64 encoded content of the service account key file containing * the credentials required to use Google BigQuery. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param serviceAccountKeyFile the value to set * @return this builder **/ - public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + public Builder serviceAccountKeyFile(char[] serviceAccountKeyFile) { this.serviceAccountKeyFile = serviceAccountKeyFile; this.__explicitlySet__.add("serviceAccountKeyFile"); return this; } + + public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.__explicitlySet__.add("serviceAccountKeyFile"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, * which contains the credentials required to use Google BigQuery. @@ -307,6 +319,41 @@ public UpdateGoogleBigQueryConnectionDetails( doesUseSecretIds, securityAttributes); this.endpoint = endpoint; + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateGoogleBigQueryConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String endpoint, + char[] serviceAccountKeyFile, + String serviceAccountKeyFileSecretId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.endpoint = endpoint; this.serviceAccountKeyFile = serviceAccountKeyFile; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; } @@ -332,20 +379,41 @@ public String getEndpoint() { /** * The base64 encoded content of the service account key file containing * the credentials required to use Google BigQuery. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private final String serviceAccountKeyFile; + private final char[] serviceAccountKeyFile; + + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google BigQuery. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getServiceAccountKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getServiceAccountKeyFile() { + return serviceAccountKeyFile != null ? new String(serviceAccountKeyFile) : null; + } /** * The base64 encoded content of the service account key file containing * the credentials required to use Google BigQuery. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getServiceAccountKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") + public char[] getServiceAccountKeyFile__AsCharArray() { return serviceAccountKeyFile; } @@ -384,7 +452,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateGoogleBigQueryConnectionDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", endpoint=").append(String.valueOf(this.endpoint)); - sb.append(", serviceAccountKeyFile=").append(String.valueOf(this.serviceAccountKeyFile)); + sb.append(", serviceAccountKeyFile=").append(""); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); sb.append(")"); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageConnectionDetails.java index 04e35945559..63c295840fb 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageConnectionDetails.java @@ -151,25 +151,37 @@ public Builder endpoint(String endpoint) { /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private String serviceAccountKeyFile; + private char[] serviceAccountKeyFile; /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param serviceAccountKeyFile the value to set * @return this builder **/ - public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + public Builder serviceAccountKeyFile(char[] serviceAccountKeyFile) { this.serviceAccountKeyFile = serviceAccountKeyFile; this.__explicitlySet__.add("serviceAccountKeyFile"); return this; } + + public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.__explicitlySet__.add("serviceAccountKeyFile"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, * which contains the credentials required to use Google Cloud Storage. @@ -307,6 +319,41 @@ public UpdateGoogleCloudStorageConnectionDetails( doesUseSecretIds, securityAttributes); this.endpoint = endpoint; + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateGoogleCloudStorageConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String endpoint, + char[] serviceAccountKeyFile, + String serviceAccountKeyFileSecretId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.endpoint = endpoint; this.serviceAccountKeyFile = serviceAccountKeyFile; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; } @@ -332,20 +379,41 @@ public String getEndpoint() { /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private final String serviceAccountKeyFile; + private final char[] serviceAccountKeyFile; + + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google Cloud Storage. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getServiceAccountKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getServiceAccountKeyFile() { + return serviceAccountKeyFile != null ? new String(serviceAccountKeyFile) : null; + } /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getServiceAccountKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") + public char[] getServiceAccountKeyFile__AsCharArray() { return serviceAccountKeyFile; } @@ -384,7 +452,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateGoogleCloudStorageConnectionDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", endpoint=").append(String.valueOf(this.endpoint)); - sb.append(", serviceAccountKeyFile=").append(String.valueOf(this.serviceAccountKeyFile)); + sb.append(", serviceAccountKeyFile=").append(""); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); sb.append(")"); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageIcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageIcebergStorageDetails.java index ba88d388e75..dd3429eea57 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageIcebergStorageDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoogleCloudStorageIcebergStorageDetails.java @@ -84,25 +84,37 @@ public Builder serviceAccountKeyFileSecretId(String serviceAccountKeyFileSecretI /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private String serviceAccountKeyFile; + private char[] serviceAccountKeyFile; /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param serviceAccountKeyFile the value to set * @return this builder **/ - public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + public Builder serviceAccountKeyFile(char[] serviceAccountKeyFile) { this.serviceAccountKeyFile = serviceAccountKeyFile; this.__explicitlySet__.add("serviceAccountKeyFile"); return this; } + + public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.__explicitlySet__.add("serviceAccountKeyFile"); + return this; + } + /** * A legal URL to connect to Google Cloud Storage including scheme, server name and port (if not the default port). * Default: https://storage.googleapis.com @@ -184,6 +196,23 @@ public UpdateGoogleCloudStorageIcebergStorageDetails( this.bucket = bucket; this.projectId = projectId; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.endpoint = endpoint; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateGoogleCloudStorageIcebergStorageDetails( + String bucket, + String projectId, + String serviceAccountKeyFileSecretId, + char[] serviceAccountKeyFile, + String endpoint) { + super(); + this.bucket = bucket; + this.projectId = projectId; + this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; this.serviceAccountKeyFile = serviceAccountKeyFile; this.endpoint = endpoint; } @@ -237,20 +266,41 @@ public String getServiceAccountKeyFileSecretId() { /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private final String serviceAccountKeyFile; + private final char[] serviceAccountKeyFile; /** * The base64 encoded content of the service account key file containing * the credentials required to use Google Cloud Storage. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getServiceAccountKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getServiceAccountKeyFile() { + return serviceAccountKeyFile != null ? new String(serviceAccountKeyFile) : null; + } + + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google Cloud Storage. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getServiceAccountKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") + public char[] getServiceAccountKeyFile__AsCharArray() { return serviceAccountKeyFile; } @@ -290,7 +340,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", projectId=").append(String.valueOf(this.projectId)); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); - sb.append(", serviceAccountKeyFile=").append(String.valueOf(this.serviceAccountKeyFile)); + sb.append(", serviceAccountKeyFile=").append(""); sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(")"); return sb.toString(); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGooglePubSubConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGooglePubSubConnectionDetails.java index e83afcee138..8953a7667cc 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGooglePubSubConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGooglePubSubConnectionDetails.java @@ -131,25 +131,37 @@ public Builder securityAttributes( /** * The base64 encoded content of the service account key file containing * the credentials required to use Google PubSub. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private String serviceAccountKeyFile; + private char[] serviceAccountKeyFile; /** * The base64 encoded content of the service account key file containing * the credentials required to use Google PubSub. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param serviceAccountKeyFile the value to set * @return this builder **/ - public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + public Builder serviceAccountKeyFile(char[] serviceAccountKeyFile) { this.serviceAccountKeyFile = serviceAccountKeyFile; this.__explicitlySet__.add("serviceAccountKeyFile"); return this; } + + public Builder serviceAccountKeyFile(String serviceAccountKeyFile) { + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.__explicitlySet__.add("serviceAccountKeyFile"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, * which contains the credentials required to use Google PubSub. @@ -281,6 +293,39 @@ public UpdateGooglePubSubConnectionDetails( routingMethod, doesUseSecretIds, securityAttributes); + this.serviceAccountKeyFile = + serviceAccountKeyFile != null ? serviceAccountKeyFile.toCharArray() : null; + this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateGooglePubSubConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + char[] serviceAccountKeyFile, + String serviceAccountKeyFileSecretId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); this.serviceAccountKeyFile = serviceAccountKeyFile; this.serviceAccountKeyFileSecretId = serviceAccountKeyFileSecretId; } @@ -288,20 +333,41 @@ public UpdateGooglePubSubConnectionDetails( /** * The base64 encoded content of the service account key file containing * the credentials required to use Google PubSub. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") - private final String serviceAccountKeyFile; + private final char[] serviceAccountKeyFile; /** * The base64 encoded content of the service account key file containing * the credentials required to use Google PubSub. - * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getServiceAccountKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getServiceAccountKeyFile() { + return serviceAccountKeyFile != null ? new String(serviceAccountKeyFile) : null; + } + + /** + * The base64 encoded content of the service account key file containing + * the credentials required to use Google PubSub. + * Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getServiceAccountKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("serviceAccountKeyFile") + public char[] getServiceAccountKeyFile__AsCharArray() { return serviceAccountKeyFile; } @@ -339,7 +405,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateGooglePubSubConnectionDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", serviceAccountKeyFile=").append(String.valueOf(this.serviceAccountKeyFile)); + sb.append(", serviceAccountKeyFile=").append(""); sb.append(", serviceAccountKeyFileSecretId=") .append(String.valueOf(this.serviceAccountKeyFileSecretId)); sb.append(")"); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateIcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateIcebergStorageDetails.java index 68b28cd737b..984e1bdcc40 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateIcebergStorageDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateIcebergStorageDetails.java @@ -27,6 +27,14 @@ value = UpdateAmazonS3IcebergStorageDetails.class, name = "AMAZON_S3" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOciObjectStorageS3ApiIcebergStorageDetails.class, + name = "OCI_OBJECT_STORAGE_S3_API" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateNoIcebergStorageDetails.class, + name = "NONE" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateGoogleCloudStorageIcebergStorageDetails.class, name = "GOOGLE_CLOUD_STORAGE" diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateJavaMessageServiceConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateJavaMessageServiceConnectionDetails.java index 3065022418a..3357a52552b 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateJavaMessageServiceConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateJavaMessageServiceConnectionDetails.java @@ -230,7 +230,9 @@ public Builder jndiSecurityPrincipal(String jndiSecurityPrincipal) { } /** * The password associated to the principal. - * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") @@ -238,7 +240,9 @@ public Builder jndiSecurityPrincipal(String jndiSecurityPrincipal) { /** * The password associated to the principal. - * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param jndiSecurityCredentials the value to set * @return this builder @@ -340,7 +344,9 @@ public Builder username(String username) { } /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -348,7 +354,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -431,24 +439,35 @@ public Builder authenticationType( } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private String trustStore; + private char[] trustStore; /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStore the value to set * @return this builder **/ - public Builder trustStore(String trustStore) { + public Builder trustStore(char[] trustStore) { this.trustStore = trustStore; this.__explicitlySet__.add("trustStore"); return this; } + + public Builder trustStore(String trustStore) { + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; + this.__explicitlySet__.add("trustStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the TrustStore file is stored. * Note: When provided, 'trustStore' field must not be provided. @@ -471,7 +490,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { } /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -479,7 +500,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStorePassword the value to set * @return this builder @@ -519,24 +542,35 @@ public Builder trustStorePasswordSecretId(String trustStorePasswordSecretId) { } /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private String keyStore; + private char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStore the value to set * @return this builder **/ - public Builder keyStore(String keyStore) { + public Builder keyStore(char[] keyStore) { this.keyStore = keyStore; this.__explicitlySet__.add("keyStore"); return this; } + + public Builder keyStore(String keyStore) { + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; + this.__explicitlySet__.add("keyStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the KeyStore file is stored. * Note: When provided, 'keyStore' field must not be provided. @@ -559,7 +593,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { } /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -567,7 +603,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStorePassword the value to set * @return this builder @@ -608,7 +646,9 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") @@ -617,7 +657,9 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sslKeyPassword the value to set * @return this builder @@ -917,12 +959,12 @@ public UpdateJavaMessageServiceConnectionDetails( this.passwordSecretId = passwordSecretId; this.securityProtocol = securityProtocol; this.authenticationType = authenticationType; - this.trustStore = trustStore; + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; this.trustStoreSecretId = trustStoreSecretId; this.trustStorePassword = trustStorePassword != null ? trustStorePassword.toCharArray() : null; this.trustStorePasswordSecretId = trustStorePasswordSecretId; - this.keyStore = keyStore; + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; this.keyStoreSecretId = keyStoreSecretId; this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; this.keyStorePasswordSecretId = keyStorePasswordSecretId; @@ -959,11 +1001,11 @@ public UpdateJavaMessageServiceConnectionDetails( String passwordSecretId, JavaMessageServiceConnection.SecurityProtocol securityProtocol, JavaMessageServiceConnection.AuthenticationType authenticationType, - String trustStore, + char[] trustStore, String trustStoreSecretId, char[] trustStorePassword, String trustStorePasswordSecretId, - String keyStore, + char[] keyStore, String keyStoreSecretId, char[] keyStorePassword, String keyStorePasswordSecretId, @@ -1101,7 +1143,9 @@ public String getJndiSecurityPrincipal() { /** * The password associated to the principal. - * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") @@ -1109,7 +1153,9 @@ public String getJndiSecurityPrincipal() { /** * The password associated to the principal. - * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getJndiSecurityCredentials__AsCharArray() instead. @@ -1122,7 +1168,9 @@ public String getJndiSecurityCredentials() { /** * The password associated to the principal. - * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "jndiSecurityCredentialsSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1207,7 +1255,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -1215,7 +1265,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -1228,7 +1280,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1295,19 +1349,39 @@ public JavaMessageServiceConnection.AuthenticationType getAuthenticationType() { /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private final String trustStore; + private final char[] trustStore; + + /** + * The base64 encoded content of the TrustStore file. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getTrustStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStore() { + return trustStore != null ? new String(trustStore) : null; + } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getTrustStore() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") + public char[] getTrustStore__AsCharArray() { return trustStore; } @@ -1331,7 +1405,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -1339,7 +1415,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. @@ -1352,7 +1430,9 @@ public String getTrustStorePassword() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1381,19 +1461,39 @@ public String getTrustStorePasswordSecretId() { /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private final String keyStore; + private final char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getKeyStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStore() { + return keyStore != null ? new String(keyStore) : null; + } + + /** + * The base64 encoded content of the KeyStore file. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getKeyStore() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") + public char[] getKeyStore__AsCharArray() { return keyStore; } @@ -1417,7 +1517,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -1425,7 +1527,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. @@ -1438,7 +1542,9 @@ public String getKeyStorePassword() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1468,7 +1574,9 @@ public String getKeyStorePasswordSecretId() { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") @@ -1477,7 +1585,9 @@ public String getKeyStorePasswordSecretId() { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getSslKeyPassword__AsCharArray() instead. @@ -1491,7 +1601,9 @@ public String getSslKeyPassword() { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1570,12 +1682,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); sb.append(", authenticationType=").append(String.valueOf(this.authenticationType)); - sb.append(", trustStore=").append(String.valueOf(this.trustStore)); + sb.append(", trustStore=").append(""); sb.append(", trustStoreSecretId=").append(String.valueOf(this.trustStoreSecretId)); sb.append(", trustStorePassword=").append(""); sb.append(", trustStorePasswordSecretId=") .append(String.valueOf(this.trustStorePasswordSecretId)); - sb.append(", keyStore=").append(String.valueOf(this.keyStore)); + sb.append(", keyStore=").append(""); sb.append(", keyStoreSecretId=").append(String.valueOf(this.keyStoreSecretId)); sb.append(", keyStorePassword=").append(""); sb.append(", keyStorePasswordSecretId=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaConnectionDetails.java index cb48d4a61ee..33b0c6a74a5 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaConnectionDetails.java @@ -233,7 +233,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -242,7 +244,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -287,24 +291,35 @@ public Builder passwordSecretId(String passwordSecretId) { } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private String trustStore; + private char[] trustStore; /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStore the value to set * @return this builder **/ - public Builder trustStore(String trustStore) { + public Builder trustStore(char[] trustStore) { this.trustStore = trustStore; this.__explicitlySet__.add("trustStore"); return this; } + + public Builder trustStore(String trustStore) { + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; + this.__explicitlySet__.add("trustStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the TrustStore file is stored. * Note: When provided, 'trustStore' field must not be provided. @@ -327,7 +342,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { } /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -335,7 +352,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStorePassword the value to set * @return this builder @@ -375,24 +394,35 @@ public Builder trustStorePasswordSecretId(String trustStorePasswordSecretId) { } /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private String keyStore; + private char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStore the value to set * @return this builder **/ - public Builder keyStore(String keyStore) { + public Builder keyStore(char[] keyStore) { this.keyStore = keyStore; this.__explicitlySet__.add("keyStore"); return this; } + + public Builder keyStore(String keyStore) { + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; + this.__explicitlySet__.add("keyStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the KeyStore file is stored. * Note: When provided, 'keyStore' field must not be provided. @@ -415,7 +445,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { } /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -423,7 +455,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStorePassword the value to set * @return this builder @@ -464,7 +498,9 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") @@ -473,7 +509,9 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sslKeyPassword the value to set * @return this builder @@ -778,12 +816,12 @@ public UpdateKafkaConnectionDetails( this.username = username; this.password = password != null ? password.toCharArray() : null; this.passwordSecretId = passwordSecretId; - this.trustStore = trustStore; + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; this.trustStoreSecretId = trustStoreSecretId; this.trustStorePassword = trustStorePassword != null ? trustStorePassword.toCharArray() : null; this.trustStorePasswordSecretId = trustStorePasswordSecretId; - this.keyStore = keyStore; + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; this.keyStoreSecretId = keyStoreSecretId; this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; this.keyStorePasswordSecretId = keyStorePasswordSecretId; @@ -815,11 +853,11 @@ public UpdateKafkaConnectionDetails( String username, char[] password, String passwordSecretId, - String trustStore, + char[] trustStore, String trustStoreSecretId, char[] trustStorePassword, String trustStorePasswordSecretId, - String keyStore, + char[] keyStore, String keyStoreSecretId, char[] keyStorePassword, String keyStorePasswordSecretId, @@ -957,7 +995,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -966,7 +1006,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -980,7 +1022,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1015,19 +1059,39 @@ public String getPasswordSecretId() { /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private final String trustStore; + private final char[] trustStore; + + /** + * The base64 encoded content of the TrustStore file. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getTrustStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStore() { + return trustStore != null ? new String(trustStore) : null; + } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getTrustStore() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") + public char[] getTrustStore__AsCharArray() { return trustStore; } @@ -1051,7 +1115,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -1059,7 +1125,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. @@ -1072,7 +1140,9 @@ public String getTrustStorePassword() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1101,19 +1171,39 @@ public String getTrustStorePasswordSecretId() { /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private final String keyStore; + private final char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getKeyStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStore() { + return keyStore != null ? new String(keyStore) : null; + } + + /** + * The base64 encoded content of the KeyStore file. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getKeyStore() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") + public char[] getKeyStore__AsCharArray() { return keyStore; } @@ -1137,7 +1227,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -1145,7 +1237,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. @@ -1158,7 +1252,9 @@ public String getKeyStorePassword() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1188,7 +1284,9 @@ public String getKeyStorePasswordSecretId() { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") @@ -1197,7 +1295,9 @@ public String getKeyStorePasswordSecretId() { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getSslKeyPassword__AsCharArray() instead. @@ -1211,7 +1311,9 @@ public String getSslKeyPassword() { /** * The password for the cert inside of the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1315,12 +1417,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", username=").append(String.valueOf(this.username)); sb.append(", password=").append(""); sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); - sb.append(", trustStore=").append(String.valueOf(this.trustStore)); + sb.append(", trustStore=").append(""); sb.append(", trustStoreSecretId=").append(String.valueOf(this.trustStoreSecretId)); sb.append(", trustStorePassword=").append(""); sb.append(", trustStorePasswordSecretId=") .append(String.valueOf(this.trustStorePasswordSecretId)); - sb.append(", keyStore=").append(String.valueOf(this.keyStore)); + sb.append(", keyStore=").append(""); sb.append(", keyStoreSecretId=").append(String.valueOf(this.keyStoreSecretId)); sb.append(", keyStorePassword=").append(""); sb.append(", keyStorePasswordSecretId=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaSchemaRegistryConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaSchemaRegistryConnectionDetails.java index f79eec6abf1..31e171d9d31 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaSchemaRegistryConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaSchemaRegistryConnectionDetails.java @@ -190,7 +190,9 @@ public Builder username(String username) { /** * The password to access Schema Registry using basic authentication. * This value is injected into 'schema.registry.basic.auth.user.info=user:password' configuration property. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -199,7 +201,9 @@ public Builder username(String username) { /** * The password to access Schema Registry using basic authentication. * This value is injected into 'schema.registry.basic.auth.user.info=user:password' configuration property. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -244,24 +248,35 @@ public Builder passwordSecretId(String passwordSecretId) { } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private String trustStore; + private char[] trustStore; /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStore the value to set * @return this builder **/ - public Builder trustStore(String trustStore) { + public Builder trustStore(char[] trustStore) { this.trustStore = trustStore; this.__explicitlySet__.add("trustStore"); return this; } + + public Builder trustStore(String trustStore) { + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; + this.__explicitlySet__.add("trustStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the content of the TrustStore file. * Note: When provided, 'trustStore' field must not be provided. @@ -284,7 +299,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { } /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -292,7 +309,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStorePassword the value to set * @return this builder @@ -332,24 +351,35 @@ public Builder trustStorePasswordSecretId(String trustStorePasswordSecretId) { } /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private String keyStore; + private char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStore the value to set * @return this builder **/ - public Builder keyStore(String keyStore) { + public Builder keyStore(char[] keyStore) { this.keyStore = keyStore; this.__explicitlySet__.add("keyStore"); return this; } + + public Builder keyStore(String keyStore) { + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; + this.__explicitlySet__.add("keyStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the content of the KeyStore file. * Note: When provided, 'keyStore' field must not be provided. @@ -372,7 +402,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { } /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -380,7 +412,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStorePassword the value to set * @return this builder @@ -421,7 +455,9 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { /** * The password for the cert inside the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") @@ -430,7 +466,9 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { /** * The password for the cert inside the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sslKeyPassword the value to set * @return this builder @@ -675,12 +713,12 @@ public UpdateKafkaSchemaRegistryConnectionDetails( this.username = username; this.password = password != null ? password.toCharArray() : null; this.passwordSecretId = passwordSecretId; - this.trustStore = trustStore; + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; this.trustStoreSecretId = trustStoreSecretId; this.trustStorePassword = trustStorePassword != null ? trustStorePassword.toCharArray() : null; this.trustStorePasswordSecretId = trustStorePasswordSecretId; - this.keyStore = keyStore; + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; this.keyStoreSecretId = keyStoreSecretId; this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; this.keyStorePasswordSecretId = keyStorePasswordSecretId; @@ -708,11 +746,11 @@ public UpdateKafkaSchemaRegistryConnectionDetails( String username, char[] password, String passwordSecretId, - String trustStore, + char[] trustStore, String trustStoreSecretId, char[] trustStorePassword, String trustStorePasswordSecretId, - String keyStore, + char[] keyStore, String keyStoreSecretId, char[] keyStorePassword, String keyStorePasswordSecretId, @@ -804,7 +842,9 @@ public String getUsername() { /** * The password to access Schema Registry using basic authentication. * This value is injected into 'schema.registry.basic.auth.user.info=user:password' configuration property. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -813,7 +853,9 @@ public String getUsername() { /** * The password to access Schema Registry using basic authentication. * This value is injected into 'schema.registry.basic.auth.user.info=user:password' configuration property. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -827,7 +869,9 @@ public String getPassword() { /** * The password to access Schema Registry using basic authentication. * This value is injected into 'schema.registry.basic.auth.user.info=user:password' configuration property. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -862,19 +906,39 @@ public String getPasswordSecretId() { /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private final String trustStore; + private final char[] trustStore; + + /** + * The base64 encoded content of the TrustStore file. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getTrustStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStore() { + return trustStore != null ? new String(trustStore) : null; + } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getTrustStore() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") + public char[] getTrustStore__AsCharArray() { return trustStore; } @@ -898,7 +962,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -906,7 +972,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. @@ -919,7 +987,9 @@ public String getTrustStorePassword() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -948,19 +1018,39 @@ public String getTrustStorePasswordSecretId() { /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private final String keyStore; + private final char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getKeyStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStore() { + return keyStore != null ? new String(keyStore) : null; + } + + /** + * The base64 encoded content of the KeyStore file. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getKeyStore() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") + public char[] getKeyStore__AsCharArray() { return keyStore; } @@ -984,7 +1074,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -992,7 +1084,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. @@ -1005,7 +1099,9 @@ public String getKeyStorePassword() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1035,7 +1131,9 @@ public String getKeyStorePasswordSecretId() { /** * The password for the cert inside the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") @@ -1044,7 +1142,9 @@ public String getKeyStorePasswordSecretId() { /** * The password for the cert inside the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getSslKeyPassword__AsCharArray() instead. @@ -1058,7 +1158,9 @@ public String getSslKeyPassword() { /** * The password for the cert inside the KeyStore. * In case it differs from the KeyStore password, it should be provided. - * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1126,12 +1228,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", username=").append(String.valueOf(this.username)); sb.append(", password=").append(""); sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); - sb.append(", trustStore=").append(String.valueOf(this.trustStore)); + sb.append(", trustStore=").append(""); sb.append(", trustStoreSecretId=").append(String.valueOf(this.trustStoreSecretId)); sb.append(", trustStorePassword=").append(""); sb.append(", trustStorePasswordSecretId=") .append(String.valueOf(this.trustStorePasswordSecretId)); - sb.append(", keyStore=").append(String.valueOf(this.keyStore)); + sb.append(", keyStore=").append(""); sb.append(", keyStoreSecretId=").append(String.valueOf(this.keyStoreSecretId)); sb.append(", keyStorePassword=").append(""); sb.append(", keyStorePasswordSecretId=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftFabricConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftFabricConnectionDetails.java index 9ead00b4635..5220e8e658a 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftFabricConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftFabricConnectionDetails.java @@ -170,24 +170,35 @@ public Builder clientId(String clientId) { } /** * Client secret associated with the client id. - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * Client secret associated with the client id. - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param clientSecret the value to set * @return this builder **/ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the client secret is stored. * Note: When provided, 'clientSecret' field must not be provided. @@ -354,6 +365,44 @@ public UpdateMicrosoftFabricConnectionDetails( securityAttributes); this.tenantId = tenantId; this.clientId = clientId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.clientSecretSecretId = clientSecretSecretId; + this.endpoint = endpoint; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateMicrosoftFabricConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Boolean doesUseSecretIds, + java.util.Map> securityAttributes, + String tenantId, + String clientId, + char[] clientSecret, + String clientSecretSecretId, + String endpoint) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.tenantId = tenantId; + this.clientId = clientId; this.clientSecret = clientSecret; this.clientSecretSecretId = clientSecretSecretId; this.endpoint = endpoint; @@ -397,19 +446,39 @@ public String getClientId() { /** * Client secret associated with the client id. - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; /** * Client secret associated with the client id. - * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } + + /** + * Client secret associated with the client id. + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getClientSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } @@ -465,7 +534,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", tenantId=").append(String.valueOf(this.tenantId)); sb.append(", clientId=").append(String.valueOf(this.clientId)); - sb.append(", clientSecret=").append(String.valueOf(this.clientSecret)); + sb.append(", clientSecret=").append(""); sb.append(", clientSecretSecretId=").append(String.valueOf(this.clientSecretSecretId)); sb.append(", endpoint=").append(String.valueOf(this.endpoint)); sb.append(")"); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftSqlserverConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftSqlserverConnectionDetails.java index b6696ad5b9e..6f896cbe311 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftSqlserverConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftSqlserverConnectionDetails.java @@ -204,7 +204,9 @@ public Builder username(String username) { } /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -212,7 +214,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -631,7 +635,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -639,7 +645,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -652,7 +660,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMongoDbConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMongoDbConnectionDetails.java index bf820b3e611..2da7412e0c1 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMongoDbConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMongoDbConnectionDetails.java @@ -170,7 +170,9 @@ public Builder username(String username) { } /** * The password Oracle GoldenGate uses to connect the associated database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -178,7 +180,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -271,24 +275,36 @@ public Builder tlsCaFile(String tlsCaFile) { } /** * Client Certificate - The base64 encoded content of a .pem file, containing the client public key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFile") - private String tlsCertificateKeyFile; + private char[] tlsCertificateKeyFile; /** * Client Certificate - The base64 encoded content of a .pem file, containing the client public key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param tlsCertificateKeyFile the value to set * @return this builder **/ - public Builder tlsCertificateKeyFile(String tlsCertificateKeyFile) { + public Builder tlsCertificateKeyFile(char[] tlsCertificateKeyFile) { this.tlsCertificateKeyFile = tlsCertificateKeyFile; this.__explicitlySet__.add("tlsCertificateKeyFile"); return this; } + + public Builder tlsCertificateKeyFile(String tlsCertificateKeyFile) { + this.tlsCertificateKeyFile = + tlsCertificateKeyFile != null ? tlsCertificateKeyFile.toCharArray() : null; + this.__explicitlySet__.add("tlsCertificateKeyFile"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the certificate key file of the mtls connection. * - The content of a .pem file containing the client private key (for 2-way SSL). @@ -313,7 +329,9 @@ public Builder tlsCertificateKeyFileSecretId(String tlsCertificateKeyFileSecretI } /** * Client Certificate key file password. - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") @@ -321,7 +339,9 @@ public Builder tlsCertificateKeyFileSecretId(String tlsCertificateKeyFileSecretI /** * Client Certificate key file password. - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param tlsCertificateKeyFilePassword the value to set * @return this builder @@ -524,7 +544,8 @@ public UpdateMongoDbConnectionDetails( this.databaseId = databaseId; this.securityProtocol = securityProtocol; this.tlsCaFile = tlsCaFile; - this.tlsCertificateKeyFile = tlsCertificateKeyFile; + this.tlsCertificateKeyFile = + tlsCertificateKeyFile != null ? tlsCertificateKeyFile.toCharArray() : null; this.tlsCertificateKeyFileSecretId = tlsCertificateKeyFileSecretId; this.tlsCertificateKeyFilePassword = tlsCertificateKeyFilePassword != null @@ -554,7 +575,7 @@ public UpdateMongoDbConnectionDetails( String databaseId, MongoDbConnection.SecurityProtocol securityProtocol, String tlsCaFile, - String tlsCertificateKeyFile, + char[] tlsCertificateKeyFile, String tlsCertificateKeyFileSecretId, char[] tlsCertificateKeyFilePassword, String tlsCertificateKeyFilePasswordSecretId) { @@ -621,7 +642,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -629,7 +652,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -642,7 +667,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated database. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -719,19 +746,39 @@ public String getTlsCaFile() { /** * Client Certificate - The base64 encoded content of a .pem file, containing the client public key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFile") - private final String tlsCertificateKeyFile; + private final char[] tlsCertificateKeyFile; /** * Client Certificate - The base64 encoded content of a .pem file, containing the client public key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getTlsCertificateKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTlsCertificateKeyFile() { + return tlsCertificateKeyFile != null ? new String(tlsCertificateKeyFile) : null; + } + + /** + * Client Certificate - The base64 encoded content of a .pem file, containing the client public key (for 2-way SSL). + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getTlsCertificateKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFile") + public char[] getTlsCertificateKeyFile__AsCharArray() { return tlsCertificateKeyFile; } @@ -757,7 +804,9 @@ public String getTlsCertificateKeyFileSecretId() { /** * Client Certificate key file password. - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") @@ -765,7 +814,9 @@ public String getTlsCertificateKeyFileSecretId() { /** * Client Certificate key file password. - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getTlsCertificateKeyFilePassword__AsCharArray() instead. @@ -780,7 +831,9 @@ public String getTlsCertificateKeyFilePassword() { /** * Client Certificate key file password. - * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "tlsCertificateKeyFilePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -828,7 +881,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", databaseId=").append(String.valueOf(this.databaseId)); sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); sb.append(", tlsCaFile=").append(String.valueOf(this.tlsCaFile)); - sb.append(", tlsCertificateKeyFile=").append(String.valueOf(this.tlsCertificateKeyFile)); + sb.append(", tlsCertificateKeyFile=").append(""); sb.append(", tlsCertificateKeyFileSecretId=") .append(String.valueOf(this.tlsCertificateKeyFileSecretId)); sb.append(", tlsCertificateKeyFilePassword=").append(""); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java index 3f9ddfc8cb3..259ef6695cf 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java @@ -153,7 +153,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -162,7 +164,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -359,24 +363,35 @@ public Builder sslCert(String sslCert) { } /** * Client Key - The base64 encoded content of a .pem or .crt file containing the client private key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKey") - private String sslKey; + private char[] sslKey; /** * Client Key - The base64 encoded content of a .pem or .crt file containing the client private key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sslKey the value to set * @return this builder **/ - public Builder sslKey(String sslKey) { + public Builder sslKey(char[] sslKey) { this.sslKey = sslKey; this.__explicitlySet__.add("sslKey"); return this; } + + public Builder sslKey(String sslKey) { + this.sslKey = sslKey != null ? sslKey.toCharArray() : null; + this.__explicitlySet__.add("sslKey"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the Client Key * - The content of a .pem or .crt file containing the client private key (for 2-way SSL). @@ -649,7 +664,7 @@ public UpdateMysqlConnectionDetails( this.sslCa = sslCa; this.sslCrl = sslCrl; this.sslCert = sslCert; - this.sslKey = sslKey; + this.sslKey = sslKey != null ? sslKey.toCharArray() : null; this.sslKeySecretId = sslKeySecretId; this.privateIp = privateIp; this.additionalAttributes = additionalAttributes; @@ -681,7 +696,7 @@ public UpdateMysqlConnectionDetails( String sslCa, String sslCrl, String sslCert, - String sslKey, + char[] sslKey, String sslKeySecretId, String privateIp, java.util.List additionalAttributes, @@ -739,7 +754,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -748,7 +765,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -762,7 +781,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -933,19 +954,39 @@ public String getSslCert() { /** * Client Key - The base64 encoded content of a .pem or .crt file containing the client private key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKey") - private final String sslKey; + private final char[] sslKey; /** * Client Key - The base64 encoded content of a .pem or .crt file containing the client private key (for 2-way SSL). - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getSslKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslKey() { + return sslKey != null ? new String(sslKey) : null; + } + + /** + * Client Key - The base64 encoded content of a .pem or .crt file containing the client private key (for 2-way SSL). + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getSslKey() { + @com.fasterxml.jackson.annotation.JsonProperty("sslKey") + public char[] getSslKey__AsCharArray() { return sslKey; } @@ -1048,7 +1089,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sslCa=").append(String.valueOf(this.sslCa)); sb.append(", sslCrl=").append(String.valueOf(this.sslCrl)); sb.append(", sslCert=").append(String.valueOf(this.sslCert)); - sb.append(", sslKey=").append(String.valueOf(this.sslKey)); + sb.append(", sslKey=").append(""); sb.append(", sslKeySecretId=").append(String.valueOf(this.sslKeySecretId)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateNoIcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateNoIcebergStorageDetails.java new file mode 100644 index 00000000000..f9daf81b26c --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateNoIcebergStorageDetails.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * The information to update the absence of a storage configuration in an + * Iceberg connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateNoIcebergStorageDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "storageType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateNoIcebergStorageDetails extends UpdateIcebergStorageDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateNoIcebergStorageDetails build() { + UpdateNoIcebergStorageDetails model = new UpdateNoIcebergStorageDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateNoIcebergStorageDetails model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateNoIcebergStorageDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateNoIcebergStorageDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateNoIcebergStorageDetails)) { + return false; + } + + UpdateNoIcebergStorageDetails other = (UpdateNoIcebergStorageDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciGenAiModelAuthDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciGenAiModelAuthDetails.java new file mode 100644 index 00000000000..e00d8cf73fd --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciGenAiModelAuthDetails.java @@ -0,0 +1,430 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * The information to update OCI Generative AI authentication details for an AI Model connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOciGenAiModelAuthDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "authType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateOciGenAiModelAuthDetails extends UpdateAiModelAuthDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + private char[] apiKey; + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @param apiKey the value to set + * @return this builder + **/ + public Builder apiKey(char[] apiKey) { + this.apiKey = apiKey; + this.__explicitlySet__.add("apiKey"); + return this; + } + + public Builder apiKey(String apiKey) { + this.apiKey = apiKey != null ? apiKey.toCharArray() : null; + this.__explicitlySet__.add("apiKey"); + return this; + } + + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @param apiKeySecretId the value to set + * @return this builder + **/ + public Builder apiKeySecretId(String apiKeySecretId) { + this.apiKeySecretId = apiKeySecretId; + this.__explicitlySet__.add("apiKeySecretId"); + return this; + } + /** + * OCI Generative AI key fingerprint. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyFingerprint") + private String keyFingerprint; + + /** + * OCI Generative AI key fingerprint. + * + * @param keyFingerprint the value to set + * @return this builder + **/ + public Builder keyFingerprint(String keyFingerprint) { + this.keyFingerprint = keyFingerprint; + this.__explicitlySet__.add("keyFingerprint"); + return this; + } + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + * @param region the value to set + * @return this builder + **/ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private String tenancyId; + + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + * @param tenancyId the value to set + * @return this builder + **/ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + this.__explicitlySet__.add("tenancyId"); + return this; + } + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userId") + private String userId; + + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + * @param userId the value to set + * @return this builder + **/ + public Builder userId(String userId) { + this.userId = userId; + this.__explicitlySet__.add("userId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOciGenAiModelAuthDetails build() { + UpdateOciGenAiModelAuthDetails model = + new UpdateOciGenAiModelAuthDetails( + this.apiKey, + this.apiKeySecretId, + this.keyFingerprint, + this.region, + this.tenancyId, + this.userId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOciGenAiModelAuthDetails model) { + if (model.wasPropertyExplicitlySet("apiKey")) { + this.apiKey(model.getApiKey()); + } + if (model.wasPropertyExplicitlySet("apiKeySecretId")) { + this.apiKeySecretId(model.getApiKeySecretId()); + } + if (model.wasPropertyExplicitlySet("keyFingerprint")) { + this.keyFingerprint(model.getKeyFingerprint()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + if (model.wasPropertyExplicitlySet("tenancyId")) { + this.tenancyId(model.getTenancyId()); + } + if (model.wasPropertyExplicitlySet("userId")) { + this.userId(model.getUserId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateOciGenAiModelAuthDetails( + String apiKey, + String apiKeySecretId, + String keyFingerprint, + String region, + String tenancyId, + String userId) { + super(); + this.apiKey = apiKey != null ? apiKey.toCharArray() : null; + this.apiKeySecretId = apiKeySecretId; + this.keyFingerprint = keyFingerprint; + this.region = region; + this.tenancyId = tenancyId; + this.userId = userId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOciGenAiModelAuthDetails( + char[] apiKey, + String apiKeySecretId, + String keyFingerprint, + String region, + String tenancyId, + String userId) { + super(); + this.apiKey = apiKey; + this.apiKeySecretId = apiKeySecretId; + this.keyFingerprint = keyFingerprint; + this.region = region; + this.tenancyId = tenancyId; + this.userId = userId; + } + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + private final char[] apiKey; + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getApiKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getApiKey() { + return apiKey != null ? new String(apiKey) : null; + } + + /** + * API key for the AI model connection. + * Deprecated: This field is deprecated and replaced by "apiKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKey") + public char[] getApiKey__AsCharArray() { + return apiKey; + } + + /** + * API key secret OCID for the AI model connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("apiKeySecretId") + private final String apiKeySecretId; + + /** + * API key secret OCID for the AI model connection. + * + * @return the value + **/ + public String getApiKeySecretId() { + return apiKeySecretId; + } + + /** + * OCI Generative AI key fingerprint. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyFingerprint") + private final String keyFingerprint; + + /** + * OCI Generative AI key fingerprint. + * + * @return the value + **/ + public String getKeyFingerprint() { + return keyFingerprint; + } + + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * The name of the region. e.g.: us-ashburn-1 + * If the region is not provided, backend will default to the default region. + * + * @return the value + **/ + public String getRegion() { + return region; + } + + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private final String tenancyId; + + /** + * OCI Generative AI tenancy OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the tenancy OCID of the user who is executing the operation. + * + * @return the value + **/ + public String getTenancyId() { + return tenancyId; + } + + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userId") + private final String userId; + + /** + * OCI Generative AI user OCID. If this value is not provided, or is updated to an empty + * value, it defaults to the OCID of the user who is executing the operation. + * + * @return the value + **/ + public String getUserId() { + return userId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOciGenAiModelAuthDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", apiKey=").append(""); + sb.append(", apiKeySecretId=").append(String.valueOf(this.apiKeySecretId)); + sb.append(", keyFingerprint=").append(String.valueOf(this.keyFingerprint)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(", userId=").append(String.valueOf(this.userId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOciGenAiModelAuthDetails)) { + return false; + } + + UpdateOciGenAiModelAuthDetails other = (UpdateOciGenAiModelAuthDetails) o; + return java.util.Objects.equals(this.apiKey, other.apiKey) + && java.util.Objects.equals(this.apiKeySecretId, other.apiKeySecretId) + && java.util.Objects.equals(this.keyFingerprint, other.keyFingerprint) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.tenancyId, other.tenancyId) + && java.util.Objects.equals(this.userId, other.userId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.apiKey == null ? 43 : this.apiKey.hashCode()); + result = + (result * PRIME) + + (this.apiKeySecretId == null ? 43 : this.apiKeySecretId.hashCode()); + result = + (result * PRIME) + + (this.keyFingerprint == null ? 43 : this.keyFingerprint.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = (result * PRIME) + (this.userId == null ? 43 : this.userId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageConnectionDetails.java index 5e2f5bde6b6..92f5e9e12e5 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageConnectionDetails.java @@ -191,25 +191,36 @@ public Builder userId(String userId) { /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private String privateKeyFile; + private char[] privateKeyFile; /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyFile the value to set * @return this builder **/ - public Builder privateKeyFile(String privateKeyFile) { + public Builder privateKeyFile(char[] privateKeyFile) { this.privateKeyFile = privateKeyFile; this.__explicitlySet__.add("privateKeyFile"); return this; } + + public Builder privateKeyFile(String privateKeyFile) { + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; + this.__explicitlySet__.add("privateKeyFile"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm @@ -234,7 +245,9 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { } /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -242,7 +255,9 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyPassphrase the value to set * @return this builder @@ -467,7 +482,7 @@ public UpdateOciObjectStorageConnectionDetails( this.tenancyId = tenancyId; this.region = region; this.userId = userId; - this.privateKeyFile = privateKeyFile; + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphrase = privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; @@ -493,7 +508,7 @@ public UpdateOciObjectStorageConnectionDetails( String tenancyId, String region, String userId, - String privateKeyFile, + char[] privateKeyFile, String privateKeyFileSecretId, char[] privateKeyPassphrase, String privateKeyPassphraseSecretId, @@ -579,20 +594,41 @@ public String getUserId() { /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private final String privateKeyFile; + private final char[] privateKeyFile; + + /** + * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. + * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getPrivateKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyFile() { + return privateKeyFile != null ? new String(privateKeyFile) : null; + } /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getPrivateKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") + public char[] getPrivateKeyFile__AsCharArray() { return privateKeyFile; } @@ -618,7 +654,9 @@ public String getPrivateKeyFileSecretId() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -626,7 +664,9 @@ public String getPrivateKeyFileSecretId() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. @@ -639,7 +679,9 @@ public String getPrivateKeyPassphrase() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -719,7 +761,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); sb.append(", region=").append(String.valueOf(this.region)); sb.append(", userId=").append(String.valueOf(this.userId)); - sb.append(", privateKeyFile=").append(String.valueOf(this.privateKeyFile)); + sb.append(", privateKeyFile=").append(""); sb.append(", privateKeyFileSecretId=").append(String.valueOf(this.privateKeyFileSecretId)); sb.append(", privateKeyPassphrase=").append(""); sb.append(", privateKeyPassphraseSecretId=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageS3ApiIcebergStorageDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageS3ApiIcebergStorageDetails.java new file mode 100644 index 00000000000..fb7388349bb --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageS3ApiIcebergStorageDetails.java @@ -0,0 +1,409 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.model; + +/** + * The information to update the OCI Object Storage (S3 Compatibility API) configuration used by the + * Iceberg connection. + * + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOciObjectStorageS3ApiIcebergStorageDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "storageType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateOciObjectStorageS3ApiIcebergStorageDetails + extends UpdateIcebergStorageDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + * @param endpoint the value to set + * @return this builder + **/ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") + private String accessKeyId; + + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + * @param accessKeyId the value to set + * @return this builder + **/ + public Builder accessKeyId(String accessKeyId) { + this.accessKeyId = accessKeyId; + this.__explicitlySet__.add("accessKeyId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKeySecretId") + private String secretAccessKeySecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + * @param secretAccessKeySecretId the value to set + * @return this builder + **/ + public Builder secretAccessKeySecretId(String secretAccessKeySecretId) { + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.__explicitlySet__.add("secretAccessKeySecretId"); + return this; + } + /** + * Secret Access Key from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + private char[] secretAccessKey; + + /** + * Secret Access Key from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @param secretAccessKey the value to set + * @return this builder + **/ + public Builder secretAccessKey(char[] secretAccessKey) { + this.secretAccessKey = secretAccessKey; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private String bucket; + + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + * @param bucket the value to set + * @return this builder + **/ + public Builder bucket(String bucket) { + this.bucket = bucket; + this.__explicitlySet__.add("bucket"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOciObjectStorageS3ApiIcebergStorageDetails build() { + UpdateOciObjectStorageS3ApiIcebergStorageDetails model = + new UpdateOciObjectStorageS3ApiIcebergStorageDetails( + this.endpoint, + this.accessKeyId, + this.secretAccessKeySecretId, + this.secretAccessKey, + this.bucket); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOciObjectStorageS3ApiIcebergStorageDetails model) { + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } + if (model.wasPropertyExplicitlySet("accessKeyId")) { + this.accessKeyId(model.getAccessKeyId()); + } + if (model.wasPropertyExplicitlySet("secretAccessKeySecretId")) { + this.secretAccessKeySecretId(model.getSecretAccessKeySecretId()); + } + if (model.wasPropertyExplicitlySet("secretAccessKey")) { + this.secretAccessKey(model.getSecretAccessKey()); + } + if (model.wasPropertyExplicitlySet("bucket")) { + this.bucket(model.getBucket()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateOciObjectStorageS3ApiIcebergStorageDetails( + String endpoint, + String accessKeyId, + String secretAccessKeySecretId, + String secretAccessKey, + String bucket) { + super(); + this.endpoint = endpoint; + this.accessKeyId = accessKeyId; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.bucket = bucket; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOciObjectStorageS3ApiIcebergStorageDetails( + String endpoint, + String accessKeyId, + String secretAccessKeySecretId, + char[] secretAccessKey, + String bucket) { + super(); + this.endpoint = endpoint; + this.accessKeyId = accessKeyId; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.secretAccessKey = secretAccessKey; + this.bucket = bucket; + } + + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * OCI Object Storage S3 Compatibility API endpoint URL. + * Format: "https://.compat.objectstorage.." + * Example: "https://mynamespace.compat.objectstorage.us-ashburn-1.oraclecloud.com" + * + * @return the value + **/ + public String getEndpoint() { + return endpoint; + } + + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") + private final String accessKeyId; + + /** + * Access Key ID from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + *

+ * Note: Despite the "Id" suffix, this value is not an OCI OCID. + * + * @return the value + **/ + public String getAccessKeyId() { + return accessKeyId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKeySecretId") + private final String secretAccessKeySecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the Secret Access Key used for OCI Object Storage S3 Compatibility authentication. + * + * @return the value + **/ + public String getSecretAccessKeySecretId() { + return secretAccessKeySecretId; + } + + /** + * Secret Access Key from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + private final char[] secretAccessKey; + + /** + * Secret Access Key from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getSecretAccessKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } + + /** + * Secret Access Key from the OCI IAM user's Customer Secret Key pair used to authenticate to + * OCI Object Storage via the S3 Compatibility API. + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { + return secretAccessKey; + } + + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private final String bucket; + + /** + * Target OCI Object Storage bucket name where Iceberg stores + * table metadata and data files. + * + * @return the value + **/ + public String getBucket() { + return bucket; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOciObjectStorageS3ApiIcebergStorageDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); + sb.append(", accessKeyId=").append(String.valueOf(this.accessKeyId)); + sb.append(", secretAccessKeySecretId=") + .append(String.valueOf(this.secretAccessKeySecretId)); + sb.append(", secretAccessKey=").append(""); + sb.append(", bucket=").append(String.valueOf(this.bucket)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOciObjectStorageS3ApiIcebergStorageDetails)) { + return false; + } + + UpdateOciObjectStorageS3ApiIcebergStorageDetails other = + (UpdateOciObjectStorageS3ApiIcebergStorageDetails) o; + return java.util.Objects.equals(this.endpoint, other.endpoint) + && java.util.Objects.equals(this.accessKeyId, other.accessKeyId) + && java.util.Objects.equals( + this.secretAccessKeySecretId, other.secretAccessKeySecretId) + && java.util.Objects.equals(this.secretAccessKey, other.secretAccessKey) + && java.util.Objects.equals(this.bucket, other.bucket) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); + result = (result * PRIME) + (this.accessKeyId == null ? 43 : this.accessKeyId.hashCode()); + result = + (result * PRIME) + + (this.secretAccessKeySecretId == null + ? 43 + : this.secretAccessKeySecretId.hashCode()); + result = + (result * PRIME) + + (this.secretAccessKey == null ? 43 : this.secretAccessKey.hashCode()); + result = (result * PRIME) + (this.bucket == null ? 43 : this.bucket.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOggDeploymentDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOggDeploymentDetails.java index 462b073f114..500b3b5cb8d 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOggDeploymentDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOggDeploymentDetails.java @@ -40,7 +40,7 @@ public UpdateOggDeploymentDetails( this.adminUsername = adminUsername; this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; this.certificate = certificate; - this.key = key; + this.key = key != null ? key.toCharArray() : null; this.keySecretId = keySecretId; this.groupToRolesMapping = groupToRolesMapping; } @@ -65,7 +65,7 @@ public UpdateOggDeploymentDetails( String adminUsername, char[] adminPassword, String certificate, - String key, + char[] key, String keySecretId, UpdateGroupToRolesMappingDetails groupToRolesMapping) { super(); @@ -208,7 +208,7 @@ public Builder certificate(String certificate) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("key") - private String key; + private char[] key; /** * The base64 encoded content of the PEM file containing the private key. @@ -216,11 +216,18 @@ public Builder certificate(String certificate) { * @param key the value to set * @return this builder **/ - public Builder key(String key) { + public Builder key(char[] key) { this.key = key; this.__explicitlySet__.add("key"); return this; } + + public Builder key(String key) { + this.key = key != null ? key.toCharArray() : null; + this.__explicitlySet__.add("key"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the deployment ssl private key is stored in PEM format. * @@ -437,14 +444,27 @@ public String getCertificate() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("key") - private final String key; + private final char[] key; + + /** + * The base64 encoded content of the PEM file containing the private key. + * + * return the value + * @Deprecated - Use getKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKey() { + return key != null ? new String(key) : null; + } /** * The base64 encoded content of the PEM file containing the private key. * * @return the value **/ - public String getKey() { + @com.fasterxml.jackson.annotation.JsonProperty("key") + public char[] getKey__AsCharArray() { return key; } @@ -491,7 +511,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", adminUsername=").append(String.valueOf(this.adminUsername)); sb.append(", adminPassword=").append(""); sb.append(", certificate=").append(String.valueOf(this.certificate)); - sb.append(", key=").append(String.valueOf(this.key)); + sb.append(", key=").append(""); sb.append(", keySecretId=").append(String.valueOf(this.keySecretId)); sb.append(", groupToRolesMapping=").append(String.valueOf(this.groupToRolesMapping)); sb.append(")"); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleAiDataPlatformConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleAiDataPlatformConnectionDetails.java index b3056ead241..8fc07a1dea9 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleAiDataPlatformConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleAiDataPlatformConnectionDetails.java @@ -253,28 +253,41 @@ public Builder privateKeyPassphraseSecretId(String privateKeyPassphraseSecretId) /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private String privateKeyFile; + private char[] privateKeyFile; /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyFile the value to set * @return this builder **/ - public Builder privateKeyFile(String privateKeyFile) { + public Builder privateKeyFile(char[] privateKeyFile) { this.privateKeyFile = privateKeyFile; this.__explicitlySet__.add("privateKeyFile"); return this; } + + public Builder privateKeyFile(String privateKeyFile) { + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; + this.__explicitlySet__.add("privateKeyFile"); + return this; + } + /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -282,7 +295,9 @@ public Builder privateKeyFile(String privateKeyFile) { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyPassphrase the value to set * @return this builder @@ -495,7 +510,7 @@ public UpdateOracleAiDataPlatformConnectionDetails( this.userId = userId; this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; - this.privateKeyFile = privateKeyFile; + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; this.privateKeyPassphrase = privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; this.publicKeyFingerprint = publicKeyFingerprint; @@ -522,7 +537,7 @@ public UpdateOracleAiDataPlatformConnectionDetails( String userId, String privateKeyFileSecretId, String privateKeyPassphraseSecretId, - String privateKeyFile, + char[] privateKeyFile, char[] privateKeyPassphrase, String publicKeyFingerprint, Boolean shouldUseResourcePrincipal) { @@ -663,26 +678,49 @@ public String getPrivateKeyPassphraseSecretId() { /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private final String privateKeyFile; + private final char[] privateKeyFile; + + /** + * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. + * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getPrivateKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyFile() { + return privateKeyFile != null ? new String(privateKeyFile) : null; + } /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getPrivateKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") + public char[] getPrivateKeyFile__AsCharArray() { return privateKeyFile; } /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -690,7 +728,9 @@ public String getPrivateKeyFile() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. @@ -703,7 +743,9 @@ public String getPrivateKeyPassphrase() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -769,7 +811,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", privateKeyFileSecretId=").append(String.valueOf(this.privateKeyFileSecretId)); sb.append(", privateKeyPassphraseSecretId=") .append(String.valueOf(this.privateKeyPassphraseSecretId)); - sb.append(", privateKeyFile=").append(String.valueOf(this.privateKeyFile)); + sb.append(", privateKeyFile=").append(""); sb.append(", privateKeyPassphrase=").append(""); sb.append(", publicKeyFingerprint=").append(String.valueOf(this.publicKeyFingerprint)); sb.append(", shouldUseResourcePrincipal=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleConnectionDetails.java index adb778f4508..b36165a0fc5 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleConnectionDetails.java @@ -153,7 +153,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -162,7 +164,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -246,25 +250,36 @@ public Builder authenticationMode(OracleConnection.AuthenticationMode authentica /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("wallet") - private String wallet; + private char[] wallet; /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param wallet the value to set * @return this builder **/ - public Builder wallet(String wallet) { + public Builder wallet(char[] wallet) { this.wallet = wallet; this.__explicitlySet__.add("wallet"); return this; } + + public Builder wallet(String wallet) { + this.wallet = wallet != null ? wallet.toCharArray() : null; + this.__explicitlySet__.add("wallet"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the wallet file is stored. * The wallet contents Oracle GoldenGate uses to make connections to a database. @@ -297,7 +312,7 @@ public Builder walletSecretId(String walletSecretId) { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") @@ -313,7 +328,7 @@ public Builder walletSecretId(String walletSecretId) { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * * @param sessionMode the value to set * @return this builder @@ -517,7 +532,7 @@ public UpdateOracleConnectionDetails( this.passwordSecretId = passwordSecretId; this.connectionString = connectionString; this.authenticationMode = authenticationMode; - this.wallet = wallet; + this.wallet = wallet != null ? wallet.toCharArray() : null; this.walletSecretId = walletSecretId; this.sessionMode = sessionMode; this.privateIp = privateIp; @@ -543,7 +558,7 @@ public UpdateOracleConnectionDetails( String passwordSecretId, String connectionString, OracleConnection.AuthenticationMode authenticationMode, - String wallet, + char[] wallet, String walletSecretId, OracleConnection.SessionMode sessionMode, String privateIp, @@ -595,7 +610,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -604,7 +621,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -618,7 +637,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -688,20 +709,41 @@ public OracleConnection.AuthenticationMode getAuthenticationMode() { /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("wallet") - private final String wallet; + private final char[] wallet; + + /** + * The wallet contents Oracle GoldenGate uses to make connections to a database. + * This attribute is expected to be base64 encoded. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getWallet__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getWallet() { + return wallet != null ? new String(wallet) : null; + } /** * The wallet contents Oracle GoldenGate uses to make connections to a database. * This attribute is expected to be base64 encoded. - * Deprecated: This field is deprecated and replaced by "walletSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "walletSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getWallet() { + @com.fasterxml.jackson.annotation.JsonProperty("wallet") + public char[] getWallet__AsCharArray() { return wallet; } @@ -735,7 +777,7 @@ public String getWalletSecretId() { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * **/ @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") @@ -751,7 +793,7 @@ public String getWalletSecretId() { * The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. * In this case, the default is REDIRECT. *

- * Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027. + * Deprecated: Defaulting to the REDIRECT session mode will be removed after April 21, 2027. * * @return the value **/ @@ -814,7 +856,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); sb.append(", connectionString=").append(String.valueOf(this.connectionString)); sb.append(", authenticationMode=").append(String.valueOf(this.authenticationMode)); - sb.append(", wallet=").append(String.valueOf(this.wallet)); + sb.append(", wallet=").append(""); sb.append(", walletSecretId=").append(String.valueOf(this.walletSecretId)); sb.append(", sessionMode=").append(String.valueOf(this.sessionMode)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleNosqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleNosqlConnectionDetails.java index 4553d7ac3c2..31e30583a66 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleNosqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleNosqlConnectionDetails.java @@ -191,25 +191,36 @@ public Builder userId(String userId) { /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private String privateKeyFile; + private char[] privateKeyFile; /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyFile the value to set * @return this builder **/ - public Builder privateKeyFile(String privateKeyFile) { + public Builder privateKeyFile(char[] privateKeyFile) { this.privateKeyFile = privateKeyFile; this.__explicitlySet__.add("privateKeyFile"); return this; } + + public Builder privateKeyFile(String privateKeyFile) { + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; + this.__explicitlySet__.add("privateKeyFile"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm @@ -234,7 +245,9 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { } /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -242,7 +255,9 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyPassphrase the value to set * @return this builder @@ -467,7 +482,7 @@ public UpdateOracleNosqlConnectionDetails( this.tenancyId = tenancyId; this.region = region; this.userId = userId; - this.privateKeyFile = privateKeyFile; + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphrase = privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; @@ -493,7 +508,7 @@ public UpdateOracleNosqlConnectionDetails( String tenancyId, String region, String userId, - String privateKeyFile, + char[] privateKeyFile, String privateKeyFileSecretId, char[] privateKeyPassphrase, String privateKeyPassphraseSecretId, @@ -579,20 +594,41 @@ public String getUserId() { /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private final String privateKeyFile; + private final char[] privateKeyFile; + + /** + * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. + * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getPrivateKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyFile() { + return privateKeyFile != null ? new String(privateKeyFile) : null; + } /** * The base64 encoded content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getPrivateKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") + public char[] getPrivateKeyFile__AsCharArray() { return privateKeyFile; } @@ -618,7 +654,9 @@ public String getPrivateKeyFileSecretId() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -626,7 +664,9 @@ public String getPrivateKeyFileSecretId() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. @@ -639,7 +679,9 @@ public String getPrivateKeyPassphrase() { /** * The passphrase of the private key. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -719,7 +761,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); sb.append(", region=").append(String.valueOf(this.region)); sb.append(", userId=").append(String.valueOf(this.userId)); - sb.append(", privateKeyFile=").append(String.valueOf(this.privateKeyFile)); + sb.append(", privateKeyFile=").append(""); sb.append(", privateKeyFileSecretId=").append(String.valueOf(this.privateKeyFileSecretId)); sb.append(", privateKeyPassphrase=").append(""); sb.append(", privateKeyPassphraseSecretId=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePostgresqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePostgresqlConnectionDetails.java index c1be47da0fe..a66633203e7 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePostgresqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePostgresqlConnectionDetails.java @@ -207,7 +207,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -216,7 +218,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -375,24 +379,35 @@ public Builder sslCert(String sslCert) { } /** * The base64 encoded private key of the PostgreSQL server. The supported file formats are .pem and .crt. - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKey") - private String sslKey; + private char[] sslKey; /** * The base64 encoded private key of the PostgreSQL server. The supported file formats are .pem and .crt. - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param sslKey the value to set * @return this builder **/ - public Builder sslKey(String sslKey) { + public Builder sslKey(char[] sslKey) { this.sslKey = sslKey; this.__explicitlySet__.add("sslKey"); return this; } + + public Builder sslKey(String sslKey) { + this.sslKey = sslKey != null ? sslKey.toCharArray() : null; + this.__explicitlySet__.add("sslKey"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the private key of the PostgreSQL server. The supported file formats are .pem and .crt. * Note: When provided, 'sslKey' field must not be provided. @@ -644,7 +659,7 @@ public UpdatePostgresqlConnectionDetails( this.sslCa = sslCa; this.sslCrl = sslCrl; this.sslCert = sslCert; - this.sslKey = sslKey; + this.sslKey = sslKey != null ? sslKey.toCharArray() : null; this.sslKeySecretId = sslKeySecretId; this.privateIp = privateIp; this.dbSystemId = dbSystemId; @@ -676,7 +691,7 @@ public UpdatePostgresqlConnectionDetails( String sslCa, String sslCrl, String sslCert, - String sslKey, + char[] sslKey, String sslKeySecretId, String privateIp, String dbSystemId) { @@ -781,7 +796,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -790,7 +807,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -804,7 +823,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -941,19 +962,39 @@ public String getSslCert() { /** * The base64 encoded private key of the PostgreSQL server. The supported file formats are .pem and .crt. - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("sslKey") - private final String sslKey; + private final char[] sslKey; /** * The base64 encoded private key of the PostgreSQL server. The supported file formats are .pem and .crt. - * Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getSslKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSslKey() { + return sslKey != null ? new String(sslKey) : null; + } + + /** + * The base64 encoded private key of the PostgreSQL server. The supported file formats are .pem and .crt. + * Deprecated: This field is deprecated and replaced by "sslKeySecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getSslKey() { + @com.fasterxml.jackson.annotation.JsonProperty("sslKey") + public char[] getSslKey__AsCharArray() { return sslKey; } @@ -1037,7 +1078,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sslCa=").append(String.valueOf(this.sslCa)); sb.append(", sslCrl=").append(String.valueOf(this.sslCrl)); sb.append(", sslCert=").append(String.valueOf(this.sslCert)); - sb.append(", sslKey=").append(String.valueOf(this.sslKey)); + sb.append(", sslKey=").append(""); sb.append(", sslKeySecretId=").append(String.valueOf(this.sslKeySecretId)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRedisConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRedisConnectionDetails.java index 1bd329479f4..422c03f6ea5 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRedisConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRedisConnectionDetails.java @@ -209,7 +209,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -218,7 +220,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -263,24 +267,35 @@ public Builder passwordSecretId(String passwordSecretId) { } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private String trustStore; + private char[] trustStore; /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStore the value to set * @return this builder **/ - public Builder trustStore(String trustStore) { + public Builder trustStore(char[] trustStore) { this.trustStore = trustStore; this.__explicitlySet__.add("trustStore"); return this; } + + public Builder trustStore(String trustStore) { + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; + this.__explicitlySet__.add("trustStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the content of the TrustStore file. * Note: When provided, 'trustStore' field must not be provided. @@ -303,7 +318,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { } /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -311,7 +328,9 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param trustStorePassword the value to set * @return this builder @@ -351,24 +370,35 @@ public Builder trustStorePasswordSecretId(String trustStorePasswordSecretId) { } /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private String keyStore; + private char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStore the value to set * @return this builder **/ - public Builder keyStore(String keyStore) { + public Builder keyStore(char[] keyStore) { this.keyStore = keyStore; this.__explicitlySet__.add("keyStore"); return this; } + + public Builder keyStore(String keyStore) { + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; + this.__explicitlySet__.add("keyStore"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the content of the KeyStore file. * Note: When provided, 'keyStore' field must not be provided. @@ -391,7 +421,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { } /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -399,7 +431,9 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param keyStorePassword the value to set * @return this builder @@ -635,12 +669,12 @@ public UpdateRedisConnectionDetails( this.username = username; this.password = password != null ? password.toCharArray() : null; this.passwordSecretId = passwordSecretId; - this.trustStore = trustStore; + this.trustStore = trustStore != null ? trustStore.toCharArray() : null; this.trustStoreSecretId = trustStoreSecretId; this.trustStorePassword = trustStorePassword != null ? trustStorePassword.toCharArray() : null; this.trustStorePasswordSecretId = trustStorePasswordSecretId; - this.keyStore = keyStore; + this.keyStore = keyStore != null ? keyStore.toCharArray() : null; this.keyStoreSecretId = keyStoreSecretId; this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; this.keyStorePasswordSecretId = keyStorePasswordSecretId; @@ -667,11 +701,11 @@ public UpdateRedisConnectionDetails( String username, char[] password, String passwordSecretId, - String trustStore, + char[] trustStore, String trustStoreSecretId, char[] trustStorePassword, String trustStorePasswordSecretId, - String keyStore, + char[] keyStore, String keyStoreSecretId, char[] keyStorePassword, String keyStorePasswordSecretId, @@ -778,7 +812,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -787,7 +823,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -801,7 +839,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. * It must conform to the specific security requirements including length, case sensitivity, and so on. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -836,19 +876,39 @@ public String getPasswordSecretId() { /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStore") - private final String trustStore; + private final char[] trustStore; + + /** + * The base64 encoded content of the TrustStore file. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getTrustStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTrustStore() { + return trustStore != null ? new String(trustStore) : null; + } /** * The base64 encoded content of the TrustStore file. - * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getTrustStore() { + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") + public char[] getTrustStore__AsCharArray() { return trustStore; } @@ -872,7 +932,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") @@ -880,7 +942,9 @@ public String getTrustStoreSecretId() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getTrustStorePassword__AsCharArray() instead. @@ -893,7 +957,9 @@ public String getTrustStorePassword() { /** * The TrustStore password. - * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -922,19 +988,39 @@ public String getTrustStorePasswordSecretId() { /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStore") - private final String keyStore; + private final char[] keyStore; /** * The base64 encoded content of the KeyStore file. - * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getKeyStore__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getKeyStore() { + return keyStore != null ? new String(keyStore) : null; + } + + /** + * The base64 encoded content of the KeyStore file. + * Deprecated: This field is deprecated and replaced by "keyStoreSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getKeyStore() { + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") + public char[] getKeyStore__AsCharArray() { return keyStore; } @@ -958,7 +1044,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") @@ -966,7 +1054,9 @@ public String getKeyStoreSecretId() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getKeyStorePassword__AsCharArray() instead. @@ -979,7 +1069,9 @@ public String getKeyStorePassword() { /** * The KeyStore password. - * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -1042,12 +1134,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", username=").append(String.valueOf(this.username)); sb.append(", password=").append(""); sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); - sb.append(", trustStore=").append(String.valueOf(this.trustStore)); + sb.append(", trustStore=").append(""); sb.append(", trustStoreSecretId=").append(String.valueOf(this.trustStoreSecretId)); sb.append(", trustStorePassword=").append(""); sb.append(", trustStorePasswordSecretId=") .append(String.valueOf(this.trustStorePasswordSecretId)); - sb.append(", keyStore=").append(String.valueOf(this.keyStore)); + sb.append(", keyStore=").append(""); sb.append(", keyStoreSecretId=").append(String.valueOf(this.keyStoreSecretId)); sb.append(", keyStorePassword=").append(""); sb.append(", keyStorePasswordSecretId=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRestIcebergCatalogDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRestIcebergCatalogDetails.java index 7b0663acf63..01d9a72b304 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRestIcebergCatalogDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRestIcebergCatalogDetails.java @@ -75,7 +75,7 @@ public Builder propertiesSecretId(String propertiesSecretId) { * **/ @com.fasterxml.jackson.annotation.JsonProperty("properties") - private String properties; + private char[] properties; /** * The base64 encoded content of the configuration file containing additional properties for the REST catalog. @@ -83,12 +83,18 @@ public Builder propertiesSecretId(String propertiesSecretId) { * @param properties the value to set * @return this builder **/ - public Builder properties(String properties) { + public Builder properties(char[] properties) { this.properties = properties; this.__explicitlySet__.add("properties"); return this; } + public Builder properties(String properties) { + this.properties = properties != null ? properties.toCharArray() : null; + this.__explicitlySet__.add("properties"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -134,6 +140,16 @@ public UpdateRestIcebergCatalogDetails( super(); this.uri = uri; this.propertiesSecretId = propertiesSecretId; + this.properties = properties != null ? properties.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateRestIcebergCatalogDetails( + String uri, String propertiesSecretId, char[] properties) { + super(); + this.uri = uri; + this.propertiesSecretId = propertiesSecretId; this.properties = properties; } @@ -180,14 +196,27 @@ public String getPropertiesSecretId() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("properties") - private final String properties; + private final char[] properties; + + /** + * The base64 encoded content of the configuration file containing additional properties for the REST catalog. + * + * return the value + * @Deprecated - Use getProperties__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getProperties() { + return properties != null ? new String(properties) : null; + } /** * The base64 encoded content of the configuration file containing additional properties for the REST catalog. * * @return the value **/ - public String getProperties() { + @com.fasterxml.jackson.annotation.JsonProperty("properties") + public char[] getProperties__AsCharArray() { return properties; } @@ -207,7 +236,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", uri=").append(String.valueOf(this.uri)); sb.append(", propertiesSecretId=").append(String.valueOf(this.propertiesSecretId)); - sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", properties=").append(""); sb.append(")"); return sb.toString(); } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateSnowflakeConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateSnowflakeConnectionDetails.java index 159b3b52dca..5ae9f203786 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateSnowflakeConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateSnowflakeConnectionDetails.java @@ -189,7 +189,9 @@ public Builder username(String username) { } /** * The password Oracle GoldenGate uses to connect to Snowflake platform. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -197,7 +199,9 @@ public Builder username(String username) { /** * The password Oracle GoldenGate uses to connect to Snowflake platform. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param password the value to set * @return this builder @@ -236,24 +240,35 @@ public Builder passwordSecretId(String passwordSecretId) { } /** * The base64 encoded content of private key file in PEM format. - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private String privateKeyFile; + private char[] privateKeyFile; /** * The base64 encoded content of private key file in PEM format. - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyFile the value to set * @return this builder **/ - public Builder privateKeyFile(String privateKeyFile) { + public Builder privateKeyFile(char[] privateKeyFile) { this.privateKeyFile = privateKeyFile; this.__explicitlySet__.add("privateKeyFile"); return this; } + + public Builder privateKeyFile(String privateKeyFile) { + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; + this.__explicitlySet__.add("privateKeyFile"); + return this; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the content of the private key file (PEM file) corresponding to the API key of the fingerprint. * See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm @@ -278,7 +293,9 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { } /** * Password if the private key file is encrypted. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -286,7 +303,9 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { /** * Password if the private key file is encrypted. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @param privateKeyPassphrase the value to set * @return this builder @@ -473,7 +492,7 @@ public UpdateSnowflakeConnectionDetails( this.username = username; this.password = password != null ? password.toCharArray() : null; this.passwordSecretId = passwordSecretId; - this.privateKeyFile = privateKeyFile; + this.privateKeyFile = privateKeyFile != null ? privateKeyFile.toCharArray() : null; this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphrase = privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; @@ -499,7 +518,7 @@ public UpdateSnowflakeConnectionDetails( String username, char[] password, String passwordSecretId, - String privateKeyFile, + char[] privateKeyFile, String privateKeyFileSecretId, char[] privateKeyPassphrase, String privateKeyPassphraseSecretId) { @@ -580,7 +599,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect to Snowflake platform. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -588,7 +609,9 @@ public String getUsername() { /** * The password Oracle GoldenGate uses to connect to Snowflake platform. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPassword__AsCharArray() instead. @@ -601,7 +624,9 @@ public String getPassword() { /** * The password Oracle GoldenGate uses to connect to Snowflake platform. - * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -630,19 +655,39 @@ public String getPasswordSecretId() { /** * The base64 encoded content of private key file in PEM format. - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") - private final String privateKeyFile; + private final char[] privateKeyFile; /** * The base64 encoded content of private key file in PEM format. - * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate + * + * return the value + * @Deprecated - Use getPrivateKeyFile__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyFile() { + return privateKeyFile != null ? new String(privateKeyFile) : null; + } + + /** + * The base64 encoded content of private key file in PEM format. + * Deprecated: This field is deprecated and replaced by "privateKeyFileSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ - public String getPrivateKeyFile() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") + public char[] getPrivateKeyFile__AsCharArray() { return privateKeyFile; } @@ -668,7 +713,9 @@ public String getPrivateKeyFileSecretId() { /** * Password if the private key file is encrypted. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * **/ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") @@ -676,7 +723,9 @@ public String getPrivateKeyFileSecretId() { /** * Password if the private key file is encrypted. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * return the value * @Deprecated - Use getPrivateKeyPassphrase__AsCharArray() instead. @@ -689,7 +738,9 @@ public String getPrivateKeyPassphrase() { /** * Password if the private key file is encrypted. - * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * Deprecated: This field is deprecated and replaced by "privateKeyPassphraseSecretId". + * This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: + * https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate * * @return the value **/ @@ -735,7 +786,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", username=").append(String.valueOf(this.username)); sb.append(", password=").append(""); sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); - sb.append(", privateKeyFile=").append(String.valueOf(this.privateKeyFile)); + sb.append(", privateKeyFile=").append(""); sb.append(", privateKeyFileSecretId=").append(String.valueOf(this.privateKeyFileSecretId)); sb.append(", privateKeyPassphrase=").append(""); sb.append(", privateKeyPassphraseSecretId=") diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListAiModelsRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListAiModelsRequest.java new file mode 100644 index 00000000000..aed87d987a1 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListAiModelsRequest.java @@ -0,0 +1,330 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use ListAiModelsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListAiModelsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the compartment that contains the work request. Work requests should be scoped + * to the same compartment as the resource the work request affects. If the work request concerns + * multiple resources, and those resources are not in the same compartment, it is up to the service team + * to pick the primary resource whose compartment should be used. + * + */ + private String compartmentId; + + /** + * The OCID of the compartment that contains the work request. Work requests should be scoped + * to the same compartment as the resource the work request affects. If the work request concerns + * multiple resources, and those resources are not in the same compartment, it is up to the service team + * to pick the primary resource whose compartment should be used. + * + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The AI provider type for which model information is requested. + * + */ + private com.oracle.bmc.goldengate.model.AiProviderSummary.ProviderType providerType; + + /** + * The AI provider type for which model information is requested. + * + */ + public com.oracle.bmc.goldengate.model.AiProviderSummary.ProviderType getProviderType() { + return providerType; + } + /** + * OCI region identifier, for example us-ashburn-1. + * + */ + private String region; + + /** + * OCI region identifier, for example us-ashburn-1. + * + */ + public String getRegion() { + return region; + } + /** + * OCI tenancy OCID to use when resolving provider models, for example for + * OCI Generative AI model discovery across a specific tenancy. + * + */ + private String tenancyId; + + /** + * OCI tenancy OCID to use when resolving provider models, for example for + * OCI Generative AI model discovery across a specific tenancy. + * + */ + public String getTenancyId() { + return tenancyId; + } + /** + * The client request ID for tracing. + * + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAiModelsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the compartment that contains the work request. Work requests should be scoped + * to the same compartment as the resource the work request affects. If the work request concerns + * multiple resources, and those resources are not in the same compartment, it is up to the service team + * to pick the primary resource whose compartment should be used. + * + */ + private String compartmentId = null; + + /** + * The OCID of the compartment that contains the work request. Work requests should be scoped + * to the same compartment as the resource the work request affects. If the work request concerns + * multiple resources, and those resources are not in the same compartment, it is up to the service team + * to pick the primary resource whose compartment should be used. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The AI provider type for which model information is requested. + * + */ + private com.oracle.bmc.goldengate.model.AiProviderSummary.ProviderType providerType = null; + + /** + * The AI provider type for which model information is requested. + * + * @param providerType the value to set + * @return this builder instance + */ + public Builder providerType( + com.oracle.bmc.goldengate.model.AiProviderSummary.ProviderType providerType) { + this.providerType = providerType; + return this; + } + + /** + * OCI region identifier, for example us-ashburn-1. + * + */ + private String region = null; + + /** + * OCI region identifier, for example us-ashburn-1. + * + * @param region the value to set + * @return this builder instance + */ + public Builder region(String region) { + this.region = region; + return this; + } + + /** + * OCI tenancy OCID to use when resolving provider models, for example for + * OCI Generative AI model discovery across a specific tenancy. + * + */ + private String tenancyId = null; + + /** + * OCI tenancy OCID to use when resolving provider models, for example for + * OCI Generative AI model discovery across a specific tenancy. + * + * @param tenancyId the value to set + * @return this builder instance + */ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + return this; + } + + /** + * The client request ID for tracing. + * + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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(ListAiModelsRequest o) { + compartmentId(o.getCompartmentId()); + providerType(o.getProviderType()); + region(o.getRegion()); + tenancyId(o.getTenancyId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAiModelsRequest 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 ListAiModelsRequest + */ + public ListAiModelsRequest build() { + ListAiModelsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAiModelsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListAiModelsRequest + */ + public ListAiModelsRequest buildWithoutInvocationCallback() { + ListAiModelsRequest request = new ListAiModelsRequest(); + request.compartmentId = compartmentId; + request.providerType = providerType; + request.region = region; + request.tenancyId = tenancyId; + request.opcRequestId = opcRequestId; + return request; + // new ListAiModelsRequest(compartmentId, providerType, region, tenancyId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .providerType(providerType) + .region(region) + .tenancyId(tenancyId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",providerType=").append(String.valueOf(this.providerType)); + sb.append(",region=").append(String.valueOf(this.region)); + sb.append(",tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAiModelsRequest)) { + return false; + } + + ListAiModelsRequest other = (ListAiModelsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.providerType, other.providerType) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.tenancyId, other.tenancyId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.providerType == null ? 43 : this.providerType.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListAiProvidersRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListAiProvidersRequest.java new file mode 100644 index 00000000000..69020548fd2 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListAiProvidersRequest.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use ListAiProvidersRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListAiProvidersRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the compartment that contains the work request. Work requests should be scoped + * to the same compartment as the resource the work request affects. If the work request concerns + * multiple resources, and those resources are not in the same compartment, it is up to the service team + * to pick the primary resource whose compartment should be used. + * + */ + private String compartmentId; + + /** + * The OCID of the compartment that contains the work request. Work requests should be scoped + * to the same compartment as the resource the work request affects. If the work request concerns + * multiple resources, and those resources are not in the same compartment, it is up to the service team + * to pick the primary resource whose compartment should be used. + * + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The client request ID for tracing. + * + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAiProvidersRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the compartment that contains the work request. Work requests should be scoped + * to the same compartment as the resource the work request affects. If the work request concerns + * multiple resources, and those resources are not in the same compartment, it is up to the service team + * to pick the primary resource whose compartment should be used. + * + */ + private String compartmentId = null; + + /** + * The OCID of the compartment that contains the work request. Work requests should be scoped + * to the same compartment as the resource the work request affects. If the work request concerns + * multiple resources, and those resources are not in the same compartment, it is up to the service team + * to pick the primary resource whose compartment should be used. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The client request ID for tracing. + * + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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(ListAiProvidersRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAiProvidersRequest 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 ListAiProvidersRequest + */ + public ListAiProvidersRequest build() { + ListAiProvidersRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAiProvidersRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListAiProvidersRequest + */ + public ListAiProvidersRequest buildWithoutInvocationCallback() { + ListAiProvidersRequest request = new ListAiProvidersRequest(); + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + return request; + // new ListAiProvidersRequest(compartmentId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().compartmentId(compartmentId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAiProvidersRequest)) { + return false; + } + + ListAiProvidersRequest other = (ListAiProvidersRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListConnectionAssignmentsRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListConnectionAssignmentsRequest.java index 35b549233e5..64906a33ab4 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListConnectionAssignmentsRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListConnectionAssignmentsRequest.java @@ -57,6 +57,33 @@ public String getDeploymentId() { public String getConnectionId() { return connectionId; } + /** + * The array of connection types. + * + */ + private java.util.List connectionType; + + /** + * The array of connection types. + * + */ + public java.util.List getConnectionType() { + return connectionType; + } + /** + * The array of connection types to exclude. + * + */ + private java.util.List connectionTypeNotEqualTo; + + /** + * The array of connection types to exclude. + * + */ + public java.util.List + getConnectionTypeNotEqualTo() { + return connectionTypeNotEqualTo; + } /** * The name of the connection in the assignment (aliasName). */ @@ -254,6 +281,65 @@ public Builder connectionId(String connectionId) { return this; } + /** + * The array of connection types. + * + */ + private java.util.List connectionType = + null; + + /** + * The array of connection types. + * + * @param connectionType the value to set + * @return this builder instance + */ + public Builder connectionType( + java.util.List connectionType) { + this.connectionType = connectionType; + return this; + } + + /** + * Singular setter. The array of connection types. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder connectionType(ConnectionType singularValue) { + return this.connectionType(java.util.Arrays.asList(singularValue)); + } + + /** + * The array of connection types to exclude. + * + */ + private java.util.List + connectionTypeNotEqualTo = null; + + /** + * The array of connection types to exclude. + * + * @param connectionTypeNotEqualTo the value to set + * @return this builder instance + */ + public Builder connectionTypeNotEqualTo( + java.util.List + connectionTypeNotEqualTo) { + this.connectionTypeNotEqualTo = connectionTypeNotEqualTo; + return this; + } + + /** + * Singular setter. The array of connection types to exclude. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder connectionTypeNotEqualTo(ConnectionType singularValue) { + return this.connectionTypeNotEqualTo(java.util.Arrays.asList(singularValue)); + } + /** * The name of the connection in the assignment (aliasName). */ @@ -409,6 +495,8 @@ public Builder copy(ListConnectionAssignmentsRequest o) { compartmentId(o.getCompartmentId()); deploymentId(o.getDeploymentId()); connectionId(o.getConnectionId()); + connectionType(o.getConnectionType()); + connectionTypeNotEqualTo(o.getConnectionTypeNotEqualTo()); name(o.getName()); lifecycleState(o.getLifecycleState()); limit(o.getLimit()); @@ -451,6 +539,8 @@ public ListConnectionAssignmentsRequest buildWithoutInvocationCallback() { request.compartmentId = compartmentId; request.deploymentId = deploymentId; request.connectionId = connectionId; + request.connectionType = connectionType; + request.connectionTypeNotEqualTo = connectionTypeNotEqualTo; request.name = name; request.lifecycleState = lifecycleState; request.limit = limit; @@ -459,7 +549,7 @@ public ListConnectionAssignmentsRequest buildWithoutInvocationCallback() { request.sortBy = sortBy; request.opcRequestId = opcRequestId; return request; - // new ListConnectionAssignmentsRequest(compartmentId, deploymentId, connectionId, name, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId); + // new ListConnectionAssignmentsRequest(compartmentId, deploymentId, connectionId, connectionType, connectionTypeNotEqualTo, name, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId); } } @@ -472,6 +562,8 @@ public Builder toBuilder() { .compartmentId(compartmentId) .deploymentId(deploymentId) .connectionId(connectionId) + .connectionType(connectionType) + .connectionTypeNotEqualTo(connectionTypeNotEqualTo) .name(name) .lifecycleState(lifecycleState) .limit(limit) @@ -497,6 +589,9 @@ public String toString() { sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",deploymentId=").append(String.valueOf(this.deploymentId)); sb.append(",connectionId=").append(String.valueOf(this.connectionId)); + sb.append(",connectionType=").append(String.valueOf(this.connectionType)); + sb.append(",connectionTypeNotEqualTo=") + .append(String.valueOf(this.connectionTypeNotEqualTo)); sb.append(",name=").append(String.valueOf(this.name)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(",limit=").append(String.valueOf(this.limit)); @@ -522,6 +617,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.deploymentId, other.deploymentId) && java.util.Objects.equals(this.connectionId, other.connectionId) + && java.util.Objects.equals(this.connectionType, other.connectionType) + && java.util.Objects.equals( + this.connectionTypeNotEqualTo, other.connectionTypeNotEqualTo) && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.limit, other.limit) @@ -540,6 +638,14 @@ public int hashCode() { + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.deploymentId == null ? 43 : this.deploymentId.hashCode()); result = (result * PRIME) + (this.connectionId == null ? 43 : this.connectionId.hashCode()); + result = + (result * PRIME) + + (this.connectionType == null ? 43 : this.connectionType.hashCode()); + result = + (result * PRIME) + + (this.connectionTypeNotEqualTo == null + ? 43 + : this.connectionTypeNotEqualTo.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListConnectionsRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListConnectionsRequest.java index 5030cf7a8c0..7454a529230 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListConnectionsRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListConnectionsRequest.java @@ -56,6 +56,20 @@ public java.util.List getTechnol public java.util.List getConnectionType() { return connectionType; } + /** + * The array of connection types to exclude. + * + */ + private java.util.List connectionTypeNotEqualTo; + + /** + * The array of connection types to exclude. + * + */ + public java.util.List + getConnectionTypeNotEqualTo() { + return connectionTypeNotEqualTo; + } /** * The OCID of the deployment which for the connection must be assigned. * @@ -320,6 +334,36 @@ public Builder connectionType(ConnectionType singularValue) { return this.connectionType(java.util.Arrays.asList(singularValue)); } + /** + * The array of connection types to exclude. + * + */ + private java.util.List + connectionTypeNotEqualTo = null; + + /** + * The array of connection types to exclude. + * + * @param connectionTypeNotEqualTo the value to set + * @return this builder instance + */ + public Builder connectionTypeNotEqualTo( + java.util.List + connectionTypeNotEqualTo) { + this.connectionTypeNotEqualTo = connectionTypeNotEqualTo; + return this; + } + + /** + * Singular setter. The array of connection types to exclude. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder connectionTypeNotEqualTo(ConnectionType singularValue) { + return this.connectionTypeNotEqualTo(java.util.Arrays.asList(singularValue)); + } + /** * The OCID of the deployment which for the connection must be assigned. * @@ -529,6 +573,7 @@ public Builder copy(ListConnectionsRequest o) { compartmentId(o.getCompartmentId()); technologyType(o.getTechnologyType()); connectionType(o.getConnectionType()); + connectionTypeNotEqualTo(o.getConnectionTypeNotEqualTo()); assignedDeploymentId(o.getAssignedDeploymentId()); assignableDeploymentId(o.getAssignableDeploymentId()); assignableDeploymentType(o.getAssignableDeploymentType()); @@ -574,6 +619,7 @@ public ListConnectionsRequest buildWithoutInvocationCallback() { request.compartmentId = compartmentId; request.technologyType = technologyType; request.connectionType = connectionType; + request.connectionTypeNotEqualTo = connectionTypeNotEqualTo; request.assignedDeploymentId = assignedDeploymentId; request.assignableDeploymentId = assignableDeploymentId; request.assignableDeploymentType = assignableDeploymentType; @@ -585,7 +631,7 @@ public ListConnectionsRequest buildWithoutInvocationCallback() { request.sortBy = sortBy; request.opcRequestId = opcRequestId; return request; - // new ListConnectionsRequest(compartmentId, technologyType, connectionType, assignedDeploymentId, assignableDeploymentId, assignableDeploymentType, lifecycleState, displayName, limit, page, sortOrder, sortBy, opcRequestId); + // new ListConnectionsRequest(compartmentId, technologyType, connectionType, connectionTypeNotEqualTo, assignedDeploymentId, assignableDeploymentId, assignableDeploymentType, lifecycleState, displayName, limit, page, sortOrder, sortBy, opcRequestId); } } @@ -598,6 +644,7 @@ public Builder toBuilder() { .compartmentId(compartmentId) .technologyType(technologyType) .connectionType(connectionType) + .connectionTypeNotEqualTo(connectionTypeNotEqualTo) .assignedDeploymentId(assignedDeploymentId) .assignableDeploymentId(assignableDeploymentId) .assignableDeploymentType(assignableDeploymentType) @@ -626,6 +673,8 @@ public String toString() { sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",technologyType=").append(String.valueOf(this.technologyType)); sb.append(",connectionType=").append(String.valueOf(this.connectionType)); + sb.append(",connectionTypeNotEqualTo=") + .append(String.valueOf(this.connectionTypeNotEqualTo)); sb.append(",assignedDeploymentId=").append(String.valueOf(this.assignedDeploymentId)); sb.append(",assignableDeploymentId=").append(String.valueOf(this.assignableDeploymentId)); sb.append(",assignableDeploymentType=") @@ -655,6 +704,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.technologyType, other.technologyType) && java.util.Objects.equals(this.connectionType, other.connectionType) + && java.util.Objects.equals( + this.connectionTypeNotEqualTo, other.connectionTypeNotEqualTo) && java.util.Objects.equals(this.assignedDeploymentId, other.assignedDeploymentId) && java.util.Objects.equals( this.assignableDeploymentId, other.assignableDeploymentId) @@ -682,6 +733,11 @@ public int hashCode() { result = (result * PRIME) + (this.connectionType == null ? 43 : this.connectionType.hashCode()); + result = + (result * PRIME) + + (this.connectionTypeNotEqualTo == null + ? 43 + : this.connectionTypeNotEqualTo.hashCode()); result = (result * PRIME) + (this.assignedDeploymentId == null diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListAiModelsResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListAiModelsResponse.java new file mode 100644 index 00000000000..75366f26dd9 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListAiModelsResponse.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListAiModelsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned AiModelCollection instance. + */ + private com.oracle.bmc.goldengate.model.AiModelCollection aiModelCollection; + + /** + * The returned AiModelCollection instance. + * @return the value + */ + public com.oracle.bmc.goldengate.model.AiModelCollection getAiModelCollection() { + return aiModelCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "aiModelCollection" + }) + private ListAiModelsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.goldengate.model.AiModelCollection aiModelCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.aiModelCollection = aiModelCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned AiModelCollection instance. + */ + private com.oracle.bmc.goldengate.model.AiModelCollection aiModelCollection; + + /** + * The returned AiModelCollection instance. + * @param aiModelCollection the value to set + * @return this builder + */ + public Builder aiModelCollection( + com.oracle.bmc.goldengate.model.AiModelCollection aiModelCollection) { + this.aiModelCollection = aiModelCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAiModelsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + aiModelCollection(o.getAiModelCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListAiModelsResponse build() { + return new ListAiModelsResponse( + __httpStatusCode__, headers, opcRequestId, aiModelCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",aiModelCollection=").append(String.valueOf(aiModelCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAiModelsResponse)) { + return false; + } + + ListAiModelsResponse other = (ListAiModelsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.aiModelCollection, other.aiModelCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.aiModelCollection == null ? 43 : this.aiModelCollection.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListAiProvidersResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListAiProvidersResponse.java new file mode 100644 index 00000000000..1ba0b3c4c5a --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListAiProvidersResponse.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListAiProvidersResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned AiProviderCollection instance. + */ + private com.oracle.bmc.goldengate.model.AiProviderCollection aiProviderCollection; + + /** + * The returned AiProviderCollection instance. + * @return the value + */ + public com.oracle.bmc.goldengate.model.AiProviderCollection getAiProviderCollection() { + return aiProviderCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "aiProviderCollection" + }) + private ListAiProvidersResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.goldengate.model.AiProviderCollection aiProviderCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.aiProviderCollection = aiProviderCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned AiProviderCollection instance. + */ + private com.oracle.bmc.goldengate.model.AiProviderCollection aiProviderCollection; + + /** + * The returned AiProviderCollection instance. + * @param aiProviderCollection the value to set + * @return this builder + */ + public Builder aiProviderCollection( + com.oracle.bmc.goldengate.model.AiProviderCollection aiProviderCollection) { + this.aiProviderCollection = aiProviderCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAiProvidersResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + aiProviderCollection(o.getAiProviderCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListAiProvidersResponse build() { + return new ListAiProvidersResponse( + __httpStatusCode__, headers, opcRequestId, aiProviderCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",aiProviderCollection=").append(String.valueOf(aiProviderCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAiProvidersResponse)) { + return false; + } + + ListAiProvidersResponse other = (ListAiProvidersResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.aiProviderCollection, other.aiProviderCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.aiProviderCollection == null + ? 43 + : this.aiProviderCollection.hashCode()); + return result; + } +} diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 624a8e1ba8b..faee69219a8 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index ed7cc90224e..9c445378b7e 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-healthchecks @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index d5942cfcde5..ec8635c8646 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index d6819de7645..9fcb60a5f8a 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-identitydataplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 03f9a6b3f32..dffa0bb3c7b 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-identitydomains @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/IdentityDomainsAsyncClient.java b/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/IdentityDomainsAsyncClient.java index df74793d8f4..4b6fa342430 100644 --- a/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/IdentityDomainsAsyncClient.java +++ b/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/IdentityDomainsAsyncClient.java @@ -8669,7 +8669,7 @@ protected void beforeRetryAction() {} "IdentityDomains", "ListIdentityPropagationTrusts", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/identity-domains/v1/IdentityPropagationTrusts/ListIdentityPropagationTrusts"); + "https://docs.oracle.com/iaas/api/#/en/identity-domains/v1/IdentityPropagationTrust/ListIdentityPropagationTrusts"); final java.util.function.Function< javax.ws.rs.core.Response, ListIdentityPropagationTrustsResponse> transformer = diff --git a/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/IdentityDomainsClient.java b/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/IdentityDomainsClient.java index 44a9f9abf77..c807378ceae 100644 --- a/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/IdentityDomainsClient.java +++ b/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/IdentityDomainsClient.java @@ -6950,7 +6950,7 @@ public ListIdentityPropagationTrustsResponse listIdentityPropagationTrusts( "IdentityDomains", "ListIdentityPropagationTrusts", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/identity-domains/v1/IdentityPropagationTrusts/ListIdentityPropagationTrusts"); + "https://docs.oracle.com/iaas/api/#/en/identity-domains/v1/IdentityPropagationTrust/ListIdentityPropagationTrusts"); java.util.function.Function< javax.ws.rs.core.Response, ListIdentityPropagationTrustsResponse> transformer = diff --git a/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/IdentityPropagationTrust.java b/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/IdentityPropagationTrust.java index 911cc89b3d1..0c725087963 100644 --- a/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/IdentityPropagationTrust.java +++ b/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/IdentityPropagationTrust.java @@ -52,6 +52,10 @@ public final class IdentityPropagationTrust "oauthClients", "allowImpersonation", "clockSkewSeconds", + "impersonatingResource", + "claimValidations", + "claimPropagations", + "cACertChain", "impersonationServiceUsers", "keytab" }) @@ -85,6 +89,10 @@ public IdentityPropagationTrust( java.util.List oauthClients, Boolean allowImpersonation, Integer clockSkewSeconds, + String impersonatingResource, + java.util.List claimValidations, + java.util.List claimPropagations, + IdentityPropagationTrustCaCertChain cACertChain, java.util.List impersonationServiceUsers, IdentityPropagationTrustKeytab keytab) { @@ -118,6 +126,10 @@ public IdentityPropagationTrust( this.oauthClients = oauthClients; this.allowImpersonation = allowImpersonation; this.clockSkewSeconds = clockSkewSeconds; + this.impersonatingResource = impersonatingResource; + this.claimValidations = claimValidations; + this.claimPropagations = claimPropagations; + this.cACertChain = cACertChain; this.impersonationServiceUsers = impersonationServiceUsers; this.keytab = keytab; } @@ -1076,6 +1088,134 @@ public Builder clockSkewSeconds(Integer clockSkewSeconds) { this.__explicitlySet__.add("clockSkewSeconds"); return this; } + /** + * Defines the external workload that acts as impersonating resource principal. + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - type: string + * - multiValued: false + * - required: false + * - mutability: readWrite + * - returned: default + * - uniqueness: none + * - caseExact: true + * - idcsSearchable: false + **/ + @com.fasterxml.jackson.annotation.JsonProperty("impersonatingResource") + private String impersonatingResource; + + /** + * Defines the external workload that acts as impersonating resource principal. + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - type: string + * - multiValued: false + * - required: false + * - mutability: readWrite + * - returned: default + * - uniqueness: none + * - caseExact: true + * - idcsSearchable: false + * @param impersonatingResource the value to set + * @return this builder + **/ + public Builder impersonatingResource(String impersonatingResource) { + this.impersonatingResource = impersonatingResource; + this.__explicitlySet__.add("impersonatingResource"); + return this; + } + /** + * A list of claim validations + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - idcsCompositeKey: [name] + * - idcsSearchable: false + * - multiValued: true + * - mutability: readWrite + * - required: false + * - returned: default + * - type: complex + * - uniqueness: none + **/ + @com.fasterxml.jackson.annotation.JsonProperty("claimValidations") + private java.util.List claimValidations; + + /** + * A list of claim validations + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - idcsCompositeKey: [name] + * - idcsSearchable: false + * - multiValued: true + * - mutability: readWrite + * - required: false + * - returned: default + * - type: complex + * - uniqueness: none + * @param claimValidations the value to set + * @return this builder + **/ + public Builder claimValidations( + java.util.List claimValidations) { + this.claimValidations = claimValidations; + this.__explicitlySet__.add("claimValidations"); + return this; + } + /** + * A list of claims to propagate in RPST + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - idcsSearchable: false + * - multiValued: true + * - mutability: readWrite + * - required: false + * - returned: default + * - type: string + * - uniqueness: none + **/ + @com.fasterxml.jackson.annotation.JsonProperty("claimPropagations") + private java.util.List claimPropagations; + + /** + * A list of claims to propagate in RPST + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - idcsSearchable: false + * - multiValued: true + * - mutability: readWrite + * - required: false + * - returned: default + * - type: string + * - uniqueness: none + * @param claimPropagations the value to set + * @return this builder + **/ + public Builder claimPropagations(java.util.List claimPropagations) { + this.claimPropagations = claimPropagations; + this.__explicitlySet__.add("claimPropagations"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("CACertChain") + private IdentityPropagationTrustCaCertChain cACertChain; + + public Builder cACertChain(IdentityPropagationTrustCaCertChain cACertChain) { + this.cACertChain = cACertChain; + this.__explicitlySet__.add("cACertChain"); + return this; + } /** * The Impersonating Principal. *

@@ -1160,6 +1300,10 @@ public IdentityPropagationTrust build() { this.oauthClients, this.allowImpersonation, this.clockSkewSeconds, + this.impersonatingResource, + this.claimValidations, + this.claimPropagations, + this.cACertChain, this.impersonationServiceUsers, this.keytab); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -1257,6 +1401,18 @@ public Builder copy(IdentityPropagationTrust model) { if (model.wasPropertyExplicitlySet("clockSkewSeconds")) { this.clockSkewSeconds(model.getClockSkewSeconds()); } + if (model.wasPropertyExplicitlySet("impersonatingResource")) { + this.impersonatingResource(model.getImpersonatingResource()); + } + if (model.wasPropertyExplicitlySet("claimValidations")) { + this.claimValidations(model.getClaimValidations()); + } + if (model.wasPropertyExplicitlySet("claimPropagations")) { + this.claimPropagations(model.getClaimPropagations()); + } + if (model.wasPropertyExplicitlySet("cACertChain")) { + this.cACertChain(model.getCACertChain()); + } if (model.wasPropertyExplicitlySet("impersonationServiceUsers")) { this.impersonationServiceUsers(model.getImpersonationServiceUsers()); } @@ -1723,6 +1879,7 @@ public enum Type { Saml("SAML"), Spnego("SPNEGO"), Aws("AWS"), + X509("X509"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -1946,6 +2103,7 @@ public String getSubjectMappingAttribute() { public enum SubjectType { User("User"), App("App"), + Resource("Resource"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -2286,6 +2444,125 @@ public Integer getClockSkewSeconds() { return clockSkewSeconds; } + /** + * Defines the external workload that acts as impersonating resource principal. + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - type: string + * - multiValued: false + * - required: false + * - mutability: readWrite + * - returned: default + * - uniqueness: none + * - caseExact: true + * - idcsSearchable: false + **/ + @com.fasterxml.jackson.annotation.JsonProperty("impersonatingResource") + private final String impersonatingResource; + + /** + * Defines the external workload that acts as impersonating resource principal. + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - type: string + * - multiValued: false + * - required: false + * - mutability: readWrite + * - returned: default + * - uniqueness: none + * - caseExact: true + * - idcsSearchable: false + * @return the value + **/ + public String getImpersonatingResource() { + return impersonatingResource; + } + + /** + * A list of claim validations + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - idcsCompositeKey: [name] + * - idcsSearchable: false + * - multiValued: true + * - mutability: readWrite + * - required: false + * - returned: default + * - type: complex + * - uniqueness: none + **/ + @com.fasterxml.jackson.annotation.JsonProperty("claimValidations") + private final java.util.List claimValidations; + + /** + * A list of claim validations + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - idcsCompositeKey: [name] + * - idcsSearchable: false + * - multiValued: true + * - mutability: readWrite + * - required: false + * - returned: default + * - type: complex + * - uniqueness: none + * @return the value + **/ + public java.util.List getClaimValidations() { + return claimValidations; + } + + /** + * A list of claims to propagate in RPST + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - idcsSearchable: false + * - multiValued: true + * - mutability: readWrite + * - required: false + * - returned: default + * - type: string + * - uniqueness: none + **/ + @com.fasterxml.jackson.annotation.JsonProperty("claimPropagations") + private final java.util.List claimPropagations; + + /** + * A list of claims to propagate in RPST + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - idcsSearchable: false + * - multiValued: true + * - mutability: readWrite + * - required: false + * - returned: default + * - type: string + * - uniqueness: none + * @return the value + **/ + public java.util.List getClaimPropagations() { + return claimPropagations; + } + + @com.fasterxml.jackson.annotation.JsonProperty("CACertChain") + private final IdentityPropagationTrustCaCertChain cACertChain; + + public IdentityPropagationTrustCaCertChain getCACertChain() { + return cACertChain; + } + /** * The Impersonating Principal. *

@@ -2375,6 +2652,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", oauthClients=").append(String.valueOf(this.oauthClients)); sb.append(", allowImpersonation=").append(String.valueOf(this.allowImpersonation)); sb.append(", clockSkewSeconds=").append(String.valueOf(this.clockSkewSeconds)); + sb.append(", impersonatingResource=").append(String.valueOf(this.impersonatingResource)); + sb.append(", claimValidations=").append(String.valueOf(this.claimValidations)); + sb.append(", claimPropagations=").append(String.valueOf(this.claimPropagations)); + sb.append(", cACertChain=").append(String.valueOf(this.cACertChain)); sb.append(", impersonationServiceUsers=") .append(String.valueOf(this.impersonationServiceUsers)); sb.append(", keytab=").append(String.valueOf(this.keytab)); @@ -2424,6 +2705,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.oauthClients, other.oauthClients) && java.util.Objects.equals(this.allowImpersonation, other.allowImpersonation) && java.util.Objects.equals(this.clockSkewSeconds, other.clockSkewSeconds) + && java.util.Objects.equals(this.impersonatingResource, other.impersonatingResource) + && java.util.Objects.equals(this.claimValidations, other.claimValidations) + && java.util.Objects.equals(this.claimPropagations, other.claimPropagations) + && java.util.Objects.equals(this.cACertChain, other.cACertChain) && java.util.Objects.equals( this.impersonationServiceUsers, other.impersonationServiceUsers) && java.util.Objects.equals(this.keytab, other.keytab) @@ -2501,6 +2786,18 @@ public int hashCode() { result = (result * PRIME) + (this.clockSkewSeconds == null ? 43 : this.clockSkewSeconds.hashCode()); + result = + (result * PRIME) + + (this.impersonatingResource == null + ? 43 + : this.impersonatingResource.hashCode()); + result = + (result * PRIME) + + (this.claimValidations == null ? 43 : this.claimValidations.hashCode()); + result = + (result * PRIME) + + (this.claimPropagations == null ? 43 : this.claimPropagations.hashCode()); + result = (result * PRIME) + (this.cACertChain == null ? 43 : this.cACertChain.hashCode()); result = (result * PRIME) + (this.impersonationServiceUsers == null diff --git a/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/IdentityPropagationTrustCaCertChain.java b/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/IdentityPropagationTrustCaCertChain.java new file mode 100644 index 00000000000..bc545cabd0a --- /dev/null +++ b/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/IdentityPropagationTrustCaCertChain.java @@ -0,0 +1,276 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.identitydomains.model; + +/** + * Certificate trust store. This is required if identity propagation type is X509. + *

+ **Added In:** 2508041610 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - type: complex + * - multiValued: false + * - required: false + * - mutability: readWrite + * - returned: default + * - uniqueness: none + *
+ * 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: v1") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = IdentityPropagationTrustCaCertChain.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class IdentityPropagationTrustCaCertChain + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"rootCAs", "intermediateCAs"}) + public IdentityPropagationTrustCaCertChain( + java.util.List rootCAs, java.util.List intermediateCAs) { + super(); + this.rootCAs = rootCAs; + this.intermediateCAs = intermediateCAs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of PEM-encoded root CA certificates. + *

+ **Added In:** 2508041610 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - type: string + * - multiValued: true + * - required: true + * - mutability: readWrite + * - returned: default + * - uniqueness: none + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rootCAs") + private java.util.List rootCAs; + + /** + * A list of PEM-encoded root CA certificates. + *

+ **Added In:** 2508041610 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - type: string + * - multiValued: true + * - required: true + * - mutability: readWrite + * - returned: default + * - uniqueness: none + * @param rootCAs the value to set + * @return this builder + **/ + public Builder rootCAs(java.util.List rootCAs) { + this.rootCAs = rootCAs; + this.__explicitlySet__.add("rootCAs"); + return this; + } + /** + * A list of PEM-encoded intermediate CA certificates. + *

+ **Added In:** 2508041610 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - type: string + * - multiValued: true + * - required: false + * - mutability: readWrite + * - returned: default + * - uniqueness: none + **/ + @com.fasterxml.jackson.annotation.JsonProperty("intermediateCAs") + private java.util.List intermediateCAs; + + /** + * A list of PEM-encoded intermediate CA certificates. + *

+ **Added In:** 2508041610 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - type: string + * - multiValued: true + * - required: false + * - mutability: readWrite + * - returned: default + * - uniqueness: none + * @param intermediateCAs the value to set + * @return this builder + **/ + public Builder intermediateCAs(java.util.List intermediateCAs) { + this.intermediateCAs = intermediateCAs; + this.__explicitlySet__.add("intermediateCAs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public IdentityPropagationTrustCaCertChain build() { + IdentityPropagationTrustCaCertChain model = + new IdentityPropagationTrustCaCertChain(this.rootCAs, this.intermediateCAs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(IdentityPropagationTrustCaCertChain model) { + if (model.wasPropertyExplicitlySet("rootCAs")) { + this.rootCAs(model.getRootCAs()); + } + if (model.wasPropertyExplicitlySet("intermediateCAs")) { + this.intermediateCAs(model.getIntermediateCAs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of PEM-encoded root CA certificates. + *

+ **Added In:** 2508041610 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - type: string + * - multiValued: true + * - required: true + * - mutability: readWrite + * - returned: default + * - uniqueness: none + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rootCAs") + private final java.util.List rootCAs; + + /** + * A list of PEM-encoded root CA certificates. + *

+ **Added In:** 2508041610 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - type: string + * - multiValued: true + * - required: true + * - mutability: readWrite + * - returned: default + * - uniqueness: none + * @return the value + **/ + public java.util.List getRootCAs() { + return rootCAs; + } + + /** + * A list of PEM-encoded intermediate CA certificates. + *

+ **Added In:** 2508041610 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - type: string + * - multiValued: true + * - required: false + * - mutability: readWrite + * - returned: default + * - uniqueness: none + **/ + @com.fasterxml.jackson.annotation.JsonProperty("intermediateCAs") + private final java.util.List intermediateCAs; + + /** + * A list of PEM-encoded intermediate CA certificates. + *

+ **Added In:** 2508041610 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - type: string + * - multiValued: true + * - required: false + * - mutability: readWrite + * - returned: default + * - uniqueness: none + * @return the value + **/ + public java.util.List getIntermediateCAs() { + return intermediateCAs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("IdentityPropagationTrustCaCertChain("); + sb.append("super=").append(super.toString()); + sb.append("rootCAs=").append(String.valueOf(this.rootCAs)); + sb.append(", intermediateCAs=").append(String.valueOf(this.intermediateCAs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof IdentityPropagationTrustCaCertChain)) { + return false; + } + + IdentityPropagationTrustCaCertChain other = (IdentityPropagationTrustCaCertChain) o; + return java.util.Objects.equals(this.rootCAs, other.rootCAs) + && java.util.Objects.equals(this.intermediateCAs, other.intermediateCAs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.rootCAs == null ? 43 : this.rootCAs.hashCode()); + result = + (result * PRIME) + + (this.intermediateCAs == null ? 43 : this.intermediateCAs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/IdentityPropagationTrustClaimValidations.java b/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/IdentityPropagationTrustClaimValidations.java new file mode 100644 index 00000000000..e82f6b81485 --- /dev/null +++ b/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/IdentityPropagationTrustClaimValidations.java @@ -0,0 +1,271 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.identitydomains.model; + +/** + * A list of claim validations + *
+ * 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: v1") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = IdentityPropagationTrustClaimValidations.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class IdentityPropagationTrustClaimValidations + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "value"}) + public IdentityPropagationTrustClaimValidations(String name, String value) { + super(); + this.name = name; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Claim Name + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - idcsSearchable: false + * - multiValued: false + * - mutability: readWrite + * - required: true + * - returned: default + * - type: string + * - uniqueness: none + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Claim Name + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - idcsSearchable: false + * - multiValued: false + * - mutability: readWrite + * - required: true + * - returned: default + * - type: string + * - uniqueness: none + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Claim Value + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - idcsSearchable: false + * - multiValued: false + * - mutability: readWrite + * - required: true + * - returned: default + * - type: string + * - uniqueness: none + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * Claim Value + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - idcsSearchable: false + * - multiValued: false + * - mutability: readWrite + * - required: true + * - returned: default + * - type: string + * - uniqueness: none + * @param value the value to set + * @return this builder + **/ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public IdentityPropagationTrustClaimValidations build() { + IdentityPropagationTrustClaimValidations model = + new IdentityPropagationTrustClaimValidations(this.name, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(IdentityPropagationTrustClaimValidations model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Claim Name + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - idcsSearchable: false + * - multiValued: false + * - mutability: readWrite + * - required: true + * - returned: default + * - type: string + * - uniqueness: none + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Claim Name + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - idcsSearchable: false + * - multiValued: false + * - mutability: readWrite + * - required: true + * - returned: default + * - type: string + * - uniqueness: none + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Claim Value + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - idcsSearchable: false + * - multiValued: false + * - mutability: readWrite + * - required: true + * - returned: default + * - type: string + * - uniqueness: none + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * Claim Value + *

+ **Added In:** 2509172316 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - idcsSearchable: false + * - multiValued: false + * - mutability: readWrite + * - required: true + * - returned: default + * - type: string + * - uniqueness: none + * @return the value + **/ + public String getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("IdentityPropagationTrustClaimValidations("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof IdentityPropagationTrustClaimValidations)) { + return false; + } + + IdentityPropagationTrustClaimValidations other = + (IdentityPropagationTrustClaimValidations) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 16d35f9f5b9..219ac4fdbf8 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-integration @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstance.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstance.java index 01163a2fa2b..3d35f312f0a 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstance.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstance.java @@ -306,8 +306,8 @@ ListIntegrationInstancesResponse listIntegrationInstances( ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); /** - * Removes Log Analytics logGroup, if enabled for given integrationInstance. Since only single LogGroup can be enabled - * for integration instance, no additional details are required to be includes in the request. + * Removes Log Analytics logGroup, if enabled for given integrationInstance. + * Also used for removing Log Analytics log Group for attached OPA instance. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsync.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsync.java index 2ee2c8c43ae..c37612e0dee 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsync.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsync.java @@ -373,8 +373,8 @@ java.util.concurrent.Future listWorkRequests( handler); /** - * Removes Log Analytics logGroup, if enabled for given integrationInstance. Since only single LogGroup can be enabled - * for integration instance, no additional details are required to be includes in the request. + * Removes Log Analytics logGroup, if enabled for given integrationInstance. + * Also used for removing Log Analytics log Group for attached OPA instance. * * * @param request The request object containing the details to send diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsyncClient.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsyncClient.java index eeb1f64b022..2387e4f4822 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsyncClient.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsyncClient.java @@ -1436,7 +1436,12 @@ protected void beforeRetryAction() {} RemoveLogAnalyticsLogGroupRequest, RemoveLogAnalyticsLogGroupResponse>, java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRemoveLogAnalyticsLogGroupDetails(), + ib, + transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceClient.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceClient.java index 00c4b9b3a6e..23e4e7fadec 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceClient.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceClient.java @@ -1330,7 +1330,11 @@ public RemoveLogAnalyticsLogGroupResponse removeLogAnalyticsLogGroup( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); + client.post( + ib, + retriedRequest + .getRemoveLogAnalyticsLogGroupDetails(), + retriedRequest); return transformer.apply(response); }); }); diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/AddLogAnalyticsLogGroupDetails.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/AddLogAnalyticsLogGroupDetails.java index e8f61493331..233b66dafe9 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/AddLogAnalyticsLogGroupDetails.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/AddLogAnalyticsLogGroupDetails.java @@ -24,10 +24,11 @@ public final class AddLogAnalyticsLogGroupDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"logGroupId"}) - public AddLogAnalyticsLogGroupDetails(String logGroupId) { + @java.beans.ConstructorProperties({"logGroupId", "attachmentType"}) + public AddLogAnalyticsLogGroupDetails(String logGroupId, AttachmentType attachmentType) { super(); this.logGroupId = logGroupId; + this.attachmentType = attachmentType; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -48,13 +49,29 @@ public Builder logGroupId(String logGroupId) { this.__explicitlySet__.add("logGroupId"); return this; } + /** + * Type of attachment. Supported at this include PROCESS_AUTOMATION + **/ + @com.fasterxml.jackson.annotation.JsonProperty("attachmentType") + private AttachmentType attachmentType; + + /** + * Type of attachment. Supported at this include PROCESS_AUTOMATION + * @param attachmentType the value to set + * @return this builder + **/ + public Builder attachmentType(AttachmentType attachmentType) { + this.attachmentType = attachmentType; + this.__explicitlySet__.add("attachmentType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public AddLogAnalyticsLogGroupDetails build() { AddLogAnalyticsLogGroupDetails model = - new AddLogAnalyticsLogGroupDetails(this.logGroupId); + new AddLogAnalyticsLogGroupDetails(this.logGroupId, this.attachmentType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -66,6 +83,9 @@ public Builder copy(AddLogAnalyticsLogGroupDetails model) { if (model.wasPropertyExplicitlySet("logGroupId")) { this.logGroupId(model.getLogGroupId()); } + if (model.wasPropertyExplicitlySet("attachmentType")) { + this.attachmentType(model.getAttachmentType()); + } return this; } } @@ -95,6 +115,54 @@ public String getLogGroupId() { return logGroupId; } + /** + * Type of attachment. Supported at this include PROCESS_AUTOMATION + **/ + public enum AttachmentType { + ProcessAutomation("PROCESS_AUTOMATION"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AttachmentType v : AttachmentType.values()) { + map.put(v.getValue(), v); + } + } + + AttachmentType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AttachmentType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AttachmentType: " + key); + } + }; + /** + * Type of attachment. Supported at this include PROCESS_AUTOMATION + **/ + @com.fasterxml.jackson.annotation.JsonProperty("attachmentType") + private final AttachmentType attachmentType; + + /** + * Type of attachment. Supported at this include PROCESS_AUTOMATION + * @return the value + **/ + public AttachmentType getAttachmentType() { + return attachmentType; + } + @Override public String toString() { return this.toString(true); @@ -110,6 +178,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("AddLogAnalyticsLogGroupDetails("); sb.append("super=").append(super.toString()); sb.append("logGroupId=").append(String.valueOf(this.logGroupId)); + sb.append(", attachmentType=").append(String.valueOf(this.attachmentType)); sb.append(")"); return sb.toString(); } @@ -124,7 +193,9 @@ public boolean equals(Object o) { } AddLogAnalyticsLogGroupDetails other = (AddLogAnalyticsLogGroupDetails) o; - return java.util.Objects.equals(this.logGroupId, other.logGroupId) && super.equals(other); + return java.util.Objects.equals(this.logGroupId, other.logGroupId) + && java.util.Objects.equals(this.attachmentType, other.attachmentType) + && super.equals(other); } @Override @@ -132,6 +203,9 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); + result = + (result * PRIME) + + (this.attachmentType == null ? 43 : this.attachmentType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstance.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstance.java index e79a5b3154e..a9e7da072d5 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstance.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstance.java @@ -52,7 +52,8 @@ public final class IntegrationInstance extends com.oracle.bmc.http.internal.Expl "isDisasterRecoveryEnabled", "disasterRecoveryDetails", "dataRetentionPeriod", - "logGroupId" + "logGroupId", + "processAutomationLogGroupId" }) public IntegrationInstance( String id, @@ -85,7 +86,8 @@ public IntegrationInstance( Boolean isDisasterRecoveryEnabled, DisasterRecoveryDetails disasterRecoveryDetails, DataRetentionPeriod dataRetentionPeriod, - String logGroupId) { + String logGroupId, + String processAutomationLogGroupId) { super(); this.id = id; this.displayName = displayName; @@ -118,6 +120,7 @@ public IntegrationInstance( this.disasterRecoveryDetails = disasterRecoveryDetails; this.dataRetentionPeriod = dataRetentionPeriod; this.logGroupId = logGroupId; + this.processAutomationLogGroupId = processAutomationLogGroupId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -621,6 +624,22 @@ public Builder logGroupId(String logGroupId) { this.__explicitlySet__.add("logGroupId"); return this; } + /** + * OCID of LogAnalytics LogGroup, enabled for given Process Automation attached to integration instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("processAutomationLogGroupId") + private String processAutomationLogGroupId; + + /** + * OCID of LogAnalytics LogGroup, enabled for given Process Automation attached to integration instance. + * @param processAutomationLogGroupId the value to set + * @return this builder + **/ + public Builder processAutomationLogGroupId(String processAutomationLogGroupId) { + this.processAutomationLogGroupId = processAutomationLogGroupId; + this.__explicitlySet__.add("processAutomationLogGroupId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -658,7 +677,8 @@ public IntegrationInstance build() { this.isDisasterRecoveryEnabled, this.disasterRecoveryDetails, this.dataRetentionPeriod, - this.logGroupId); + this.logGroupId, + this.processAutomationLogGroupId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -761,6 +781,9 @@ public Builder copy(IntegrationInstance model) { if (model.wasPropertyExplicitlySet("logGroupId")) { this.logGroupId(model.getLogGroupId()); } + if (model.wasPropertyExplicitlySet("processAutomationLogGroupId")) { + this.processAutomationLogGroupId(model.getProcessAutomationLogGroupId()); + } return this; } } @@ -1461,6 +1484,20 @@ public String getLogGroupId() { return logGroupId; } + /** + * OCID of LogAnalytics LogGroup, enabled for given Process Automation attached to integration instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("processAutomationLogGroupId") + private final String processAutomationLogGroupId; + + /** + * OCID of LogAnalytics LogGroup, enabled for given Process Automation attached to integration instance. + * @return the value + **/ + public String getProcessAutomationLogGroupId() { + return processAutomationLogGroupId; + } + @Override public String toString() { return this.toString(true); @@ -1511,6 +1548,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.disasterRecoveryDetails)); sb.append(", dataRetentionPeriod=").append(String.valueOf(this.dataRetentionPeriod)); sb.append(", logGroupId=").append(String.valueOf(this.logGroupId)); + sb.append(", processAutomationLogGroupId=") + .append(String.valueOf(this.processAutomationLogGroupId)); sb.append(")"); return sb.toString(); } @@ -1564,6 +1603,8 @@ public boolean equals(Object o) { this.disasterRecoveryDetails, other.disasterRecoveryDetails) && java.util.Objects.equals(this.dataRetentionPeriod, other.dataRetentionPeriod) && java.util.Objects.equals(this.logGroupId, other.logGroupId) + && java.util.Objects.equals( + this.processAutomationLogGroupId, other.processAutomationLogGroupId) && super.equals(other); } @@ -1656,6 +1697,11 @@ public int hashCode() { ? 43 : this.dataRetentionPeriod.hashCode()); result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); + result = + (result * PRIME) + + (this.processAutomationLogGroupId == null + ? 43 + : this.processAutomationLogGroupId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstanceSummary.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstanceSummary.java index b840363ebc9..992ba27e580 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstanceSummary.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstanceSummary.java @@ -50,7 +50,8 @@ public final class IntegrationInstanceSummary "privateEndpointOutboundConnection", "isDisasterRecoveryEnabled", "dataRetentionPeriod", - "logGroupId" + "logGroupId", + "processAutomationLogGroupId" }) public IntegrationInstanceSummary( String id, @@ -80,7 +81,8 @@ public IntegrationInstanceSummary( OutboundConnection privateEndpointOutboundConnection, Boolean isDisasterRecoveryEnabled, DataRetentionPeriod dataRetentionPeriod, - String logGroupId) { + String logGroupId, + String processAutomationLogGroupId) { super(); this.id = id; this.displayName = displayName; @@ -110,6 +112,7 @@ public IntegrationInstanceSummary( this.isDisasterRecoveryEnabled = isDisasterRecoveryEnabled; this.dataRetentionPeriod = dataRetentionPeriod; this.logGroupId = logGroupId; + this.processAutomationLogGroupId = processAutomationLogGroupId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -577,6 +580,22 @@ public Builder logGroupId(String logGroupId) { this.__explicitlySet__.add("logGroupId"); return this; } + /** + * OCID of LogAnalytics LogGroup, enabled for given Process Automation attached to integration instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("processAutomationLogGroupId") + private String processAutomationLogGroupId; + + /** + * OCID of LogAnalytics LogGroup, enabled for given Process Automation attached to integration instance. + * @param processAutomationLogGroupId the value to set + * @return this builder + **/ + public Builder processAutomationLogGroupId(String processAutomationLogGroupId) { + this.processAutomationLogGroupId = processAutomationLogGroupId; + this.__explicitlySet__.add("processAutomationLogGroupId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -611,7 +630,8 @@ public IntegrationInstanceSummary build() { this.privateEndpointOutboundConnection, this.isDisasterRecoveryEnabled, this.dataRetentionPeriod, - this.logGroupId); + this.logGroupId, + this.processAutomationLogGroupId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -705,6 +725,9 @@ public Builder copy(IntegrationInstanceSummary model) { if (model.wasPropertyExplicitlySet("logGroupId")) { this.logGroupId(model.getLogGroupId()); } + if (model.wasPropertyExplicitlySet("processAutomationLogGroupId")) { + this.processAutomationLogGroupId(model.getProcessAutomationLogGroupId()); + } return this; } } @@ -1375,6 +1398,20 @@ public String getLogGroupId() { return logGroupId; } + /** + * OCID of LogAnalytics LogGroup, enabled for given Process Automation attached to integration instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("processAutomationLogGroupId") + private final String processAutomationLogGroupId; + + /** + * OCID of LogAnalytics LogGroup, enabled for given Process Automation attached to integration instance. + * @return the value + **/ + public String getProcessAutomationLogGroupId() { + return processAutomationLogGroupId; + } + @Override public String toString() { return this.toString(true); @@ -1421,6 +1458,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.isDisasterRecoveryEnabled)); sb.append(", dataRetentionPeriod=").append(String.valueOf(this.dataRetentionPeriod)); sb.append(", logGroupId=").append(String.valueOf(this.logGroupId)); + sb.append(", processAutomationLogGroupId=") + .append(String.valueOf(this.processAutomationLogGroupId)); sb.append(")"); return sb.toString(); } @@ -1470,6 +1509,8 @@ public boolean equals(Object o) { this.isDisasterRecoveryEnabled, other.isDisasterRecoveryEnabled) && java.util.Objects.equals(this.dataRetentionPeriod, other.dataRetentionPeriod) && java.util.Objects.equals(this.logGroupId, other.logGroupId) + && java.util.Objects.equals( + this.processAutomationLogGroupId, other.processAutomationLogGroupId) && super.equals(other); } @@ -1555,6 +1596,11 @@ public int hashCode() { ? 43 : this.dataRetentionPeriod.hashCode()); result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); + result = + (result * PRIME) + + (this.processAutomationLogGroupId == null + ? 43 + : this.processAutomationLogGroupId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/RemoveLogAnalyticsLogGroupDetails.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/RemoveLogAnalyticsLogGroupDetails.java new file mode 100644 index 00000000000..1a16871f136 --- /dev/null +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/RemoveLogAnalyticsLogGroupDetails.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.integration.model; + +/** + * Input payload to remove Log Analytics Log Group for given IntegrationInstance or its supported attachments. + * Some actions may not be applicable to specific integration types. + * + *
+ * 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: 20190131") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RemoveLogAnalyticsLogGroupDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RemoveLogAnalyticsLogGroupDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"attachmentType"}) + public RemoveLogAnalyticsLogGroupDetails(AttachmentType attachmentType) { + super(); + this.attachmentType = attachmentType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type of attachment. Supported at this include PROCESS_AUTOMATION + **/ + @com.fasterxml.jackson.annotation.JsonProperty("attachmentType") + private AttachmentType attachmentType; + + /** + * Type of attachment. Supported at this include PROCESS_AUTOMATION + * @param attachmentType the value to set + * @return this builder + **/ + public Builder attachmentType(AttachmentType attachmentType) { + this.attachmentType = attachmentType; + this.__explicitlySet__.add("attachmentType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RemoveLogAnalyticsLogGroupDetails build() { + RemoveLogAnalyticsLogGroupDetails model = + new RemoveLogAnalyticsLogGroupDetails(this.attachmentType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RemoveLogAnalyticsLogGroupDetails model) { + if (model.wasPropertyExplicitlySet("attachmentType")) { + this.attachmentType(model.getAttachmentType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Type of attachment. Supported at this include PROCESS_AUTOMATION + **/ + public enum AttachmentType { + ProcessAutomation("PROCESS_AUTOMATION"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AttachmentType v : AttachmentType.values()) { + map.put(v.getValue(), v); + } + } + + AttachmentType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AttachmentType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AttachmentType: " + key); + } + }; + /** + * Type of attachment. Supported at this include PROCESS_AUTOMATION + **/ + @com.fasterxml.jackson.annotation.JsonProperty("attachmentType") + private final AttachmentType attachmentType; + + /** + * Type of attachment. Supported at this include PROCESS_AUTOMATION + * @return the value + **/ + public AttachmentType getAttachmentType() { + return attachmentType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RemoveLogAnalyticsLogGroupDetails("); + sb.append("super=").append(super.toString()); + sb.append("attachmentType=").append(String.valueOf(this.attachmentType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveLogAnalyticsLogGroupDetails)) { + return false; + } + + RemoveLogAnalyticsLogGroupDetails other = (RemoveLogAnalyticsLogGroupDetails) o; + return java.util.Objects.equals(this.attachmentType, other.attachmentType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.attachmentType == null ? 43 : this.attachmentType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequest.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequest.java index 98de0e99eb4..4bd887f6626 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequest.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequest.java @@ -305,6 +305,8 @@ public enum OperationType { AddLogAnalyticsLogGroup("ADD_LOG_ANALYTICS_LOG_GROUP"), DeleteLogAnalyticsLogGroup("DELETE_LOG_ANALYTICS_LOG_GROUP"), ConvertInstance("CONVERT_INSTANCE"), + AddOpaLogAnalyticsLogGroup("ADD_OPA_LOG_ANALYTICS_LOG_GROUP"), + DeleteOpaLogAnalyticsLogGroup("DELETE_OPA_LOG_ANALYTICS_LOG_GROUP"), BeginMigration("BEGIN_MIGRATION"), CompleteMigration("COMPLETE_MIGRATION"), RollbackMigration("ROLLBACK_MIGRATION"), diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequestSummary.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequestSummary.java index bbc46de02df..09fe831c468 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequestSummary.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequestSummary.java @@ -307,6 +307,8 @@ public enum OperationType { AddLogAnalyticsLogGroup("ADD_LOG_ANALYTICS_LOG_GROUP"), DeleteLogAnalyticsLogGroup("DELETE_LOG_ANALYTICS_LOG_GROUP"), ConvertInstance("CONVERT_INSTANCE"), + AddOpaLogAnalyticsLogGroup("ADD_OPA_LOG_ANALYTICS_LOG_GROUP"), + DeleteOpaLogAnalyticsLogGroup("DELETE_OPA_LOG_ANALYTICS_LOG_GROUP"), BeginMigration("BEGIN_MIGRATION"), CompleteMigration("COMPLETE_MIGRATION"), RollbackMigration("ROLLBACK_MIGRATION"), diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/requests/RemoveLogAnalyticsLogGroupRequest.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/requests/RemoveLogAnalyticsLogGroupRequest.java index 66d2cdb4dac..7671f204f94 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/requests/RemoveLogAnalyticsLogGroupRequest.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/requests/RemoveLogAnalyticsLogGroupRequest.java @@ -10,7 +10,8 @@ */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190131") public class RemoveLogAnalyticsLogGroupRequest - extends com.oracle.bmc.requests.BmcRequest { + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.integration.model.RemoveLogAnalyticsLogGroupDetails> { /** * Unique Integration Instance identifier. @@ -23,6 +24,19 @@ public class RemoveLogAnalyticsLogGroupRequest public String getIntegrationInstanceId() { return integrationInstanceId; } + /** + * Details to remove Log Group for given integration instance or Process Automation attached to integration instance. + */ + private com.oracle.bmc.integration.model.RemoveLogAnalyticsLogGroupDetails + removeLogAnalyticsLogGroupDetails; + + /** + * Details to remove Log Group for given integration instance or Process Automation attached to integration instance. + */ + public com.oracle.bmc.integration.model.RemoveLogAnalyticsLogGroupDetails + getRemoveLogAnalyticsLogGroupDetails() { + return removeLogAnalyticsLogGroupDetails; + } /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the @@ -79,9 +93,20 @@ public String getOpcRetryToken() { return opcRetryToken; } + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.integration.model.RemoveLogAnalyticsLogGroupDetails getBody$() { + return removeLogAnalyticsLogGroupDetails; + } + public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - RemoveLogAnalyticsLogGroupRequest, java.lang.Void> { + RemoveLogAnalyticsLogGroupRequest, + com.oracle.bmc.integration.model.RemoveLogAnalyticsLogGroupDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -101,6 +126,24 @@ public Builder integrationInstanceId(String integrationInstanceId) { return this; } + /** + * Details to remove Log Group for given integration instance or Process Automation attached to integration instance. + */ + private com.oracle.bmc.integration.model.RemoveLogAnalyticsLogGroupDetails + removeLogAnalyticsLogGroupDetails = null; + + /** + * Details to remove Log Group for given integration instance or Process Automation attached to integration instance. + * @param removeLogAnalyticsLogGroupDetails the value to set + * @return this builder instance + */ + public Builder removeLogAnalyticsLogGroupDetails( + com.oracle.bmc.integration.model.RemoveLogAnalyticsLogGroupDetails + removeLogAnalyticsLogGroupDetails) { + this.removeLogAnalyticsLogGroupDetails = removeLogAnalyticsLogGroupDetails; + return this; + } + /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the @@ -197,6 +240,7 @@ public Builder retryConfiguration( */ public Builder copy(RemoveLogAnalyticsLogGroupRequest o) { integrationInstanceId(o.getIntegrationInstanceId()); + removeLogAnalyticsLogGroupDetails(o.getRemoveLogAnalyticsLogGroupDetails()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); @@ -222,6 +266,18 @@ public RemoveLogAnalyticsLogGroupRequest build() { return request; } + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.integration.model.RemoveLogAnalyticsLogGroupDetails body) { + removeLogAnalyticsLogGroupDetails(body); + return this; + } + /** * Build the instance of RemoveLogAnalyticsLogGroupRequest as configured by this builder * @@ -233,11 +289,12 @@ public RemoveLogAnalyticsLogGroupRequest build() { public RemoveLogAnalyticsLogGroupRequest buildWithoutInvocationCallback() { RemoveLogAnalyticsLogGroupRequest request = new RemoveLogAnalyticsLogGroupRequest(); request.integrationInstanceId = integrationInstanceId; + request.removeLogAnalyticsLogGroupDetails = removeLogAnalyticsLogGroupDetails; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; return request; - // new RemoveLogAnalyticsLogGroupRequest(integrationInstanceId, ifMatch, opcRequestId, opcRetryToken); + // new RemoveLogAnalyticsLogGroupRequest(integrationInstanceId, removeLogAnalyticsLogGroupDetails, ifMatch, opcRequestId, opcRetryToken); } } @@ -248,6 +305,7 @@ public RemoveLogAnalyticsLogGroupRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .integrationInstanceId(integrationInstanceId) + .removeLogAnalyticsLogGroupDetails(removeLogAnalyticsLogGroupDetails) .ifMatch(ifMatch) .opcRequestId(opcRequestId) .opcRetryToken(opcRetryToken); @@ -267,6 +325,8 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",integrationInstanceId=").append(String.valueOf(this.integrationInstanceId)); + sb.append(",removeLogAnalyticsLogGroupDetails=") + .append(String.valueOf(this.removeLogAnalyticsLogGroupDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); @@ -286,6 +346,9 @@ public boolean equals(Object o) { RemoveLogAnalyticsLogGroupRequest other = (RemoveLogAnalyticsLogGroupRequest) o; return super.equals(o) && java.util.Objects.equals(this.integrationInstanceId, other.integrationInstanceId) + && java.util.Objects.equals( + this.removeLogAnalyticsLogGroupDetails, + other.removeLogAnalyticsLogGroupDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); @@ -300,6 +363,11 @@ public int hashCode() { + (this.integrationInstanceId == null ? 43 : this.integrationInstanceId.hashCode()); + result = + (result * PRIME) + + (this.removeLogAnalyticsLogGroupDetails == null + ? 43 + : this.removeLogAnalyticsLogGroupDetails.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = diff --git a/bmc-iot/pom.xml b/bmc-iot/pom.xml index d50b5fe376a..d730cb1cc5b 100644 --- a/bmc-iot/pom.xml +++ b/bmc-iot/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-iot @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index a0ab9fa8c8f..253ed85e58e 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-jms @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index a7ddc1eddb2..28733c1804d 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-jmsutils/pom.xml b/bmc-jmsutils/pom.xml index 5529e2bf6f8..d8fd46c4d3a 100644 --- a/bmc-jmsutils/pom.xml +++ b/bmc-jmsutils/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-jmsutils @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 292b6969b3c..ed682456528 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-keymanagement @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index ed64c57f575..6e70834444d 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-licensemanager @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 7af3780facc..071284474cd 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-limits @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-limitsincrease/pom.xml b/bmc-limitsincrease/pom.xml index 80d82718be5..75e95a7ca55 100644 --- a/bmc-limitsincrease/pom.xml +++ b/bmc-limitsincrease/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-limitsincrease @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index c0fcc332cac..0af4f48053a 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index a002c529491..71690759154 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-lockbox @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index f7cac256bd4..480f4211bb3 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-loganalytics @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 616b59502e8..6d433811f5b 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-logging @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index f20a3924f6e..fd376ee1244 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-loggingingestion @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index c7bd836d017..75cc63ae128 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-loggingsearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-lustrefilestorage/pom.xml b/bmc-lustrefilestorage/pom.xml index 31e4c718a70..6df49c5c2e4 100644 --- a/bmc-lustrefilestorage/pom.xml +++ b/bmc-lustrefilestorage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-lustrefilestorage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-managedkafka/pom.xml b/bmc-managedkafka/pom.xml index 1045a71b014..af27a0ba126 100644 --- a/bmc-managedkafka/pom.xml +++ b/bmc-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-managedkafka @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaCluster.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaCluster.java index 33806238e92..dec4cfbcc90 100644 --- a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaCluster.java +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaCluster.java @@ -192,6 +192,18 @@ DeleteKafkaClusterConfigVersionResponse deleteKafkaClusterConfigVersion( */ EnableSuperuserResponse enableSuperuser(EnableSuperuserRequest request); + /** + * Gets information about a KafkaClusterAddon. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetAddon API. + */ + GetAddonResponse getAddon(GetAddonRequest request); + /** * Gets information about a KafkaCluster. * @param request The request object containing the details to send @@ -241,6 +253,42 @@ GetKafkaClusterConfigVersionResponse getKafkaClusterConfigVersion( */ GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + /** + * Installs a KafkaClusterAddon. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use InstallAddon API. + */ + InstallAddonResponse installAddon(InstallAddonRequest request); + + /** + * Gets a list of supported KafkaClusterAddons. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListAddonOptions API. + */ + ListAddonOptionsResponse listAddonOptions(ListAddonOptionsRequest request); + + /** + * Gets a list of KafkaClusterAddons. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListAddons API. + */ + ListAddonsResponse listAddons(ListAddonsRequest request); + /** * Gets a list of KafkaClusterConfig Versions. * @@ -332,6 +380,30 @@ ListKafkaClusterConfigVersionsResponse listKafkaClusterConfigVersions( */ ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + /** + * Uninstalls a KafkaClusterAddon in a provisioned cluster. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UninstallAddon API. + */ + UninstallAddonResponse uninstallAddon(UninstallAddonRequest request); + + /** + * Installs updates on the existing KafkaClusterAddon. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateAddon API. + */ + UpdateAddonResponse updateAddon(UpdateAddonRequest request); + /** * Updates a KafkaCluster. * @param request The request object containing the details to send diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterAsync.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterAsync.java index aa5117c1912..775bc696c84 100644 --- a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterAsync.java +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterAsync.java @@ -230,6 +230,20 @@ java.util.concurrent.Future enableSuperuser( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Gets information about a KafkaClusterAddon. + * + * @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 getAddon( + GetAddonRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Gets information about a KafkaCluster. * @@ -293,6 +307,50 @@ java.util.concurrent.Future getWorkRequest( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Installs a KafkaClusterAddon. + * + * @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 installAddon( + InstallAddonRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a list of supported KafkaClusterAddons. + * + * @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 listAddonOptions( + ListAddonOptionsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a list of KafkaClusterAddons. + * + * @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 listAddons( + ListAddonsRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Gets a list of KafkaClusterConfig Versions. * @@ -411,6 +469,35 @@ java.util.concurrent.Future listWorkRequests( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Uninstalls a KafkaClusterAddon in a provisioned cluster. + * + * @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 uninstallAddon( + UninstallAddonRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Installs updates on the existing KafkaClusterAddon. + * + * @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 updateAddon( + UpdateAddonRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Updates a KafkaCluster. * diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterAsyncClient.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterAsyncClient.java index 684fa78578a..4ec5f660e70 100644 --- a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterAsyncClient.java +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterAsyncClient.java @@ -982,6 +982,47 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getAddon( + GetAddonRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getAddon"); + final GetAddonRequest interceptedRequest = GetAddonConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAddonConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KafkaCluster", + "GetAddon", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/kafka/20240901/KafkaClusterAddon/GetAddon"); + final java.util.function.Function transformer = + GetAddonConverter.fromResponse(java.util.Optional.of(serviceDetails)); + 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< + GetAddonRequest, GetAddonResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getKafkaCluster( GetKafkaClusterRequest request, @@ -1171,6 +1212,145 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future installAddon( + InstallAddonRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async installAddon"); + final InstallAddonRequest interceptedRequest = + InstallAddonConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + InstallAddonConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KafkaCluster", + "InstallAddon", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/kafka/20240901/KafkaCluster/InstallAddon"); + final java.util.function.Function + transformer = + InstallAddonConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + InstallAddonRequest, InstallAddonResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getInstallAddonDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + InstallAddonRequest, InstallAddonResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listAddonOptions( + ListAddonOptionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAddonOptionsRequest, ListAddonOptionsResponse> + handler) { + LOG.trace("Called async listAddonOptions"); + final ListAddonOptionsRequest interceptedRequest = + ListAddonOptionsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAddonOptionsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KafkaCluster", + "ListAddonOptions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/kafka/20240901/AddonOptionCollection/ListAddonOptions"); + final java.util.function.Function + transformer = + ListAddonOptionsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAddonOptionsRequest, ListAddonOptionsResponse>, + 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< + ListAddonOptionsRequest, ListAddonOptionsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listAddons( + ListAddonsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listAddons"); + final ListAddonsRequest interceptedRequest = ListAddonsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAddonsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KafkaCluster", + "ListAddons", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/kafka/20240901/KafkaCluster/ListAddons"); + final java.util.function.Function + transformer = + ListAddonsConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAddonsRequest, ListAddonsResponse>, + 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< + ListAddonsRequest, ListAddonsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listKafkaClusterConfigVersions( @@ -1502,6 +1682,100 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future uninstallAddon( + UninstallAddonRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UninstallAddonRequest, UninstallAddonResponse> + handler) { + LOG.trace("Called async uninstallAddon"); + final UninstallAddonRequest interceptedRequest = + UninstallAddonConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UninstallAddonConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KafkaCluster", + "UninstallAddon", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/kafka/20240901/KafkaCluster/UninstallAddon"); + final java.util.function.Function + transformer = + UninstallAddonConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UninstallAddonRequest, UninstallAddonResponse>, + 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< + UninstallAddonRequest, UninstallAddonResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateAddon( + UpdateAddonRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async updateAddon"); + final UpdateAddonRequest interceptedRequest = + UpdateAddonConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateAddonConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KafkaCluster", + "UpdateAddon", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/kafka/20240901/KafkaCluster/UpdateAddon"); + final java.util.function.Function + transformer = + UpdateAddonConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateAddonRequest, UpdateAddonResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateAddonDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateAddonRequest, UpdateAddonResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateKafkaCluster( UpdateKafkaClusterRequest request, diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterClient.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterClient.java index 60570984947..fcf8891a2e2 100644 --- a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterClient.java +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterClient.java @@ -968,6 +968,40 @@ public EnableSuperuserResponse enableSuperuser(EnableSuperuserRequest request) { }); } + @Override + public GetAddonResponse getAddon(GetAddonRequest request) { + LOG.trace("Called getAddon"); + final GetAddonRequest interceptedRequest = GetAddonConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAddonConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KafkaCluster", + "GetAddon", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/kafka/20240901/KafkaClusterAddon/GetAddon"); + java.util.function.Function transformer = + GetAddonConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetKafkaClusterResponse getKafkaCluster(GetKafkaClusterRequest request) { LOG.trace("Called getKafkaCluster"); @@ -1116,6 +1150,117 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { }); } + @Override + public InstallAddonResponse installAddon(InstallAddonRequest request) { + LOG.trace("Called installAddon"); + final InstallAddonRequest interceptedRequest = + InstallAddonConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + InstallAddonConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KafkaCluster", + "InstallAddon", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/kafka/20240901/KafkaCluster/InstallAddon"); + java.util.function.Function transformer = + InstallAddonConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getInstallAddonDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListAddonOptionsResponse listAddonOptions(ListAddonOptionsRequest request) { + LOG.trace("Called listAddonOptions"); + final ListAddonOptionsRequest interceptedRequest = + ListAddonOptionsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAddonOptionsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KafkaCluster", + "ListAddonOptions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/kafka/20240901/AddonOptionCollection/ListAddonOptions"); + java.util.function.Function + transformer = + ListAddonOptionsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListAddonsResponse listAddons(ListAddonsRequest request) { + LOG.trace("Called listAddons"); + final ListAddonsRequest interceptedRequest = ListAddonsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAddonsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KafkaCluster", + "ListAddons", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/kafka/20240901/KafkaCluster/ListAddons"); + java.util.function.Function transformer = + ListAddonsConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListKafkaClusterConfigVersionsResponse listKafkaClusterConfigVersions( ListKafkaClusterConfigVersionsRequest request) { @@ -1377,6 +1522,81 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request }); } + @Override + public UninstallAddonResponse uninstallAddon(UninstallAddonRequest request) { + LOG.trace("Called uninstallAddon"); + final UninstallAddonRequest interceptedRequest = + UninstallAddonConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UninstallAddonConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KafkaCluster", + "UninstallAddon", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/kafka/20240901/KafkaCluster/UninstallAddon"); + java.util.function.Function transformer = + UninstallAddonConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateAddonResponse updateAddon(UpdateAddonRequest request) { + LOG.trace("Called updateAddon"); + final UpdateAddonRequest interceptedRequest = + UpdateAddonConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateAddonConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "KafkaCluster", + "UpdateAddon", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/kafka/20240901/KafkaCluster/UpdateAddon"); + java.util.function.Function transformer = + UpdateAddonConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateAddonDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateKafkaClusterResponse updateKafkaCluster(UpdateKafkaClusterRequest request) { LOG.trace("Called updateKafkaCluster"); diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterPaginators.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterPaginators.java index 927218988a4..64ee9f38247 100644 --- a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterPaginators.java +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/KafkaClusterPaginators.java @@ -33,6 +33,228 @@ public KafkaClusterPaginators(KafkaCluster client) { this.client = client; } + /** + * Creates a new iterable which will iterate over the responses received from the listAddonOptions 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 listAddonOptionsResponseIterator( + final ListAddonOptionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAddonOptionsRequest.Builder, ListAddonOptionsRequest, ListAddonOptionsResponse>( + new java.util.function.Supplier() { + @Override + public ListAddonOptionsRequest.Builder get() { + return ListAddonOptionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAddonOptionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAddonOptionsRequest.Builder>, + ListAddonOptionsRequest>() { + @Override + public ListAddonOptionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAddonOptionsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListAddonOptionsRequest, ListAddonOptionsResponse>() { + @Override + public ListAddonOptionsResponse apply(ListAddonOptionsRequest request) { + return client.listAddonOptions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.managedkafka.model.AddonOptionSummary} objects + * contained in responses from the listAddonOptions 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.managedkafka.model.AddonOptionSummary} objects + * contained in responses received from the service. + */ + public Iterable + listAddonOptionsRecordIterator(final ListAddonOptionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAddonOptionsRequest.Builder, ListAddonOptionsRequest, ListAddonOptionsResponse, + com.oracle.bmc.managedkafka.model.AddonOptionSummary>( + new java.util.function.Supplier() { + @Override + public ListAddonOptionsRequest.Builder get() { + return ListAddonOptionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAddonOptionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAddonOptionsRequest.Builder>, + ListAddonOptionsRequest>() { + @Override + public ListAddonOptionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAddonOptionsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListAddonOptionsRequest, ListAddonOptionsResponse>() { + @Override + public ListAddonOptionsResponse apply(ListAddonOptionsRequest request) { + return client.listAddonOptions(request); + } + }, + new java.util.function.Function< + ListAddonOptionsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListAddonOptionsResponse response) { + return response.getAddonOptionCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listAddons 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 listAddonsResponseIterator( + final ListAddonsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAddonsRequest.Builder, ListAddonsRequest, ListAddonsResponse>( + new java.util.function.Supplier() { + @Override + public ListAddonsRequest.Builder get() { + return ListAddonsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAddonsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAddonsRequest.Builder>, + ListAddonsRequest>() { + @Override + public ListAddonsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAddonsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListAddonsResponse apply(ListAddonsRequest request) { + return client.listAddons(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.managedkafka.model.AddonSummary} objects + * contained in responses from the listAddons 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.managedkafka.model.AddonSummary} objects + * contained in responses received from the service. + */ + public Iterable listAddonsRecordIterator( + final ListAddonsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAddonsRequest.Builder, ListAddonsRequest, ListAddonsResponse, + com.oracle.bmc.managedkafka.model.AddonSummary>( + new java.util.function.Supplier() { + @Override + public ListAddonsRequest.Builder get() { + return ListAddonsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAddonsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAddonsRequest.Builder>, + ListAddonsRequest>() { + @Override + public ListAddonsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAddonsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListAddonsResponse apply(ListAddonsRequest request) { + return client.listAddons(request); + } + }, + new java.util.function.Function< + ListAddonsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListAddonsResponse response) { + return response.getAddonCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listKafkaClusterConfigVersions operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/GetAddonConverter.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/GetAddonConverter.java new file mode 100644 index 00000000000..36ce5f85665 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/GetAddonConverter.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.managedkafka.model.*; +import com.oracle.bmc.managedkafka.requests.*; +import com.oracle.bmc.managedkafka.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class GetAddonConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetAddonConverter.class); + + public static com.oracle.bmc.managedkafka.requests.GetAddonRequest interceptRequest( + com.oracle.bmc.managedkafka.requests.GetAddonRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.managedkafka.requests.GetAddonRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getKafkaClusterId(), "kafkaClusterId must not be blank"); + Validate.notBlank(request.getAddonName(), "addonName must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240901") + .path("kafkaClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getKafkaClusterId())) + .path("addons") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAddonName())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.GetAddonResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.GetAddonResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.GetAddonResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.GetAddonResponse>() { + @Override + public com.oracle.bmc.managedkafka.responses.GetAddonResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.managedkafka.responses.GetAddonResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.managedkafka.model + .KafkaClusterAddon>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.managedkafka.model + .KafkaClusterAddon + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.managedkafka.model + .KafkaClusterAddon + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.managedkafka.model.KafkaClusterAddon> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.managedkafka.responses.GetAddonResponse.Builder + builder = + com.oracle.bmc.managedkafka.responses + .GetAddonResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.kafkaClusterAddon(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.managedkafka.responses.GetAddonResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/InstallAddonConverter.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/InstallAddonConverter.java new file mode 100644 index 00000000000..a1b3e30eb3f --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/InstallAddonConverter.java @@ -0,0 +1,165 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.managedkafka.model.*; +import com.oracle.bmc.managedkafka.requests.*; +import com.oracle.bmc.managedkafka.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class InstallAddonConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(InstallAddonConverter.class); + + public static com.oracle.bmc.managedkafka.requests.InstallAddonRequest interceptRequest( + com.oracle.bmc.managedkafka.requests.InstallAddonRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.managedkafka.requests.InstallAddonRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getInstallAddonDetails(), "installAddonDetails is required"); + Validate.notBlank(request.getKafkaClusterId(), "kafkaClusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240901") + .path("kafkaClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getKafkaClusterId())) + .path("addons"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.InstallAddonResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.InstallAddonResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.InstallAddonResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.InstallAddonResponse>() { + @Override + public com.oracle.bmc.managedkafka.responses.InstallAddonResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.managedkafka.responses.InstallAddonResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.managedkafka.model + .KafkaClusterAddon>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.managedkafka.model + .KafkaClusterAddon + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.managedkafka.model + .KafkaClusterAddon + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.managedkafka.model.KafkaClusterAddon> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.managedkafka.responses.InstallAddonResponse.Builder + builder = + com.oracle.bmc.managedkafka.responses + .InstallAddonResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.kafkaClusterAddon(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.managedkafka.responses.InstallAddonResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/ListAddonOptionsConverter.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/ListAddonOptionsConverter.java new file mode 100644 index 00000000000..452e55d6669 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/ListAddonOptionsConverter.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.managedkafka.model.*; +import com.oracle.bmc.managedkafka.requests.*; +import com.oracle.bmc.managedkafka.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class ListAddonOptionsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListAddonOptionsConverter.class); + + public static com.oracle.bmc.managedkafka.requests.ListAddonOptionsRequest interceptRequest( + com.oracle.bmc.managedkafka.requests.ListAddonOptionsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.managedkafka.requests.ListAddonOptionsRequest request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20240901").path("addonOptions"); + + if (request.getCompartmentId() != null) { + 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.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.ListAddonOptionsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.ListAddonOptionsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.ListAddonOptionsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.ListAddonOptionsResponse>() { + @Override + public com.oracle.bmc.managedkafka.responses.ListAddonOptionsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.managedkafka.responses.ListAddonOptionsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.managedkafka.model + .AddonOptionCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.managedkafka.model + .AddonOptionCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.managedkafka.model + .AddonOptionCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.managedkafka.model + .AddonOptionCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.managedkafka.responses.ListAddonOptionsResponse + .Builder + builder = + com.oracle.bmc.managedkafka.responses + .ListAddonOptionsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.addonOptionCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.managedkafka.responses.ListAddonOptionsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/ListAddonsConverter.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/ListAddonsConverter.java new file mode 100644 index 00000000000..c94710625cb --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/ListAddonsConverter.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.managedkafka.model.*; +import com.oracle.bmc.managedkafka.requests.*; +import com.oracle.bmc.managedkafka.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class ListAddonsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListAddonsConverter.class); + + public static com.oracle.bmc.managedkafka.requests.ListAddonsRequest interceptRequest( + com.oracle.bmc.managedkafka.requests.ListAddonsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.managedkafka.requests.ListAddonsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getKafkaClusterId(), "kafkaClusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240901") + .path("kafkaClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getKafkaClusterId())) + .path("addons"); + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + 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.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.ListAddonsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.ListAddonsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.ListAddonsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.ListAddonsResponse>() { + @Override + public com.oracle.bmc.managedkafka.responses.ListAddonsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.managedkafka.responses.ListAddonsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.managedkafka.model + .AddonCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.managedkafka.model + .AddonCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.managedkafka.model + .AddonCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.managedkafka.model.AddonCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.managedkafka.responses.ListAddonsResponse.Builder + builder = + com.oracle.bmc.managedkafka.responses + .ListAddonsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.addonCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.managedkafka.responses.ListAddonsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/UninstallAddonConverter.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/UninstallAddonConverter.java new file mode 100644 index 00000000000..adbb434c16e --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/UninstallAddonConverter.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.managedkafka.model.*; +import com.oracle.bmc.managedkafka.requests.*; +import com.oracle.bmc.managedkafka.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class UninstallAddonConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UninstallAddonConverter.class); + + public static com.oracle.bmc.managedkafka.requests.UninstallAddonRequest interceptRequest( + com.oracle.bmc.managedkafka.requests.UninstallAddonRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.managedkafka.requests.UninstallAddonRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getKafkaClusterId(), "kafkaClusterId must not be blank"); + Validate.notBlank(request.getAddonName(), "addonName must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240901") + .path("kafkaClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getKafkaClusterId())) + .path("addons") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAddonName())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.UninstallAddonResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.UninstallAddonResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.UninstallAddonResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.UninstallAddonResponse>() { + @Override + public com.oracle.bmc.managedkafka.responses.UninstallAddonResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.managedkafka.responses.UninstallAddonResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.managedkafka.responses.UninstallAddonResponse.Builder + builder = + com.oracle.bmc.managedkafka.responses + .UninstallAddonResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.managedkafka.responses.UninstallAddonResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/UpdateAddonConverter.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/UpdateAddonConverter.java new file mode 100644 index 00000000000..837b7dbf897 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/internal/http/UpdateAddonConverter.java @@ -0,0 +1,165 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.managedkafka.model.*; +import com.oracle.bmc.managedkafka.requests.*; +import com.oracle.bmc.managedkafka.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class UpdateAddonConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateAddonConverter.class); + + public static com.oracle.bmc.managedkafka.requests.UpdateAddonRequest interceptRequest( + com.oracle.bmc.managedkafka.requests.UpdateAddonRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.managedkafka.requests.UpdateAddonRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getUpdateAddonDetails(), "updateAddonDetails is required"); + Validate.notBlank(request.getKafkaClusterId(), "kafkaClusterId must not be blank"); + Validate.notBlank(request.getAddonName(), "addonName must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240901") + .path("kafkaClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getKafkaClusterId())) + .path("addons") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAddonName())); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.UpdateAddonResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.UpdateAddonResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.UpdateAddonResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.managedkafka.responses.UpdateAddonResponse>() { + @Override + public com.oracle.bmc.managedkafka.responses.UpdateAddonResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.managedkafka.responses.UpdateAddonResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.managedkafka.model + .KafkaClusterAddon>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.managedkafka.model + .KafkaClusterAddon + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.managedkafka.model + .KafkaClusterAddon + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.managedkafka.model.KafkaClusterAddon> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.managedkafka.responses.UpdateAddonResponse.Builder + builder = + com.oracle.bmc.managedkafka.responses + .UpdateAddonResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.kafkaClusterAddon(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.managedkafka.responses.UpdateAddonResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AddonCollection.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AddonCollection.java new file mode 100644 index 00000000000..7c1f51d8607 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AddonCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.model; + +/** + * Results of a kafkaClusterAddon search. Contains both AddonSummary items and other information. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AddonCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AddonCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AddonCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of kafkaClusterAddons. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of kafkaClusterAddons. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AddonCollection build() { + AddonCollection model = new AddonCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AddonCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of kafkaClusterAddons. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of kafkaClusterAddons. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AddonCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddonCollection)) { + return false; + } + + AddonCollection other = (AddonCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AddonOptionCollection.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AddonOptionCollection.java new file mode 100644 index 00000000000..4754c2827cf --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AddonOptionCollection.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.model; + +/** + * Results of a AddonOptions search. Contains AddonOptionSummary items + * + *
+ * 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: 20240901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AddonOptionCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AddonOptionCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AddonOptionCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of kafka Cluster AddonOptions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of kafka Cluster AddonOptions. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AddonOptionCollection build() { + AddonOptionCollection model = new AddonOptionCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AddonOptionCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of kafka Cluster AddonOptions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of kafka Cluster AddonOptions. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AddonOptionCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddonOptionCollection)) { + return false; + } + + AddonOptionCollection other = (AddonOptionCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AddonOptionSummary.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AddonOptionSummary.java new file mode 100644 index 00000000000..29488e814df --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AddonOptionSummary.java @@ -0,0 +1,222 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.model; + +/** + * Summary information about a AddonOptions. + *
+ * 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: 20240901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AddonOptionSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AddonOptionSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "lifecycleState"}) + public AddonOptionSummary(String name, LifecycleState lifecycleState) { + super(); + this.name = name; + this.lifecycleState = lifecycleState; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * A user-friendly name. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The current state of the KafkaClusterAddon. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the KafkaClusterAddon. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AddonOptionSummary build() { + AddonOptionSummary model = new AddonOptionSummary(this.name, this.lifecycleState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AddonOptionSummary model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A user-friendly name. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The current state of the KafkaClusterAddon. + **/ + public enum LifecycleState { + Active("ACTIVE"), + 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 static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + 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 KafkaClusterAddon. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the KafkaClusterAddon. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AddonOptionSummary("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddonOptionSummary)) { + return false; + } + + AddonOptionSummary other = (AddonOptionSummary) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AddonSummary.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AddonSummary.java new file mode 100644 index 00000000000..5ee1c9f8ebe --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AddonSummary.java @@ -0,0 +1,382 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.model; + +/** + * Summary information about a KafkaClusterAddon. + *
+ * 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: 20240901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AddonSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AddonSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "addonType" + }) + public AddonSummary( + String name, + java.util.Date timeCreated, + java.util.Date timeUpdated, + KafkaClusterAddon.LifecycleState lifecycleState, + String lifecycleDetails, + KafkaClusterAddon.AddonType addonType) { + super(); + this.name = name; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.addonType = addonType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * A user-friendly name. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The date and time the KafkaClusterAddon was created, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the KafkaClusterAddon was created, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time the KafkaClusterAddon was updated, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the KafkaClusterAddon was updated, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The current state of the KafkaClusterAddon. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private KafkaClusterAddon.LifecycleState lifecycleState; + + /** + * The current state of the KafkaClusterAddon. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(KafkaClusterAddon.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message that describes the current state of the KafkaClusterAddon in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message that describes the current state of the KafkaClusterAddon in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Addon Type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("addonType") + private KafkaClusterAddon.AddonType addonType; + + /** + * Addon Type + * @param addonType the value to set + * @return this builder + **/ + public Builder addonType(KafkaClusterAddon.AddonType addonType) { + this.addonType = addonType; + this.__explicitlySet__.add("addonType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AddonSummary build() { + AddonSummary model = + new AddonSummary( + this.name, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.addonType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AddonSummary model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("addonType")) { + this.addonType(model.getAddonType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A user-friendly name. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The date and time the KafkaClusterAddon was created, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the KafkaClusterAddon was created, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the KafkaClusterAddon was updated, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the KafkaClusterAddon was updated, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The current state of the KafkaClusterAddon. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final KafkaClusterAddon.LifecycleState lifecycleState; + + /** + * The current state of the KafkaClusterAddon. + * @return the value + **/ + public KafkaClusterAddon.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message that describes the current state of the KafkaClusterAddon in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message that describes the current state of the KafkaClusterAddon in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Addon Type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("addonType") + private final KafkaClusterAddon.AddonType addonType; + + /** + * Addon Type + * @return the value + **/ + public KafkaClusterAddon.AddonType getAddonType() { + return addonType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AddonSummary("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", addonType=").append(String.valueOf(this.addonType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddonSummary)) { + return false; + } + + AddonSummary other = (AddonSummary) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.addonType, other.addonType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.addonType == null ? 43 : this.addonType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AuthenticationMechanism.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AuthenticationMechanism.java new file mode 100644 index 00000000000..e1c168342c3 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/AuthenticationMechanism.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.model; + +/** + * Supported Authentication mechanisms + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public enum AuthenticationMechanism { + Sasl("SASL"), + Mtls("MTLS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AuthenticationMechanism v : AuthenticationMechanism.values()) { + map.put(v.getValue(), v); + } + } + + AuthenticationMechanism(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AuthenticationMechanism create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AuthenticationMechanism: " + key); + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/InstallAddonDetails.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/InstallAddonDetails.java new file mode 100644 index 00000000000..f1617c658b6 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/InstallAddonDetails.java @@ -0,0 +1,112 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.model; + +/** + * The data to create a KafkaClusterAddon. + *
+ * 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: 20240901") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "addonType", + defaultImpl = InstallAddonDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = InstallPublicConnectivityAddonDetails.class, + name = "PUBLICCONNECTIVITY" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class InstallAddonDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "description"}) + protected InstallAddonDetails(String name, String description) { + super(); + this.name = name; + this.description = description; + } + + /** + * A unique user-friendly name. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A unique user-friendly name. Avoid entering confidential information. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * A brief description of the add on being installed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A brief description of the add on being installed. + * @return the value + **/ + public String getDescription() { + return description; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InstallAddonDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstallAddonDetails)) { + return false; + } + + InstallAddonDetails other = (InstallAddonDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.description, other.description) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/InstallPublicConnectivityAddonDetails.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/InstallPublicConnectivityAddonDetails.java new file mode 100644 index 00000000000..e692ef960fc --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/InstallPublicConnectivityAddonDetails.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.model; + +/** + * The data to install a KafkaClusterAddon. + *
+ * 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: 20240901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InstallPublicConnectivityAddonDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "addonType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InstallPublicConnectivityAddonDetails extends InstallAddonDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @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("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Authentication mechanism. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMechanism") + private AuthenticationMechanism authenticationMechanism; + + /** + * Authentication mechanism. + * @param authenticationMechanism the value to set + * @return this builder + **/ + public Builder authenticationMechanism(AuthenticationMechanism authenticationMechanism) { + this.authenticationMechanism = authenticationMechanism; + this.__explicitlySet__.add("authenticationMechanism"); + return this; + } + /** + * A list of CIDR's for ingress/egress traffic. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkCidrs") + private java.util.List networkCidrs; + + /** + * A list of CIDR's for ingress/egress traffic. + * @param networkCidrs the value to set + * @return this builder + **/ + public Builder networkCidrs(java.util.List networkCidrs) { + this.networkCidrs = networkCidrs; + this.__explicitlySet__.add("networkCidrs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InstallPublicConnectivityAddonDetails build() { + InstallPublicConnectivityAddonDetails model = + new InstallPublicConnectivityAddonDetails( + this.name, + this.description, + this.authenticationMechanism, + this.networkCidrs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InstallPublicConnectivityAddonDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("authenticationMechanism")) { + this.authenticationMechanism(model.getAuthenticationMechanism()); + } + if (model.wasPropertyExplicitlySet("networkCidrs")) { + this.networkCidrs(model.getNetworkCidrs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public InstallPublicConnectivityAddonDetails( + String name, + String description, + AuthenticationMechanism authenticationMechanism, + java.util.List networkCidrs) { + super(name, description); + this.authenticationMechanism = authenticationMechanism; + this.networkCidrs = networkCidrs; + } + + /** + * Authentication mechanism. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMechanism") + private final AuthenticationMechanism authenticationMechanism; + + /** + * Authentication mechanism. + * @return the value + **/ + public AuthenticationMechanism getAuthenticationMechanism() { + return authenticationMechanism; + } + + /** + * A list of CIDR's for ingress/egress traffic. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkCidrs") + private final java.util.List networkCidrs; + + /** + * A list of CIDR's for ingress/egress traffic. + * @return the value + **/ + public java.util.List getNetworkCidrs() { + return networkCidrs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InstallPublicConnectivityAddonDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", authenticationMechanism=") + .append(String.valueOf(this.authenticationMechanism)); + sb.append(", networkCidrs=").append(String.valueOf(this.networkCidrs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstallPublicConnectivityAddonDetails)) { + return false; + } + + InstallPublicConnectivityAddonDetails other = (InstallPublicConnectivityAddonDetails) o; + return java.util.Objects.equals(this.authenticationMechanism, other.authenticationMechanism) + && java.util.Objects.equals(this.networkCidrs, other.networkCidrs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.authenticationMechanism == null + ? 43 + : this.authenticationMechanism.hashCode()); + result = (result * PRIME) + (this.networkCidrs == null ? 43 : this.networkCidrs.hashCode()); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/KafkaClusterAddon.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/KafkaClusterAddon.java new file mode 100644 index 00000000000..91ae9bb2d46 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/KafkaClusterAddon.java @@ -0,0 +1,279 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.model; + +/** + * The base data object to represent a KafkaClusterAddon. + *
+ * 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: 20240901") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "addonType", + defaultImpl = KafkaClusterAddon.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PublicConnectivityAddon.class, + name = "PUBLICCONNECTIVITY" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class KafkaClusterAddon extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "description", + "timeCreated", + "timeUpdated", + "lifecycleState" + }) + protected KafkaClusterAddon( + String name, + String description, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState) { + super(); + this.name = name; + this.description = description; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + } + + /** + * A unique user-friendly name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A unique user-friendly name. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Description of the add on + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the add on + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The time the addon was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the addon was created. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the addon was updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the addon was updated. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The current state of the KafkaCluster. + **/ + public enum LifecycleState { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + 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 KafkaCluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the KafkaCluster. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("KafkaClusterAddon("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof KafkaClusterAddon)) { + return false; + } + + KafkaClusterAddon other = (KafkaClusterAddon) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The type of addon + **/ + public enum AddonType { + Publicconnectivity("PUBLICCONNECTIVITY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AddonType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AddonType v : AddonType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AddonType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AddonType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AddonType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/OperationType.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/OperationType.java index da5348a752c..6cdea53773d 100644 --- a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/OperationType.java +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/OperationType.java @@ -15,6 +15,9 @@ public enum OperationType { MoveKafkaCluster("MOVE_KAFKA_CLUSTER"), EnableSuperuser("ENABLE_SUPERUSER"), DisableSuperuser("DISABLE_SUPERUSER"), + InstallKafkaClusterAddon("INSTALL_KAFKA_CLUSTER_ADDON"), + UpdateKafkaClusterAddon("UPDATE_KAFKA_CLUSTER_ADDON"), + UninstallKafkaClusterAddon("UNINSTALL_KAFKA_CLUSTER_ADDON"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/PublicConnectivityAddon.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/PublicConnectivityAddon.java new file mode 100644 index 00000000000..6161ac1daff --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/PublicConnectivityAddon.java @@ -0,0 +1,293 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.model; + +/** + * The data that represents a Public Connectivity Addon + *
+ * 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: 20240901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PublicConnectivityAddon.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "addonType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PublicConnectivityAddon extends KafkaClusterAddon { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @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("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + 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; + } + /** + * Authentication mechanism. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMechanism") + private AuthenticationMechanism authenticationMechanism; + + /** + * Authentication mechanism. + * @param authenticationMechanism the value to set + * @return this builder + **/ + public Builder authenticationMechanism(AuthenticationMechanism authenticationMechanism) { + this.authenticationMechanism = authenticationMechanism; + this.__explicitlySet__.add("authenticationMechanism"); + return this; + } + /** + * The bootstrap url of the kafka cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bootstrapUrl") + private String bootstrapUrl; + + /** + * The bootstrap url of the kafka cluster. + * @param bootstrapUrl the value to set + * @return this builder + **/ + public Builder bootstrapUrl(String bootstrapUrl) { + this.bootstrapUrl = bootstrapUrl; + this.__explicitlySet__.add("bootstrapUrl"); + return this; + } + /** + * A list of CIDR ranges for ingress/egress traffic. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkCidrs") + private java.util.List networkCidrs; + + /** + * A list of CIDR ranges for ingress/egress traffic. + * @param networkCidrs the value to set + * @return this builder + **/ + public Builder networkCidrs(java.util.List networkCidrs) { + this.networkCidrs = networkCidrs; + this.__explicitlySet__.add("networkCidrs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PublicConnectivityAddon build() { + PublicConnectivityAddon model = + new PublicConnectivityAddon( + this.name, + this.description, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.authenticationMechanism, + this.bootstrapUrl, + this.networkCidrs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PublicConnectivityAddon model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("authenticationMechanism")) { + this.authenticationMechanism(model.getAuthenticationMechanism()); + } + if (model.wasPropertyExplicitlySet("bootstrapUrl")) { + this.bootstrapUrl(model.getBootstrapUrl()); + } + if (model.wasPropertyExplicitlySet("networkCidrs")) { + this.networkCidrs(model.getNetworkCidrs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PublicConnectivityAddon( + String name, + String description, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + AuthenticationMechanism authenticationMechanism, + String bootstrapUrl, + java.util.List networkCidrs) { + super(name, description, timeCreated, timeUpdated, lifecycleState); + this.authenticationMechanism = authenticationMechanism; + this.bootstrapUrl = bootstrapUrl; + this.networkCidrs = networkCidrs; + } + + /** + * Authentication mechanism. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMechanism") + private final AuthenticationMechanism authenticationMechanism; + + /** + * Authentication mechanism. + * @return the value + **/ + public AuthenticationMechanism getAuthenticationMechanism() { + return authenticationMechanism; + } + + /** + * The bootstrap url of the kafka cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bootstrapUrl") + private final String bootstrapUrl; + + /** + * The bootstrap url of the kafka cluster. + * @return the value + **/ + public String getBootstrapUrl() { + return bootstrapUrl; + } + + /** + * A list of CIDR ranges for ingress/egress traffic. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkCidrs") + private final java.util.List networkCidrs; + + /** + * A list of CIDR ranges for ingress/egress traffic. + * @return the value + **/ + public java.util.List getNetworkCidrs() { + return networkCidrs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PublicConnectivityAddon("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", authenticationMechanism=") + .append(String.valueOf(this.authenticationMechanism)); + sb.append(", bootstrapUrl=").append(String.valueOf(this.bootstrapUrl)); + sb.append(", networkCidrs=").append(String.valueOf(this.networkCidrs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PublicConnectivityAddon)) { + return false; + } + + PublicConnectivityAddon other = (PublicConnectivityAddon) o; + return java.util.Objects.equals(this.authenticationMechanism, other.authenticationMechanism) + && java.util.Objects.equals(this.bootstrapUrl, other.bootstrapUrl) + && java.util.Objects.equals(this.networkCidrs, other.networkCidrs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.authenticationMechanism == null + ? 43 + : this.authenticationMechanism.hashCode()); + result = (result * PRIME) + (this.bootstrapUrl == null ? 43 : this.bootstrapUrl.hashCode()); + result = (result * PRIME) + (this.networkCidrs == null ? 43 : this.networkCidrs.hashCode()); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/UpdateAddonDetails.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/UpdateAddonDetails.java new file mode 100644 index 00000000000..4a6063e7046 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/UpdateAddonDetails.java @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.model; + +/** + * The data to update a KafkaClusterAddon. + *
+ * 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: 20240901") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "addonType", + defaultImpl = UpdateAddonDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdatePublicConnectivityAddonDetails.class, + name = "PUBLICCONNECTIVITY" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateAddonDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"description"}) + protected UpdateAddonDetails(String description) { + super(); + this.description = description; + } + + /** + * A unique user-friendly name. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A unique user-friendly name. Avoid entering confidential information. + * @return the value + **/ + public String getDescription() { + return description; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateAddonDetails("); + sb.append("super=").append(super.toString()); + sb.append("description=").append(String.valueOf(this.description)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateAddonDetails)) { + return false; + } + + UpdateAddonDetails other = (UpdateAddonDetails) o; + return java.util.Objects.equals(this.description, other.description) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/UpdatePublicConnectivityAddonDetails.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/UpdatePublicConnectivityAddonDetails.java new file mode 100644 index 00000000000..2cbda3eb76b --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/model/UpdatePublicConnectivityAddonDetails.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.model; + +/** + * The data to update a KafkaClusterAddon. + *
+ * 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: 20240901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdatePublicConnectivityAddonDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "addonType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdatePublicConnectivityAddonDetails extends UpdateAddonDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * A list of CIDR ranges for ingress/egress traffic. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkCidrs") + private java.util.List networkCidrs; + + /** + * A list of CIDR ranges for ingress/egress traffic. + * @param networkCidrs the value to set + * @return this builder + **/ + public Builder networkCidrs(java.util.List networkCidrs) { + this.networkCidrs = networkCidrs; + this.__explicitlySet__.add("networkCidrs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdatePublicConnectivityAddonDetails build() { + UpdatePublicConnectivityAddonDetails model = + new UpdatePublicConnectivityAddonDetails(this.description, this.networkCidrs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdatePublicConnectivityAddonDetails model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("networkCidrs")) { + this.networkCidrs(model.getNetworkCidrs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdatePublicConnectivityAddonDetails( + String description, java.util.List networkCidrs) { + super(description); + this.networkCidrs = networkCidrs; + } + + /** + * A list of CIDR ranges for ingress/egress traffic. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkCidrs") + private final java.util.List networkCidrs; + + /** + * A list of CIDR ranges for ingress/egress traffic. + * @return the value + **/ + public java.util.List getNetworkCidrs() { + return networkCidrs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdatePublicConnectivityAddonDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", networkCidrs=").append(String.valueOf(this.networkCidrs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdatePublicConnectivityAddonDetails)) { + return false; + } + + UpdatePublicConnectivityAddonDetails other = (UpdatePublicConnectivityAddonDetails) o; + return java.util.Objects.equals(this.networkCidrs, other.networkCidrs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.networkCidrs == null ? 43 : this.networkCidrs.hashCode()); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/GetAddonRequest.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/GetAddonRequest.java new file mode 100644 index 00000000000..54a1cef4be3 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/GetAddonRequest.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.requests; + +import com.oracle.bmc.managedkafka.model.*; +/** + * Example: Click here to see how to use GetAddonRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class GetAddonRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + private String kafkaClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + public String getKafkaClusterId() { + return kafkaClusterId; + } + /** + * The unique name of the KafkaClusterAddon. + */ + private String addonName; + + /** + * The unique name of the KafkaClusterAddon. + */ + public String getAddonName() { + return addonName; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + private String kafkaClusterId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + * @param kafkaClusterId the value to set + * @return this builder instance + */ + public Builder kafkaClusterId(String kafkaClusterId) { + this.kafkaClusterId = kafkaClusterId; + return this; + } + + /** + * The unique name of the KafkaClusterAddon. + */ + private String addonName = null; + + /** + * The unique name of the KafkaClusterAddon. + * @param addonName the value to set + * @return this builder instance + */ + public Builder addonName(String addonName) { + this.addonName = addonName; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetAddonRequest o) { + kafkaClusterId(o.getKafkaClusterId()); + addonName(o.getAddonName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAddonRequest 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 GetAddonRequest + */ + public GetAddonRequest build() { + GetAddonRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetAddonRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetAddonRequest + */ + public GetAddonRequest buildWithoutInvocationCallback() { + GetAddonRequest request = new GetAddonRequest(); + request.kafkaClusterId = kafkaClusterId; + request.addonName = addonName; + request.opcRequestId = opcRequestId; + return request; + // new GetAddonRequest(kafkaClusterId, addonName, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .kafkaClusterId(kafkaClusterId) + .addonName(addonName) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",kafkaClusterId=").append(String.valueOf(this.kafkaClusterId)); + sb.append(",addonName=").append(String.valueOf(this.addonName)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAddonRequest)) { + return false; + } + + GetAddonRequest other = (GetAddonRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.kafkaClusterId, other.kafkaClusterId) + && java.util.Objects.equals(this.addonName, other.addonName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.kafkaClusterId == null ? 43 : this.kafkaClusterId.hashCode()); + result = (result * PRIME) + (this.addonName == null ? 43 : this.addonName.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/InstallAddonRequest.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/InstallAddonRequest.java new file mode 100644 index 00000000000..755e860b5d2 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/InstallAddonRequest.java @@ -0,0 +1,375 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.requests; + +import com.oracle.bmc.managedkafka.model.*; +/** + * Example: Click here to see how to use InstallAddonRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class InstallAddonRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.managedkafka.model.InstallAddonDetails> { + + /** + * Details for the new KafkaClusterAddon. + */ + private com.oracle.bmc.managedkafka.model.InstallAddonDetails installAddonDetails; + + /** + * Details for the new KafkaClusterAddon. + */ + public com.oracle.bmc.managedkafka.model.InstallAddonDetails getInstallAddonDetails() { + return installAddonDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + private String kafkaClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + public String getKafkaClusterId() { + return kafkaClusterId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.managedkafka.model.InstallAddonDetails getBody$() { + return installAddonDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + InstallAddonRequest, com.oracle.bmc.managedkafka.model.InstallAddonDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for the new KafkaClusterAddon. + */ + private com.oracle.bmc.managedkafka.model.InstallAddonDetails installAddonDetails = null; + + /** + * Details for the new KafkaClusterAddon. + * @param installAddonDetails the value to set + * @return this builder instance + */ + public Builder installAddonDetails( + com.oracle.bmc.managedkafka.model.InstallAddonDetails installAddonDetails) { + this.installAddonDetails = installAddonDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + private String kafkaClusterId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + * @param kafkaClusterId the value to set + * @return this builder instance + */ + public Builder kafkaClusterId(String kafkaClusterId) { + this.kafkaClusterId = kafkaClusterId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running 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 removed from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(InstallAddonRequest o) { + installAddonDetails(o.getInstallAddonDetails()); + kafkaClusterId(o.getKafkaClusterId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of InstallAddonRequest 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 InstallAddonRequest + */ + public InstallAddonRequest build() { + InstallAddonRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.managedkafka.model.InstallAddonDetails body) { + installAddonDetails(body); + return this; + } + + /** + * Build the instance of InstallAddonRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of InstallAddonRequest + */ + public InstallAddonRequest buildWithoutInvocationCallback() { + InstallAddonRequest request = new InstallAddonRequest(); + request.installAddonDetails = installAddonDetails; + request.kafkaClusterId = kafkaClusterId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new InstallAddonRequest(installAddonDetails, kafkaClusterId, opcRetryToken, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .installAddonDetails(installAddonDetails) + .kafkaClusterId(kafkaClusterId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",installAddonDetails=").append(String.valueOf(this.installAddonDetails)); + sb.append(",kafkaClusterId=").append(String.valueOf(this.kafkaClusterId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstallAddonRequest)) { + return false; + } + + InstallAddonRequest other = (InstallAddonRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.installAddonDetails, other.installAddonDetails) + && java.util.Objects.equals(this.kafkaClusterId, other.kafkaClusterId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.installAddonDetails == null + ? 43 + : this.installAddonDetails.hashCode()); + result = + (result * PRIME) + + (this.kafkaClusterId == null ? 43 : this.kafkaClusterId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/ListAddonOptionsRequest.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/ListAddonOptionsRequest.java new file mode 100644 index 00000000000..8bb6a846315 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/ListAddonOptionsRequest.java @@ -0,0 +1,442 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.requests; + +import com.oracle.bmc.managedkafka.model.*; +/** + * Example: Click here to see how to use ListAddonOptionsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class ListAddonOptionsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + /** + * The name to filter on. + */ + private String name; + + /** + * The name to filter on. + */ + public String getName() { + return name; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.managedkafka.model.SortOrder sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + public com.oracle.bmc.managedkafka.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAddonOptionsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The name to filter on. + */ + private String name = null; + + /** + * The name to filter on. + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.managedkafka.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.managedkafka.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAddonOptionsRequest o) { + opcRequestId(o.getOpcRequestId()); + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + name(o.getName()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAddonOptionsRequest 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 ListAddonOptionsRequest + */ + public ListAddonOptionsRequest build() { + ListAddonOptionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAddonOptionsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListAddonOptionsRequest + */ + public ListAddonOptionsRequest buildWithoutInvocationCallback() { + ListAddonOptionsRequest request = new ListAddonOptionsRequest(); + request.opcRequestId = opcRequestId; + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.name = name; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListAddonOptionsRequest(opcRequestId, compartmentId, limit, page, name, sortOrder, sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .opcRequestId(opcRequestId) + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .name(name) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAddonOptionsRequest)) { + return false; + } + + ListAddonOptionsRequest other = (ListAddonOptionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/ListAddonsRequest.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/ListAddonsRequest.java new file mode 100644 index 00000000000..6ca97d4e300 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/ListAddonsRequest.java @@ -0,0 +1,486 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.requests; + +import com.oracle.bmc.managedkafka.model.*; +/** + * Example: Click here to see how to use ListAddonsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class ListAddonsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + private String kafkaClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + public String getKafkaClusterId() { + return kafkaClusterId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A filter to return only resources that match the given lifecycle state. The + * state value is case-insensitive. + * + */ + private com.oracle.bmc.managedkafka.model.KafkaClusterAddon.LifecycleState lifecycleState; + + /** + * A filter to return only resources that match the given lifecycle state. The + * state value is case-insensitive. + * + */ + public com.oracle.bmc.managedkafka.model.KafkaClusterAddon.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + /** + * The name to filter on. + */ + private String name; + + /** + * The name to filter on. + */ + public String getName() { + return name; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.managedkafka.model.SortOrder sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + public com.oracle.bmc.managedkafka.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAddonsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + private String kafkaClusterId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + * @param kafkaClusterId the value to set + * @return this builder instance + */ + public Builder kafkaClusterId(String kafkaClusterId) { + this.kafkaClusterId = kafkaClusterId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A filter to return only resources that match the given lifecycle state. The + * state value is case-insensitive. + * + */ + private com.oracle.bmc.managedkafka.model.KafkaClusterAddon.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources that match the given lifecycle state. The + * state value is case-insensitive. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.managedkafka.model.KafkaClusterAddon.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The name to filter on. + */ + private String name = null; + + /** + * The name to filter on. + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.managedkafka.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.managedkafka.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAddonsRequest o) { + kafkaClusterId(o.getKafkaClusterId()); + opcRequestId(o.getOpcRequestId()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + name(o.getName()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAddonsRequest 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 ListAddonsRequest + */ + public ListAddonsRequest build() { + ListAddonsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAddonsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListAddonsRequest + */ + public ListAddonsRequest buildWithoutInvocationCallback() { + ListAddonsRequest request = new ListAddonsRequest(); + request.kafkaClusterId = kafkaClusterId; + request.opcRequestId = opcRequestId; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.name = name; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListAddonsRequest(kafkaClusterId, opcRequestId, lifecycleState, limit, page, name, sortOrder, sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .kafkaClusterId(kafkaClusterId) + .opcRequestId(opcRequestId) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .name(name) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",kafkaClusterId=").append(String.valueOf(this.kafkaClusterId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAddonsRequest)) { + return false; + } + + ListAddonsRequest other = (ListAddonsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.kafkaClusterId, other.kafkaClusterId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.kafkaClusterId == null ? 43 : this.kafkaClusterId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/UninstallAddonRequest.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/UninstallAddonRequest.java new file mode 100644 index 00000000000..618c4ac4184 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/UninstallAddonRequest.java @@ -0,0 +1,293 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.requests; + +import com.oracle.bmc.managedkafka.model.*; +/** + * Example: Click here to see how to use UninstallAddonRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class UninstallAddonRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + private String kafkaClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + public String getKafkaClusterId() { + return kafkaClusterId; + } + /** + * The unique name of the KafkaClusterAddon. + */ + private String addonName; + + /** + * The unique name of the KafkaClusterAddon. + */ + public String getAddonName() { + return addonName; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UninstallAddonRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + private String kafkaClusterId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + * @param kafkaClusterId the value to set + * @return this builder instance + */ + public Builder kafkaClusterId(String kafkaClusterId) { + this.kafkaClusterId = kafkaClusterId; + return this; + } + + /** + * The unique name of the KafkaClusterAddon. + */ + private String addonName = null; + + /** + * The unique name of the KafkaClusterAddon. + * @param addonName the value to set + * @return this builder instance + */ + public Builder addonName(String addonName) { + this.addonName = addonName; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UninstallAddonRequest o) { + kafkaClusterId(o.getKafkaClusterId()); + addonName(o.getAddonName()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UninstallAddonRequest 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 UninstallAddonRequest + */ + public UninstallAddonRequest build() { + UninstallAddonRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of UninstallAddonRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UninstallAddonRequest + */ + public UninstallAddonRequest buildWithoutInvocationCallback() { + UninstallAddonRequest request = new UninstallAddonRequest(); + request.kafkaClusterId = kafkaClusterId; + request.addonName = addonName; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UninstallAddonRequest(kafkaClusterId, addonName, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .kafkaClusterId(kafkaClusterId) + .addonName(addonName) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",kafkaClusterId=").append(String.valueOf(this.kafkaClusterId)); + sb.append(",addonName=").append(String.valueOf(this.addonName)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UninstallAddonRequest)) { + return false; + } + + UninstallAddonRequest other = (UninstallAddonRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.kafkaClusterId, other.kafkaClusterId) + && java.util.Objects.equals(this.addonName, other.addonName) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.kafkaClusterId == null ? 43 : this.kafkaClusterId.hashCode()); + result = (result * PRIME) + (this.addonName == null ? 43 : this.addonName.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/UpdateAddonRequest.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/UpdateAddonRequest.java new file mode 100644 index 00000000000..5b42ce94ff3 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/requests/UpdateAddonRequest.java @@ -0,0 +1,353 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.requests; + +import com.oracle.bmc.managedkafka.model.*; +/** + * Example: Click here to see how to use UpdateAddonRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class UpdateAddonRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.managedkafka.model.UpdateAddonDetails> { + + /** + * The information to be updated. + */ + private com.oracle.bmc.managedkafka.model.UpdateAddonDetails updateAddonDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.managedkafka.model.UpdateAddonDetails getUpdateAddonDetails() { + return updateAddonDetails; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + private String kafkaClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + public String getKafkaClusterId() { + return kafkaClusterId; + } + /** + * The unique name of the KafkaClusterAddon. + */ + private String addonName; + + /** + * The unique name of the KafkaClusterAddon. + */ + public String getAddonName() { + return addonName; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.managedkafka.model.UpdateAddonDetails getBody$() { + return updateAddonDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateAddonRequest, com.oracle.bmc.managedkafka.model.UpdateAddonDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The information to be updated. + */ + private com.oracle.bmc.managedkafka.model.UpdateAddonDetails updateAddonDetails = null; + + /** + * The information to be updated. + * @param updateAddonDetails the value to set + * @return this builder instance + */ + public Builder updateAddonDetails( + com.oracle.bmc.managedkafka.model.UpdateAddonDetails updateAddonDetails) { + this.updateAddonDetails = updateAddonDetails; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + */ + private String kafkaClusterId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the KafkaCluster. + * @param kafkaClusterId the value to set + * @return this builder instance + */ + public Builder kafkaClusterId(String kafkaClusterId) { + this.kafkaClusterId = kafkaClusterId; + return this; + } + + /** + * The unique name of the KafkaClusterAddon. + */ + private String addonName = null; + + /** + * The unique name of the KafkaClusterAddon. + * @param addonName the value to set + * @return this builder instance + */ + public Builder addonName(String addonName) { + this.addonName = addonName; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateAddonRequest o) { + updateAddonDetails(o.getUpdateAddonDetails()); + kafkaClusterId(o.getKafkaClusterId()); + addonName(o.getAddonName()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateAddonRequest 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 UpdateAddonRequest + */ + public UpdateAddonRequest build() { + UpdateAddonRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.managedkafka.model.UpdateAddonDetails body) { + updateAddonDetails(body); + return this; + } + + /** + * Build the instance of UpdateAddonRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateAddonRequest + */ + public UpdateAddonRequest buildWithoutInvocationCallback() { + UpdateAddonRequest request = new UpdateAddonRequest(); + request.updateAddonDetails = updateAddonDetails; + request.kafkaClusterId = kafkaClusterId; + request.addonName = addonName; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateAddonRequest(updateAddonDetails, kafkaClusterId, addonName, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .updateAddonDetails(updateAddonDetails) + .kafkaClusterId(kafkaClusterId) + .addonName(addonName) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",updateAddonDetails=").append(String.valueOf(this.updateAddonDetails)); + sb.append(",kafkaClusterId=").append(String.valueOf(this.kafkaClusterId)); + sb.append(",addonName=").append(String.valueOf(this.addonName)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateAddonRequest)) { + return false; + } + + UpdateAddonRequest other = (UpdateAddonRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.updateAddonDetails, other.updateAddonDetails) + && java.util.Objects.equals(this.kafkaClusterId, other.kafkaClusterId) + && java.util.Objects.equals(this.addonName, other.addonName) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.updateAddonDetails == null + ? 43 + : this.updateAddonDetails.hashCode()); + result = + (result * PRIME) + + (this.kafkaClusterId == null ? 43 : this.kafkaClusterId.hashCode()); + result = (result * PRIME) + (this.addonName == null ? 43 : this.addonName.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/GetAddonResponse.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/GetAddonResponse.java new file mode 100644 index 00000000000..f97cbfb3d30 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/GetAddonResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.responses; + +import com.oracle.bmc.managedkafka.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class GetAddonResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned KafkaClusterAddon instance. + */ + private com.oracle.bmc.managedkafka.model.KafkaClusterAddon kafkaClusterAddon; + + /** + * The returned KafkaClusterAddon instance. + * @return the value + */ + public com.oracle.bmc.managedkafka.model.KafkaClusterAddon getKafkaClusterAddon() { + return kafkaClusterAddon; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "kafkaClusterAddon" + }) + private GetAddonResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.managedkafka.model.KafkaClusterAddon kafkaClusterAddon) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.kafkaClusterAddon = kafkaClusterAddon; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned KafkaClusterAddon instance. + */ + private com.oracle.bmc.managedkafka.model.KafkaClusterAddon kafkaClusterAddon; + + /** + * The returned KafkaClusterAddon instance. + * @param kafkaClusterAddon the value to set + * @return this builder + */ + public Builder kafkaClusterAddon( + com.oracle.bmc.managedkafka.model.KafkaClusterAddon kafkaClusterAddon) { + this.kafkaClusterAddon = kafkaClusterAddon; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetAddonResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + kafkaClusterAddon(o.getKafkaClusterAddon()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetAddonResponse build() { + return new GetAddonResponse( + __httpStatusCode__, headers, etag, opcRequestId, kafkaClusterAddon); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",kafkaClusterAddon=").append(String.valueOf(kafkaClusterAddon)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAddonResponse)) { + return false; + } + + GetAddonResponse other = (GetAddonResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.kafkaClusterAddon, other.kafkaClusterAddon); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.kafkaClusterAddon == null ? 43 : this.kafkaClusterAddon.hashCode()); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/InstallAddonResponse.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/InstallAddonResponse.java new file mode 100644 index 00000000000..c73da971ef6 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/InstallAddonResponse.java @@ -0,0 +1,263 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.responses; + +import com.oracle.bmc.managedkafka.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class InstallAddonResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned KafkaClusterAddon instance. + */ + private com.oracle.bmc.managedkafka.model.KafkaClusterAddon kafkaClusterAddon; + + /** + * The returned KafkaClusterAddon instance. + * @return the value + */ + public com.oracle.bmc.managedkafka.model.KafkaClusterAddon getKafkaClusterAddon() { + return kafkaClusterAddon; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcWorkRequestId", + "opcRequestId", + "kafkaClusterAddon" + }) + private InstallAddonResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.managedkafka.model.KafkaClusterAddon kafkaClusterAddon) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.kafkaClusterAddon = kafkaClusterAddon; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned KafkaClusterAddon instance. + */ + private com.oracle.bmc.managedkafka.model.KafkaClusterAddon kafkaClusterAddon; + + /** + * The returned KafkaClusterAddon instance. + * @param kafkaClusterAddon the value to set + * @return this builder + */ + public Builder kafkaClusterAddon( + com.oracle.bmc.managedkafka.model.KafkaClusterAddon kafkaClusterAddon) { + this.kafkaClusterAddon = kafkaClusterAddon; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(InstallAddonResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + kafkaClusterAddon(o.getKafkaClusterAddon()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public InstallAddonResponse build() { + return new InstallAddonResponse( + __httpStatusCode__, + headers, + etag, + opcWorkRequestId, + opcRequestId, + kafkaClusterAddon); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",kafkaClusterAddon=").append(String.valueOf(kafkaClusterAddon)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InstallAddonResponse)) { + return false; + } + + InstallAddonResponse other = (InstallAddonResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.kafkaClusterAddon, other.kafkaClusterAddon); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.kafkaClusterAddon == null ? 43 : this.kafkaClusterAddon.hashCode()); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/ListAddonOptionsResponse.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/ListAddonOptionsResponse.java new file mode 100644 index 00000000000..1a83b5c3f97 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/ListAddonOptionsResponse.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.responses; + +import com.oracle.bmc.managedkafka.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class ListAddonOptionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned AddonOptionCollection instance. + */ + private com.oracle.bmc.managedkafka.model.AddonOptionCollection addonOptionCollection; + + /** + * The returned AddonOptionCollection instance. + * @return the value + */ + public com.oracle.bmc.managedkafka.model.AddonOptionCollection getAddonOptionCollection() { + return addonOptionCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "addonOptionCollection" + }) + private ListAddonOptionsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.managedkafka.model.AddonOptionCollection addonOptionCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.addonOptionCollection = addonOptionCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned AddonOptionCollection instance. + */ + private com.oracle.bmc.managedkafka.model.AddonOptionCollection addonOptionCollection; + + /** + * The returned AddonOptionCollection instance. + * @param addonOptionCollection the value to set + * @return this builder + */ + public Builder addonOptionCollection( + com.oracle.bmc.managedkafka.model.AddonOptionCollection addonOptionCollection) { + this.addonOptionCollection = addonOptionCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAddonOptionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + addonOptionCollection(o.getAddonOptionCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListAddonOptionsResponse build() { + return new ListAddonOptionsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, addonOptionCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",addonOptionCollection=").append(String.valueOf(addonOptionCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAddonOptionsResponse)) { + return false; + } + + ListAddonOptionsResponse other = (ListAddonOptionsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.addonOptionCollection, other.addonOptionCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.addonOptionCollection == null + ? 43 + : this.addonOptionCollection.hashCode()); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/ListAddonsResponse.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/ListAddonsResponse.java new file mode 100644 index 00000000000..4f2ea1dfdf4 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/ListAddonsResponse.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.responses; + +import com.oracle.bmc.managedkafka.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class ListAddonsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned AddonCollection instance. + */ + private com.oracle.bmc.managedkafka.model.AddonCollection addonCollection; + + /** + * The returned AddonCollection instance. + * @return the value + */ + public com.oracle.bmc.managedkafka.model.AddonCollection getAddonCollection() { + return addonCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "addonCollection" + }) + private ListAddonsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.managedkafka.model.AddonCollection addonCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.addonCollection = addonCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned AddonCollection instance. + */ + private com.oracle.bmc.managedkafka.model.AddonCollection addonCollection; + + /** + * The returned AddonCollection instance. + * @param addonCollection the value to set + * @return this builder + */ + public Builder addonCollection( + com.oracle.bmc.managedkafka.model.AddonCollection addonCollection) { + this.addonCollection = addonCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAddonsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + addonCollection(o.getAddonCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListAddonsResponse build() { + return new ListAddonsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, addonCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",addonCollection=").append(String.valueOf(addonCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAddonsResponse)) { + return false; + } + + ListAddonsResponse other = (ListAddonsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.addonCollection, other.addonCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.addonCollection == null ? 43 : this.addonCollection.hashCode()); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/UninstallAddonResponse.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/UninstallAddonResponse.java new file mode 100644 index 00000000000..daca0a9c767 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/UninstallAddonResponse.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.responses; + +import com.oracle.bmc.managedkafka.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class UninstallAddonResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private UninstallAddonResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UninstallAddonResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UninstallAddonResponse build() { + return new UninstallAddonResponse(__httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UninstallAddonResponse)) { + return false; + } + + UninstallAddonResponse other = (UninstallAddonResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/UpdateAddonResponse.java b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/UpdateAddonResponse.java new file mode 100644 index 00000000000..bb316a202f6 --- /dev/null +++ b/bmc-managedkafka/src/main/java/com/oracle/bmc/managedkafka/responses/UpdateAddonResponse.java @@ -0,0 +1,263 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.managedkafka.responses; + +import com.oracle.bmc.managedkafka.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") +public class UpdateAddonResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned KafkaClusterAddon instance. + */ + private com.oracle.bmc.managedkafka.model.KafkaClusterAddon kafkaClusterAddon; + + /** + * The returned KafkaClusterAddon instance. + * @return the value + */ + public com.oracle.bmc.managedkafka.model.KafkaClusterAddon getKafkaClusterAddon() { + return kafkaClusterAddon; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcWorkRequestId", + "opcRequestId", + "kafkaClusterAddon" + }) + private UpdateAddonResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.managedkafka.model.KafkaClusterAddon kafkaClusterAddon) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.kafkaClusterAddon = kafkaClusterAddon; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned KafkaClusterAddon instance. + */ + private com.oracle.bmc.managedkafka.model.KafkaClusterAddon kafkaClusterAddon; + + /** + * The returned KafkaClusterAddon instance. + * @param kafkaClusterAddon the value to set + * @return this builder + */ + public Builder kafkaClusterAddon( + com.oracle.bmc.managedkafka.model.KafkaClusterAddon kafkaClusterAddon) { + this.kafkaClusterAddon = kafkaClusterAddon; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateAddonResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + kafkaClusterAddon(o.getKafkaClusterAddon()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateAddonResponse build() { + return new UpdateAddonResponse( + __httpStatusCode__, + headers, + etag, + opcWorkRequestId, + opcRequestId, + kafkaClusterAddon); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",kafkaClusterAddon=").append(String.valueOf(kafkaClusterAddon)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateAddonResponse)) { + return false; + } + + UpdateAddonResponse other = (UpdateAddonResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.kafkaClusterAddon, other.kafkaClusterAddon); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.kafkaClusterAddon == null ? 43 : this.kafkaClusterAddon.hashCode()); + return result; + } +} diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index 10c53c6ba8a..0e1b1ff08f5 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-managementagent @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 05171244ecc..b9205ae6a02 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-managementdashboard @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 8dbb88a3792..d4cab835562 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-marketplace @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 7a15931e656..4d405d9b878 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index 0a616da2890..37f7f7b4d10 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 559ddeaac14..7086c3d293b 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-mediaservices @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-mngdmac/pom.xml b/bmc-mngdmac/pom.xml index 5bf6fbc1ee0..15c620c409f 100644 --- a/bmc-mngdmac/pom.xml +++ b/bmc-mngdmac/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-mngdmac @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-modeldeployment/pom.xml b/bmc-modeldeployment/pom.xml index c96e3fb0c40..fa90181bc98 100644 --- a/bmc-modeldeployment/pom.xml +++ b/bmc-modeldeployment/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-modeldeployment @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index d45193b065c..f3fbdb25d5a 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-monitoring @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-multicloud/pom.xml b/bmc-multicloud/pom.xml index 6396098d67f..50cc617fb9e 100644 --- a/bmc-multicloud/pom.xml +++ b/bmc-multicloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-multicloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index c455735ea01..a26bc9ad61f 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-mysql @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChannelSourceMysql.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChannelSourceMysql.java index 72c63cf7c6b..f2cfbd83f34 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChannelSourceMysql.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChannelSourceMysql.java @@ -116,6 +116,26 @@ public Builder anonymousTransactionsHandling( this.__explicitlySet__.add("anonymousTransactionsHandling"); return this; } + /** + * Whether the connection of the channel will be requested using the IPv6 address of + * the dual stack DB system or not. Default: False. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mustUseIpv6OnDualStack") + private Boolean mustUseIpv6OnDualStack; + + /** + * Whether the connection of the channel will be requested using the IPv6 address of + * the dual stack DB system or not. Default: False. + * + * @param mustUseIpv6OnDualStack the value to set + * @return this builder + **/ + public Builder mustUseIpv6OnDualStack(Boolean mustUseIpv6OnDualStack) { + this.mustUseIpv6OnDualStack = mustUseIpv6OnDualStack; + this.__explicitlySet__.add("mustUseIpv6OnDualStack"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -128,7 +148,8 @@ public ChannelSourceMysql build() { this.username, this.sslMode, this.sslCaCertificate, - this.anonymousTransactionsHandling); + this.anonymousTransactionsHandling, + this.mustUseIpv6OnDualStack); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -155,6 +176,9 @@ public Builder copy(ChannelSourceMysql model) { if (model.wasPropertyExplicitlySet("anonymousTransactionsHandling")) { this.anonymousTransactionsHandling(model.getAnonymousTransactionsHandling()); } + if (model.wasPropertyExplicitlySet("mustUseIpv6OnDualStack")) { + this.mustUseIpv6OnDualStack(model.getMustUseIpv6OnDualStack()); + } return this; } } @@ -177,7 +201,8 @@ public ChannelSourceMysql( String username, SslMode sslMode, CaCertificate sslCaCertificate, - AnonymousTransactionsHandling anonymousTransactionsHandling) { + AnonymousTransactionsHandling anonymousTransactionsHandling, + Boolean mustUseIpv6OnDualStack) { super(); this.hostname = hostname; this.port = port; @@ -185,6 +210,7 @@ public ChannelSourceMysql( this.sslMode = sslMode; this.sslCaCertificate = sslCaCertificate; this.anonymousTransactionsHandling = anonymousTransactionsHandling; + this.mustUseIpv6OnDualStack = mustUseIpv6OnDualStack; } /** @@ -313,6 +339,24 @@ public AnonymousTransactionsHandling getAnonymousTransactionsHandling() { return anonymousTransactionsHandling; } + /** + * Whether the connection of the channel will be requested using the IPv6 address of + * the dual stack DB system or not. Default: False. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mustUseIpv6OnDualStack") + private final Boolean mustUseIpv6OnDualStack; + + /** + * Whether the connection of the channel will be requested using the IPv6 address of + * the dual stack DB system or not. Default: False. + * + * @return the value + **/ + public Boolean getMustUseIpv6OnDualStack() { + return mustUseIpv6OnDualStack; + } + @Override public String toString() { return this.toString(true); @@ -334,6 +378,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sslCaCertificate=").append(String.valueOf(this.sslCaCertificate)); sb.append(", anonymousTransactionsHandling=") .append(String.valueOf(this.anonymousTransactionsHandling)); + sb.append(", mustUseIpv6OnDualStack=").append(String.valueOf(this.mustUseIpv6OnDualStack)); sb.append(")"); return sb.toString(); } @@ -355,6 +400,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sslCaCertificate, other.sslCaCertificate) && java.util.Objects.equals( this.anonymousTransactionsHandling, other.anonymousTransactionsHandling) + && java.util.Objects.equals( + this.mustUseIpv6OnDualStack, other.mustUseIpv6OnDualStack) && super.equals(other); } @@ -374,6 +421,11 @@ public int hashCode() { + (this.anonymousTransactionsHandling == null ? 43 : this.anonymousTransactionsHandling.hashCode()); + result = + (result * PRIME) + + (this.mustUseIpv6OnDualStack == null + ? 43 + : this.mustUseIpv6OnDualStack.hashCode()); return result; } } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateChannelSourceFromMysqlDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateChannelSourceFromMysqlDetails.java index 0d7ee5557ea..e3f5b3ff26f 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateChannelSourceFromMysqlDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateChannelSourceFromMysqlDetails.java @@ -149,6 +149,26 @@ public Builder anonymousTransactionsHandling( this.__explicitlySet__.add("anonymousTransactionsHandling"); return this; } + /** + * Whether the connection of the channel will be requested using the IPv6 address of + * the dual stack DB system or not. Default: False. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mustUseIpv6OnDualStack") + private Boolean mustUseIpv6OnDualStack; + + /** + * Whether the connection of the channel will be requested using the IPv6 address of + * the dual stack DB system or not. Default: False. + * + * @param mustUseIpv6OnDualStack the value to set + * @return this builder + **/ + public Builder mustUseIpv6OnDualStack(Boolean mustUseIpv6OnDualStack) { + this.mustUseIpv6OnDualStack = mustUseIpv6OnDualStack; + this.__explicitlySet__.add("mustUseIpv6OnDualStack"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -162,7 +182,8 @@ public CreateChannelSourceFromMysqlDetails build() { this.password, this.sslMode, this.sslCaCertificate, - this.anonymousTransactionsHandling); + this.anonymousTransactionsHandling, + this.mustUseIpv6OnDualStack); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -192,6 +213,9 @@ public Builder copy(CreateChannelSourceFromMysqlDetails model) { if (model.wasPropertyExplicitlySet("anonymousTransactionsHandling")) { this.anonymousTransactionsHandling(model.getAnonymousTransactionsHandling()); } + if (model.wasPropertyExplicitlySet("mustUseIpv6OnDualStack")) { + this.mustUseIpv6OnDualStack(model.getMustUseIpv6OnDualStack()); + } return this; } } @@ -215,7 +239,8 @@ public CreateChannelSourceFromMysqlDetails( String password, ChannelSourceMysql.SslMode sslMode, CaCertificate sslCaCertificate, - AnonymousTransactionsHandling anonymousTransactionsHandling) { + AnonymousTransactionsHandling anonymousTransactionsHandling, + Boolean mustUseIpv6OnDualStack) { super(); this.hostname = hostname; this.port = port; @@ -224,6 +249,7 @@ public CreateChannelSourceFromMysqlDetails( this.sslMode = sslMode; this.sslCaCertificate = sslCaCertificate; this.anonymousTransactionsHandling = anonymousTransactionsHandling; + this.mustUseIpv6OnDualStack = mustUseIpv6OnDualStack; } @com.fasterxml.jackson.annotation.JsonCreator @@ -235,7 +261,8 @@ public CreateChannelSourceFromMysqlDetails( char[] password, ChannelSourceMysql.SslMode sslMode, CaCertificate sslCaCertificate, - AnonymousTransactionsHandling anonymousTransactionsHandling) { + AnonymousTransactionsHandling anonymousTransactionsHandling, + Boolean mustUseIpv6OnDualStack) { super(); this.hostname = hostname; this.port = port; @@ -244,6 +271,7 @@ public CreateChannelSourceFromMysqlDetails( this.sslMode = sslMode; this.sslCaCertificate = sslCaCertificate; this.anonymousTransactionsHandling = anonymousTransactionsHandling; + this.mustUseIpv6OnDualStack = mustUseIpv6OnDualStack; } /** @@ -360,6 +388,24 @@ public AnonymousTransactionsHandling getAnonymousTransactionsHandling() { return anonymousTransactionsHandling; } + /** + * Whether the connection of the channel will be requested using the IPv6 address of + * the dual stack DB system or not. Default: False. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mustUseIpv6OnDualStack") + private final Boolean mustUseIpv6OnDualStack; + + /** + * Whether the connection of the channel will be requested using the IPv6 address of + * the dual stack DB system or not. Default: False. + * + * @return the value + **/ + public Boolean getMustUseIpv6OnDualStack() { + return mustUseIpv6OnDualStack; + } + @Override public String toString() { return this.toString(true); @@ -382,6 +428,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sslCaCertificate=").append(String.valueOf(this.sslCaCertificate)); sb.append(", anonymousTransactionsHandling=") .append(String.valueOf(this.anonymousTransactionsHandling)); + sb.append(", mustUseIpv6OnDualStack=").append(String.valueOf(this.mustUseIpv6OnDualStack)); sb.append(")"); return sb.toString(); } @@ -404,6 +451,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sslCaCertificate, other.sslCaCertificate) && java.util.Objects.equals( this.anonymousTransactionsHandling, other.anonymousTransactionsHandling) + && java.util.Objects.equals( + this.mustUseIpv6OnDualStack, other.mustUseIpv6OnDualStack) && super.equals(other); } @@ -424,6 +473,11 @@ public int hashCode() { + (this.anonymousTransactionsHandling == null ? 43 : this.anonymousTransactionsHandling.hashCode()); + result = + (result * PRIME) + + (this.mustUseIpv6OnDualStack == null + ? 43 + : this.mustUseIpv6OnDualStack.hashCode()); return result; } } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java index 6dc26c27f76..865ef3d8273 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java @@ -44,6 +44,8 @@ public CreateDbSystemDetails( DataStorageDetails dataStorage, String hostnameLabel, String ipAddress, + Boolean isIpv6Enabled, + Ipv6AddressIpv6SubnetCidrPairDetails ipv6AddressIpv6SubnetCidrPairDetails, Integer port, Integer portX, CreateBackupPolicyDetails backupPolicy, @@ -82,6 +84,8 @@ public CreateDbSystemDetails( this.dataStorage = dataStorage; this.hostnameLabel = hostnameLabel; this.ipAddress = ipAddress; + this.isIpv6Enabled = isIpv6Enabled; + this.ipv6AddressIpv6SubnetCidrPairDetails = ipv6AddressIpv6SubnetCidrPairDetails; this.port = port; this.portX = portX; this.backupPolicy = backupPolicy; @@ -124,6 +128,8 @@ public CreateDbSystemDetails( "dataStorage", "hostnameLabel", "ipAddress", + "isIpv6Enabled", + "ipv6AddressIpv6SubnetCidrPairDetails", "port", "portX", "backupPolicy", @@ -163,6 +169,8 @@ public CreateDbSystemDetails( DataStorageDetails dataStorage, String hostnameLabel, String ipAddress, + Boolean isIpv6Enabled, + Ipv6AddressIpv6SubnetCidrPairDetails ipv6AddressIpv6SubnetCidrPairDetails, Integer port, Integer portX, CreateBackupPolicyDetails backupPolicy, @@ -201,6 +209,8 @@ public CreateDbSystemDetails( this.dataStorage = dataStorage; this.hostnameLabel = hostnameLabel; this.ipAddress = ipAddress; + this.isIpv6Enabled = isIpv6Enabled; + this.ipv6AddressIpv6SubnetCidrPairDetails = ipv6AddressIpv6SubnetCidrPairDetails; this.port = port; this.portX = portX; this.backupPolicy = backupPolicy; @@ -623,6 +633,42 @@ public Builder ipAddress(String ipAddress) { this.__explicitlySet__.add("ipAddress"); return this; } + /** + * Whether to allocate an IPv6 address at DB system creation from an + * IPv6 enabled subnet. When provided you may optionally + * provide an IPv6 prefix (ipv6AddressIpv6SubnetCidrPairDetails) of your + * choice to assign the IPv6 address from. If ipv6AddressIpv6SubnetCidrPairDetails + * is not provided then an IPv6 prefix is chosen for you. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIpv6Enabled") + private Boolean isIpv6Enabled; + + /** + * Whether to allocate an IPv6 address at DB system creation from an + * IPv6 enabled subnet. When provided you may optionally + * provide an IPv6 prefix (ipv6AddressIpv6SubnetCidrPairDetails) of your + * choice to assign the IPv6 address from. If ipv6AddressIpv6SubnetCidrPairDetails + * is not provided then an IPv6 prefix is chosen for you. + * + * @param isIpv6Enabled the value to set + * @return this builder + **/ + public Builder isIpv6Enabled(Boolean isIpv6Enabled) { + this.isIpv6Enabled = isIpv6Enabled; + this.__explicitlySet__.add("isIpv6Enabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ipv6AddressIpv6SubnetCidrPairDetails") + private Ipv6AddressIpv6SubnetCidrPairDetails ipv6AddressIpv6SubnetCidrPairDetails; + + public Builder ipv6AddressIpv6SubnetCidrPairDetails( + Ipv6AddressIpv6SubnetCidrPairDetails ipv6AddressIpv6SubnetCidrPairDetails) { + this.ipv6AddressIpv6SubnetCidrPairDetails = ipv6AddressIpv6SubnetCidrPairDetails; + this.__explicitlySet__.add("ipv6AddressIpv6SubnetCidrPairDetails"); + return this; + } /** * The port for primary endpoint of the DB System to listen on. **/ @@ -910,6 +956,8 @@ public CreateDbSystemDetails build() { this.dataStorage, this.hostnameLabel, this.ipAddress, + this.isIpv6Enabled, + this.ipv6AddressIpv6SubnetCidrPairDetails, this.port, this.portX, this.backupPolicy, @@ -995,6 +1043,13 @@ public Builder copy(CreateDbSystemDetails model) { if (model.wasPropertyExplicitlySet("ipAddress")) { this.ipAddress(model.getIpAddress()); } + if (model.wasPropertyExplicitlySet("isIpv6Enabled")) { + this.isIpv6Enabled(model.getIsIpv6Enabled()); + } + if (model.wasPropertyExplicitlySet("ipv6AddressIpv6SubnetCidrPairDetails")) { + this.ipv6AddressIpv6SubnetCidrPairDetails( + model.getIpv6AddressIpv6SubnetCidrPairDetails()); + } if (model.wasPropertyExplicitlySet("port")) { this.port(model.getPort()); } @@ -1430,6 +1485,37 @@ public String getIpAddress() { return ipAddress; } + /** + * Whether to allocate an IPv6 address at DB system creation from an + * IPv6 enabled subnet. When provided you may optionally + * provide an IPv6 prefix (ipv6AddressIpv6SubnetCidrPairDetails) of your + * choice to assign the IPv6 address from. If ipv6AddressIpv6SubnetCidrPairDetails + * is not provided then an IPv6 prefix is chosen for you. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIpv6Enabled") + private final Boolean isIpv6Enabled; + + /** + * Whether to allocate an IPv6 address at DB system creation from an + * IPv6 enabled subnet. When provided you may optionally + * provide an IPv6 prefix (ipv6AddressIpv6SubnetCidrPairDetails) of your + * choice to assign the IPv6 address from. If ipv6AddressIpv6SubnetCidrPairDetails + * is not provided then an IPv6 prefix is chosen for you. + * + * @return the value + **/ + public Boolean getIsIpv6Enabled() { + return isIpv6Enabled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ipv6AddressIpv6SubnetCidrPairDetails") + private final Ipv6AddressIpv6SubnetCidrPairDetails ipv6AddressIpv6SubnetCidrPairDetails; + + public Ipv6AddressIpv6SubnetCidrPairDetails getIpv6AddressIpv6SubnetCidrPairDetails() { + return ipv6AddressIpv6SubnetCidrPairDetails; + } + /** * The port for primary endpoint of the DB System to listen on. **/ @@ -1688,6 +1774,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dataStorage=").append(String.valueOf(this.dataStorage)); sb.append(", hostnameLabel=").append(String.valueOf(this.hostnameLabel)); sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); + sb.append(", isIpv6Enabled=").append(String.valueOf(this.isIpv6Enabled)); + sb.append(", ipv6AddressIpv6SubnetCidrPairDetails=") + .append(String.valueOf(this.ipv6AddressIpv6SubnetCidrPairDetails)); sb.append(", port=").append(String.valueOf(this.port)); sb.append(", portX=").append(String.valueOf(this.portX)); sb.append(", backupPolicy=").append(String.valueOf(this.backupPolicy)); @@ -1739,6 +1828,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dataStorage, other.dataStorage) && java.util.Objects.equals(this.hostnameLabel, other.hostnameLabel) && java.util.Objects.equals(this.ipAddress, other.ipAddress) + && java.util.Objects.equals(this.isIpv6Enabled, other.isIpv6Enabled) + && java.util.Objects.equals( + this.ipv6AddressIpv6SubnetCidrPairDetails, + other.ipv6AddressIpv6SubnetCidrPairDetails) && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.portX, other.portX) && java.util.Objects.equals(this.backupPolicy, other.backupPolicy) @@ -1810,6 +1903,14 @@ public int hashCode() { (result * PRIME) + (this.hostnameLabel == null ? 43 : this.hostnameLabel.hashCode()); result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); + result = + (result * PRIME) + + (this.isIpv6Enabled == null ? 43 : this.isIpv6Enabled.hashCode()); + result = + (result * PRIME) + + (this.ipv6AddressIpv6SubnetCidrPairDetails == null + ? 43 + : this.ipv6AddressIpv6SubnetCidrPairDetails.hashCode()); result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.portX == null ? 43 : this.portX.hashCode()); result = (result * PRIME) + (this.backupPolicy == null ? 43 : this.backupPolicy.hashCode()); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateReadEndpointDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateReadEndpointDetails.java index 1a7ed5dd28d..a1bfeb6030a 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateReadEndpointDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateReadEndpointDetails.java @@ -26,17 +26,21 @@ public final class CreateReadEndpointDetails @java.beans.ConstructorProperties({ "isEnabled", "readEndpointIpAddress", + "readEndpointIpv6AddressIpv6SubnetCidrPairDetails", "readEndpointHostnameLabel", "excludeIps" }) public CreateReadEndpointDetails( Boolean isEnabled, String readEndpointIpAddress, + Ipv6AddressIpv6SubnetCidrPairDetails readEndpointIpv6AddressIpv6SubnetCidrPairDetails, String readEndpointHostnameLabel, java.util.List excludeIps) { super(); this.isEnabled = isEnabled; this.readEndpointIpAddress = readEndpointIpAddress; + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails = + readEndpointIpv6AddressIpv6SubnetCidrPairDetails; this.readEndpointHostnameLabel = readEndpointHostnameLabel; this.excludeIps = excludeIps; } @@ -87,6 +91,20 @@ public Builder readEndpointIpAddress(String readEndpointIpAddress) { this.__explicitlySet__.add("readEndpointIpAddress"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty( + "readEndpointIpv6AddressIpv6SubnetCidrPairDetails") + private Ipv6AddressIpv6SubnetCidrPairDetails + readEndpointIpv6AddressIpv6SubnetCidrPairDetails; + + public Builder readEndpointIpv6AddressIpv6SubnetCidrPairDetails( + Ipv6AddressIpv6SubnetCidrPairDetails + readEndpointIpv6AddressIpv6SubnetCidrPairDetails) { + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails = + readEndpointIpv6AddressIpv6SubnetCidrPairDetails; + this.__explicitlySet__.add("readEndpointIpv6AddressIpv6SubnetCidrPairDetails"); + return this; + } /** * The hostname for the read endpoint of the DB System. Used for DNS. *

@@ -142,6 +160,7 @@ public CreateReadEndpointDetails build() { new CreateReadEndpointDetails( this.isEnabled, this.readEndpointIpAddress, + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails, this.readEndpointHostnameLabel, this.excludeIps); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -158,6 +177,11 @@ public Builder copy(CreateReadEndpointDetails model) { if (model.wasPropertyExplicitlySet("readEndpointIpAddress")) { this.readEndpointIpAddress(model.getReadEndpointIpAddress()); } + if (model.wasPropertyExplicitlySet( + "readEndpointIpv6AddressIpv6SubnetCidrPairDetails")) { + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails( + model.getReadEndpointIpv6AddressIpv6SubnetCidrPairDetails()); + } if (model.wasPropertyExplicitlySet("readEndpointHostnameLabel")) { this.readEndpointHostnameLabel(model.getReadEndpointHostnameLabel()); } @@ -219,6 +243,16 @@ public String getReadEndpointIpAddress() { return readEndpointIpAddress; } + @com.fasterxml.jackson.annotation.JsonProperty( + "readEndpointIpv6AddressIpv6SubnetCidrPairDetails") + private final Ipv6AddressIpv6SubnetCidrPairDetails + readEndpointIpv6AddressIpv6SubnetCidrPairDetails; + + public Ipv6AddressIpv6SubnetCidrPairDetails + getReadEndpointIpv6AddressIpv6SubnetCidrPairDetails() { + return readEndpointIpv6AddressIpv6SubnetCidrPairDetails; + } + /** * The hostname for the read endpoint of the DB System. Used for DNS. *

@@ -277,6 +311,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); sb.append(", readEndpointIpAddress=").append(String.valueOf(this.readEndpointIpAddress)); + sb.append(", readEndpointIpv6AddressIpv6SubnetCidrPairDetails=") + .append(String.valueOf(this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails)); sb.append(", readEndpointHostnameLabel=") .append(String.valueOf(this.readEndpointHostnameLabel)); sb.append(", excludeIps=").append(String.valueOf(this.excludeIps)); @@ -296,6 +332,9 @@ public boolean equals(Object o) { CreateReadEndpointDetails other = (CreateReadEndpointDetails) o; return java.util.Objects.equals(this.isEnabled, other.isEnabled) && java.util.Objects.equals(this.readEndpointIpAddress, other.readEndpointIpAddress) + && java.util.Objects.equals( + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails, + other.readEndpointIpv6AddressIpv6SubnetCidrPairDetails) && java.util.Objects.equals( this.readEndpointHostnameLabel, other.readEndpointHostnameLabel) && java.util.Objects.equals(this.excludeIps, other.excludeIps) @@ -312,6 +351,11 @@ public int hashCode() { + (this.readEndpointIpAddress == null ? 43 : this.readEndpointIpAddress.hashCode()); + result = + (result * PRIME) + + (this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails == null + ? 43 + : this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails.hashCode()); result = (result * PRIME) + (this.readEndpointHostnameLabel == null diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystem.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystem.java index 28da340cc4f..39ed4ebd5f0 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystem.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystem.java @@ -46,6 +46,8 @@ public final class DbSystem extends com.oracle.bmc.http.internal.ExplicitlySetBm "dataStorage", "hostnameLabel", "ipAddress", + "isIpv6Enabled", + "ipv6AddressIpv6SubnetCidrPairDetails", "port", "portX", "endpoints", @@ -96,6 +98,8 @@ public DbSystem( DataStorage dataStorage, String hostnameLabel, String ipAddress, + Boolean isIpv6Enabled, + Ipv6AddressIpv6SubnetCidrPairDetails ipv6AddressIpv6SubnetCidrPairDetails, Integer port, Integer portX, java.util.List endpoints, @@ -145,6 +149,8 @@ public DbSystem( this.dataStorage = dataStorage; this.hostnameLabel = hostnameLabel; this.ipAddress = ipAddress; + this.isIpv6Enabled = isIpv6Enabled; + this.ipv6AddressIpv6SubnetCidrPairDetails = ipv6AddressIpv6SubnetCidrPairDetails; this.port = port; this.portX = portX; this.endpoints = endpoints; @@ -587,6 +593,36 @@ public Builder ipAddress(String ipAddress) { this.__explicitlySet__.add("ipAddress"); return this; } + /** + * Whether an IPv6 address has been allocated for the DB system when attached + * to an IPv6 enabled subnet. Default: False. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIpv6Enabled") + private Boolean isIpv6Enabled; + + /** + * Whether an IPv6 address has been allocated for the DB system when attached + * to an IPv6 enabled subnet. Default: False. + * + * @param isIpv6Enabled the value to set + * @return this builder + **/ + public Builder isIpv6Enabled(Boolean isIpv6Enabled) { + this.isIpv6Enabled = isIpv6Enabled; + this.__explicitlySet__.add("isIpv6Enabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ipv6AddressIpv6SubnetCidrPairDetails") + private Ipv6AddressIpv6SubnetCidrPairDetails ipv6AddressIpv6SubnetCidrPairDetails; + + public Builder ipv6AddressIpv6SubnetCidrPairDetails( + Ipv6AddressIpv6SubnetCidrPairDetails ipv6AddressIpv6SubnetCidrPairDetails) { + this.ipv6AddressIpv6SubnetCidrPairDetails = ipv6AddressIpv6SubnetCidrPairDetails; + this.__explicitlySet__.add("ipv6AddressIpv6SubnetCidrPairDetails"); + return this; + } /** * The port for primary endpoint of the DB System to listen on. **/ @@ -991,6 +1027,8 @@ public DbSystem build() { this.dataStorage, this.hostnameLabel, this.ipAddress, + this.isIpv6Enabled, + this.ipv6AddressIpv6SubnetCidrPairDetails, this.port, this.portX, this.endpoints, @@ -1097,6 +1135,13 @@ public Builder copy(DbSystem model) { if (model.wasPropertyExplicitlySet("ipAddress")) { this.ipAddress(model.getIpAddress()); } + if (model.wasPropertyExplicitlySet("isIpv6Enabled")) { + this.isIpv6Enabled(model.getIsIpv6Enabled()); + } + if (model.wasPropertyExplicitlySet("ipv6AddressIpv6SubnetCidrPairDetails")) { + this.ipv6AddressIpv6SubnetCidrPairDetails( + model.getIpv6AddressIpv6SubnetCidrPairDetails()); + } if (model.wasPropertyExplicitlySet("port")) { this.port(model.getPort()); } @@ -1545,6 +1590,31 @@ public String getIpAddress() { return ipAddress; } + /** + * Whether an IPv6 address has been allocated for the DB system when attached + * to an IPv6 enabled subnet. Default: False. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIpv6Enabled") + private final Boolean isIpv6Enabled; + + /** + * Whether an IPv6 address has been allocated for the DB system when attached + * to an IPv6 enabled subnet. Default: False. + * + * @return the value + **/ + public Boolean getIsIpv6Enabled() { + return isIpv6Enabled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ipv6AddressIpv6SubnetCidrPairDetails") + private final Ipv6AddressIpv6SubnetCidrPairDetails ipv6AddressIpv6SubnetCidrPairDetails; + + public Ipv6AddressIpv6SubnetCidrPairDetails getIpv6AddressIpv6SubnetCidrPairDetails() { + return ipv6AddressIpv6SubnetCidrPairDetails; + } + /** * The port for primary endpoint of the DB System to listen on. **/ @@ -2068,6 +2138,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dataStorage=").append(String.valueOf(this.dataStorage)); sb.append(", hostnameLabel=").append(String.valueOf(this.hostnameLabel)); sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); + sb.append(", isIpv6Enabled=").append(String.valueOf(this.isIpv6Enabled)); + sb.append(", ipv6AddressIpv6SubnetCidrPairDetails=") + .append(String.valueOf(this.ipv6AddressIpv6SubnetCidrPairDetails)); sb.append(", port=").append(String.valueOf(this.port)); sb.append(", portX=").append(String.valueOf(this.portX)); sb.append(", endpoints=").append(String.valueOf(this.endpoints)); @@ -2132,6 +2205,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dataStorage, other.dataStorage) && java.util.Objects.equals(this.hostnameLabel, other.hostnameLabel) && java.util.Objects.equals(this.ipAddress, other.ipAddress) + && java.util.Objects.equals(this.isIpv6Enabled, other.isIpv6Enabled) + && java.util.Objects.equals( + this.ipv6AddressIpv6SubnetCidrPairDetails, + other.ipv6AddressIpv6SubnetCidrPairDetails) && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.portX, other.portX) && java.util.Objects.equals(this.endpoints, other.endpoints) @@ -2221,6 +2298,14 @@ public int hashCode() { (result * PRIME) + (this.hostnameLabel == null ? 43 : this.hostnameLabel.hashCode()); result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); + result = + (result * PRIME) + + (this.isIpv6Enabled == null ? 43 : this.isIpv6Enabled.hashCode()); + result = + (result * PRIME) + + (this.ipv6AddressIpv6SubnetCidrPairDetails == null + ? 43 + : this.ipv6AddressIpv6SubnetCidrPairDetails.hashCode()); result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.portX == null ? 43 : this.portX.hashCode()); result = (result * PRIME) + (this.endpoints == null ? 43 : this.endpoints.hashCode()); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemEndpoint.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemEndpoint.java index 5b36b491710..e4d12c1d191 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemEndpoint.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemEndpoint.java @@ -23,6 +23,7 @@ public final class DbSystemEndpoint extends com.oracle.bmc.http.internal.Explici @java.beans.ConstructorProperties({ "hostname", "ipAddress", + "ipAddressVersion", "port", "portX", "modes", @@ -34,6 +35,7 @@ public final class DbSystemEndpoint extends com.oracle.bmc.http.internal.Explici public DbSystemEndpoint( String hostname, String ipAddress, + IpAddressVersion ipAddressVersion, Integer port, Integer portX, java.util.List modes, @@ -44,6 +46,7 @@ public DbSystemEndpoint( super(); this.hostname = hostname; this.ipAddress = ipAddress; + this.ipAddressVersion = ipAddressVersion; this.port = port; this.portX = portX; this.modes = modes; @@ -87,6 +90,22 @@ public Builder ipAddress(String ipAddress) { this.__explicitlySet__.add("ipAddress"); return this; } + /** + * The internet protocol (IP) version of the IP address. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipAddressVersion") + private IpAddressVersion ipAddressVersion; + + /** + * The internet protocol (IP) version of the IP address. + * @param ipAddressVersion the value to set + * @return this builder + **/ + public Builder ipAddressVersion(IpAddressVersion ipAddressVersion) { + this.ipAddressVersion = ipAddressVersion; + this.__explicitlySet__.add("ipAddressVersion"); + return this; + } /** * The port the MySQL instance listens on. **/ @@ -212,6 +231,7 @@ public DbSystemEndpoint build() { new DbSystemEndpoint( this.hostname, this.ipAddress, + this.ipAddressVersion, this.port, this.portX, this.modes, @@ -233,6 +253,9 @@ public Builder copy(DbSystemEndpoint model) { if (model.wasPropertyExplicitlySet("ipAddress")) { this.ipAddress(model.getIpAddress()); } + if (model.wasPropertyExplicitlySet("ipAddressVersion")) { + this.ipAddressVersion(model.getIpAddressVersion()); + } if (model.wasPropertyExplicitlySet("port")) { this.port(model.getPort()); } @@ -297,6 +320,68 @@ public String getIpAddress() { return ipAddress; } + /** + * The internet protocol (IP) version of the IP address. + **/ + public enum IpAddressVersion { + Ipv4("IPV4"), + Ipv6("IPV6"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(IpAddressVersion.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (IpAddressVersion v : IpAddressVersion.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + IpAddressVersion(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static IpAddressVersion create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'IpAddressVersion', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The internet protocol (IP) version of the IP address. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipAddressVersion") + private final IpAddressVersion ipAddressVersion; + + /** + * The internet protocol (IP) version of the IP address. + * @return the value + **/ + public IpAddressVersion getIpAddressVersion() { + return ipAddressVersion; + } + /** * The port the MySQL instance listens on. **/ @@ -561,6 +646,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("hostname=").append(String.valueOf(this.hostname)); sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); + sb.append(", ipAddressVersion=").append(String.valueOf(this.ipAddressVersion)); sb.append(", port=").append(String.valueOf(this.port)); sb.append(", portX=").append(String.valueOf(this.portX)); sb.append(", modes=").append(String.valueOf(this.modes)); @@ -584,6 +670,7 @@ public boolean equals(Object o) { DbSystemEndpoint other = (DbSystemEndpoint) o; return java.util.Objects.equals(this.hostname, other.hostname) && java.util.Objects.equals(this.ipAddress, other.ipAddress) + && java.util.Objects.equals(this.ipAddressVersion, other.ipAddressVersion) && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.portX, other.portX) && java.util.Objects.equals(this.modes, other.modes) @@ -600,6 +687,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); + result = + (result * PRIME) + + (this.ipAddressVersion == null ? 43 : this.ipAddressVersion.hashCode()); result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.portX == null ? 43 : this.portX.hashCode()); result = (result * PRIME) + (this.modes == null ? 43 : this.modes.hashCode()); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshot.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshot.java index e0263583bb7..d821ceeb1df 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshot.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshot.java @@ -39,6 +39,7 @@ public final class DbSystemSnapshot extends com.oracle.bmc.http.internal.Explici "dataStorage", "hostnameLabel", "ipAddress", + "ipv6Address", "port", "portX", "rest", @@ -76,6 +77,7 @@ public DbSystemSnapshot( DataStorage dataStorage, String hostnameLabel, String ipAddress, + String ipv6Address, Integer port, Integer portX, RestDetails rest, @@ -112,6 +114,7 @@ public DbSystemSnapshot( this.dataStorage = dataStorage; this.hostnameLabel = hostnameLabel; this.ipAddress = ipAddress; + this.ipv6Address = ipv6Address; this.port = port; this.portX = portX; this.rest = rest; @@ -450,6 +453,22 @@ public Builder ipAddress(String ipAddress) { this.__explicitlySet__.add("ipAddress"); return this; } + /** + * The IPv6 address the DB System is configured to listen on. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6Address") + private String ipv6Address; + + /** + * The IPv6 address the DB System is configured to listen on. + * @param ipv6Address the value to set + * @return this builder + **/ + public Builder ipv6Address(String ipv6Address) { + this.ipv6Address = ipv6Address; + this.__explicitlySet__.add("ipv6Address"); + return this; + } /** * The port for primary endpoint of the DB System to listen on. **/ @@ -717,6 +736,7 @@ public DbSystemSnapshot build() { this.dataStorage, this.hostnameLabel, this.ipAddress, + this.ipv6Address, this.port, this.portX, this.rest, @@ -796,6 +816,9 @@ public Builder copy(DbSystemSnapshot model) { if (model.wasPropertyExplicitlySet("ipAddress")) { this.ipAddress(model.getIpAddress()); } + if (model.wasPropertyExplicitlySet("ipv6Address")) { + this.ipv6Address(model.getIpv6Address()); + } if (model.wasPropertyExplicitlySet("port")) { this.port(model.getPort()); } @@ -1142,6 +1165,20 @@ public String getIpAddress() { return ipAddress; } + /** + * The IPv6 address the DB System is configured to listen on. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6Address") + private final String ipv6Address; + + /** + * The IPv6 address the DB System is configured to listen on. + * @return the value + **/ + public String getIpv6Address() { + return ipv6Address; + } + /** * The port for primary endpoint of the DB System to listen on. **/ @@ -1380,6 +1417,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dataStorage=").append(String.valueOf(this.dataStorage)); sb.append(", hostnameLabel=").append(String.valueOf(this.hostnameLabel)); sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); + sb.append(", ipv6Address=").append(String.valueOf(this.ipv6Address)); sb.append(", port=").append(String.valueOf(this.port)); sb.append(", portX=").append(String.valueOf(this.portX)); sb.append(", rest=").append(String.valueOf(this.rest)); @@ -1429,6 +1467,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dataStorage, other.dataStorage) && java.util.Objects.equals(this.hostnameLabel, other.hostnameLabel) && java.util.Objects.equals(this.ipAddress, other.ipAddress) + && java.util.Objects.equals(this.ipv6Address, other.ipv6Address) && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.portX, other.portX) && java.util.Objects.equals(this.rest, other.rest) @@ -1492,6 +1531,7 @@ public int hashCode() { (result * PRIME) + (this.hostnameLabel == null ? 43 : this.hostnameLabel.hashCode()); result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); + result = (result * PRIME) + (this.ipv6Address == null ? 43 : this.ipv6Address.hashCode()); result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.portX == null ? 43 : this.portX.hashCode()); result = (result * PRIME) + (this.rest == null ? 43 : this.rest.hashCode()); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/InitializationVariables.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/InitializationVariables.java index 77624211cfd..11aa33a7ea2 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/InitializationVariables.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/InitializationVariables.java @@ -33,11 +33,8 @@ public InitializationVariables(LowerCaseTableNames lowerCaseTableNames) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * * Represents the MySQL server system variable lower_case_table_names (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_lower_case_table_names). - *

* lowerCaseTableNames controls case-sensitivity of tables and schema names and how they are stored in the DB System. - *

* Valid values are: * - CASE_SENSITIVE - (default) Table and schema name comparisons are case-sensitive and stored as specified. (lower_case_table_names=0) * - CASE_INSENSITIVE_LOWERCASE - Table and schema name comparisons are not case-sensitive and stored in lowercase. (lower_case_table_names=1) @@ -47,11 +44,8 @@ public static class Builder { private LowerCaseTableNames lowerCaseTableNames; /** - * * Represents the MySQL server system variable lower_case_table_names (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_lower_case_table_names). - *

* lowerCaseTableNames controls case-sensitivity of tables and schema names and how they are stored in the DB System. - *

* Valid values are: * - CASE_SENSITIVE - (default) Table and schema name comparisons are case-sensitive and stored as specified. (lower_case_table_names=0) * - CASE_INSENSITIVE_LOWERCASE - Table and schema name comparisons are not case-sensitive and stored in lowercase. (lower_case_table_names=1) @@ -97,11 +91,8 @@ public Builder toBuilder() { } /** - * * Represents the MySQL server system variable lower_case_table_names (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_lower_case_table_names). - *

* lowerCaseTableNames controls case-sensitivity of tables and schema names and how they are stored in the DB System. - *

* Valid values are: * - CASE_SENSITIVE - (default) Table and schema name comparisons are case-sensitive and stored as specified. (lower_case_table_names=0) * - CASE_INSENSITIVE_LOWERCASE - Table and schema name comparisons are not case-sensitive and stored in lowercase. (lower_case_table_names=1) @@ -153,11 +144,8 @@ public static LowerCaseTableNames create(String key) { } }; /** - * * Represents the MySQL server system variable lower_case_table_names (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_lower_case_table_names). - *

* lowerCaseTableNames controls case-sensitivity of tables and schema names and how they are stored in the DB System. - *

* Valid values are: * - CASE_SENSITIVE - (default) Table and schema name comparisons are case-sensitive and stored as specified. (lower_case_table_names=0) * - CASE_INSENSITIVE_LOWERCASE - Table and schema name comparisons are not case-sensitive and stored in lowercase. (lower_case_table_names=1) @@ -167,11 +155,8 @@ public static LowerCaseTableNames create(String key) { private final LowerCaseTableNames lowerCaseTableNames; /** - * * Represents the MySQL server system variable lower_case_table_names (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_lower_case_table_names). - *

* lowerCaseTableNames controls case-sensitivity of tables and schema names and how they are stored in the DB System. - *

* Valid values are: * - CASE_SENSITIVE - (default) Table and schema name comparisons are case-sensitive and stored as specified. (lower_case_table_names=0) * - CASE_INSENSITIVE_LOWERCASE - Table and schema name comparisons are not case-sensitive and stored in lowercase. (lower_case_table_names=1) diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Ipv6AddressIpv6SubnetCidrPairDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Ipv6AddressIpv6SubnetCidrPairDetails.java new file mode 100644 index 00000000000..bc8d1fb25b2 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Ipv6AddressIpv6SubnetCidrPairDetails.java @@ -0,0 +1,180 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.mysql.model; + +/** + * Details to assign an IPv6 subnet prefix or IPv6 address to a 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: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = Ipv6AddressIpv6SubnetCidrPairDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class Ipv6AddressIpv6SubnetCidrPairDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"ipv6SubnetCidr", "ipv6Address"}) + public Ipv6AddressIpv6SubnetCidrPairDetails(String ipv6SubnetCidr, String ipv6Address) { + super(); + this.ipv6SubnetCidr = ipv6SubnetCidr; + this.ipv6Address = ipv6Address; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The IPv6 prefix allocated to the subnet. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6SubnetCidr") + private String ipv6SubnetCidr; + + /** + * The IPv6 prefix allocated to the subnet. + * @param ipv6SubnetCidr the value to set + * @return this builder + **/ + public Builder ipv6SubnetCidr(String ipv6SubnetCidr) { + this.ipv6SubnetCidr = ipv6SubnetCidr; + this.__explicitlySet__.add("ipv6SubnetCidr"); + return this; + } + /** + * An IPv6 address of your choice. Must be an available IPv6 address within the subnet's prefix. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6Address") + private String ipv6Address; + + /** + * An IPv6 address of your choice. Must be an available IPv6 address within the subnet's prefix. + * + * @param ipv6Address the value to set + * @return this builder + **/ + public Builder ipv6Address(String ipv6Address) { + this.ipv6Address = ipv6Address; + this.__explicitlySet__.add("ipv6Address"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Ipv6AddressIpv6SubnetCidrPairDetails build() { + Ipv6AddressIpv6SubnetCidrPairDetails model = + new Ipv6AddressIpv6SubnetCidrPairDetails(this.ipv6SubnetCidr, this.ipv6Address); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Ipv6AddressIpv6SubnetCidrPairDetails model) { + if (model.wasPropertyExplicitlySet("ipv6SubnetCidr")) { + this.ipv6SubnetCidr(model.getIpv6SubnetCidr()); + } + if (model.wasPropertyExplicitlySet("ipv6Address")) { + this.ipv6Address(model.getIpv6Address()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The IPv6 prefix allocated to the subnet. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6SubnetCidr") + private final String ipv6SubnetCidr; + + /** + * The IPv6 prefix allocated to the subnet. + * @return the value + **/ + public String getIpv6SubnetCidr() { + return ipv6SubnetCidr; + } + + /** + * An IPv6 address of your choice. Must be an available IPv6 address within the subnet's prefix. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6Address") + private final String ipv6Address; + + /** + * An IPv6 address of your choice. Must be an available IPv6 address within the subnet's prefix. + * + * @return the value + **/ + public String getIpv6Address() { + return ipv6Address; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Ipv6AddressIpv6SubnetCidrPairDetails("); + sb.append("super=").append(super.toString()); + sb.append("ipv6SubnetCidr=").append(String.valueOf(this.ipv6SubnetCidr)); + sb.append(", ipv6Address=").append(String.valueOf(this.ipv6Address)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Ipv6AddressIpv6SubnetCidrPairDetails)) { + return false; + } + + Ipv6AddressIpv6SubnetCidrPairDetails other = (Ipv6AddressIpv6SubnetCidrPairDetails) o; + return java.util.Objects.equals(this.ipv6SubnetCidr, other.ipv6SubnetCidr) + && java.util.Objects.equals(this.ipv6Address, other.ipv6Address) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.ipv6SubnetCidr == null ? 43 : this.ipv6SubnetCidr.hashCode()); + result = (result * PRIME) + (this.ipv6Address == null ? 43 : this.ipv6Address.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ReadEndpointDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ReadEndpointDetails.java index 534987c0b18..999e1811766 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ReadEndpointDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ReadEndpointDetails.java @@ -25,17 +25,21 @@ public final class ReadEndpointDetails extends com.oracle.bmc.http.internal.Expl @java.beans.ConstructorProperties({ "isEnabled", "readEndpointIpAddress", + "readEndpointIpv6AddressIpv6SubnetCidrPairDetails", "readEndpointHostnameLabel", "excludeIps" }) public ReadEndpointDetails( Boolean isEnabled, String readEndpointIpAddress, + Ipv6AddressIpv6SubnetCidrPairDetails readEndpointIpv6AddressIpv6SubnetCidrPairDetails, String readEndpointHostnameLabel, java.util.List excludeIps) { super(); this.isEnabled = isEnabled; this.readEndpointIpAddress = readEndpointIpAddress; + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails = + readEndpointIpv6AddressIpv6SubnetCidrPairDetails; this.readEndpointHostnameLabel = readEndpointHostnameLabel; this.excludeIps = excludeIps; } @@ -86,6 +90,20 @@ public Builder readEndpointIpAddress(String readEndpointIpAddress) { this.__explicitlySet__.add("readEndpointIpAddress"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty( + "readEndpointIpv6AddressIpv6SubnetCidrPairDetails") + private Ipv6AddressIpv6SubnetCidrPairDetails + readEndpointIpv6AddressIpv6SubnetCidrPairDetails; + + public Builder readEndpointIpv6AddressIpv6SubnetCidrPairDetails( + Ipv6AddressIpv6SubnetCidrPairDetails + readEndpointIpv6AddressIpv6SubnetCidrPairDetails) { + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails = + readEndpointIpv6AddressIpv6SubnetCidrPairDetails; + this.__explicitlySet__.add("readEndpointIpv6AddressIpv6SubnetCidrPairDetails"); + return this; + } /** * The hostname for the read endpoint of the DB System. Used for DNS. *

@@ -141,6 +159,7 @@ public ReadEndpointDetails build() { new ReadEndpointDetails( this.isEnabled, this.readEndpointIpAddress, + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails, this.readEndpointHostnameLabel, this.excludeIps); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -157,6 +176,11 @@ public Builder copy(ReadEndpointDetails model) { if (model.wasPropertyExplicitlySet("readEndpointIpAddress")) { this.readEndpointIpAddress(model.getReadEndpointIpAddress()); } + if (model.wasPropertyExplicitlySet( + "readEndpointIpv6AddressIpv6SubnetCidrPairDetails")) { + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails( + model.getReadEndpointIpv6AddressIpv6SubnetCidrPairDetails()); + } if (model.wasPropertyExplicitlySet("readEndpointHostnameLabel")) { this.readEndpointHostnameLabel(model.getReadEndpointHostnameLabel()); } @@ -218,6 +242,16 @@ public String getReadEndpointIpAddress() { return readEndpointIpAddress; } + @com.fasterxml.jackson.annotation.JsonProperty( + "readEndpointIpv6AddressIpv6SubnetCidrPairDetails") + private final Ipv6AddressIpv6SubnetCidrPairDetails + readEndpointIpv6AddressIpv6SubnetCidrPairDetails; + + public Ipv6AddressIpv6SubnetCidrPairDetails + getReadEndpointIpv6AddressIpv6SubnetCidrPairDetails() { + return readEndpointIpv6AddressIpv6SubnetCidrPairDetails; + } + /** * The hostname for the read endpoint of the DB System. Used for DNS. *

@@ -276,6 +310,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); sb.append(", readEndpointIpAddress=").append(String.valueOf(this.readEndpointIpAddress)); + sb.append(", readEndpointIpv6AddressIpv6SubnetCidrPairDetails=") + .append(String.valueOf(this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails)); sb.append(", readEndpointHostnameLabel=") .append(String.valueOf(this.readEndpointHostnameLabel)); sb.append(", excludeIps=").append(String.valueOf(this.excludeIps)); @@ -295,6 +331,9 @@ public boolean equals(Object o) { ReadEndpointDetails other = (ReadEndpointDetails) o; return java.util.Objects.equals(this.isEnabled, other.isEnabled) && java.util.Objects.equals(this.readEndpointIpAddress, other.readEndpointIpAddress) + && java.util.Objects.equals( + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails, + other.readEndpointIpv6AddressIpv6SubnetCidrPairDetails) && java.util.Objects.equals( this.readEndpointHostnameLabel, other.readEndpointHostnameLabel) && java.util.Objects.equals(this.excludeIps, other.excludeIps) @@ -311,6 +350,11 @@ public int hashCode() { + (this.readEndpointIpAddress == null ? 43 : this.readEndpointIpAddress.hashCode()); + result = + (result * PRIME) + + (this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails == null + ? 43 + : this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails.hashCode()); result = (result * PRIME) + (this.readEndpointHostnameLabel == null diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Replica.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Replica.java index d814debf736..1697bfe3af5 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Replica.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Replica.java @@ -37,6 +37,7 @@ public final class Replica extends com.oracle.bmc.http.internal.ExplicitlySetBmc "nsgIds", "securityAttributes", "ipAddress", + "ipv6Address", "port", "portX", "freeformTags", @@ -65,6 +66,7 @@ public Replica( java.util.List nsgIds, java.util.Map> securityAttributes, String ipAddress, + String ipv6Address, Integer port, Integer portX, java.util.Map freeformTags, @@ -92,6 +94,7 @@ public Replica( this.nsgIds = nsgIds; this.securityAttributes = securityAttributes; this.ipAddress = ipAddress; + this.ipv6Address = ipv6Address; this.port = port; this.portX = portX; this.freeformTags = freeformTags; @@ -376,6 +379,22 @@ public Builder ipAddress(String ipAddress) { this.__explicitlySet__.add("ipAddress"); return this; } + /** + * The IPv6 address the read replica is configured to listen on. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6Address") + private String ipv6Address; + + /** + * The IPv6 address the read replica is configured to listen on. + * @param ipv6Address the value to set + * @return this builder + **/ + public Builder ipv6Address(String ipv6Address) { + this.ipv6Address = ipv6Address; + this.__explicitlySet__.add("ipv6Address"); + return this; + } /** * The port the read replica is configured to listen on. **/ @@ -556,6 +575,7 @@ public Replica build() { this.nsgIds, this.securityAttributes, this.ipAddress, + this.ipv6Address, this.port, this.portX, this.freeformTags, @@ -624,6 +644,9 @@ public Builder copy(Replica model) { if (model.wasPropertyExplicitlySet("ipAddress")) { this.ipAddress(model.getIpAddress()); } + if (model.wasPropertyExplicitlySet("ipv6Address")) { + this.ipv6Address(model.getIpv6Address()); + } if (model.wasPropertyExplicitlySet("port")) { this.port(model.getPort()); } @@ -956,6 +979,20 @@ public String getIpAddress() { return ipAddress; } + /** + * The IPv6 address the read replica is configured to listen on. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6Address") + private final String ipv6Address; + + /** + * The IPv6 address the read replica is configured to listen on. + * @return the value + **/ + public String getIpv6Address() { + return ipv6Address; + } + /** * The port the read replica is configured to listen on. **/ @@ -1123,6 +1160,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); + sb.append(", ipv6Address=").append(String.valueOf(this.ipv6Address)); sb.append(", port=").append(String.valueOf(this.port)); sb.append(", portX=").append(String.valueOf(this.portX)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -1163,6 +1201,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.ipAddress, other.ipAddress) + && java.util.Objects.equals(this.ipv6Address, other.ipv6Address) && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.portX, other.portX) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -1213,6 +1252,7 @@ public int hashCode() { ? 43 : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); + result = (result * PRIME) + (this.ipv6Address == null ? 43 : this.ipv6Address.hashCode()); result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.portX == null ? 43 : this.portX.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ReplicaSummary.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ReplicaSummary.java index 6f76f0d4129..572e8cd956c 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ReplicaSummary.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ReplicaSummary.java @@ -35,6 +35,7 @@ public final class ReplicaSummary extends com.oracle.bmc.http.internal.Explicitl "nsgIds", "securityAttributes", "ipAddress", + "ipv6Address", "port", "portX", "freeformTags", @@ -61,6 +62,7 @@ public ReplicaSummary( java.util.List nsgIds, java.util.Map> securityAttributes, String ipAddress, + String ipv6Address, Integer port, Integer portX, java.util.Map freeformTags, @@ -86,6 +88,7 @@ public ReplicaSummary( this.nsgIds = nsgIds; this.securityAttributes = securityAttributes; this.ipAddress = ipAddress; + this.ipv6Address = ipv6Address; this.port = port; this.portX = portX; this.freeformTags = freeformTags; @@ -352,6 +355,22 @@ public Builder ipAddress(String ipAddress) { this.__explicitlySet__.add("ipAddress"); return this; } + /** + * The IPv6 address the read replica is configured to listen on. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6Address") + private String ipv6Address; + + /** + * The IPv6 address the read replica is configured to listen on. + * @param ipv6Address the value to set + * @return this builder + **/ + public Builder ipv6Address(String ipv6Address) { + this.ipv6Address = ipv6Address; + this.__explicitlySet__.add("ipv6Address"); + return this; + } /** * The port the read replica is configured to listen on. **/ @@ -530,6 +549,7 @@ public ReplicaSummary build() { this.nsgIds, this.securityAttributes, this.ipAddress, + this.ipv6Address, this.port, this.portX, this.freeformTags, @@ -592,6 +612,9 @@ public Builder copy(ReplicaSummary model) { if (model.wasPropertyExplicitlySet("ipAddress")) { this.ipAddress(model.getIpAddress()); } + if (model.wasPropertyExplicitlySet("ipv6Address")) { + this.ipv6Address(model.getIpv6Address()); + } if (model.wasPropertyExplicitlySet("port")) { this.port(model.getPort()); } @@ -910,6 +933,20 @@ public String getIpAddress() { return ipAddress; } + /** + * The IPv6 address the read replica is configured to listen on. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ipv6Address") + private final String ipv6Address; + + /** + * The IPv6 address the read replica is configured to listen on. + * @return the value + **/ + public String getIpv6Address() { + return ipv6Address; + } + /** * The port the read replica is configured to listen on. **/ @@ -1075,6 +1112,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); + sb.append(", ipv6Address=").append(String.valueOf(this.ipv6Address)); sb.append(", port=").append(String.valueOf(this.port)); sb.append(", portX=").append(String.valueOf(this.portX)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -1113,6 +1151,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.ipAddress, other.ipAddress) + && java.util.Objects.equals(this.ipv6Address, other.ipv6Address) && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.portX, other.portX) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -1159,6 +1198,7 @@ public int hashCode() { ? 43 : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); + result = (result * PRIME) + (this.ipv6Address == null ? 43 : this.ipv6Address.hashCode()); result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.portX == null ? 43 : this.portX.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateChannelSourceFromMysqlDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateChannelSourceFromMysqlDetails.java index 39b4bd78895..c2bde721e06 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateChannelSourceFromMysqlDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateChannelSourceFromMysqlDetails.java @@ -149,6 +149,26 @@ public Builder anonymousTransactionsHandling( this.__explicitlySet__.add("anonymousTransactionsHandling"); return this; } + /** + * Whether the connection of the channel will be requested using the IPv6 address of + * the dual stack DB system or not. Default: False. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mustUseIpv6OnDualStack") + private Boolean mustUseIpv6OnDualStack; + + /** + * Whether the connection of the channel will be requested using the IPv6 address of + * the dual stack DB system or not. Default: False. + * + * @param mustUseIpv6OnDualStack the value to set + * @return this builder + **/ + public Builder mustUseIpv6OnDualStack(Boolean mustUseIpv6OnDualStack) { + this.mustUseIpv6OnDualStack = mustUseIpv6OnDualStack; + this.__explicitlySet__.add("mustUseIpv6OnDualStack"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -162,7 +182,8 @@ public UpdateChannelSourceFromMysqlDetails build() { this.password, this.sslMode, this.sslCaCertificate, - this.anonymousTransactionsHandling); + this.anonymousTransactionsHandling, + this.mustUseIpv6OnDualStack); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -192,6 +213,9 @@ public Builder copy(UpdateChannelSourceFromMysqlDetails model) { if (model.wasPropertyExplicitlySet("anonymousTransactionsHandling")) { this.anonymousTransactionsHandling(model.getAnonymousTransactionsHandling()); } + if (model.wasPropertyExplicitlySet("mustUseIpv6OnDualStack")) { + this.mustUseIpv6OnDualStack(model.getMustUseIpv6OnDualStack()); + } return this; } } @@ -215,7 +239,8 @@ public UpdateChannelSourceFromMysqlDetails( String password, ChannelSourceMysql.SslMode sslMode, CaCertificate sslCaCertificate, - AnonymousTransactionsHandling anonymousTransactionsHandling) { + AnonymousTransactionsHandling anonymousTransactionsHandling, + Boolean mustUseIpv6OnDualStack) { super(); this.hostname = hostname; this.port = port; @@ -224,6 +249,7 @@ public UpdateChannelSourceFromMysqlDetails( this.sslMode = sslMode; this.sslCaCertificate = sslCaCertificate; this.anonymousTransactionsHandling = anonymousTransactionsHandling; + this.mustUseIpv6OnDualStack = mustUseIpv6OnDualStack; } @com.fasterxml.jackson.annotation.JsonCreator @@ -235,7 +261,8 @@ public UpdateChannelSourceFromMysqlDetails( char[] password, ChannelSourceMysql.SslMode sslMode, CaCertificate sslCaCertificate, - AnonymousTransactionsHandling anonymousTransactionsHandling) { + AnonymousTransactionsHandling anonymousTransactionsHandling, + Boolean mustUseIpv6OnDualStack) { super(); this.hostname = hostname; this.port = port; @@ -244,6 +271,7 @@ public UpdateChannelSourceFromMysqlDetails( this.sslMode = sslMode; this.sslCaCertificate = sslCaCertificate; this.anonymousTransactionsHandling = anonymousTransactionsHandling; + this.mustUseIpv6OnDualStack = mustUseIpv6OnDualStack; } /** @@ -360,6 +388,24 @@ public AnonymousTransactionsHandling getAnonymousTransactionsHandling() { return anonymousTransactionsHandling; } + /** + * Whether the connection of the channel will be requested using the IPv6 address of + * the dual stack DB system or not. Default: False. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mustUseIpv6OnDualStack") + private final Boolean mustUseIpv6OnDualStack; + + /** + * Whether the connection of the channel will be requested using the IPv6 address of + * the dual stack DB system or not. Default: False. + * + * @return the value + **/ + public Boolean getMustUseIpv6OnDualStack() { + return mustUseIpv6OnDualStack; + } + @Override public String toString() { return this.toString(true); @@ -382,6 +428,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sslCaCertificate=").append(String.valueOf(this.sslCaCertificate)); sb.append(", anonymousTransactionsHandling=") .append(String.valueOf(this.anonymousTransactionsHandling)); + sb.append(", mustUseIpv6OnDualStack=").append(String.valueOf(this.mustUseIpv6OnDualStack)); sb.append(")"); return sb.toString(); } @@ -404,6 +451,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sslCaCertificate, other.sslCaCertificate) && java.util.Objects.equals( this.anonymousTransactionsHandling, other.anonymousTransactionsHandling) + && java.util.Objects.equals( + this.mustUseIpv6OnDualStack, other.mustUseIpv6OnDualStack) && super.equals(other); } @@ -424,6 +473,11 @@ public int hashCode() { + (this.anonymousTransactionsHandling == null ? 43 : this.anonymousTransactionsHandling.hashCode()); + result = + (result * PRIME) + + (this.mustUseIpv6OnDualStack == null + ? 43 + : this.mustUseIpv6OnDualStack.hashCode()); return result; } } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java index e26fa55c62e..7c605e70d5a 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java @@ -45,6 +45,8 @@ public UpdateDbSystemDetails( DataStorageDetails dataStorage, String hostnameLabel, String ipAddress, + Boolean isIpv6Enabled, + Ipv6AddressIpv6SubnetCidrPairDetails ipv6AddressIpv6SubnetCidrPairDetails, Integer port, Integer portX, UpdateBackupPolicyDetails backupPolicy, @@ -81,6 +83,8 @@ public UpdateDbSystemDetails( this.dataStorage = dataStorage; this.hostnameLabel = hostnameLabel; this.ipAddress = ipAddress; + this.isIpv6Enabled = isIpv6Enabled; + this.ipv6AddressIpv6SubnetCidrPairDetails = ipv6AddressIpv6SubnetCidrPairDetails; this.port = port; this.portX = portX; this.backupPolicy = backupPolicy; @@ -121,6 +125,8 @@ public UpdateDbSystemDetails( "dataStorage", "hostnameLabel", "ipAddress", + "isIpv6Enabled", + "ipv6AddressIpv6SubnetCidrPairDetails", "port", "portX", "backupPolicy", @@ -158,6 +164,8 @@ public UpdateDbSystemDetails( DataStorageDetails dataStorage, String hostnameLabel, String ipAddress, + Boolean isIpv6Enabled, + Ipv6AddressIpv6SubnetCidrPairDetails ipv6AddressIpv6SubnetCidrPairDetails, Integer port, Integer portX, UpdateBackupPolicyDetails backupPolicy, @@ -194,6 +202,8 @@ public UpdateDbSystemDetails( this.dataStorage = dataStorage; this.hostnameLabel = hostnameLabel; this.ipAddress = ipAddress; + this.isIpv6Enabled = isIpv6Enabled; + this.ipv6AddressIpv6SubnetCidrPairDetails = ipv6AddressIpv6SubnetCidrPairDetails; this.port = port; this.portX = portX; this.backupPolicy = backupPolicy; @@ -663,6 +673,42 @@ public Builder ipAddress(String ipAddress) { this.__explicitlySet__.add("ipAddress"); return this; } + /** + * Whether to allocate an IPv6 address for the DB system in an IPv6 enabled subnet. + * When provided you may optionally + * provide an IPv6 prefix (ipv6AddressIpv6SubnetCidrPairDetails) of your choice to assign the IPv6 + * address from. If ipv6AddressIpv6SubnetCidrPairDetails is not provided then an IPv6 prefix is + * chosen for you. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIpv6Enabled") + private Boolean isIpv6Enabled; + + /** + * Whether to allocate an IPv6 address for the DB system in an IPv6 enabled subnet. + * When provided you may optionally + * provide an IPv6 prefix (ipv6AddressIpv6SubnetCidrPairDetails) of your choice to assign the IPv6 + * address from. If ipv6AddressIpv6SubnetCidrPairDetails is not provided then an IPv6 prefix is + * chosen for you. + * + * @param isIpv6Enabled the value to set + * @return this builder + **/ + public Builder isIpv6Enabled(Boolean isIpv6Enabled) { + this.isIpv6Enabled = isIpv6Enabled; + this.__explicitlySet__.add("isIpv6Enabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ipv6AddressIpv6SubnetCidrPairDetails") + private Ipv6AddressIpv6SubnetCidrPairDetails ipv6AddressIpv6SubnetCidrPairDetails; + + public Builder ipv6AddressIpv6SubnetCidrPairDetails( + Ipv6AddressIpv6SubnetCidrPairDetails ipv6AddressIpv6SubnetCidrPairDetails) { + this.ipv6AddressIpv6SubnetCidrPairDetails = ipv6AddressIpv6SubnetCidrPairDetails; + this.__explicitlySet__.add("ipv6AddressIpv6SubnetCidrPairDetails"); + return this; + } /** * The port for primary endpoint of the DB System to listen on. **/ @@ -890,6 +936,8 @@ public UpdateDbSystemDetails build() { this.dataStorage, this.hostnameLabel, this.ipAddress, + this.isIpv6Enabled, + this.ipv6AddressIpv6SubnetCidrPairDetails, this.port, this.portX, this.backupPolicy, @@ -975,6 +1023,13 @@ public Builder copy(UpdateDbSystemDetails model) { if (model.wasPropertyExplicitlySet("ipAddress")) { this.ipAddress(model.getIpAddress()); } + if (model.wasPropertyExplicitlySet("isIpv6Enabled")) { + this.isIpv6Enabled(model.getIsIpv6Enabled()); + } + if (model.wasPropertyExplicitlySet("ipv6AddressIpv6SubnetCidrPairDetails")) { + this.ipv6AddressIpv6SubnetCidrPairDetails( + model.getIpv6AddressIpv6SubnetCidrPairDetails()); + } if (model.wasPropertyExplicitlySet("port")) { this.port(model.getPort()); } @@ -1449,6 +1504,37 @@ public String getIpAddress() { return ipAddress; } + /** + * Whether to allocate an IPv6 address for the DB system in an IPv6 enabled subnet. + * When provided you may optionally + * provide an IPv6 prefix (ipv6AddressIpv6SubnetCidrPairDetails) of your choice to assign the IPv6 + * address from. If ipv6AddressIpv6SubnetCidrPairDetails is not provided then an IPv6 prefix is + * chosen for you. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIpv6Enabled") + private final Boolean isIpv6Enabled; + + /** + * Whether to allocate an IPv6 address for the DB system in an IPv6 enabled subnet. + * When provided you may optionally + * provide an IPv6 prefix (ipv6AddressIpv6SubnetCidrPairDetails) of your choice to assign the IPv6 + * address from. If ipv6AddressIpv6SubnetCidrPairDetails is not provided then an IPv6 prefix is + * chosen for you. + * + * @return the value + **/ + public Boolean getIsIpv6Enabled() { + return isIpv6Enabled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ipv6AddressIpv6SubnetCidrPairDetails") + private final Ipv6AddressIpv6SubnetCidrPairDetails ipv6AddressIpv6SubnetCidrPairDetails; + + public Ipv6AddressIpv6SubnetCidrPairDetails getIpv6AddressIpv6SubnetCidrPairDetails() { + return ipv6AddressIpv6SubnetCidrPairDetails; + } + /** * The port for primary endpoint of the DB System to listen on. **/ @@ -1653,6 +1739,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dataStorage=").append(String.valueOf(this.dataStorage)); sb.append(", hostnameLabel=").append(String.valueOf(this.hostnameLabel)); sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); + sb.append(", isIpv6Enabled=").append(String.valueOf(this.isIpv6Enabled)); + sb.append(", ipv6AddressIpv6SubnetCidrPairDetails=") + .append(String.valueOf(this.ipv6AddressIpv6SubnetCidrPairDetails)); sb.append(", port=").append(String.valueOf(this.port)); sb.append(", portX=").append(String.valueOf(this.portX)); sb.append(", backupPolicy=").append(String.valueOf(this.backupPolicy)); @@ -1702,6 +1791,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dataStorage, other.dataStorage) && java.util.Objects.equals(this.hostnameLabel, other.hostnameLabel) && java.util.Objects.equals(this.ipAddress, other.ipAddress) + && java.util.Objects.equals(this.isIpv6Enabled, other.isIpv6Enabled) + && java.util.Objects.equals( + this.ipv6AddressIpv6SubnetCidrPairDetails, + other.ipv6AddressIpv6SubnetCidrPairDetails) && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.portX, other.portX) && java.util.Objects.equals(this.backupPolicy, other.backupPolicy) @@ -1769,6 +1862,14 @@ public int hashCode() { (result * PRIME) + (this.hostnameLabel == null ? 43 : this.hostnameLabel.hashCode()); result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); + result = + (result * PRIME) + + (this.isIpv6Enabled == null ? 43 : this.isIpv6Enabled.hashCode()); + result = + (result * PRIME) + + (this.ipv6AddressIpv6SubnetCidrPairDetails == null + ? 43 + : this.ipv6AddressIpv6SubnetCidrPairDetails.hashCode()); result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.portX == null ? 43 : this.portX.hashCode()); result = (result * PRIME) + (this.backupPolicy == null ? 43 : this.backupPolicy.hashCode()); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateReadEndpointDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateReadEndpointDetails.java index bec2b1e917d..d064bffa205 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateReadEndpointDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateReadEndpointDetails.java @@ -26,17 +26,21 @@ public final class UpdateReadEndpointDetails @java.beans.ConstructorProperties({ "isEnabled", "readEndpointIpAddress", + "readEndpointIpv6AddressIpv6SubnetCidrPairDetails", "readEndpointHostnameLabel", "excludeIps" }) public UpdateReadEndpointDetails( Boolean isEnabled, String readEndpointIpAddress, + Ipv6AddressIpv6SubnetCidrPairDetails readEndpointIpv6AddressIpv6SubnetCidrPairDetails, String readEndpointHostnameLabel, java.util.List excludeIps) { super(); this.isEnabled = isEnabled; this.readEndpointIpAddress = readEndpointIpAddress; + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails = + readEndpointIpv6AddressIpv6SubnetCidrPairDetails; this.readEndpointHostnameLabel = readEndpointHostnameLabel; this.excludeIps = excludeIps; } @@ -87,6 +91,20 @@ public Builder readEndpointIpAddress(String readEndpointIpAddress) { this.__explicitlySet__.add("readEndpointIpAddress"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty( + "readEndpointIpv6AddressIpv6SubnetCidrPairDetails") + private Ipv6AddressIpv6SubnetCidrPairDetails + readEndpointIpv6AddressIpv6SubnetCidrPairDetails; + + public Builder readEndpointIpv6AddressIpv6SubnetCidrPairDetails( + Ipv6AddressIpv6SubnetCidrPairDetails + readEndpointIpv6AddressIpv6SubnetCidrPairDetails) { + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails = + readEndpointIpv6AddressIpv6SubnetCidrPairDetails; + this.__explicitlySet__.add("readEndpointIpv6AddressIpv6SubnetCidrPairDetails"); + return this; + } /** * The hostname for the read endpoint of the DB System. Used for DNS. *

@@ -142,6 +160,7 @@ public UpdateReadEndpointDetails build() { new UpdateReadEndpointDetails( this.isEnabled, this.readEndpointIpAddress, + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails, this.readEndpointHostnameLabel, this.excludeIps); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -158,6 +177,11 @@ public Builder copy(UpdateReadEndpointDetails model) { if (model.wasPropertyExplicitlySet("readEndpointIpAddress")) { this.readEndpointIpAddress(model.getReadEndpointIpAddress()); } + if (model.wasPropertyExplicitlySet( + "readEndpointIpv6AddressIpv6SubnetCidrPairDetails")) { + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails( + model.getReadEndpointIpv6AddressIpv6SubnetCidrPairDetails()); + } if (model.wasPropertyExplicitlySet("readEndpointHostnameLabel")) { this.readEndpointHostnameLabel(model.getReadEndpointHostnameLabel()); } @@ -219,6 +243,16 @@ public String getReadEndpointIpAddress() { return readEndpointIpAddress; } + @com.fasterxml.jackson.annotation.JsonProperty( + "readEndpointIpv6AddressIpv6SubnetCidrPairDetails") + private final Ipv6AddressIpv6SubnetCidrPairDetails + readEndpointIpv6AddressIpv6SubnetCidrPairDetails; + + public Ipv6AddressIpv6SubnetCidrPairDetails + getReadEndpointIpv6AddressIpv6SubnetCidrPairDetails() { + return readEndpointIpv6AddressIpv6SubnetCidrPairDetails; + } + /** * The hostname for the read endpoint of the DB System. Used for DNS. *

@@ -277,6 +311,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); sb.append(", readEndpointIpAddress=").append(String.valueOf(this.readEndpointIpAddress)); + sb.append(", readEndpointIpv6AddressIpv6SubnetCidrPairDetails=") + .append(String.valueOf(this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails)); sb.append(", readEndpointHostnameLabel=") .append(String.valueOf(this.readEndpointHostnameLabel)); sb.append(", excludeIps=").append(String.valueOf(this.excludeIps)); @@ -296,6 +332,9 @@ public boolean equals(Object o) { UpdateReadEndpointDetails other = (UpdateReadEndpointDetails) o; return java.util.Objects.equals(this.isEnabled, other.isEnabled) && java.util.Objects.equals(this.readEndpointIpAddress, other.readEndpointIpAddress) + && java.util.Objects.equals( + this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails, + other.readEndpointIpv6AddressIpv6SubnetCidrPairDetails) && java.util.Objects.equals( this.readEndpointHostnameLabel, other.readEndpointHostnameLabel) && java.util.Objects.equals(this.excludeIps, other.excludeIps) @@ -312,6 +351,11 @@ public int hashCode() { + (this.readEndpointIpAddress == null ? 43 : this.readEndpointIpAddress.hashCode()); + result = + (result * PRIME) + + (this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails == null + ? 43 + : this.readEndpointIpv6AddressIpv6SubnetCidrPairDetails.hashCode()); result = (result * PRIME) + (this.readEndpointHostnameLabel == null diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index aab18f70ac5..ead68569a4d 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-networkfirewall @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index fa50ab79efe..0cb541fabdb 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 1db51dd35f7..65335bf6bf2 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-nosql @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index fcdbc0d878e..73ed4b25de6 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 - 2.93.0 + 2.95.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 2.93.0 + 2.95.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 2.93.0 + 2.95.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index dcee93646e8..d5c795fc931 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 - 2.93.0 + 2.95.0 ../pom.xml @@ -28,12 +28,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 2.93.0 + 2.95.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/src/test/java/com/oracle/bmc/objectstorage/transfer/UploadManagerTest.java b/bmc-objectstorage/bmc-objectstorage-extensions/src/test/java/com/oracle/bmc/objectstorage/transfer/UploadManagerTest.java index 1082b68713e..cf738616827 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/src/test/java/com/oracle/bmc/objectstorage/transfer/UploadManagerTest.java +++ b/bmc-objectstorage/bmc-objectstorage-extensions/src/test/java/com/oracle/bmc/objectstorage/transfer/UploadManagerTest.java @@ -96,7 +96,7 @@ CommitMultipartUploadConverter.class, EndpointBuilder.class }) -@PowerMockIgnore({"jdk.internal.reflect.*"}) +@PowerMockIgnore({"jdk.internal.reflect.*", "javax.net.ssl.*"}) public class UploadManagerTest { private static final String CONTENT = StringUtils.repeat("a", (int) (20 * MultipartUtils.MiB)); // 20 MiB diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 8b93db3605e..425761ea0b8 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 - 2.93.0 + 2.95.0 ../pom.xml @@ -20,7 +20,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java index 517f165bfa7..e9f952eb1a1 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java @@ -758,6 +758,8 @@ PutObjectLifecyclePolicyResponse putObjectLifecyclePolicy( * assigned key. Similarly, you might want to re-encrypt all data encryption keys if the assigned key has been rotated to * a new key version since objects were last added to the bucket. If you call this API and there is no kmsKeyId associated * with the bucket, the call will fail. + * Also, if you set isBucketKeyEnabled, you might want to re-encrypt all data encryption keys + * using the bucket key. This will help reduce calls to OCI Vault KMS when older objects are downloaded. *

* Calling this API starts a work request task to re-encrypt the data encryption key of all objects in the bucket. Only * objects created before the time of the API call will be re-encrypted. The call can take a long time, depending on how many diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java index e770196af5d..16f69405e82 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java @@ -888,6 +888,8 @@ java.util.concurrent.Future putObjectLifecycle * assigned key. Similarly, you might want to re-encrypt all data encryption keys if the assigned key has been rotated to * a new key version since objects were last added to the bucket. If you call this API and there is no kmsKeyId associated * with the bucket, the call will fail. + * Also, if you set isBucketKeyEnabled, you might want to re-encrypt all data encryption keys + * using the bucket key. This will help reduce calls to OCI Vault KMS when older objects are downloaded. *

* Calling this API starts a work request task to re-encrypt the data encryption key of all objects in the bucket. Only * objects created before the time of the API call will be re-encrypted. The call can take a long time, depending on how many diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/GetObjectConverter.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/GetObjectConverter.java index 06cafee3b3e..30a8cc7c67b 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/GetObjectConverter.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/GetObjectConverter.java @@ -359,6 +359,19 @@ public com.oracle.bmc.objectstorage.responses.GetObjectResponse apply( String.class)); } + java.util.Optional> + opcBucketKeyEnabledHeader = + com.oracle.bmc.http.internal.HeaderUtils + .getHeadersWithName( + headers, "opc-bucket-key-enabled"); + if (opcBucketKeyEnabledHeader.isPresent()) { + builder.opcBucketKeyEnabled( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-bucket-key-enabled", + opcBucketKeyEnabledHeader.get().get(0), + Boolean.class)); + } + java.util.Optional> contentTypeHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "content-type"); diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/HeadObjectConverter.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/HeadObjectConverter.java index 51c7584742e..fcd072ce191 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/HeadObjectConverter.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/HeadObjectConverter.java @@ -292,6 +292,19 @@ public com.oracle.bmc.objectstorage.responses.HeadObjectResponse apply( String.class)); } + java.util.Optional> + opcBucketKeyEnabledHeader = + com.oracle.bmc.http.internal.HeaderUtils + .getHeadersWithName( + headers, "opc-bucket-key-enabled"); + if (opcBucketKeyEnabledHeader.isPresent()) { + builder.opcBucketKeyEnabled( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-bucket-key-enabled", + opcBucketKeyEnabledHeader.get().get(0), + Boolean.class)); + } + java.util.Optional> contentTypeHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "content-type"); diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/ReencryptBucketConverter.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/ReencryptBucketConverter.java index becf9eefab7..a02cb76974d 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/ReencryptBucketConverter.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/ReencryptBucketConverter.java @@ -53,6 +53,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .path("actions") .path("reencrypt"); + if (request.getIsReencryptBucketKeyOnly() != null) { + target = + target.queryParam( + "isReencryptBucketKeyOnly", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsReencryptBucketKeyOnly())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java index b6c1e48cf68..75bb7e27606 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java @@ -40,6 +40,7 @@ public final class Bucket extends com.oracle.bmc.http.internal.ExplicitlySetBmcM "freeformTags", "definedTags", "kmsKeyId", + "isBucketKeyEnabled", "objectLifecyclePolicyEtag", "approximateCount", "approximateSize", @@ -64,6 +65,7 @@ public Bucket( java.util.Map freeformTags, java.util.Map> definedTags, String kmsKeyId, + Boolean isBucketKeyEnabled, String objectLifecyclePolicyEtag, Long approximateCount, Long approximateSize, @@ -87,6 +89,7 @@ public Bucket( this.freeformTags = freeformTags; this.definedTags = definedTags; this.kmsKeyId = kmsKeyId; + this.isBucketKeyEnabled = isBucketKeyEnabled; this.objectLifecyclePolicyEtag = objectLifecyclePolicyEtag; this.approximateCount = approximateCount; this.approximateSize = approximateSize; @@ -353,6 +356,28 @@ public Builder kmsKeyId(String kmsKeyId) { this.__explicitlySet__.add("kmsKeyId"); return this; } + /** + * Specifies whether Object Storage should use intermediate cached Bucket Encryption Keys with server-side + * encryption using KMS (SSE-KMS) for new objects in the bucket. This reduces calls to OCI Vault Key Management + * Service (KMS). Existing objects are not affected. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBucketKeyEnabled") + private Boolean isBucketKeyEnabled; + + /** + * Specifies whether Object Storage should use intermediate cached Bucket Encryption Keys with server-side + * encryption using KMS (SSE-KMS) for new objects in the bucket. This reduces calls to OCI Vault Key Management + * Service (KMS). Existing objects are not affected. + * + * @param isBucketKeyEnabled the value to set + * @return this builder + **/ + public Builder isBucketKeyEnabled(Boolean isBucketKeyEnabled) { + this.isBucketKeyEnabled = isBucketKeyEnabled; + this.__explicitlySet__.add("isBucketKeyEnabled"); + return this; + } /** * The entity tag (ETag) for the live object lifecycle policy on the bucket. **/ @@ -555,6 +580,7 @@ public Bucket build() { this.freeformTags, this.definedTags, this.kmsKeyId, + this.isBucketKeyEnabled, this.objectLifecyclePolicyEtag, this.approximateCount, this.approximateSize, @@ -611,6 +637,9 @@ public Builder copy(Bucket model) { if (model.wasPropertyExplicitlySet("kmsKeyId")) { this.kmsKeyId(model.getKmsKeyId()); } + if (model.wasPropertyExplicitlySet("isBucketKeyEnabled")) { + this.isBucketKeyEnabled(model.getIsBucketKeyEnabled()); + } if (model.wasPropertyExplicitlySet("objectLifecyclePolicyEtag")) { this.objectLifecyclePolicyEtag(model.getObjectLifecyclePolicyEtag()); } @@ -985,6 +1014,26 @@ public String getKmsKeyId() { return kmsKeyId; } + /** + * Specifies whether Object Storage should use intermediate cached Bucket Encryption Keys with server-side + * encryption using KMS (SSE-KMS) for new objects in the bucket. This reduces calls to OCI Vault Key Management + * Service (KMS). Existing objects are not affected. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBucketKeyEnabled") + private final Boolean isBucketKeyEnabled; + + /** + * Specifies whether Object Storage should use intermediate cached Bucket Encryption Keys with server-side + * encryption using KMS (SSE-KMS) for new objects in the bucket. This reduces calls to OCI Vault Key Management + * Service (KMS). Existing objects are not affected. + * + * @return the value + **/ + public Boolean getIsBucketKeyEnabled() { + return isBucketKeyEnabled; + } + /** * The entity tag (ETag) for the live object lifecycle policy on the bucket. **/ @@ -1331,6 +1380,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", isBucketKeyEnabled=").append(String.valueOf(this.isBucketKeyEnabled)); sb.append(", objectLifecyclePolicyEtag=") .append(String.valueOf(this.objectLifecyclePolicyEtag)); sb.append(", approximateCount=").append(String.valueOf(this.approximateCount)); @@ -1368,6 +1418,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.isBucketKeyEnabled, other.isBucketKeyEnabled) && java.util.Objects.equals( this.objectLifecyclePolicyEtag, other.objectLifecyclePolicyEtag) && java.util.Objects.equals(this.approximateCount, other.approximateCount) @@ -1406,6 +1457,11 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.isBucketKeyEnabled == null + ? 43 + : this.isBucketKeyEnabled.hashCode()); result = (result * PRIME) + (this.objectLifecyclePolicyEtag == null diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateBucketDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateBucketDetails.java index 2d57944c00b..127c51be091 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateBucketDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateBucketDetails.java @@ -34,6 +34,7 @@ public final class CreateBucketDetails extends com.oracle.bmc.http.internal.Expl "freeformTags", "definedTags", "kmsKeyId", + "isBucketKeyEnabled", "versioning", "autoTiering", "bucketScope" @@ -48,6 +49,7 @@ public CreateBucketDetails( java.util.Map freeformTags, java.util.Map> definedTags, String kmsKeyId, + Boolean isBucketKeyEnabled, Versioning versioning, Bucket.AutoTiering autoTiering, Bucket.BucketScope bucketScope) { @@ -61,6 +63,7 @@ public CreateBucketDetails( this.freeformTags = freeformTags; this.definedTags = definedTags; this.kmsKeyId = kmsKeyId; + this.isBucketKeyEnabled = isBucketKeyEnabled; this.versioning = versioning; this.autoTiering = autoTiering; this.bucketScope = bucketScope; @@ -259,6 +262,28 @@ public Builder kmsKeyId(String kmsKeyId) { this.__explicitlySet__.add("kmsKeyId"); return this; } + /** + * Specifies whether Object Storage should use intermediate cached Bucket Encryption Keys with server-side + * encryption using KMS (SSE-KMS) for new objects in the bucket. This reduces calls to OCI Vault Key Management + * Service (KMS). Existing objects are not affected. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBucketKeyEnabled") + private Boolean isBucketKeyEnabled; + + /** + * Specifies whether Object Storage should use intermediate cached Bucket Encryption Keys with server-side + * encryption using KMS (SSE-KMS) for new objects in the bucket. This reduces calls to OCI Vault Key Management + * Service (KMS). Existing objects are not affected. + * + * @param isBucketKeyEnabled the value to set + * @return this builder + **/ + public Builder isBucketKeyEnabled(Boolean isBucketKeyEnabled) { + this.isBucketKeyEnabled = isBucketKeyEnabled; + this.__explicitlySet__.add("isBucketKeyEnabled"); + return this; + } /** * Set the versioning status on the bucket. By default, a bucket is created with versioning {@code Disabled}. Use this option to enable versioning during bucket creation. Objects in a version enabled bucket are protected from overwrites and deletions. Previous versions of the same object will be available in the bucket. * @@ -343,6 +368,7 @@ public CreateBucketDetails build() { this.freeformTags, this.definedTags, this.kmsKeyId, + this.isBucketKeyEnabled, this.versioning, this.autoTiering, this.bucketScope); @@ -381,6 +407,9 @@ public Builder copy(CreateBucketDetails model) { if (model.wasPropertyExplicitlySet("kmsKeyId")) { this.kmsKeyId(model.getKmsKeyId()); } + if (model.wasPropertyExplicitlySet("isBucketKeyEnabled")) { + this.isBucketKeyEnabled(model.getIsBucketKeyEnabled()); + } if (model.wasPropertyExplicitlySet("versioning")) { this.versioning(model.getVersioning()); } @@ -657,6 +686,26 @@ public String getKmsKeyId() { return kmsKeyId; } + /** + * Specifies whether Object Storage should use intermediate cached Bucket Encryption Keys with server-side + * encryption using KMS (SSE-KMS) for new objects in the bucket. This reduces calls to OCI Vault Key Management + * Service (KMS). Existing objects are not affected. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBucketKeyEnabled") + private final Boolean isBucketKeyEnabled; + + /** + * Specifies whether Object Storage should use intermediate cached Bucket Encryption Keys with server-side + * encryption using KMS (SSE-KMS) for new objects in the bucket. This reduces calls to OCI Vault Key Management + * Service (KMS). Existing objects are not affected. + * + * @return the value + **/ + public Boolean getIsBucketKeyEnabled() { + return isBucketKeyEnabled; + } + /** * Set the versioning status on the bucket. By default, a bucket is created with versioning {@code Disabled}. Use this option to enable versioning during bucket creation. Objects in a version enabled bucket are protected from overwrites and deletions. Previous versions of the same object will be available in the bucket. * @@ -778,6 +827,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", isBucketKeyEnabled=").append(String.valueOf(this.isBucketKeyEnabled)); sb.append(", versioning=").append(String.valueOf(this.versioning)); sb.append(", autoTiering=").append(String.valueOf(this.autoTiering)); sb.append(", bucketScope=").append(String.valueOf(this.bucketScope)); @@ -804,6 +854,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.isBucketKeyEnabled, other.isBucketKeyEnabled) && java.util.Objects.equals(this.versioning, other.versioning) && java.util.Objects.equals(this.autoTiering, other.autoTiering) && java.util.Objects.equals(this.bucketScope, other.bucketScope) @@ -831,6 +882,11 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.isBucketKeyEnabled == null + ? 43 + : this.isBucketKeyEnabled.hashCode()); result = (result * PRIME) + (this.versioning == null ? 43 : this.versioning.hashCode()); result = (result * PRIME) + (this.autoTiering == null ? 43 : this.autoTiering.hashCode()); result = (result * PRIME) + (this.bucketScope == null ? 43 : this.bucketScope.hashCode()); diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePrivateEndpointDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePrivateEndpointDetails.java index b04503fbfbd..eeb6ef6c5f4 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePrivateEndpointDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePrivateEndpointDetails.java @@ -33,7 +33,8 @@ public final class CreatePrivateEndpointDetails "nsgIds", "accessTargets", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public CreatePrivateEndpointDetails( String name, @@ -45,7 +46,8 @@ public CreatePrivateEndpointDetails( java.util.List nsgIds, java.util.List accessTargets, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.name = name; this.compartmentId = compartmentId; @@ -57,6 +59,7 @@ public CreatePrivateEndpointDetails( this.accessTargets = accessTargets; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -270,6 +273,31 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -286,7 +314,8 @@ public CreatePrivateEndpointDetails build() { this.nsgIds, this.accessTargets, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -325,6 +354,9 @@ public Builder copy(CreatePrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -528,6 +560,28 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -552,6 +606,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", accessTargets=").append(String.valueOf(this.accessTargets)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -576,6 +631,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.accessTargets, other.accessTargets) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -603,6 +659,11 @@ public int hashCode() { + (this.accessTargets == null ? 43 : this.accessTargets.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpoint.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpoint.java index 5cc5ae1ef65..1dacd241928 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpoint.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpoint.java @@ -38,6 +38,7 @@ public final class PrivateEndpoint extends com.oracle.bmc.http.internal.Explicit "accessTargets", "freeformTags", "definedTags", + "securityAttributes", "id" }) public PrivateEndpoint( @@ -58,6 +59,7 @@ public PrivateEndpoint( java.util.List accessTargets, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.Map> securityAttributes, String id) { super(); this.name = name; @@ -77,6 +79,7 @@ public PrivateEndpoint( this.accessTargets = accessTargets; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; this.id = id; } @@ -396,6 +399,31 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PrivateEndpoint. * @@ -438,6 +466,7 @@ public PrivateEndpoint build() { this.accessTargets, this.freeformTags, this.definedTags, + this.securityAttributes, this.id); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -498,6 +527,9 @@ public Builder copy(PrivateEndpoint model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } @@ -848,6 +880,28 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PrivateEndpoint. * @@ -895,6 +949,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", accessTargets=").append(String.valueOf(this.accessTargets)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", id=").append(String.valueOf(this.id)); sb.append(")"); return sb.toString(); @@ -927,6 +982,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.accessTargets, other.accessTargets) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.id, other.id) && super.equals(other); } @@ -964,6 +1020,11 @@ public int hashCode() { + (this.accessTargets == null ? 43 : this.accessTargets.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateBucketDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateBucketDetails.java index 1ee11261326..0b656bfae13 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateBucketDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateBucketDetails.java @@ -34,6 +34,7 @@ public final class UpdateBucketDetails extends com.oracle.bmc.http.internal.Expl "freeformTags", "definedTags", "kmsKeyId", + "isBucketKeyEnabled", "versioning", "autoTiering", "bucketScope" @@ -48,6 +49,7 @@ public UpdateBucketDetails( java.util.Map freeformTags, java.util.Map> definedTags, String kmsKeyId, + Boolean isBucketKeyEnabled, Versioning versioning, Bucket.AutoTiering autoTiering, Bucket.BucketScope bucketScope) { @@ -61,6 +63,7 @@ public UpdateBucketDetails( this.freeformTags = freeformTags; this.definedTags = definedTags; this.kmsKeyId = kmsKeyId; + this.isBucketKeyEnabled = isBucketKeyEnabled; this.versioning = versioning; this.autoTiering = autoTiering; this.bucketScope = bucketScope; @@ -253,6 +256,28 @@ public Builder kmsKeyId(String kmsKeyId) { this.__explicitlySet__.add("kmsKeyId"); return this; } + /** + * Specifies whether Object Storage should use intermediate cached Bucket Encryption Keys with server-side + * encryption using KMS (SSE-KMS) for new objects in the bucket. This reduces calls to OCI Vault Key Management + * Service (KMS). Existing objects are not affected. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBucketKeyEnabled") + private Boolean isBucketKeyEnabled; + + /** + * Specifies whether Object Storage should use intermediate cached Bucket Encryption Keys with server-side + * encryption using KMS (SSE-KMS) for new objects in the bucket. This reduces calls to OCI Vault Key Management + * Service (KMS). Existing objects are not affected. + * + * @param isBucketKeyEnabled the value to set + * @return this builder + **/ + public Builder isBucketKeyEnabled(Boolean isBucketKeyEnabled) { + this.isBucketKeyEnabled = isBucketKeyEnabled; + this.__explicitlySet__.add("isBucketKeyEnabled"); + return this; + } /** * The versioning status on the bucket. If in state {@code Enabled}, multiple versions of the same object can be kept in the bucket. * When the object is overwritten or deleted, previous versions will still be available. When versioning is {@code Suspended}, the previous versions will still remain but new versions will no longer be created when overwitten or deleted. @@ -345,6 +370,7 @@ public UpdateBucketDetails build() { this.freeformTags, this.definedTags, this.kmsKeyId, + this.isBucketKeyEnabled, this.versioning, this.autoTiering, this.bucketScope); @@ -383,6 +409,9 @@ public Builder copy(UpdateBucketDetails model) { if (model.wasPropertyExplicitlySet("kmsKeyId")) { this.kmsKeyId(model.getKmsKeyId()); } + if (model.wasPropertyExplicitlySet("isBucketKeyEnabled")) { + this.isBucketKeyEnabled(model.getIsBucketKeyEnabled()); + } if (model.wasPropertyExplicitlySet("versioning")) { this.versioning(model.getVersioning()); } @@ -613,6 +642,26 @@ public String getKmsKeyId() { return kmsKeyId; } + /** + * Specifies whether Object Storage should use intermediate cached Bucket Encryption Keys with server-side + * encryption using KMS (SSE-KMS) for new objects in the bucket. This reduces calls to OCI Vault Key Management + * Service (KMS). Existing objects are not affected. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isBucketKeyEnabled") + private final Boolean isBucketKeyEnabled; + + /** + * Specifies whether Object Storage should use intermediate cached Bucket Encryption Keys with server-side + * encryption using KMS (SSE-KMS) for new objects in the bucket. This reduces calls to OCI Vault Key Management + * Service (KMS). Existing objects are not affected. + * + * @return the value + **/ + public Boolean getIsBucketKeyEnabled() { + return isBucketKeyEnabled; + } + /** * The versioning status on the bucket. If in state {@code Enabled}, multiple versions of the same object can be kept in the bucket. * When the object is overwritten or deleted, previous versions will still be available. When versioning is {@code Suspended}, the previous versions will still remain but new versions will no longer be created when overwitten or deleted. @@ -744,6 +793,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", isBucketKeyEnabled=").append(String.valueOf(this.isBucketKeyEnabled)); sb.append(", versioning=").append(String.valueOf(this.versioning)); sb.append(", autoTiering=").append(String.valueOf(this.autoTiering)); sb.append(", bucketScope=").append(String.valueOf(this.bucketScope)); @@ -770,6 +820,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.isBucketKeyEnabled, other.isBucketKeyEnabled) && java.util.Objects.equals(this.versioning, other.versioning) && java.util.Objects.equals(this.autoTiering, other.autoTiering) && java.util.Objects.equals(this.bucketScope, other.bucketScope) @@ -797,6 +848,11 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.isBucketKeyEnabled == null + ? 43 + : this.isBucketKeyEnabled.hashCode()); result = (result * PRIME) + (this.versioning == null ? 43 : this.versioning.hashCode()); result = (result * PRIME) + (this.autoTiering == null ? 43 : this.autoTiering.hashCode()); result = (result * PRIME) + (this.bucketScope == null ? 43 : this.bucketScope.hashCode()); diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdatePrivateEndpointDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdatePrivateEndpointDetails.java index 5233cad0024..aef62034827 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdatePrivateEndpointDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdatePrivateEndpointDetails.java @@ -28,20 +28,23 @@ public final class UpdatePrivateEndpointDetails "namespace", "accessTargets", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public UpdatePrivateEndpointDetails( String name, String namespace, java.util.List accessTargets, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.name = name; this.namespace = namespace; this.accessTargets = accessTargets; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -147,6 +150,31 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -158,7 +186,8 @@ public UpdatePrivateEndpointDetails build() { this.namespace, this.accessTargets, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -182,6 +211,9 @@ public Builder copy(UpdatePrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -287,6 +319,28 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

+ * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -306,6 +360,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", accessTargets=").append(String.valueOf(this.accessTargets)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -325,6 +380,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.accessTargets, other.accessTargets) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -339,6 +395,11 @@ public int hashCode() { + (this.accessTargets == null ? 43 : this.accessTargets.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ReencryptBucketRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ReencryptBucketRequest.java index 7112899fc05..97aec74fc23 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ReencryptBucketRequest.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ReencryptBucketRequest.java @@ -37,6 +37,17 @@ public String getNamespaceName() { public String getBucketName() { return bucketName; } + /** + * If true, reencrypt only the intermediate bucket keys and skip everything else in the bucket. + */ + private Boolean isReencryptBucketKeyOnly; + + /** + * If true, reencrypt only the intermediate bucket keys and skip everything else in the bucket. + */ + public Boolean getIsReencryptBucketKeyOnly() { + return isReencryptBucketKeyOnly; + } /** * The client request ID for tracing. */ @@ -90,6 +101,21 @@ public Builder bucketName(String bucketName) { return this; } + /** + * If true, reencrypt only the intermediate bucket keys and skip everything else in the bucket. + */ + private Boolean isReencryptBucketKeyOnly = null; + + /** + * If true, reencrypt only the intermediate bucket keys and skip everything else in the bucket. + * @param isReencryptBucketKeyOnly the value to set + * @return this builder instance + */ + public Builder isReencryptBucketKeyOnly(Boolean isReencryptBucketKeyOnly) { + this.isReencryptBucketKeyOnly = isReencryptBucketKeyOnly; + return this; + } + /** * The client request ID for tracing. */ @@ -135,6 +161,7 @@ public Builder retryConfiguration( public Builder copy(ReencryptBucketRequest o) { namespaceName(o.getNamespaceName()); bucketName(o.getBucketName()); + isReencryptBucketKeyOnly(o.getIsReencryptBucketKeyOnly()); opcClientRequestId(o.getOpcClientRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -170,9 +197,10 @@ public ReencryptBucketRequest buildWithoutInvocationCallback() { ReencryptBucketRequest request = new ReencryptBucketRequest(); request.namespaceName = namespaceName; request.bucketName = bucketName; + request.isReencryptBucketKeyOnly = isReencryptBucketKeyOnly; request.opcClientRequestId = opcClientRequestId; return request; - // new ReencryptBucketRequest(namespaceName, bucketName, opcClientRequestId); + // new ReencryptBucketRequest(namespaceName, bucketName, isReencryptBucketKeyOnly, opcClientRequestId); } } @@ -184,6 +212,7 @@ public Builder toBuilder() { return new Builder() .namespaceName(namespaceName) .bucketName(bucketName) + .isReencryptBucketKeyOnly(isReencryptBucketKeyOnly) .opcClientRequestId(opcClientRequestId); } @@ -202,6 +231,8 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",namespaceName=").append(String.valueOf(this.namespaceName)); sb.append(",bucketName=").append(String.valueOf(this.bucketName)); + sb.append(",isReencryptBucketKeyOnly=") + .append(String.valueOf(this.isReencryptBucketKeyOnly)); sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); sb.append(")"); return sb.toString(); @@ -220,6 +251,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.namespaceName, other.namespaceName) && java.util.Objects.equals(this.bucketName, other.bucketName) + && java.util.Objects.equals( + this.isReencryptBucketKeyOnly, other.isReencryptBucketKeyOnly) && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); } @@ -231,6 +264,11 @@ public int hashCode() { (result * PRIME) + (this.namespaceName == null ? 43 : this.namespaceName.hashCode()); result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + result = + (result * PRIME) + + (this.isReencryptBucketKeyOnly == null + ? 43 + : this.isReencryptBucketKeyOnly.hashCode()); result = (result * PRIME) + (this.opcClientRequestId == null diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/GetObjectResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/GetObjectResponse.java index 1309dacaeb4..daf93860f29 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/GetObjectResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/GetObjectResponse.java @@ -237,6 +237,19 @@ public String getOpcMultipartSha384() { return opcMultipartSha384; } + /** + * True if bucket key was enabled and used to encrypt the object during upload or reencrypt. + */ + private Boolean opcBucketKeyEnabled; + + /** + * True if bucket key was enabled and used to encrypt the object during upload or reencrypt. + * @return the value + */ + public Boolean getOpcBucketKeyEnabled() { + return opcBucketKeyEnabled; + } + /** * Content-Type header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.17). */ @@ -432,6 +445,7 @@ public boolean isNotModified() { "opcMultipartSha256", "opcContentSha384", "opcMultipartSha384", + "opcBucketKeyEnabled", "contentType", "contentLanguage", "contentEncoding", @@ -462,6 +476,7 @@ private GetObjectResponse( String opcMultipartSha256, String opcContentSha384, String opcMultipartSha384, + Boolean opcBucketKeyEnabled, String contentType, String contentLanguage, String contentEncoding, @@ -489,6 +504,7 @@ private GetObjectResponse( this.opcMultipartSha256 = opcMultipartSha256; this.opcContentSha384 = opcContentSha384; this.opcMultipartSha384 = opcMultipartSha384; + this.opcBucketKeyEnabled = opcBucketKeyEnabled; this.contentType = contentType; this.contentLanguage = contentLanguage; this.contentEncoding = contentEncoding; @@ -774,6 +790,21 @@ public Builder opcMultipartSha384(String opcMultipartSha384) { return this; } + /** + * True if bucket key was enabled and used to encrypt the object during upload or reencrypt. + */ + private Boolean opcBucketKeyEnabled; + + /** + * True if bucket key was enabled and used to encrypt the object during upload or reencrypt. + * @param opcBucketKeyEnabled the value to set + * @return this builder + */ + public Builder opcBucketKeyEnabled(Boolean opcBucketKeyEnabled) { + this.opcBucketKeyEnabled = opcBucketKeyEnabled; + return this; + } + /** * Content-Type header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.17). */ @@ -998,6 +1029,7 @@ public Builder copy(GetObjectResponse o) { opcMultipartSha256(o.getOpcMultipartSha256()); opcContentSha384(o.getOpcContentSha384()); opcMultipartSha384(o.getOpcMultipartSha384()); + opcBucketKeyEnabled(o.getOpcBucketKeyEnabled()); contentType(o.getContentType()); contentLanguage(o.getContentLanguage()); contentEncoding(o.getContentEncoding()); @@ -1035,6 +1067,7 @@ public GetObjectResponse build() { opcMultipartSha256, opcContentSha384, opcMultipartSha384, + opcBucketKeyEnabled, contentType, contentLanguage, contentEncoding, @@ -1077,6 +1110,7 @@ public String toString() { sb.append(",opcMultipartSha256=").append(String.valueOf(opcMultipartSha256)); sb.append(",opcContentSha384=").append(String.valueOf(opcContentSha384)); sb.append(",opcMultipartSha384=").append(String.valueOf(opcMultipartSha384)); + sb.append(",opcBucketKeyEnabled=").append(String.valueOf(opcBucketKeyEnabled)); sb.append(",contentType=").append(String.valueOf(contentType)); sb.append(",contentLanguage=").append(String.valueOf(contentLanguage)); sb.append(",contentEncoding=").append(String.valueOf(contentEncoding)); @@ -1118,6 +1152,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.opcMultipartSha256, other.opcMultipartSha256) && java.util.Objects.equals(this.opcContentSha384, other.opcContentSha384) && java.util.Objects.equals(this.opcMultipartSha384, other.opcMultipartSha384) + && java.util.Objects.equals(this.opcBucketKeyEnabled, other.opcBucketKeyEnabled) && java.util.Objects.equals(this.contentType, other.contentType) && java.util.Objects.equals(this.contentLanguage, other.contentLanguage) && java.util.Objects.equals(this.contentEncoding, other.contentEncoding) @@ -1172,6 +1207,11 @@ public int hashCode() { + (this.opcMultipartSha384 == null ? 43 : this.opcMultipartSha384.hashCode()); + result = + (result * PRIME) + + (this.opcBucketKeyEnabled == null + ? 43 + : this.opcBucketKeyEnabled.hashCode()); result = (result * PRIME) + (this.contentType == null ? 43 : this.contentType.hashCode()); result = (result * PRIME) diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/HeadObjectResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/HeadObjectResponse.java index b62b3fd50a3..e571df2ec97 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/HeadObjectResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/HeadObjectResponse.java @@ -224,6 +224,19 @@ public String getOpcMultipartSha384() { return opcMultipartSha384; } + /** + * True if bucket key was enabled and used to encrypt the object during upload or reencrypt. + */ + private Boolean opcBucketKeyEnabled; + + /** + * True if bucket key was enabled and used to encrypt the object during upload or reencrypt. + * @return the value + */ + public Boolean getOpcBucketKeyEnabled() { + return opcBucketKeyEnabled; + } + /** * Content-Type header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.17). */ @@ -388,6 +401,7 @@ public boolean isNotModified() { "opcMultipartSha256", "opcContentSha384", "opcMultipartSha384", + "opcBucketKeyEnabled", "contentType", "contentLanguage", "contentEncoding", @@ -415,6 +429,7 @@ private HeadObjectResponse( String opcMultipartSha256, String opcContentSha384, String opcMultipartSha384, + Boolean opcBucketKeyEnabled, String contentType, String contentLanguage, String contentEncoding, @@ -439,6 +454,7 @@ private HeadObjectResponse( this.opcMultipartSha256 = opcMultipartSha256; this.opcContentSha384 = opcContentSha384; this.opcMultipartSha384 = opcMultipartSha384; + this.opcBucketKeyEnabled = opcBucketKeyEnabled; this.contentType = contentType; this.contentLanguage = contentLanguage; this.contentEncoding = contentEncoding; @@ -707,6 +723,21 @@ public Builder opcMultipartSha384(String opcMultipartSha384) { return this; } + /** + * True if bucket key was enabled and used to encrypt the object during upload or reencrypt. + */ + private Boolean opcBucketKeyEnabled; + + /** + * True if bucket key was enabled and used to encrypt the object during upload or reencrypt. + * @param opcBucketKeyEnabled the value to set + * @return this builder + */ + public Builder opcBucketKeyEnabled(Boolean opcBucketKeyEnabled) { + this.opcBucketKeyEnabled = opcBucketKeyEnabled; + return this; + } + /** * Content-Type header, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.17). */ @@ -896,6 +927,7 @@ public Builder copy(HeadObjectResponse o) { opcMultipartSha256(o.getOpcMultipartSha256()); opcContentSha384(o.getOpcContentSha384()); opcMultipartSha384(o.getOpcMultipartSha384()); + opcBucketKeyEnabled(o.getOpcBucketKeyEnabled()); contentType(o.getContentType()); contentLanguage(o.getContentLanguage()); contentEncoding(o.getContentEncoding()); @@ -931,6 +963,7 @@ public HeadObjectResponse build() { opcMultipartSha256, opcContentSha384, opcMultipartSha384, + opcBucketKeyEnabled, contentType, contentLanguage, contentEncoding, @@ -970,6 +1003,7 @@ public String toString() { sb.append(",opcMultipartSha256=").append(String.valueOf(opcMultipartSha256)); sb.append(",opcContentSha384=").append(String.valueOf(opcContentSha384)); sb.append(",opcMultipartSha384=").append(String.valueOf(opcMultipartSha384)); + sb.append(",opcBucketKeyEnabled=").append(String.valueOf(opcBucketKeyEnabled)); sb.append(",contentType=").append(String.valueOf(contentType)); sb.append(",contentLanguage=").append(String.valueOf(contentLanguage)); sb.append(",contentEncoding=").append(String.valueOf(contentEncoding)); @@ -1008,6 +1042,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.opcMultipartSha256, other.opcMultipartSha256) && java.util.Objects.equals(this.opcContentSha384, other.opcContentSha384) && java.util.Objects.equals(this.opcMultipartSha384, other.opcMultipartSha384) + && java.util.Objects.equals(this.opcBucketKeyEnabled, other.opcBucketKeyEnabled) && java.util.Objects.equals(this.contentType, other.contentType) && java.util.Objects.equals(this.contentLanguage, other.contentLanguage) && java.util.Objects.equals(this.contentEncoding, other.contentEncoding) @@ -1059,6 +1094,11 @@ public int hashCode() { + (this.opcMultipartSha384 == null ? 43 : this.opcMultipartSha384.hashCode()); + result = + (result * PRIME) + + (this.opcBucketKeyEnabled == null + ? 43 + : this.opcBucketKeyEnabled.hashCode()); result = (result * PRIME) + (this.contentType == null ? 43 : this.contentType.hashCode()); result = (result * PRIME) diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 08f6001746b..98f6bc2a823 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index 2decd6a526b..1620634efb7 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-oce @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index a1bd427d1f7..0b7bae927b4 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index e162fcd2d2f..b504c481b69 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-ocvp @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index a4412069eeb..3af83913173 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-oda @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOdaPrivateEndpointDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOdaPrivateEndpointDetails.java index 3966413f25c..f945fc8a374 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOdaPrivateEndpointDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOdaPrivateEndpointDetails.java @@ -29,7 +29,8 @@ public final class CreateOdaPrivateEndpointDetails "subnetId", "nsgIds", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public CreateOdaPrivateEndpointDetails( String displayName, @@ -38,7 +39,8 @@ public CreateOdaPrivateEndpointDetails( String subnetId, java.util.List nsgIds, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.description = description; @@ -47,6 +49,7 @@ public CreateOdaPrivateEndpointDetails( this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -176,6 +179,29 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -189,7 +215,8 @@ public CreateOdaPrivateEndpointDetails build() { this.subnetId, this.nsgIds, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -219,6 +246,9 @@ public Builder copy(CreateOdaPrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -344,6 +374,26 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -365,6 +415,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -386,6 +437,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -402,6 +454,11 @@ public int hashCode() { result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpoint.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpoint.java index ff67f26a9f0..8143323309e 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpoint.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpoint.java @@ -32,6 +32,7 @@ public final class OdaPrivateEndpoint extends com.oracle.bmc.http.internal.Expli "lifecycleState", "subnetId", "nsgIds", + "securityAttributes", "freeformTags", "definedTags" }) @@ -45,6 +46,7 @@ public OdaPrivateEndpoint( LifecycleState lifecycleState, String subnetId, java.util.List nsgIds, + java.util.Map> securityAttributes, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -57,6 +59,7 @@ public OdaPrivateEndpoint( this.lifecycleState = lifecycleState; this.subnetId = subnetId; this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -211,6 +214,29 @@ public Builder nsgIds(java.util.List nsgIds) { this.__explicitlySet__.add("nsgIds"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type, or scope. * Example: {@code {"bar-key": "value"}} @@ -268,6 +294,7 @@ public OdaPrivateEndpoint build() { this.lifecycleState, this.subnetId, this.nsgIds, + this.securityAttributes, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -305,6 +332,9 @@ public Builder copy(OdaPrivateEndpoint model) { if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -508,6 +538,26 @@ public java.util.List getNsgIds() { return nsgIds; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * Simple key-value pair that is applied without any predefined name, type, or scope. * Example: {@code {"bar-key": "value"}} @@ -567,6 +617,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -592,6 +643,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -614,6 +666,11 @@ public int hashCode() { + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpointSummary.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpointSummary.java index 1a90fd02454..5fd43367554 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpointSummary.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/OdaPrivateEndpointSummary.java @@ -31,7 +31,8 @@ public final class OdaPrivateEndpointSummary "timeUpdated", "lifecycleState", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public OdaPrivateEndpointSummary( String id, @@ -42,7 +43,8 @@ public OdaPrivateEndpointSummary( java.util.Date timeUpdated, OdaPrivateEndpoint.LifecycleState lifecycleState, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.displayName = displayName; @@ -53,6 +55,7 @@ public OdaPrivateEndpointSummary( this.lifecycleState = lifecycleState; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -214,6 +217,29 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -229,7 +255,8 @@ public OdaPrivateEndpointSummary build() { this.timeUpdated, this.lifecycleState, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -265,6 +292,9 @@ public Builder copy(OdaPrivateEndpointSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -418,6 +448,26 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -441,6 +491,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -464,6 +515,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -484,6 +536,11 @@ public int hashCode() { + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/ParameterDefinition.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/ParameterDefinition.java index 4a70b3236db..533b12140ee 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/ParameterDefinition.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/ParameterDefinition.java @@ -358,6 +358,7 @@ public enum Type { Url("URL"), Number("NUMBER"), Boolean("BOOLEAN"), + ParameterizedString("PARAMETERIZED_STRING"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOdaPrivateEndpointDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOdaPrivateEndpointDetails.java index 918ba4f9422..a44e6e68a4c 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOdaPrivateEndpointDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOdaPrivateEndpointDetails.java @@ -27,20 +27,23 @@ public final class UpdateOdaPrivateEndpointDetails "description", "nsgIds", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public UpdateOdaPrivateEndpointDetails( String displayName, String description, java.util.List nsgIds, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.description = description; this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -138,6 +141,29 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + **/ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -149,7 +175,8 @@ public UpdateOdaPrivateEndpointDetails build() { this.description, this.nsgIds, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -173,6 +200,9 @@ public Builder copy(UpdateOdaPrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -270,6 +300,26 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -289,6 +339,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -308,6 +359,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -320,6 +372,11 @@ public int hashCode() { result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index db7e618b1b8..ae818928be1 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-onesubscription @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 07eec95ab11..7f595078684 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-ons @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index 231f4fac3b2..a6730920a00 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-opa @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index b76699e69fb..fd943652578 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-opensearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CoordinatorNodeHostType.java b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CoordinatorNodeHostType.java new file mode 100644 index 00000000000..1577e2c9f52 --- /dev/null +++ b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CoordinatorNodeHostType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.opensearch.model; + +/** + * The instance type for the cluster's coordinator nodes. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +public enum CoordinatorNodeHostType { + Flex("FLEX"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CoordinatorNodeHostType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CoordinatorNodeHostType v : CoordinatorNodeHostType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CoordinatorNodeHostType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CoordinatorNodeHostType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CoordinatorNodeHostType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CreateOpensearchClusterDetails.java b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CreateOpensearchClusterDetails.java index 7a089d142c4..30ed113d7ba 100644 --- a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CreateOpensearchClusterDetails.java +++ b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CreateOpensearchClusterDetails.java @@ -49,6 +49,11 @@ public final class CreateOpensearchClusterDetails "searchNodeHostOcpuCount", "searchNodeHostMemoryGB", "searchNodeStorageGB", + "coordinatorNodeCount", + "coordinatorNodeHostType", + "coordinatorNodeHostShape", + "coordinatorNodeHostOcpuCount", + "coordinatorNodeHostMemoryGB", "mlNodeCount", "mlNodeHostType", "mlNodeHostShape", @@ -103,6 +108,11 @@ public CreateOpensearchClusterDetails( Integer searchNodeHostOcpuCount, Integer searchNodeHostMemoryGB, Integer searchNodeStorageGB, + Integer coordinatorNodeCount, + CoordinatorNodeHostType coordinatorNodeHostType, + String coordinatorNodeHostShape, + Integer coordinatorNodeHostOcpuCount, + Integer coordinatorNodeHostMemoryGB, Integer mlNodeCount, MlNodeHostType mlNodeHostType, String mlNodeHostShape, @@ -156,6 +166,11 @@ public CreateOpensearchClusterDetails( this.searchNodeHostOcpuCount = searchNodeHostOcpuCount; this.searchNodeHostMemoryGB = searchNodeHostMemoryGB; this.searchNodeStorageGB = searchNodeStorageGB; + this.coordinatorNodeCount = coordinatorNodeCount; + this.coordinatorNodeHostType = coordinatorNodeHostType; + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; this.mlNodeCount = mlNodeCount; this.mlNodeHostType = mlNodeHostType; this.mlNodeHostShape = mlNodeHostShape; @@ -602,6 +617,86 @@ public Builder searchNodeStorageGB(Integer searchNodeStorageGB) { this.__explicitlySet__.add("searchNodeStorageGB"); return this; } + /** + * The number of coordinator nodes configured for the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private Integer coordinatorNodeCount; + + /** + * The number of coordinator nodes configured for the cluster. + * @param coordinatorNodeCount the value to set + * @return this builder + **/ + public Builder coordinatorNodeCount(Integer coordinatorNodeCount) { + this.coordinatorNodeCount = coordinatorNodeCount; + this.__explicitlySet__.add("coordinatorNodeCount"); + return this; + } + /** + * The instance type for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostType") + private CoordinatorNodeHostType coordinatorNodeHostType; + + /** + * The instance type for the cluster's coordinator nodes. + * @param coordinatorNodeHostType the value to set + * @return this builder + **/ + public Builder coordinatorNodeHostType(CoordinatorNodeHostType coordinatorNodeHostType) { + this.coordinatorNodeHostType = coordinatorNodeHostType; + this.__explicitlySet__.add("coordinatorNodeHostType"); + return this; + } + /** + * The node shape for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * @param coordinatorNodeHostShape the value to set + * @return this builder + **/ + public Builder coordinatorNodeHostShape(String coordinatorNodeHostShape) { + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.__explicitlySet__.add("coordinatorNodeHostShape"); + return this; + } + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * @param coordinatorNodeHostOcpuCount the value to set + * @return this builder + **/ + public Builder coordinatorNodeHostOcpuCount(Integer coordinatorNodeHostOcpuCount) { + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.__explicitlySet__.add("coordinatorNodeHostOcpuCount"); + return this; + } + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * @param coordinatorNodeHostMemoryGB the value to set + * @return this builder + **/ + public Builder coordinatorNodeHostMemoryGB(Integer coordinatorNodeHostMemoryGB) { + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; + this.__explicitlySet__.add("coordinatorNodeHostMemoryGB"); + return this; + } /** * The number of ML nodes configured for the cluster. **/ @@ -1032,6 +1127,11 @@ public CreateOpensearchClusterDetails build() { this.searchNodeHostOcpuCount, this.searchNodeHostMemoryGB, this.searchNodeStorageGB, + this.coordinatorNodeCount, + this.coordinatorNodeHostType, + this.coordinatorNodeHostShape, + this.coordinatorNodeHostOcpuCount, + this.coordinatorNodeHostMemoryGB, this.mlNodeCount, this.mlNodeHostType, this.mlNodeHostShape, @@ -1144,6 +1244,21 @@ public Builder copy(CreateOpensearchClusterDetails model) { if (model.wasPropertyExplicitlySet("searchNodeStorageGB")) { this.searchNodeStorageGB(model.getSearchNodeStorageGB()); } + if (model.wasPropertyExplicitlySet("coordinatorNodeCount")) { + this.coordinatorNodeCount(model.getCoordinatorNodeCount()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostType")) { + this.coordinatorNodeHostType(model.getCoordinatorNodeHostType()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostShape")) { + this.coordinatorNodeHostShape(model.getCoordinatorNodeHostShape()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostOcpuCount")) { + this.coordinatorNodeHostOcpuCount(model.getCoordinatorNodeHostOcpuCount()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostMemoryGB")) { + this.coordinatorNodeHostMemoryGB(model.getCoordinatorNodeHostMemoryGB()); + } if (model.wasPropertyExplicitlySet("mlNodeCount")) { this.mlNodeCount(model.getMlNodeCount()); } @@ -1602,6 +1717,76 @@ public Integer getSearchNodeStorageGB() { return searchNodeStorageGB; } + /** + * The number of coordinator nodes configured for the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private final Integer coordinatorNodeCount; + + /** + * The number of coordinator nodes configured for the cluster. + * @return the value + **/ + public Integer getCoordinatorNodeCount() { + return coordinatorNodeCount; + } + + /** + * The instance type for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostType") + private final CoordinatorNodeHostType coordinatorNodeHostType; + + /** + * The instance type for the cluster's coordinator nodes. + * @return the value + **/ + public CoordinatorNodeHostType getCoordinatorNodeHostType() { + return coordinatorNodeHostType; + } + + /** + * The node shape for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private final String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * @return the value + **/ + public String getCoordinatorNodeHostShape() { + return coordinatorNodeHostShape; + } + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private final Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * @return the value + **/ + public Integer getCoordinatorNodeHostOcpuCount() { + return coordinatorNodeHostOcpuCount; + } + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private final Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * @return the value + **/ + public Integer getCoordinatorNodeHostMemoryGB() { + return coordinatorNodeHostMemoryGB; + } + /** * The number of ML nodes configured for the cluster. **/ @@ -1991,6 +2176,15 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.searchNodeHostOcpuCount)); sb.append(", searchNodeHostMemoryGB=").append(String.valueOf(this.searchNodeHostMemoryGB)); sb.append(", searchNodeStorageGB=").append(String.valueOf(this.searchNodeStorageGB)); + sb.append(", coordinatorNodeCount=").append(String.valueOf(this.coordinatorNodeCount)); + sb.append(", coordinatorNodeHostType=") + .append(String.valueOf(this.coordinatorNodeHostType)); + sb.append(", coordinatorNodeHostShape=") + .append(String.valueOf(this.coordinatorNodeHostShape)); + sb.append(", coordinatorNodeHostOcpuCount=") + .append(String.valueOf(this.coordinatorNodeHostOcpuCount)); + sb.append(", coordinatorNodeHostMemoryGB=") + .append(String.valueOf(this.coordinatorNodeHostMemoryGB)); sb.append(", mlNodeCount=").append(String.valueOf(this.mlNodeCount)); sb.append(", mlNodeHostType=").append(String.valueOf(this.mlNodeHostType)); sb.append(", mlNodeHostShape=").append(String.valueOf(this.mlNodeHostShape)); @@ -2069,6 +2263,15 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.searchNodeHostMemoryGB, other.searchNodeHostMemoryGB) && java.util.Objects.equals(this.searchNodeStorageGB, other.searchNodeStorageGB) + && java.util.Objects.equals(this.coordinatorNodeCount, other.coordinatorNodeCount) + && java.util.Objects.equals( + this.coordinatorNodeHostType, other.coordinatorNodeHostType) + && java.util.Objects.equals( + this.coordinatorNodeHostShape, other.coordinatorNodeHostShape) + && java.util.Objects.equals( + this.coordinatorNodeHostOcpuCount, other.coordinatorNodeHostOcpuCount) + && java.util.Objects.equals( + this.coordinatorNodeHostMemoryGB, other.coordinatorNodeHostMemoryGB) && java.util.Objects.equals(this.mlNodeCount, other.mlNodeCount) && java.util.Objects.equals(this.mlNodeHostType, other.mlNodeHostType) && java.util.Objects.equals(this.mlNodeHostShape, other.mlNodeHostShape) @@ -2216,6 +2419,31 @@ public int hashCode() { + (this.searchNodeStorageGB == null ? 43 : this.searchNodeStorageGB.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeCount == null + ? 43 + : this.coordinatorNodeCount.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostType == null + ? 43 + : this.coordinatorNodeHostType.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostShape == null + ? 43 + : this.coordinatorNodeHostShape.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostOcpuCount == null + ? 43 + : this.coordinatorNodeHostOcpuCount.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostMemoryGB == null + ? 43 + : this.coordinatorNodeHostMemoryGB.hashCode()); result = (result * PRIME) + (this.mlNodeCount == null ? 43 : this.mlNodeCount.hashCode()); result = (result * PRIME) diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/OpensearchCluster.java b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/OpensearchCluster.java index b9679646c90..15204fee363 100644 --- a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/OpensearchCluster.java +++ b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/OpensearchCluster.java @@ -61,6 +61,11 @@ public final class OpensearchCluster extends com.oracle.bmc.http.internal.Explic "searchNodeHostOcpuCount", "searchNodeHostMemoryGB", "searchNodeStorageGB", + "coordinatorNodeCount", + "coordinatorNodeHostType", + "coordinatorNodeHostShape", + "coordinatorNodeHostOcpuCount", + "coordinatorNodeHostMemoryGB", "mlNodeCount", "mlNodeHostType", "mlNodeHostShape", @@ -129,6 +134,11 @@ public OpensearchCluster( Integer searchNodeHostOcpuCount, Integer searchNodeHostMemoryGB, Integer searchNodeStorageGB, + Integer coordinatorNodeCount, + CoordinatorNodeHostType coordinatorNodeHostType, + String coordinatorNodeHostShape, + Integer coordinatorNodeHostOcpuCount, + Integer coordinatorNodeHostMemoryGB, Integer mlNodeCount, MlNodeHostType mlNodeHostType, String mlNodeHostShape, @@ -196,6 +206,11 @@ public OpensearchCluster( this.searchNodeHostOcpuCount = searchNodeHostOcpuCount; this.searchNodeHostMemoryGB = searchNodeHostMemoryGB; this.searchNodeStorageGB = searchNodeStorageGB; + this.coordinatorNodeCount = coordinatorNodeCount; + this.coordinatorNodeHostType = coordinatorNodeHostType; + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; this.mlNodeCount = mlNodeCount; this.mlNodeHostType = mlNodeHostType; this.mlNodeHostShape = mlNodeHostShape; @@ -843,6 +858,86 @@ public Builder searchNodeStorageGB(Integer searchNodeStorageGB) { this.__explicitlySet__.add("searchNodeStorageGB"); return this; } + /** + * The number of coordinator nodes configured for the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private Integer coordinatorNodeCount; + + /** + * The number of coordinator nodes configured for the cluster. + * @param coordinatorNodeCount the value to set + * @return this builder + **/ + public Builder coordinatorNodeCount(Integer coordinatorNodeCount) { + this.coordinatorNodeCount = coordinatorNodeCount; + this.__explicitlySet__.add("coordinatorNodeCount"); + return this; + } + /** + * The instance type for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostType") + private CoordinatorNodeHostType coordinatorNodeHostType; + + /** + * The instance type for the cluster's coordinator nodes. + * @param coordinatorNodeHostType the value to set + * @return this builder + **/ + public Builder coordinatorNodeHostType(CoordinatorNodeHostType coordinatorNodeHostType) { + this.coordinatorNodeHostType = coordinatorNodeHostType; + this.__explicitlySet__.add("coordinatorNodeHostType"); + return this; + } + /** + * The node shape for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * @param coordinatorNodeHostShape the value to set + * @return this builder + **/ + public Builder coordinatorNodeHostShape(String coordinatorNodeHostShape) { + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.__explicitlySet__.add("coordinatorNodeHostShape"); + return this; + } + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * @param coordinatorNodeHostOcpuCount the value to set + * @return this builder + **/ + public Builder coordinatorNodeHostOcpuCount(Integer coordinatorNodeHostOcpuCount) { + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.__explicitlySet__.add("coordinatorNodeHostOcpuCount"); + return this; + } + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * @param coordinatorNodeHostMemoryGB the value to set + * @return this builder + **/ + public Builder coordinatorNodeHostMemoryGB(Integer coordinatorNodeHostMemoryGB) { + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; + this.__explicitlySet__.add("coordinatorNodeHostMemoryGB"); + return this; + } /** * The number of ML nodes configured for the cluster. **/ @@ -1311,6 +1406,11 @@ public OpensearchCluster build() { this.searchNodeHostOcpuCount, this.searchNodeHostMemoryGB, this.searchNodeStorageGB, + this.coordinatorNodeCount, + this.coordinatorNodeHostType, + this.coordinatorNodeHostShape, + this.coordinatorNodeHostOcpuCount, + this.coordinatorNodeHostMemoryGB, this.mlNodeCount, this.mlNodeHostType, this.mlNodeHostShape, @@ -1459,6 +1559,21 @@ public Builder copy(OpensearchCluster model) { if (model.wasPropertyExplicitlySet("searchNodeStorageGB")) { this.searchNodeStorageGB(model.getSearchNodeStorageGB()); } + if (model.wasPropertyExplicitlySet("coordinatorNodeCount")) { + this.coordinatorNodeCount(model.getCoordinatorNodeCount()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostType")) { + this.coordinatorNodeHostType(model.getCoordinatorNodeHostType()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostShape")) { + this.coordinatorNodeHostShape(model.getCoordinatorNodeHostShape()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostOcpuCount")) { + this.coordinatorNodeHostOcpuCount(model.getCoordinatorNodeHostOcpuCount()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostMemoryGB")) { + this.coordinatorNodeHostMemoryGB(model.getCoordinatorNodeHostMemoryGB()); + } if (model.wasPropertyExplicitlySet("mlNodeCount")) { this.mlNodeCount(model.getMlNodeCount()); } @@ -2152,6 +2267,76 @@ public Integer getSearchNodeStorageGB() { return searchNodeStorageGB; } + /** + * The number of coordinator nodes configured for the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private final Integer coordinatorNodeCount; + + /** + * The number of coordinator nodes configured for the cluster. + * @return the value + **/ + public Integer getCoordinatorNodeCount() { + return coordinatorNodeCount; + } + + /** + * The instance type for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostType") + private final CoordinatorNodeHostType coordinatorNodeHostType; + + /** + * The instance type for the cluster's coordinator nodes. + * @return the value + **/ + public CoordinatorNodeHostType getCoordinatorNodeHostType() { + return coordinatorNodeHostType; + } + + /** + * The node shape for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private final String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * @return the value + **/ + public String getCoordinatorNodeHostShape() { + return coordinatorNodeHostShape; + } + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private final Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * @return the value + **/ + public Integer getCoordinatorNodeHostOcpuCount() { + return coordinatorNodeHostOcpuCount; + } + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private final Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * @return the value + **/ + public Integer getCoordinatorNodeHostMemoryGB() { + return coordinatorNodeHostMemoryGB; + } + /** * The number of ML nodes configured for the cluster. **/ @@ -2571,6 +2756,15 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.searchNodeHostOcpuCount)); sb.append(", searchNodeHostMemoryGB=").append(String.valueOf(this.searchNodeHostMemoryGB)); sb.append(", searchNodeStorageGB=").append(String.valueOf(this.searchNodeStorageGB)); + sb.append(", coordinatorNodeCount=").append(String.valueOf(this.coordinatorNodeCount)); + sb.append(", coordinatorNodeHostType=") + .append(String.valueOf(this.coordinatorNodeHostType)); + sb.append(", coordinatorNodeHostShape=") + .append(String.valueOf(this.coordinatorNodeHostShape)); + sb.append(", coordinatorNodeHostOcpuCount=") + .append(String.valueOf(this.coordinatorNodeHostOcpuCount)); + sb.append(", coordinatorNodeHostMemoryGB=") + .append(String.valueOf(this.coordinatorNodeHostMemoryGB)); sb.append(", mlNodeCount=").append(String.valueOf(this.mlNodeCount)); sb.append(", mlNodeHostType=").append(String.valueOf(this.mlNodeHostType)); sb.append(", mlNodeHostShape=").append(String.valueOf(this.mlNodeHostShape)); @@ -2664,6 +2858,15 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.searchNodeHostMemoryGB, other.searchNodeHostMemoryGB) && java.util.Objects.equals(this.searchNodeStorageGB, other.searchNodeStorageGB) + && java.util.Objects.equals(this.coordinatorNodeCount, other.coordinatorNodeCount) + && java.util.Objects.equals( + this.coordinatorNodeHostType, other.coordinatorNodeHostType) + && java.util.Objects.equals( + this.coordinatorNodeHostShape, other.coordinatorNodeHostShape) + && java.util.Objects.equals( + this.coordinatorNodeHostOcpuCount, other.coordinatorNodeHostOcpuCount) + && java.util.Objects.equals( + this.coordinatorNodeHostMemoryGB, other.coordinatorNodeHostMemoryGB) && java.util.Objects.equals(this.mlNodeCount, other.mlNodeCount) && java.util.Objects.equals(this.mlNodeHostType, other.mlNodeHostType) && java.util.Objects.equals(this.mlNodeHostShape, other.mlNodeHostShape) @@ -2836,6 +3039,31 @@ public int hashCode() { + (this.searchNodeStorageGB == null ? 43 : this.searchNodeStorageGB.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeCount == null + ? 43 + : this.coordinatorNodeCount.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostType == null + ? 43 + : this.coordinatorNodeHostType.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostShape == null + ? 43 + : this.coordinatorNodeHostShape.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostOcpuCount == null + ? 43 + : this.coordinatorNodeHostOcpuCount.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostMemoryGB == null + ? 43 + : this.coordinatorNodeHostMemoryGB.hashCode()); result = (result * PRIME) + (this.mlNodeCount == null ? 43 : this.mlNodeCount.hashCode()); result = (result * PRIME) diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterHorizontalDetails.java b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterHorizontalDetails.java index 821e2d5cbd3..fa2b113ad2f 100644 --- a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterHorizontalDetails.java +++ b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterHorizontalDetails.java @@ -27,6 +27,7 @@ public final class ResizeOpensearchClusterHorizontalDetails "dataNodeCount", "opendashboardNodeCount", "searchNodeCount", + "coordinatorNodeCount", "mlNodeCount", "freeformTags", "definedTags" @@ -36,6 +37,7 @@ public ResizeOpensearchClusterHorizontalDetails( Integer dataNodeCount, Integer opendashboardNodeCount, Integer searchNodeCount, + Integer coordinatorNodeCount, Integer mlNodeCount, java.util.Map freeformTags, java.util.Map> definedTags) { @@ -44,6 +46,7 @@ public ResizeOpensearchClusterHorizontalDetails( this.dataNodeCount = dataNodeCount; this.opendashboardNodeCount = opendashboardNodeCount; this.searchNodeCount = searchNodeCount; + this.coordinatorNodeCount = coordinatorNodeCount; this.mlNodeCount = mlNodeCount; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -115,6 +118,22 @@ public Builder searchNodeCount(Integer searchNodeCount) { this.__explicitlySet__.add("searchNodeCount"); return this; } + /** + * The number of coordinator nodes configured for the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private Integer coordinatorNodeCount; + + /** + * The number of coordinator nodes configured for the cluster. + * @param coordinatorNodeCount the value to set + * @return this builder + **/ + public Builder coordinatorNodeCount(Integer coordinatorNodeCount) { + this.coordinatorNodeCount = coordinatorNodeCount; + this.__explicitlySet__.add("coordinatorNodeCount"); + return this; + } /** * The number of ML nodes configured for the cluster. **/ @@ -183,6 +202,7 @@ public ResizeOpensearchClusterHorizontalDetails build() { this.dataNodeCount, this.opendashboardNodeCount, this.searchNodeCount, + this.coordinatorNodeCount, this.mlNodeCount, this.freeformTags, this.definedTags); @@ -206,6 +226,9 @@ public Builder copy(ResizeOpensearchClusterHorizontalDetails model) { if (model.wasPropertyExplicitlySet("searchNodeCount")) { this.searchNodeCount(model.getSearchNodeCount()); } + if (model.wasPropertyExplicitlySet("coordinatorNodeCount")) { + this.coordinatorNodeCount(model.getCoordinatorNodeCount()); + } if (model.wasPropertyExplicitlySet("mlNodeCount")) { this.mlNodeCount(model.getMlNodeCount()); } @@ -286,6 +309,20 @@ public Integer getSearchNodeCount() { return searchNodeCount; } + /** + * The number of coordinator nodes configured for the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private final Integer coordinatorNodeCount; + + /** + * The number of coordinator nodes configured for the cluster. + * @return the value + **/ + public Integer getCoordinatorNodeCount() { + return coordinatorNodeCount; + } + /** * The number of ML nodes configured for the cluster. **/ @@ -354,6 +391,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dataNodeCount=").append(String.valueOf(this.dataNodeCount)); sb.append(", opendashboardNodeCount=").append(String.valueOf(this.opendashboardNodeCount)); sb.append(", searchNodeCount=").append(String.valueOf(this.searchNodeCount)); + sb.append(", coordinatorNodeCount=").append(String.valueOf(this.coordinatorNodeCount)); sb.append(", mlNodeCount=").append(String.valueOf(this.mlNodeCount)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -377,6 +415,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.opendashboardNodeCount, other.opendashboardNodeCount) && java.util.Objects.equals(this.searchNodeCount, other.searchNodeCount) + && java.util.Objects.equals(this.coordinatorNodeCount, other.coordinatorNodeCount) && java.util.Objects.equals(this.mlNodeCount, other.mlNodeCount) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -401,6 +440,11 @@ public int hashCode() { result = (result * PRIME) + (this.searchNodeCount == null ? 43 : this.searchNodeCount.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeCount == null + ? 43 + : this.coordinatorNodeCount.hashCode()); result = (result * PRIME) + (this.mlNodeCount == null ? 43 : this.mlNodeCount.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterVerticalDetails.java b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterVerticalDetails.java index e52ca1849e4..758d2084a05 100644 --- a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterVerticalDetails.java +++ b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterVerticalDetails.java @@ -37,6 +37,9 @@ public final class ResizeOpensearchClusterVerticalDetails "searchNodeHostOcpuCount", "searchNodeHostMemoryGB", "searchNodeStorageGB", + "coordinatorNodeHostShape", + "coordinatorNodeHostOcpuCount", + "coordinatorNodeHostMemoryGB", "mlNodeHostShape", "mlNodeHostOcpuCount", "mlNodeHostMemoryGB", @@ -59,6 +62,9 @@ public ResizeOpensearchClusterVerticalDetails( Integer searchNodeHostOcpuCount, Integer searchNodeHostMemoryGB, Integer searchNodeStorageGB, + String coordinatorNodeHostShape, + Integer coordinatorNodeHostOcpuCount, + Integer coordinatorNodeHostMemoryGB, String mlNodeHostShape, Integer mlNodeHostOcpuCount, Integer mlNodeHostMemoryGB, @@ -80,6 +86,9 @@ public ResizeOpensearchClusterVerticalDetails( this.searchNodeHostOcpuCount = searchNodeHostOcpuCount; this.searchNodeHostMemoryGB = searchNodeHostMemoryGB; this.searchNodeStorageGB = searchNodeStorageGB; + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; this.mlNodeHostShape = mlNodeHostShape; this.mlNodeHostOcpuCount = mlNodeHostOcpuCount; this.mlNodeHostMemoryGB = mlNodeHostMemoryGB; @@ -314,6 +323,54 @@ public Builder searchNodeStorageGB(Integer searchNodeStorageGB) { this.__explicitlySet__.add("searchNodeStorageGB"); return this; } + /** + * The node shape for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * @param coordinatorNodeHostShape the value to set + * @return this builder + **/ + public Builder coordinatorNodeHostShape(String coordinatorNodeHostShape) { + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.__explicitlySet__.add("coordinatorNodeHostShape"); + return this; + } + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * @param coordinatorNodeHostOcpuCount the value to set + * @return this builder + **/ + public Builder coordinatorNodeHostOcpuCount(Integer coordinatorNodeHostOcpuCount) { + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.__explicitlySet__.add("coordinatorNodeHostOcpuCount"); + return this; + } + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * @param coordinatorNodeHostMemoryGB the value to set + * @return this builder + **/ + public Builder coordinatorNodeHostMemoryGB(Integer coordinatorNodeHostMemoryGB) { + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; + this.__explicitlySet__.add("coordinatorNodeHostMemoryGB"); + return this; + } /** * The node shape for the cluster's ML nodes. **/ @@ -440,6 +497,9 @@ public ResizeOpensearchClusterVerticalDetails build() { this.searchNodeHostOcpuCount, this.searchNodeHostMemoryGB, this.searchNodeStorageGB, + this.coordinatorNodeHostShape, + this.coordinatorNodeHostOcpuCount, + this.coordinatorNodeHostMemoryGB, this.mlNodeHostShape, this.mlNodeHostOcpuCount, this.mlNodeHostMemoryGB, @@ -496,6 +556,15 @@ public Builder copy(ResizeOpensearchClusterVerticalDetails model) { if (model.wasPropertyExplicitlySet("searchNodeStorageGB")) { this.searchNodeStorageGB(model.getSearchNodeStorageGB()); } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostShape")) { + this.coordinatorNodeHostShape(model.getCoordinatorNodeHostShape()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostOcpuCount")) { + this.coordinatorNodeHostOcpuCount(model.getCoordinatorNodeHostOcpuCount()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostMemoryGB")) { + this.coordinatorNodeHostMemoryGB(model.getCoordinatorNodeHostMemoryGB()); + } if (model.wasPropertyExplicitlySet("mlNodeHostShape")) { this.mlNodeHostShape(model.getMlNodeHostShape()); } @@ -725,6 +794,48 @@ public Integer getSearchNodeStorageGB() { return searchNodeStorageGB; } + /** + * The node shape for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private final String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * @return the value + **/ + public String getCoordinatorNodeHostShape() { + return coordinatorNodeHostShape; + } + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private final Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * @return the value + **/ + public Integer getCoordinatorNodeHostOcpuCount() { + return coordinatorNodeHostOcpuCount; + } + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private final Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * @return the value + **/ + public Integer getCoordinatorNodeHostMemoryGB() { + return coordinatorNodeHostMemoryGB; + } + /** * The node shape for the cluster's ML nodes. **/ @@ -849,6 +960,12 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.searchNodeHostOcpuCount)); sb.append(", searchNodeHostMemoryGB=").append(String.valueOf(this.searchNodeHostMemoryGB)); sb.append(", searchNodeStorageGB=").append(String.valueOf(this.searchNodeStorageGB)); + sb.append(", coordinatorNodeHostShape=") + .append(String.valueOf(this.coordinatorNodeHostShape)); + sb.append(", coordinatorNodeHostOcpuCount=") + .append(String.valueOf(this.coordinatorNodeHostOcpuCount)); + sb.append(", coordinatorNodeHostMemoryGB=") + .append(String.valueOf(this.coordinatorNodeHostMemoryGB)); sb.append(", mlNodeHostShape=").append(String.valueOf(this.mlNodeHostShape)); sb.append(", mlNodeHostOcpuCount=").append(String.valueOf(this.mlNodeHostOcpuCount)); sb.append(", mlNodeHostMemoryGB=").append(String.valueOf(this.mlNodeHostMemoryGB)); @@ -889,6 +1006,12 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.searchNodeHostMemoryGB, other.searchNodeHostMemoryGB) && java.util.Objects.equals(this.searchNodeStorageGB, other.searchNodeStorageGB) + && java.util.Objects.equals( + this.coordinatorNodeHostShape, other.coordinatorNodeHostShape) + && java.util.Objects.equals( + this.coordinatorNodeHostOcpuCount, other.coordinatorNodeHostOcpuCount) + && java.util.Objects.equals( + this.coordinatorNodeHostMemoryGB, other.coordinatorNodeHostMemoryGB) && java.util.Objects.equals(this.mlNodeHostShape, other.mlNodeHostShape) && java.util.Objects.equals(this.mlNodeHostOcpuCount, other.mlNodeHostOcpuCount) && java.util.Objects.equals(this.mlNodeHostMemoryGB, other.mlNodeHostMemoryGB) @@ -968,6 +1091,21 @@ public int hashCode() { + (this.searchNodeStorageGB == null ? 43 : this.searchNodeStorageGB.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostShape == null + ? 43 + : this.coordinatorNodeHostShape.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostOcpuCount == null + ? 43 + : this.coordinatorNodeHostOcpuCount.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostMemoryGB == null + ? 43 + : this.coordinatorNodeHostMemoryGB.hashCode()); result = (result * PRIME) + (this.mlNodeHostShape == null ? 43 : this.mlNodeHostShape.hashCode()); diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/UpdateClusterSpecsDetails.java b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/UpdateClusterSpecsDetails.java index 22eebe07794..88425b859b1 100644 --- a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/UpdateClusterSpecsDetails.java +++ b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/UpdateClusterSpecsDetails.java @@ -33,6 +33,10 @@ public final class UpdateClusterSpecsDetails "searchNodeHostShape", "searchNodeHostOcpuCount", "searchNodeHostMemoryGB", + "coordinatorNodeHostShape", + "coordinatorNodeHostOcpuCount", + "coordinatorNodeHostMemoryGB", + "coordinatorNodeCount", "mlNodeHostShape", "mlNodeHostOcpuCount", "mlNodeHostMemoryGB", @@ -52,6 +56,10 @@ public UpdateClusterSpecsDetails( String searchNodeHostShape, Integer searchNodeHostOcpuCount, Integer searchNodeHostMemoryGB, + String coordinatorNodeHostShape, + Integer coordinatorNodeHostOcpuCount, + Integer coordinatorNodeHostMemoryGB, + Integer coordinatorNodeCount, String mlNodeHostShape, Integer mlNodeHostOcpuCount, Integer mlNodeHostMemoryGB, @@ -70,6 +78,10 @@ public UpdateClusterSpecsDetails( this.searchNodeHostShape = searchNodeHostShape; this.searchNodeHostOcpuCount = searchNodeHostOcpuCount; this.searchNodeHostMemoryGB = searchNodeHostMemoryGB; + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; + this.coordinatorNodeCount = coordinatorNodeCount; this.mlNodeHostShape = mlNodeHostShape; this.mlNodeHostOcpuCount = mlNodeHostOcpuCount; this.mlNodeHostMemoryGB = mlNodeHostMemoryGB; @@ -241,6 +253,70 @@ public Builder searchNodeHostMemoryGB(Integer searchNodeHostMemoryGB) { this.__explicitlySet__.add("searchNodeHostMemoryGB"); return this; } + /** + * The node shape for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * @param coordinatorNodeHostShape the value to set + * @return this builder + **/ + public Builder coordinatorNodeHostShape(String coordinatorNodeHostShape) { + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.__explicitlySet__.add("coordinatorNodeHostShape"); + return this; + } + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * @param coordinatorNodeHostOcpuCount the value to set + * @return this builder + **/ + public Builder coordinatorNodeHostOcpuCount(Integer coordinatorNodeHostOcpuCount) { + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.__explicitlySet__.add("coordinatorNodeHostOcpuCount"); + return this; + } + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * @param coordinatorNodeHostMemoryGB the value to set + * @return this builder + **/ + public Builder coordinatorNodeHostMemoryGB(Integer coordinatorNodeHostMemoryGB) { + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; + this.__explicitlySet__.add("coordinatorNodeHostMemoryGB"); + return this; + } + /** + * Updated value of number of coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private Integer coordinatorNodeCount; + + /** + * Updated value of number of coordinator nodes. + * @param coordinatorNodeCount the value to set + * @return this builder + **/ + public Builder coordinatorNodeCount(Integer coordinatorNodeCount) { + this.coordinatorNodeCount = coordinatorNodeCount; + this.__explicitlySet__.add("coordinatorNodeCount"); + return this; + } /** * The node shape for the cluster's ML nodes. **/ @@ -370,6 +446,10 @@ public UpdateClusterSpecsDetails build() { this.searchNodeHostShape, this.searchNodeHostOcpuCount, this.searchNodeHostMemoryGB, + this.coordinatorNodeHostShape, + this.coordinatorNodeHostOcpuCount, + this.coordinatorNodeHostMemoryGB, + this.coordinatorNodeCount, this.mlNodeHostShape, this.mlNodeHostOcpuCount, this.mlNodeHostMemoryGB, @@ -415,6 +495,18 @@ public Builder copy(UpdateClusterSpecsDetails model) { if (model.wasPropertyExplicitlySet("searchNodeHostMemoryGB")) { this.searchNodeHostMemoryGB(model.getSearchNodeHostMemoryGB()); } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostShape")) { + this.coordinatorNodeHostShape(model.getCoordinatorNodeHostShape()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostOcpuCount")) { + this.coordinatorNodeHostOcpuCount(model.getCoordinatorNodeHostOcpuCount()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostMemoryGB")) { + this.coordinatorNodeHostMemoryGB(model.getCoordinatorNodeHostMemoryGB()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeCount")) { + this.coordinatorNodeCount(model.getCoordinatorNodeCount()); + } if (model.wasPropertyExplicitlySet("mlNodeHostShape")) { this.mlNodeHostShape(model.getMlNodeHostShape()); } @@ -591,6 +683,62 @@ public Integer getSearchNodeHostMemoryGB() { return searchNodeHostMemoryGB; } + /** + * The node shape for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private final String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * @return the value + **/ + public String getCoordinatorNodeHostShape() { + return coordinatorNodeHostShape; + } + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private final Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * @return the value + **/ + public Integer getCoordinatorNodeHostOcpuCount() { + return coordinatorNodeHostOcpuCount; + } + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private final Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * @return the value + **/ + public Integer getCoordinatorNodeHostMemoryGB() { + return coordinatorNodeHostMemoryGB; + } + + /** + * Updated value of number of coordinator nodes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private final Integer coordinatorNodeCount; + + /** + * Updated value of number of coordinator nodes. + * @return the value + **/ + public Integer getCoordinatorNodeCount() { + return coordinatorNodeCount; + } + /** * The node shape for the cluster's ML nodes. **/ @@ -715,6 +863,13 @@ public String toString(boolean includeByteArrayContents) { sb.append(", searchNodeHostOcpuCount=") .append(String.valueOf(this.searchNodeHostOcpuCount)); sb.append(", searchNodeHostMemoryGB=").append(String.valueOf(this.searchNodeHostMemoryGB)); + sb.append(", coordinatorNodeHostShape=") + .append(String.valueOf(this.coordinatorNodeHostShape)); + sb.append(", coordinatorNodeHostOcpuCount=") + .append(String.valueOf(this.coordinatorNodeHostOcpuCount)); + sb.append(", coordinatorNodeHostMemoryGB=") + .append(String.valueOf(this.coordinatorNodeHostMemoryGB)); + sb.append(", coordinatorNodeCount=").append(String.valueOf(this.coordinatorNodeCount)); sb.append(", mlNodeHostShape=").append(String.valueOf(this.mlNodeHostShape)); sb.append(", mlNodeHostOcpuCount=").append(String.valueOf(this.mlNodeHostOcpuCount)); sb.append(", mlNodeHostMemoryGB=").append(String.valueOf(this.mlNodeHostMemoryGB)); @@ -752,6 +907,13 @@ public boolean equals(Object o) { this.searchNodeHostOcpuCount, other.searchNodeHostOcpuCount) && java.util.Objects.equals( this.searchNodeHostMemoryGB, other.searchNodeHostMemoryGB) + && java.util.Objects.equals( + this.coordinatorNodeHostShape, other.coordinatorNodeHostShape) + && java.util.Objects.equals( + this.coordinatorNodeHostOcpuCount, other.coordinatorNodeHostOcpuCount) + && java.util.Objects.equals( + this.coordinatorNodeHostMemoryGB, other.coordinatorNodeHostMemoryGB) + && java.util.Objects.equals(this.coordinatorNodeCount, other.coordinatorNodeCount) && java.util.Objects.equals(this.mlNodeHostShape, other.mlNodeHostShape) && java.util.Objects.equals(this.mlNodeHostOcpuCount, other.mlNodeHostOcpuCount) && java.util.Objects.equals(this.mlNodeHostMemoryGB, other.mlNodeHostMemoryGB) @@ -813,6 +975,26 @@ public int hashCode() { + (this.searchNodeHostMemoryGB == null ? 43 : this.searchNodeHostMemoryGB.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostShape == null + ? 43 + : this.coordinatorNodeHostShape.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostOcpuCount == null + ? 43 + : this.coordinatorNodeHostOcpuCount.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostMemoryGB == null + ? 43 + : this.coordinatorNodeHostMemoryGB.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeCount == null + ? 43 + : this.coordinatorNodeCount.hashCode()); result = (result * PRIME) + (this.mlNodeHostShape == null ? 43 : this.mlNodeHostShape.hashCode()); diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index a245df70506..5c1235bfb38 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequests.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequests.java index b4951324bb1..c5fcb824124 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequests.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequests.java @@ -11,8 +11,6 @@ * Operator Access Control enables you to control the time duration and the actions an Oracle operator can perform on your Exadata Cloud@Customer infrastructure. * Using logging service, you can view a near real-time audit report of all actions performed by an Oracle operator. * - * Use the table of contents and search tool to explore the OperatorAccessControl API. - * * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsync.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsync.java index 4c1862c95ee..ada83822991 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsync.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsync.java @@ -11,8 +11,6 @@ * Operator Access Control enables you to control the time duration and the actions an Oracle operator can perform on your Exadata Cloud@Customer infrastructure. * Using logging service, you can view a near real-time audit report of all actions performed by an Oracle operator. * - * Use the table of contents and search tool to explore the OperatorAccessControl API. - * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") public interface AccessRequestsAsync extends AutoCloseable { diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsyncClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsyncClient.java index e89a3a167b2..3bc5e23d621 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsyncClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsyncClient.java @@ -488,7 +488,7 @@ public java.util.concurrent.Future approveAccessRe "AccessRequests", "ApproveAccessRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ApproveAccessRequest"); final java.util.function.Function transformer = ApproveAccessRequestConverter.fromResponse( @@ -537,7 +537,10 @@ public java.util.concurrent.Future getAccessRequest( GetAccessRequestConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "GetAccessRequest", ib.getRequestUri().toString(), ""); + "AccessRequests", + "GetAccessRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/GetAccessRequest"); final java.util.function.Function transformer = GetAccessRequestConverter.fromResponse( @@ -580,7 +583,10 @@ public java.util.concurrent.Future getAuditLogReport( GetAuditLogReportConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "GetAuditLogReport", ib.getRequestUri().toString(), ""); + "AccessRequests", + "GetAuditLogReport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AuditLogReport/GetAuditLogReport"); final java.util.function.Function transformer = GetAuditLogReportConverter.fromResponse( @@ -624,7 +630,10 @@ public java.util.concurrent.Future interactionReques com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "InteractionRequest", ib.getRequestUri().toString(), ""); + "AccessRequests", + "InteractionRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/InteractionRequest"); final java.util.function.Function transformer = InteractionRequestConverter.fromResponse( @@ -677,7 +686,7 @@ protected void beforeRetryAction() {} "AccessRequests", "ListAccessRequestHistories", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListAccessRequestHistories"); final java.util.function.Function< javax.ws.rs.core.Response, ListAccessRequestHistoriesResponse> transformer = @@ -723,7 +732,10 @@ public java.util.concurrent.Future listAccessRequest ListAccessRequestsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "ListAccessRequests", ib.getRequestUri().toString(), ""); + "AccessRequests", + "ListAccessRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListAccessRequests"); final java.util.function.Function transformer = ListAccessRequestsConverter.fromResponse( @@ -766,7 +778,10 @@ public java.util.concurrent.Future listInteractions( ListInteractionsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "ListInteractions", ib.getRequestUri().toString(), ""); + "AccessRequests", + "ListInteractions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListInteractions"); final java.util.function.Function transformer = ListInteractionsConverter.fromResponse( @@ -810,7 +825,10 @@ public java.util.concurrent.Future rejectAccessRequ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "RejectAccessRequest", ib.getRequestUri().toString(), ""); + "AccessRequests", + "RejectAccessRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/RejectAccessRequest"); final java.util.function.Function transformer = RejectAccessRequestConverter.fromResponse( @@ -860,7 +878,10 @@ public java.util.concurrent.Future reviewAccessRequ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "ReviewAccessRequest", ib.getRequestUri().toString(), ""); + "AccessRequests", + "ReviewAccessRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ReviewAccessRequest"); final java.util.function.Function transformer = ReviewAccessRequestConverter.fromResponse( @@ -910,7 +931,10 @@ public java.util.concurrent.Future revokeAccessRequ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "RevokeAccessRequest", ib.getRequestUri().toString(), ""); + "AccessRequests", + "RevokeAccessRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/RevokeAccessRequest"); final java.util.function.Function transformer = RevokeAccessRequestConverter.fromResponse( diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsClient.java index 40bbfb06ff0..d7b9bb328b2 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsClient.java @@ -577,7 +577,7 @@ public ApproveAccessRequestResponse approveAccessRequest(ApproveAccessRequestReq "AccessRequests", "ApproveAccessRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ApproveAccessRequest"); java.util.function.Function transformer = ApproveAccessRequestConverter.fromResponse( @@ -615,7 +615,10 @@ public GetAccessRequestResponse getAccessRequest(GetAccessRequestRequest request com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "GetAccessRequest", ib.getRequestUri().toString(), ""); + "AccessRequests", + "GetAccessRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/GetAccessRequest"); java.util.function.Function transformer = GetAccessRequestConverter.fromResponse( @@ -649,7 +652,10 @@ public GetAuditLogReportResponse getAuditLogReport(GetAuditLogReportRequest requ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "GetAuditLogReport", ib.getRequestUri().toString(), ""); + "AccessRequests", + "GetAuditLogReport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AuditLogReport/GetAuditLogReport"); java.util.function.Function transformer = GetAuditLogReportConverter.fromResponse( @@ -684,7 +690,10 @@ public InteractionRequestResponse interactionRequest(InteractionRequestRequest r com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "InteractionRequest", ib.getRequestUri().toString(), ""); + "AccessRequests", + "InteractionRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/InteractionRequest"); java.util.function.Function transformer = InteractionRequestConverter.fromResponse( @@ -726,7 +735,7 @@ public ListAccessRequestHistoriesResponse listAccessRequestHistories( "AccessRequests", "ListAccessRequestHistories", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListAccessRequestHistories"); java.util.function.Function transformer = ListAccessRequestHistoriesConverter.fromResponse( @@ -760,7 +769,10 @@ public ListAccessRequestsResponse listAccessRequests(ListAccessRequestsRequest r com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "ListAccessRequests", ib.getRequestUri().toString(), ""); + "AccessRequests", + "ListAccessRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListAccessRequests"); java.util.function.Function transformer = ListAccessRequestsConverter.fromResponse( @@ -794,7 +806,10 @@ public ListInteractionsResponse listInteractions(ListInteractionsRequest request com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "ListInteractions", ib.getRequestUri().toString(), ""); + "AccessRequests", + "ListInteractions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListInteractions"); java.util.function.Function transformer = ListInteractionsConverter.fromResponse( @@ -829,7 +844,10 @@ public RejectAccessRequestResponse rejectAccessRequest(RejectAccessRequestReques com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "RejectAccessRequest", ib.getRequestUri().toString(), ""); + "AccessRequests", + "RejectAccessRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/RejectAccessRequest"); java.util.function.Function transformer = RejectAccessRequestConverter.fromResponse( @@ -868,7 +886,10 @@ public ReviewAccessRequestResponse reviewAccessRequest(ReviewAccessRequestReques com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "ReviewAccessRequest", ib.getRequestUri().toString(), ""); + "AccessRequests", + "ReviewAccessRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ReviewAccessRequest"); java.util.function.Function transformer = ReviewAccessRequestConverter.fromResponse( @@ -907,7 +928,10 @@ public RevokeAccessRequestResponse revokeAccessRequest(RevokeAccessRequestReques com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "AccessRequests", "RevokeAccessRequest", ib.getRequestUri().toString(), ""); + "AccessRequests", + "RevokeAccessRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/RevokeAccessRequest"); java.util.function.Function transformer = RevokeAccessRequestConverter.fromResponse( diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActions.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActions.java index 93a878acb06..194d2f79d1e 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActions.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActions.java @@ -11,8 +11,6 @@ * Operator Access Control enables you to control the time duration and the actions an Oracle operator can perform on your Exadata Cloud@Customer infrastructure. * Using logging service, you can view a near real-time audit report of all actions performed by an Oracle operator. * - * Use the table of contents and search tool to explore the OperatorAccessControl API. - * * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsync.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsync.java index 6c0686e2c7f..cb646f9e176 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsync.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsync.java @@ -11,8 +11,6 @@ * Operator Access Control enables you to control the time duration and the actions an Oracle operator can perform on your Exadata Cloud@Customer infrastructure. * Using logging service, you can view a near real-time audit report of all actions performed by an Oracle operator. * - * Use the table of contents and search tool to explore the OperatorAccessControl API. - * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") public interface OperatorActionsAsync extends AutoCloseable { diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsyncClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsyncClient.java index a71af060740..20362798791 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsyncClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsyncClient.java @@ -484,7 +484,10 @@ public java.util.concurrent.Future getOperatorAction( GetOperatorActionConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "OperatorActions", "GetOperatorAction", ib.getRequestUri().toString(), ""); + "OperatorActions", + "GetOperatorAction", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorAction/GetOperatorAction"); final java.util.function.Function transformer = GetOperatorActionConverter.fromResponse( @@ -530,7 +533,7 @@ public java.util.concurrent.Future listOperatorActi "OperatorActions", "ListOperatorActions", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorAction/ListOperatorActions"); final java.util.function.Function transformer = ListOperatorActionsConverter.fromResponse( diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsClient.java index 6c9523634cb..101cac0fca4 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsClient.java @@ -499,7 +499,10 @@ public GetOperatorActionResponse getOperatorAction(GetOperatorActionRequest requ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "OperatorActions", "GetOperatorAction", ib.getRequestUri().toString(), ""); + "OperatorActions", + "GetOperatorAction", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorAction/GetOperatorAction"); java.util.function.Function transformer = GetOperatorActionConverter.fromResponse( @@ -536,7 +539,7 @@ public ListOperatorActionsResponse listOperatorActions(ListOperatorActionsReques "OperatorActions", "ListOperatorActions", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorAction/ListOperatorActions"); java.util.function.Function transformer = ListOperatorActionsConverter.fromResponse( diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControl.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControl.java index e74a0cab8f6..f76925007b6 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControl.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControl.java @@ -11,8 +11,6 @@ * Operator Access Control enables you to control the time duration and the actions an Oracle operator can perform on your Exadata Cloud@Customer infrastructure. * Using logging service, you can view a near real-time audit report of all actions performed by an Oracle operator. * - * Use the table of contents and search tool to explore the OperatorAccessControl API. - * * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignment.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignment.java index 621c2909655..21f8e45924a 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignment.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignment.java @@ -11,8 +11,6 @@ * Operator Access Control enables you to control the time duration and the actions an Oracle operator can perform on your Exadata Cloud@Customer infrastructure. * Using logging service, you can view a near real-time audit report of all actions performed by an Oracle operator. * - * Use the table of contents and search tool to explore the OperatorAccessControl API. - * * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsync.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsync.java index f5561b4c918..e7b474a83c5 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsync.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsync.java @@ -11,8 +11,6 @@ * Operator Access Control enables you to control the time duration and the actions an Oracle operator can perform on your Exadata Cloud@Customer infrastructure. * Using logging service, you can view a near real-time audit report of all actions performed by an Oracle operator. * - * Use the table of contents and search tool to explore the OperatorAccessControl API. - * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") public interface OperatorControlAssignmentAsync extends AutoCloseable { diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsyncClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsyncClient.java index 4686278ddcf..17596bbb519 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsyncClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsyncClient.java @@ -491,7 +491,7 @@ public void close() { "OperatorControlAssignment", "ChangeOperatorControlAssignmentCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ChangeOperatorControlAssignmentCompartment"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeOperatorControlAssignmentCompartmentResponse> @@ -553,7 +553,7 @@ protected void beforeRetryAction() {} "OperatorControlAssignment", "CreateOperatorControlAssignment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/CreateOperatorControlAssignment"); final java.util.function.Function< javax.ws.rs.core.Response, CreateOperatorControlAssignmentResponse> transformer = @@ -611,7 +611,7 @@ protected void beforeRetryAction() {} "OperatorControlAssignment", "DeleteOperatorControlAssignment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/DeleteOperatorControlAssignment"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteOperatorControlAssignmentResponse> transformer = @@ -664,7 +664,7 @@ protected void beforeRetryAction() {} "OperatorControlAssignment", "GetAssignmentValidationStatus", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/GetAssignmentValidationStatus"); final java.util.function.Function< javax.ws.rs.core.Response, GetAssignmentValidationStatusResponse> transformer = @@ -715,7 +715,7 @@ protected void beforeRetryAction() {} "OperatorControlAssignment", "GetOperatorControlAssignment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/GetOperatorControlAssignment"); final java.util.function.Function< javax.ws.rs.core.Response, GetOperatorControlAssignmentResponse> transformer = @@ -766,7 +766,7 @@ protected void beforeRetryAction() {} "OperatorControlAssignment", "ListOperatorControlAssignments", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ListOperatorControlAssignments"); final java.util.function.Function< javax.ws.rs.core.Response, ListOperatorControlAssignmentsResponse> transformer = @@ -818,7 +818,7 @@ protected void beforeRetryAction() {} "OperatorControlAssignment", "UpdateOperatorControlAssignment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/UpdateOperatorControlAssignment"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateOperatorControlAssignmentResponse> transformer = @@ -877,7 +877,7 @@ protected void beforeRetryAction() {} "OperatorControlAssignment", "ValidateOperatorAssignment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ValidateOperatorAssignment"); final java.util.function.Function< javax.ws.rs.core.Response, ValidateOperatorAssignmentResponse> transformer = diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentClient.java index 680d5d277f4..72b0060817b 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentClient.java @@ -581,7 +581,7 @@ public void close() { "OperatorControlAssignment", "ChangeOperatorControlAssignmentCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ChangeOperatorControlAssignmentCompartment"); java.util.function.Function< javax.ws.rs.core.Response, ChangeOperatorControlAssignmentCompartmentResponse> @@ -627,7 +627,7 @@ public CreateOperatorControlAssignmentResponse createOperatorControlAssignment( "OperatorControlAssignment", "CreateOperatorControlAssignment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/CreateOperatorControlAssignment"); java.util.function.Function< javax.ws.rs.core.Response, CreateOperatorControlAssignmentResponse> transformer = @@ -671,7 +671,7 @@ public DeleteOperatorControlAssignmentResponse deleteOperatorControlAssignment( "OperatorControlAssignment", "DeleteOperatorControlAssignment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/DeleteOperatorControlAssignment"); java.util.function.Function< javax.ws.rs.core.Response, DeleteOperatorControlAssignmentResponse> transformer = @@ -711,7 +711,7 @@ public GetAssignmentValidationStatusResponse getAssignmentValidationStatus( "OperatorControlAssignment", "GetAssignmentValidationStatus", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/GetAssignmentValidationStatus"); java.util.function.Function< javax.ws.rs.core.Response, GetAssignmentValidationStatusResponse> transformer = @@ -750,7 +750,7 @@ public GetOperatorControlAssignmentResponse getOperatorControlAssignment( "OperatorControlAssignment", "GetOperatorControlAssignment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/GetOperatorControlAssignment"); java.util.function.Function transformer = GetOperatorControlAssignmentConverter.fromResponse( @@ -788,7 +788,7 @@ public ListOperatorControlAssignmentsResponse listOperatorControlAssignments( "OperatorControlAssignment", "ListOperatorControlAssignments", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ListOperatorControlAssignments"); java.util.function.Function< javax.ws.rs.core.Response, ListOperatorControlAssignmentsResponse> transformer = @@ -827,7 +827,7 @@ public UpdateOperatorControlAssignmentResponse updateOperatorControlAssignment( "OperatorControlAssignment", "UpdateOperatorControlAssignment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/UpdateOperatorControlAssignment"); java.util.function.Function< javax.ws.rs.core.Response, UpdateOperatorControlAssignmentResponse> transformer = @@ -872,7 +872,7 @@ public ValidateOperatorAssignmentResponse validateOperatorAssignment( "OperatorControlAssignment", "ValidateOperatorAssignment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ValidateOperatorAssignment"); java.util.function.Function transformer = ValidateOperatorAssignmentConverter.fromResponse( diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsync.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsync.java index 8840e2b206c..59ce4f3299d 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsync.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsync.java @@ -11,8 +11,6 @@ * Operator Access Control enables you to control the time duration and the actions an Oracle operator can perform on your Exadata Cloud@Customer infrastructure. * Using logging service, you can view a near real-time audit report of all actions performed by an Oracle operator. * - * Use the table of contents and search tool to explore the OperatorAccessControl API. - * */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") public interface OperatorControlAsync extends AutoCloseable { diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsyncClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsyncClient.java index 76255a9e3fd..7a2227dcc20 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsyncClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsyncClient.java @@ -490,7 +490,7 @@ public void close() { "OperatorControl", "ChangeOperatorControlCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/ChangeOperatorControlCompartment"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeOperatorControlCompartmentResponse> transformer = @@ -547,7 +547,7 @@ public java.util.concurrent.Future createOperator "OperatorControl", "CreateOperatorControl", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/CreateOperatorControl"); final java.util.function.Function transformer = CreateOperatorControlConverter.fromResponse( @@ -599,7 +599,7 @@ public java.util.concurrent.Future deleteOperator "OperatorControl", "DeleteOperatorControl", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/DeleteOperatorControl"); final java.util.function.Function transformer = DeleteOperatorControlConverter.fromResponse( @@ -643,7 +643,10 @@ public java.util.concurrent.Future getOperatorContro GetOperatorControlConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "OperatorControl", "GetOperatorControl", ib.getRequestUri().toString(), ""); + "OperatorControl", + "GetOperatorControl", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/GetOperatorControl"); final java.util.function.Function transformer = GetOperatorControlConverter.fromResponse( @@ -689,7 +692,7 @@ public java.util.concurrent.Future listOperatorCon "OperatorControl", "ListOperatorControls", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/ListOperatorControls"); final java.util.function.Function transformer = ListOperatorControlsConverter.fromResponse( @@ -736,7 +739,7 @@ public java.util.concurrent.Future updateOperator "OperatorControl", "UpdateOperatorControl", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/UpdateOperatorControl"); final java.util.function.Function transformer = UpdateOperatorControlConverter.fromResponse( diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlClient.java index fe479c92f55..513312cfafe 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlClient.java @@ -578,7 +578,7 @@ public ChangeOperatorControlCompartmentResponse changeOperatorControlCompartment "OperatorControl", "ChangeOperatorControlCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/ChangeOperatorControlCompartment"); java.util.function.Function< javax.ws.rs.core.Response, ChangeOperatorControlCompartmentResponse> transformer = @@ -623,7 +623,7 @@ public CreateOperatorControlResponse createOperatorControl( "OperatorControl", "CreateOperatorControl", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/CreateOperatorControl"); java.util.function.Function transformer = CreateOperatorControlConverter.fromResponse( @@ -665,7 +665,7 @@ public DeleteOperatorControlResponse deleteOperatorControl( "OperatorControl", "DeleteOperatorControl", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/DeleteOperatorControl"); java.util.function.Function transformer = DeleteOperatorControlConverter.fromResponse( @@ -700,7 +700,10 @@ public GetOperatorControlResponse getOperatorControl(GetOperatorControlRequest r com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "OperatorControl", "GetOperatorControl", ib.getRequestUri().toString(), ""); + "OperatorControl", + "GetOperatorControl", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/GetOperatorControl"); java.util.function.Function transformer = GetOperatorControlConverter.fromResponse( @@ -737,7 +740,7 @@ public ListOperatorControlsResponse listOperatorControls(ListOperatorControlsReq "OperatorControl", "ListOperatorControls", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/ListOperatorControls"); java.util.function.Function transformer = ListOperatorControlsConverter.fromResponse( @@ -775,7 +778,7 @@ public UpdateOperatorControlResponse updateOperatorControl( "OperatorControl", "UpdateOperatorControl", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/UpdateOperatorControl"); java.util.function.Function transformer = UpdateOperatorControlConverter.fromResponse( diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/internal/http/ListAccessRequestsConverter.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/internal/http/ListAccessRequestsConverter.java index af7e1dd6025..f0be3815cfc 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/internal/http/ListAccessRequestsConverter.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/internal/http/ListAccessRequestsConverter.java @@ -66,6 +66,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getLifecycleState().getValue())); } + if (request.getNumDays() != null) { + target = + target.queryParam( + "numDays", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getNumDays())); + } + if (request.getTimeStart() != null) { target = target.queryParam( diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/AccessRequestSummary.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/AccessRequestSummary.java index 235ba033a59..637e1c898c2 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/AccessRequestSummary.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/AccessRequestSummary.java @@ -30,6 +30,7 @@ public final class AccessRequestSummary extends com.oracle.bmc.http.internal.Exp "resourceName", "subResourceList", "resourceType", + "actionRequestsList", "lifecycleState", "lifecycleDetails", "timeOfCreation", @@ -52,6 +53,7 @@ public AccessRequestSummary( String resourceName, java.util.List subResourceList, ResourceTypes resourceType, + java.util.List actionRequestsList, AccessRequestLifecycleStates lifecycleState, String lifecycleDetails, java.util.Date timeOfCreation, @@ -73,6 +75,7 @@ public AccessRequestSummary( this.resourceName = resourceName; this.subResourceList = subResourceList; this.resourceType = resourceType; + this.actionRequestsList = actionRequestsList; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; this.timeOfCreation = timeOfCreation; @@ -221,6 +224,22 @@ public Builder resourceType(ResourceTypes resourceType) { this.__explicitlySet__.add("resourceType"); return this; } + /** + * List of operator actions for which approval is sought by the operator user. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("actionRequestsList") + private java.util.List actionRequestsList; + + /** + * List of operator actions for which approval is sought by the operator user. + * @param actionRequestsList the value to set + * @return this builder + **/ + public Builder actionRequestsList(java.util.List actionRequestsList) { + this.actionRequestsList = actionRequestsList; + this.__explicitlySet__.add("actionRequestsList"); + return this; + } /** * The current state of the AccessRequest. **/ @@ -441,6 +460,7 @@ public AccessRequestSummary build() { this.resourceName, this.subResourceList, this.resourceType, + this.actionRequestsList, this.lifecycleState, this.lifecycleDetails, this.timeOfCreation, @@ -485,6 +505,9 @@ public Builder copy(AccessRequestSummary model) { if (model.wasPropertyExplicitlySet("resourceType")) { this.resourceType(model.getResourceType()); } + if (model.wasPropertyExplicitlySet("actionRequestsList")) { + this.actionRequestsList(model.getActionRequestsList()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -652,6 +675,20 @@ public ResourceTypes getResourceType() { return resourceType; } + /** + * List of operator actions for which approval is sought by the operator user. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("actionRequestsList") + private final java.util.List actionRequestsList; + + /** + * List of operator actions for which approval is sought by the operator user. + * @return the value + **/ + public java.util.List getActionRequestsList() { + return actionRequestsList; + } + /** * The current state of the AccessRequest. **/ @@ -854,6 +891,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", resourceName=").append(String.valueOf(this.resourceName)); sb.append(", subResourceList=").append(String.valueOf(this.subResourceList)); sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", actionRequestsList=").append(String.valueOf(this.actionRequestsList)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", timeOfCreation=").append(String.valueOf(this.timeOfCreation)); @@ -889,6 +927,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.resourceName, other.resourceName) && java.util.Objects.equals(this.subResourceList, other.subResourceList) && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.actionRequestsList, other.actionRequestsList) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.timeOfCreation, other.timeOfCreation) @@ -925,6 +964,11 @@ public int hashCode() { (result * PRIME) + (this.subResourceList == null ? 43 : this.subResourceList.hashCode()); result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = + (result * PRIME) + + (this.actionRequestsList == null + ? 43 + : this.actionRequestsList.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/CreateOperatorControlDetails.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/CreateOperatorControlDetails.java index 8c9908a9b04..650df1c4c5f 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/CreateOperatorControlDetails.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/CreateOperatorControlDetails.java @@ -36,6 +36,7 @@ public final class CreateOperatorControlDetails "isFullyPreApproved", "resourceType", "numberOfApprovers", + "notificationTopicId", "emailIdList", "systemMessage", "compartmentId", @@ -51,6 +52,7 @@ public CreateOperatorControlDetails( Boolean isFullyPreApproved, ResourceTypes resourceType, Integer numberOfApprovers, + String notificationTopicId, java.util.List emailIdList, String systemMessage, String compartmentId, @@ -65,6 +67,7 @@ public CreateOperatorControlDetails( this.isFullyPreApproved = isFullyPreApproved; this.resourceType = resourceType; this.numberOfApprovers = numberOfApprovers; + this.notificationTopicId = notificationTopicId; this.emailIdList = emailIdList; this.systemMessage = systemMessage; this.compartmentId = compartmentId; @@ -210,6 +213,22 @@ public Builder numberOfApprovers(Integer numberOfApprovers) { this.__explicitlySet__.add("numberOfApprovers"); return this; } + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + * @param notificationTopicId the value to set + * @return this builder + **/ + public Builder notificationTopicId(String notificationTopicId) { + this.notificationTopicId = notificationTopicId; + this.__explicitlySet__.add("notificationTopicId"); + return this; + } /** * List of emailId. * @@ -312,6 +331,7 @@ public CreateOperatorControlDetails build() { this.isFullyPreApproved, this.resourceType, this.numberOfApprovers, + this.notificationTopicId, this.emailIdList, this.systemMessage, this.compartmentId, @@ -349,6 +369,9 @@ public Builder copy(CreateOperatorControlDetails model) { if (model.wasPropertyExplicitlySet("numberOfApprovers")) { this.numberOfApprovers(model.getNumberOfApprovers()); } + if (model.wasPropertyExplicitlySet("notificationTopicId")) { + this.notificationTopicId(model.getNotificationTopicId()); + } if (model.wasPropertyExplicitlySet("emailIdList")) { this.emailIdList(model.getEmailIdList()); } @@ -499,6 +522,20 @@ public Integer getNumberOfApprovers() { return numberOfApprovers; } + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private final String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + * @return the value + **/ + public String getNotificationTopicId() { + return notificationTopicId; + } + /** * List of emailId. * @@ -598,6 +635,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isFullyPreApproved=").append(String.valueOf(this.isFullyPreApproved)); sb.append(", resourceType=").append(String.valueOf(this.resourceType)); sb.append(", numberOfApprovers=").append(String.valueOf(this.numberOfApprovers)); + sb.append(", notificationTopicId=").append(String.valueOf(this.notificationTopicId)); sb.append(", emailIdList=").append(String.valueOf(this.emailIdList)); sb.append(", systemMessage=").append(String.valueOf(this.systemMessage)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); @@ -626,6 +664,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isFullyPreApproved, other.isFullyPreApproved) && java.util.Objects.equals(this.resourceType, other.resourceType) && java.util.Objects.equals(this.numberOfApprovers, other.numberOfApprovers) + && java.util.Objects.equals(this.notificationTopicId, other.notificationTopicId) && java.util.Objects.equals(this.emailIdList, other.emailIdList) && java.util.Objects.equals(this.systemMessage, other.systemMessage) && java.util.Objects.equals(this.compartmentId, other.compartmentId) @@ -666,6 +705,11 @@ public int hashCode() { result = (result * PRIME) + (this.numberOfApprovers == null ? 43 : this.numberOfApprovers.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicId == null + ? 43 + : this.notificationTopicId.hashCode()); result = (result * PRIME) + (this.emailIdList == null ? 43 : this.emailIdList.hashCode()); result = (result * PRIME) diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControl.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControl.java index a7eb964d9bd..1a6b2a50880 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControl.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControl.java @@ -29,6 +29,7 @@ public final class OperatorControl extends com.oracle.bmc.http.internal.Explicit "preApprovedOpActionList", "approvalRequiredOpActionList", "isFullyPreApproved", + "notificationTopicId", "emailIdList", "resourceType", "systemMessage", @@ -52,6 +53,7 @@ public OperatorControl( java.util.List preApprovedOpActionList, java.util.List approvalRequiredOpActionList, Boolean isFullyPreApproved, + String notificationTopicId, java.util.List emailIdList, ResourceTypes resourceType, String systemMessage, @@ -74,6 +76,7 @@ public OperatorControl( this.preApprovedOpActionList = preApprovedOpActionList; this.approvalRequiredOpActionList = approvalRequiredOpActionList; this.isFullyPreApproved = isFullyPreApproved; + this.notificationTopicId = notificationTopicId; this.emailIdList = emailIdList; this.resourceType = resourceType; this.systemMessage = systemMessage; @@ -234,6 +237,22 @@ public Builder isFullyPreApproved(Boolean isFullyPreApproved) { this.__explicitlySet__.add("isFullyPreApproved"); return this; } + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + * @param notificationTopicId the value to set + * @return this builder + **/ + public Builder notificationTopicId(String notificationTopicId) { + this.notificationTopicId = notificationTopicId; + this.__explicitlySet__.add("notificationTopicId"); + return this; + } /** * List of emailId. * @@ -476,6 +495,7 @@ public OperatorControl build() { this.preApprovedOpActionList, this.approvalRequiredOpActionList, this.isFullyPreApproved, + this.notificationTopicId, this.emailIdList, this.resourceType, this.systemMessage, @@ -521,6 +541,9 @@ public Builder copy(OperatorControl model) { if (model.wasPropertyExplicitlySet("isFullyPreApproved")) { this.isFullyPreApproved(model.getIsFullyPreApproved()); } + if (model.wasPropertyExplicitlySet("notificationTopicId")) { + this.notificationTopicId(model.getNotificationTopicId()); + } if (model.wasPropertyExplicitlySet("emailIdList")) { this.emailIdList(model.getEmailIdList()); } @@ -701,6 +724,20 @@ public Boolean getIsFullyPreApproved() { return isFullyPreApproved; } + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private final String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + * @return the value + **/ + public String getNotificationTopicId() { + return notificationTopicId; + } + /** * List of emailId. * @@ -925,6 +962,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", approvalRequiredOpActionList=") .append(String.valueOf(this.approvalRequiredOpActionList)); sb.append(", isFullyPreApproved=").append(String.valueOf(this.isFullyPreApproved)); + sb.append(", notificationTopicId=").append(String.valueOf(this.notificationTopicId)); sb.append(", emailIdList=").append(String.valueOf(this.emailIdList)); sb.append(", resourceType=").append(String.valueOf(this.resourceType)); sb.append(", systemMessage=").append(String.valueOf(this.systemMessage)); @@ -963,6 +1001,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.approvalRequiredOpActionList, other.approvalRequiredOpActionList) && java.util.Objects.equals(this.isFullyPreApproved, other.isFullyPreApproved) + && java.util.Objects.equals(this.notificationTopicId, other.notificationTopicId) && java.util.Objects.equals(this.emailIdList, other.emailIdList) && java.util.Objects.equals(this.resourceType, other.resourceType) && java.util.Objects.equals(this.systemMessage, other.systemMessage) @@ -1014,6 +1053,11 @@ public int hashCode() { + (this.isFullyPreApproved == null ? 43 : this.isFullyPreApproved.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicId == null + ? 43 + : this.notificationTopicId.hashCode()); result = (result * PRIME) + (this.emailIdList == null ? 43 : this.emailIdList.hashCode()); result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); result = diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControlAssignmentLifecycleStates.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControlAssignmentLifecycleStates.java index abdfa2ab97c..819ccf737c7 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControlAssignmentLifecycleStates.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControlAssignmentLifecycleStates.java @@ -17,6 +17,7 @@ public enum OperatorControlAssignmentLifecycleStates { Deleting("DELETING"), Deleted("DELETED"), Deletionfailed("DELETIONFAILED"), + Customerassigned("CUSTOMERASSIGNED"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/ResourceTypes.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/ResourceTypes.java index eb55fac25c0..e39d5b9e8f6 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/ResourceTypes.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/ResourceTypes.java @@ -15,6 +15,7 @@ public enum ResourceTypes { Autonomousvmcluster("AUTONOMOUSVMCLUSTER"), Cloudautonomousvmcluster("CLOUDAUTONOMOUSVMCLUSTER"), Cccinfrastructure("CCCINFRASTRUCTURE"), + Cloudexadatainfrastructure("CLOUDEXADATAINFRASTRUCTURE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/UpdateOperatorControlDetails.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/UpdateOperatorControlDetails.java index 49777cfb6ea..bf6b59aa854 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/UpdateOperatorControlDetails.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/UpdateOperatorControlDetails.java @@ -29,6 +29,7 @@ public final class UpdateOperatorControlDetails "approverGroupsList", "preApprovedOpActionList", "isFullyPreApproved", + "notificationTopicId", "emailIdList", "numberOfApprovers", "systemMessage", @@ -42,6 +43,7 @@ public UpdateOperatorControlDetails( java.util.List approverGroupsList, java.util.List preApprovedOpActionList, Boolean isFullyPreApproved, + String notificationTopicId, java.util.List emailIdList, Integer numberOfApprovers, String systemMessage, @@ -54,6 +56,7 @@ public UpdateOperatorControlDetails( this.approverGroupsList = approverGroupsList; this.preApprovedOpActionList = preApprovedOpActionList; this.isFullyPreApproved = isFullyPreApproved; + this.notificationTopicId = notificationTopicId; this.emailIdList = emailIdList; this.numberOfApprovers = numberOfApprovers; this.systemMessage = systemMessage; @@ -167,6 +170,22 @@ public Builder isFullyPreApproved(Boolean isFullyPreApproved) { this.__explicitlySet__.add("isFullyPreApproved"); return this; } + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + * @param notificationTopicId the value to set + * @return this builder + **/ + public Builder notificationTopicId(String notificationTopicId) { + this.notificationTopicId = notificationTopicId; + this.__explicitlySet__.add("notificationTopicId"); + return this; + } /** * List of emailId. * @@ -267,6 +286,7 @@ public UpdateOperatorControlDetails build() { this.approverGroupsList, this.preApprovedOpActionList, this.isFullyPreApproved, + this.notificationTopicId, this.emailIdList, this.numberOfApprovers, this.systemMessage, @@ -298,6 +318,9 @@ public Builder copy(UpdateOperatorControlDetails model) { if (model.wasPropertyExplicitlySet("isFullyPreApproved")) { this.isFullyPreApproved(model.getIsFullyPreApproved()); } + if (model.wasPropertyExplicitlySet("notificationTopicId")) { + this.notificationTopicId(model.getNotificationTopicId()); + } if (model.wasPropertyExplicitlySet("emailIdList")) { this.emailIdList(model.getEmailIdList()); } @@ -420,6 +443,20 @@ public Boolean getIsFullyPreApproved() { return isFullyPreApproved; } + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private final String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + * @return the value + **/ + public String getNotificationTopicId() { + return notificationTopicId; + } + /** * List of emailId. * @@ -517,6 +554,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", preApprovedOpActionList=") .append(String.valueOf(this.preApprovedOpActionList)); sb.append(", isFullyPreApproved=").append(String.valueOf(this.isFullyPreApproved)); + sb.append(", notificationTopicId=").append(String.valueOf(this.notificationTopicId)); sb.append(", emailIdList=").append(String.valueOf(this.emailIdList)); sb.append(", numberOfApprovers=").append(String.valueOf(this.numberOfApprovers)); sb.append(", systemMessage=").append(String.valueOf(this.systemMessage)); @@ -543,6 +581,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.preApprovedOpActionList, other.preApprovedOpActionList) && java.util.Objects.equals(this.isFullyPreApproved, other.isFullyPreApproved) + && java.util.Objects.equals(this.notificationTopicId, other.notificationTopicId) && java.util.Objects.equals(this.emailIdList, other.emailIdList) && java.util.Objects.equals(this.numberOfApprovers, other.numberOfApprovers) && java.util.Objects.equals(this.systemMessage, other.systemMessage) @@ -579,6 +618,11 @@ public int hashCode() { + (this.isFullyPreApproved == null ? 43 : this.isFullyPreApproved.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicId == null + ? 43 + : this.notificationTopicId.hashCode()); result = (result * PRIME) + (this.emailIdList == null ? 43 : this.emailIdList.hashCode()); result = (result * PRIME) diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/requests/ListAccessRequestsRequest.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/requests/ListAccessRequestsRequest.java index 5ef6b8eed00..f59c4cc9bfe 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/requests/ListAccessRequestsRequest.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/requests/ListAccessRequestsRequest.java @@ -56,6 +56,17 @@ public String getResourceType() { getLifecycleState() { return lifecycleState; } + /** + * The number of days since when the user wants to search . + */ + private Integer numDays; + + /** + * The number of days since when the user wants to search . + */ + public Integer getNumDays() { + return numDays; + } /** * Query start time in UTC in ISO 8601 format(inclusive). * Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). @@ -255,6 +266,21 @@ public Builder lifecycleState( return this; } + /** + * The number of days since when the user wants to search . + */ + private Integer numDays = null; + + /** + * The number of days since when the user wants to search . + * @param numDays the value to set + * @return this builder instance + */ + public Builder numDays(Integer numDays) { + this.numDays = numDays; + return this; + } + /** * Query start time in UTC in ISO 8601 format(inclusive). * Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). @@ -406,6 +432,7 @@ public Builder copy(ListAccessRequestsRequest o) { resourceName(o.getResourceName()); resourceType(o.getResourceType()); lifecycleState(o.getLifecycleState()); + numDays(o.getNumDays()); timeStart(o.getTimeStart()); timeEnd(o.getTimeEnd()); limit(o.getLimit()); @@ -449,6 +476,7 @@ public ListAccessRequestsRequest buildWithoutInvocationCallback() { request.resourceName = resourceName; request.resourceType = resourceType; request.lifecycleState = lifecycleState; + request.numDays = numDays; request.timeStart = timeStart; request.timeEnd = timeEnd; request.limit = limit; @@ -457,7 +485,7 @@ public ListAccessRequestsRequest buildWithoutInvocationCallback() { request.sortBy = sortBy; request.opcRequestId = opcRequestId; return request; - // new ListAccessRequestsRequest(compartmentId, resourceName, resourceType, lifecycleState, timeStart, timeEnd, limit, page, sortOrder, sortBy, opcRequestId); + // new ListAccessRequestsRequest(compartmentId, resourceName, resourceType, lifecycleState, numDays, timeStart, timeEnd, limit, page, sortOrder, sortBy, opcRequestId); } } @@ -471,6 +499,7 @@ public Builder toBuilder() { .resourceName(resourceName) .resourceType(resourceType) .lifecycleState(lifecycleState) + .numDays(numDays) .timeStart(timeStart) .timeEnd(timeEnd) .limit(limit) @@ -497,6 +526,7 @@ public String toString() { sb.append(",resourceName=").append(String.valueOf(this.resourceName)); sb.append(",resourceType=").append(String.valueOf(this.resourceType)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",numDays=").append(String.valueOf(this.numDays)); sb.append(",timeStart=").append(String.valueOf(this.timeStart)); sb.append(",timeEnd=").append(String.valueOf(this.timeEnd)); sb.append(",limit=").append(String.valueOf(this.limit)); @@ -523,6 +553,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.resourceName, other.resourceName) && java.util.Objects.equals(this.resourceType, other.resourceType) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.numDays, other.numDays) && java.util.Objects.equals(this.timeStart, other.timeStart) && java.util.Objects.equals(this.timeEnd, other.timeEnd) && java.util.Objects.equals(this.limit, other.limit) @@ -544,6 +575,7 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.numDays == null ? 43 : this.numDays.hashCode()); result = (result * PRIME) + (this.timeStart == null ? 43 : this.timeStart.hashCode()); result = (result * PRIME) + (this.timeEnd == null ? 43 : this.timeEnd.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 06604ec8ccc..4e409fa2fe3 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-opsi @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 75733cf53cd..529714d08af 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-optimizer @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 2be35aa7bdb..56256c63f87 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index cd7924c6d77..3333bdb90f7 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-ospgateway @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index 40b93c25d0d..ed3fbc1c10d 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index d642a454406..cea96f87006 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 2f2b989a1e7..e66b7f126da 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-osubsubscription @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index a6d1519c361..8183c02c5d1 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-osubusage @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-psa/pom.xml b/bmc-psa/pom.xml index 54550419ceb..35c620bde6d 100644 --- a/bmc-psa/pom.xml +++ b/bmc-psa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-psa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index 1ab3e12d3bb..ccc554d5d0c 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/Postgresql.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/Postgresql.java index 41caaca210e..0d2d9ebdd14 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/Postgresql.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/Postgresql.java @@ -111,6 +111,30 @@ ChangeConfigurationCompartmentResponse changeConfigurationCompartment( ChangeDbSystemCompartmentResponse changeDbSystemCompartment( ChangeDbSystemCompartmentRequest request); + /** + * Changes a standalone database system's role to warm-standby replica, converting it into a replica database system that replicates data from the specified primary database system. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ChangeRoleToReplica API. + */ + ChangeRoleToReplicaResponse changeRoleToReplica(ChangeRoleToReplicaRequest request); + + /** + * Convert a replica database system into a standalone database system. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ChangeRoleToStandalone API. + */ + ChangeRoleToStandaloneResponse changeRoleToStandalone(ChangeRoleToStandaloneRequest request); + /** * Creates a new backup. * @@ -258,6 +282,18 @@ ChangeDbSystemCompartmentResponse changeDbSystemCompartment( */ GetDefaultConfigurationResponse getDefaultConfiguration(GetDefaultConfigurationRequest request); + /** + * Gets the database system PITR details. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetPitrDetails API. + */ + GetPitrDetailsResponse getPitrDetails(GetPitrDetailsRequest request); + /** * Gets the primary database instance node details. * @param request The request object containing the details to send @@ -308,6 +344,19 @@ ChangeDbSystemCompartmentResponse changeDbSystemCompartment( */ ListConfigurationsResponse listConfigurations(ListConfigurationsRequest request); + /** + * Returns a list of replica database systems. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDbSystemReplicas API. + */ + ListDbSystemReplicasResponse listDbSystemReplicas(ListDbSystemReplicasRequest request); + /** * Returns a list of database systems. * @@ -335,6 +384,24 @@ ChangeDbSystemCompartmentResponse changeDbSystemCompartment( ListDefaultConfigurationsResponse listDefaultConfigurations( ListDefaultConfigurationsRequest request); + /** + * Returns the supported insight types and their capabilities. + * This API allows clients to discover: + * - Supported insight types + * - Supported insight data types for each insight type + * - Filters, sorting, pagination, limits, and data contracts + * required to use the unified insights API. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListInsightCapabilities API. + */ + ListInsightCapabilitiesResponse listInsightCapabilities(ListInsightCapabilitiesRequest request); + /** * Returns the list of shapes allowed in the region. * @param request The request object containing the details to send @@ -435,6 +502,42 @@ RestartDbInstanceInDbSystemResponse restartDbInstanceInDbSystem( */ RestoreDbSystemResponse restoreDbSystem(RestoreDbSystemRequest request); + /** + * Start the DB System. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use StartDbSystem API. + */ + StartDbSystemResponse startDbSystem(StartDbSystemRequest request); + + /** + * Stop the DB System. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use StopDbSystem API. + */ + StopDbSystemResponse stopDbSystem(StopDbSystemRequest request); + + /** + * Switchover the roles between a primary database system and its replica, making the replica the new primary and the original primary become its replica. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use SwitchOver API. + */ + SwitchOverResponse switchOver(SwitchOverRequest request); + /** * Updates the backup. * @param request The request object containing the details to send diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsync.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsync.java index 5cfe17dd62f..b7fea237c7f 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsync.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsync.java @@ -124,6 +124,38 @@ java.util.concurrent.Future changeDbSystemCom ChangeDbSystemCompartmentRequest, ChangeDbSystemCompartmentResponse> handler); + /** + * Changes a standalone database system's role to warm-standby replica, converting it into a replica database system that replicates data from the specified primary database system. + * + * @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 changeRoleToReplica( + ChangeRoleToReplicaRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeRoleToReplicaRequest, ChangeRoleToReplicaResponse> + handler); + + /** + * Convert a replica database system into a standalone database system. + * + * @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 changeRoleToStandalone( + ChangeRoleToStandaloneRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeRoleToStandaloneRequest, ChangeRoleToStandaloneResponse> + handler); + /** * Creates a new backup. * @@ -309,6 +341,21 @@ java.util.concurrent.Future getDefaultConfigura GetDefaultConfigurationRequest, GetDefaultConfigurationResponse> handler); + /** + * Gets the database system PITR details. + * + * @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 getPitrDetails( + GetPitrDetailsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Gets the primary database instance node details. * @@ -372,6 +419,23 @@ java.util.concurrent.Future listConfigurations( ListConfigurationsRequest, ListConfigurationsResponse> handler); + /** + * Returns a list of replica database systems. + * + * + * @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 listDbSystemReplicas( + ListDbSystemReplicasRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDbSystemReplicasRequest, ListDbSystemReplicasResponse> + handler); + /** * Returns a list of database systems. * @@ -405,6 +469,28 @@ java.util.concurrent.Future listDefaultConfig ListDefaultConfigurationsRequest, ListDefaultConfigurationsResponse> handler); + /** + * Returns the supported insight types and their capabilities. + * This API allows clients to discover: + * - Supported insight types + * - Supported insight data types for each insight type + * - Filters, sorting, pagination, limits, and data contracts + * required to use the unified insights API. + * + * + * @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 listInsightCapabilities( + ListInsightCapabilitiesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListInsightCapabilitiesRequest, ListInsightCapabilitiesResponse> + handler); + /** * Returns the list of shapes allowed in the region. * @@ -531,6 +617,50 @@ java.util.concurrent.Future restoreDbSystem( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Start the DB System. + * + * @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 startDbSystem( + StartDbSystemRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Stop the DB System. + * + * @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 stopDbSystem( + StopDbSystemRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Switchover the roles between a primary database system and its replica, making the replica the new primary and the original primary become its replica. + * + * @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 switchOver( + SwitchOverRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Updates the backup. * diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsyncClient.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsyncClient.java index 02ce0e4b3ad..db40f7515a3 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsyncClient.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsyncClient.java @@ -685,6 +685,112 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future changeRoleToReplica( + ChangeRoleToReplicaRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeRoleToReplicaRequest, ChangeRoleToReplicaResponse> + handler) { + LOG.trace("Called async changeRoleToReplica"); + final ChangeRoleToReplicaRequest interceptedRequest = + ChangeRoleToReplicaConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeRoleToReplicaConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "ChangeRoleToReplica", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/ChangeRoleToReplica"); + final java.util.function.Function + transformer = + ChangeRoleToReplicaConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeRoleToReplicaRequest, ChangeRoleToReplicaResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeRoleToReplicaRequest, ChangeRoleToReplicaResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeRoleToReplicaDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeRoleToReplicaRequest, ChangeRoleToReplicaResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future changeRoleToStandalone( + ChangeRoleToStandaloneRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeRoleToStandaloneRequest, ChangeRoleToStandaloneResponse> + handler) { + LOG.trace("Called async changeRoleToStandalone"); + final ChangeRoleToStandaloneRequest interceptedRequest = + ChangeRoleToStandaloneConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeRoleToStandaloneConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "ChangeRoleToStandalone", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/ChangeRoleToStandalone"); + final java.util.function.Function + transformer = + ChangeRoleToStandaloneConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeRoleToStandaloneRequest, ChangeRoleToStandaloneResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeRoleToStandaloneRequest, ChangeRoleToStandaloneResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeRoleToStandaloneDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeRoleToStandaloneRequest, ChangeRoleToStandaloneResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future createBackup( CreateBackupRequest request, @@ -1254,6 +1360,51 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getPitrDetails( + GetPitrDetailsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetPitrDetailsRequest, GetPitrDetailsResponse> + handler) { + LOG.trace("Called async getPitrDetails"); + final GetPitrDetailsRequest interceptedRequest = + GetPitrDetailsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetPitrDetailsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "GetPitrDetails", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/PitrDetails/GetPitrDetails"); + final java.util.function.Function + transformer = + GetPitrDetailsConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetPitrDetailsRequest, GetPitrDetailsResponse>, + 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< + GetPitrDetailsRequest, GetPitrDetailsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getPrimaryDbInstance( GetPrimaryDbInstanceRequest request, @@ -1436,6 +1587,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listDbSystemReplicas( + ListDbSystemReplicasRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDbSystemReplicasRequest, ListDbSystemReplicasResponse> + handler) { + LOG.trace("Called async listDbSystemReplicas"); + final ListDbSystemReplicasRequest interceptedRequest = + ListDbSystemReplicasConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDbSystemReplicasConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "ListDbSystemReplicas", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystemReplicaCollection/ListDbSystemReplicas"); + final java.util.function.Function + transformer = + ListDbSystemReplicasConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListDbSystemReplicasRequest, ListDbSystemReplicasResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDbSystemReplicasRequest, ListDbSystemReplicasResponse>, + 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< + ListDbSystemReplicasRequest, ListDbSystemReplicasResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listDbSystems( ListDbSystemsRequest request, @@ -1529,6 +1727,54 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listInsightCapabilities( + ListInsightCapabilitiesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListInsightCapabilitiesRequest, ListInsightCapabilitiesResponse> + handler) { + LOG.trace("Called async listInsightCapabilities"); + final ListInsightCapabilitiesRequest interceptedRequest = + ListInsightCapabilitiesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListInsightCapabilitiesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "ListInsightCapabilities", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/InsightCapabilitySummary/ListInsightCapabilities"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListInsightCapabilitiesResponse> + transformer = + ListInsightCapabilitiesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListInsightCapabilitiesRequest, ListInsightCapabilitiesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListInsightCapabilitiesRequest, ListInsightCapabilitiesResponse>, + 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< + ListInsightCapabilitiesRequest, ListInsightCapabilitiesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listShapes( ListShapesRequest request, @@ -1924,6 +2170,150 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future startDbSystem( + StartDbSystemRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async startDbSystem"); + final StartDbSystemRequest interceptedRequest = + StartDbSystemConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + StartDbSystemConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "StartDbSystem", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/StartDbSystem"); + final java.util.function.Function + transformer = + StartDbSystemConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + StartDbSystemRequest, StartDbSystemResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getStartDbSystemDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + StartDbSystemRequest, StartDbSystemResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future stopDbSystem( + StopDbSystemRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async stopDbSystem"); + final StopDbSystemRequest interceptedRequest = + StopDbSystemConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + StopDbSystemConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "StopDbSystem", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/StopDbSystem"); + final java.util.function.Function + transformer = + StopDbSystemConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + StopDbSystemRequest, StopDbSystemResponse>, + 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< + StopDbSystemRequest, StopDbSystemResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future switchOver( + SwitchOverRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async switchOver"); + final SwitchOverRequest interceptedRequest = SwitchOverConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + SwitchOverConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "SwitchOver", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/SwitchOver"); + final java.util.function.Function + transformer = + SwitchOverConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + SwitchOverRequest, SwitchOverResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getSwitchOverDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + SwitchOverRequest, SwitchOverResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateBackup( UpdateBackupRequest request, diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlClient.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlClient.java index 2d839dba513..ac34f1bf200 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlClient.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlClient.java @@ -729,6 +729,91 @@ public ChangeDbSystemCompartmentResponse changeDbSystemCompartment( }); } + @Override + public ChangeRoleToReplicaResponse changeRoleToReplica(ChangeRoleToReplicaRequest request) { + LOG.trace("Called changeRoleToReplica"); + final ChangeRoleToReplicaRequest interceptedRequest = + ChangeRoleToReplicaConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeRoleToReplicaConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "ChangeRoleToReplica", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/ChangeRoleToReplica"); + java.util.function.Function + transformer = + ChangeRoleToReplicaConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getChangeRoleToReplicaDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ChangeRoleToStandaloneResponse changeRoleToStandalone( + ChangeRoleToStandaloneRequest request) { + LOG.trace("Called changeRoleToStandalone"); + final ChangeRoleToStandaloneRequest interceptedRequest = + ChangeRoleToStandaloneConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeRoleToStandaloneConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "ChangeRoleToStandalone", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/ChangeRoleToStandalone"); + java.util.function.Function + transformer = + ChangeRoleToStandaloneConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getChangeRoleToStandaloneDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateBackupResponse createBackup(CreateBackupRequest request) { LOG.trace("Called createBackup"); @@ -1184,6 +1269,41 @@ public GetDefaultConfigurationResponse getDefaultConfiguration( }); } + @Override + public GetPitrDetailsResponse getPitrDetails(GetPitrDetailsRequest request) { + LOG.trace("Called getPitrDetails"); + final GetPitrDetailsRequest interceptedRequest = + GetPitrDetailsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetPitrDetailsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "GetPitrDetails", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/PitrDetails/GetPitrDetails"); + java.util.function.Function transformer = + GetPitrDetailsConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetPrimaryDbInstanceResponse getPrimaryDbInstance(GetPrimaryDbInstanceRequest request) { LOG.trace("Called getPrimaryDbInstance"); @@ -1328,6 +1448,43 @@ public ListConfigurationsResponse listConfigurations(ListConfigurationsRequest r }); } + @Override + public ListDbSystemReplicasResponse listDbSystemReplicas(ListDbSystemReplicasRequest request) { + LOG.trace("Called listDbSystemReplicas"); + final ListDbSystemReplicasRequest interceptedRequest = + ListDbSystemReplicasConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDbSystemReplicasConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "ListDbSystemReplicas", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystemReplicaCollection/ListDbSystemReplicas"); + java.util.function.Function + transformer = + ListDbSystemReplicasConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListDbSystemsResponse listDbSystems(ListDbSystemsRequest request) { LOG.trace("Called listDbSystems"); @@ -1401,6 +1558,44 @@ public ListDefaultConfigurationsResponse listDefaultConfigurations( }); } + @Override + public ListInsightCapabilitiesResponse listInsightCapabilities( + ListInsightCapabilitiesRequest request) { + LOG.trace("Called listInsightCapabilities"); + final ListInsightCapabilitiesRequest interceptedRequest = + ListInsightCapabilitiesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListInsightCapabilitiesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "ListInsightCapabilities", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/InsightCapabilitySummary/ListInsightCapabilities"); + java.util.function.Function + transformer = + ListInsightCapabilitiesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListShapesResponse listShapes(ListShapesRequest request) { LOG.trace("Called listShapes"); @@ -1715,6 +1910,122 @@ public RestoreDbSystemResponse restoreDbSystem(RestoreDbSystemRequest request) { }); } + @Override + public StartDbSystemResponse startDbSystem(StartDbSystemRequest request) { + LOG.trace("Called startDbSystem"); + final StartDbSystemRequest interceptedRequest = + StartDbSystemConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + StartDbSystemConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "StartDbSystem", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/StartDbSystem"); + java.util.function.Function transformer = + StartDbSystemConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getStartDbSystemDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public StopDbSystemResponse stopDbSystem(StopDbSystemRequest request) { + LOG.trace("Called stopDbSystem"); + final StopDbSystemRequest interceptedRequest = + StopDbSystemConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + StopDbSystemConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "StopDbSystem", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/StopDbSystem"); + java.util.function.Function transformer = + StopDbSystemConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public SwitchOverResponse switchOver(SwitchOverRequest request) { + LOG.trace("Called switchOver"); + final SwitchOverRequest interceptedRequest = SwitchOverConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + SwitchOverConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Postgresql", + "SwitchOver", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/SwitchOver"); + java.util.function.Function transformer = + SwitchOverConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getSwitchOverDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateBackupResponse updateBackup(UpdateBackupRequest request) { LOG.trace("Called updateBackup"); diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlPaginators.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlPaginators.java index 6309e5eab79..e402feb4329 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlPaginators.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlPaginators.java @@ -256,6 +256,119 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listDbSystemReplicas 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 listDbSystemReplicasResponseIterator( + final ListDbSystemReplicasRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDbSystemReplicasRequest.Builder, ListDbSystemReplicasRequest, + ListDbSystemReplicasResponse>( + new java.util.function.Supplier() { + @Override + public ListDbSystemReplicasRequest.Builder get() { + return ListDbSystemReplicasRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDbSystemReplicasResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDbSystemReplicasRequest.Builder>, + ListDbSystemReplicasRequest>() { + @Override + public ListDbSystemReplicasRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDbSystemReplicasRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListDbSystemReplicasRequest, ListDbSystemReplicasResponse>() { + @Override + public ListDbSystemReplicasResponse apply(ListDbSystemReplicasRequest request) { + return client.listDbSystemReplicas(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.psql.model.DbSystemReplicaSummary} objects + * contained in responses from the listDbSystemReplicas 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.psql.model.DbSystemReplicaSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDbSystemReplicasRecordIterator(final ListDbSystemReplicasRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDbSystemReplicasRequest.Builder, ListDbSystemReplicasRequest, + ListDbSystemReplicasResponse, com.oracle.bmc.psql.model.DbSystemReplicaSummary>( + new java.util.function.Supplier() { + @Override + public ListDbSystemReplicasRequest.Builder get() { + return ListDbSystemReplicasRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDbSystemReplicasResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDbSystemReplicasRequest.Builder>, + ListDbSystemReplicasRequest>() { + @Override + public ListDbSystemReplicasRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDbSystemReplicasRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListDbSystemReplicasRequest, ListDbSystemReplicasResponse>() { + @Override + public ListDbSystemReplicasResponse apply(ListDbSystemReplicasRequest request) { + return client.listDbSystemReplicas(request); + } + }, + new java.util.function.Function< + ListDbSystemReplicasResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListDbSystemReplicasResponse response) { + return response.getDbSystemReplicaCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listDbSystems operation. This iterable * will fetch more data from the server as needed. @@ -483,6 +596,122 @@ public ListDefaultConfigurationsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listInsightCapabilities 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 listInsightCapabilitiesResponseIterator( + final ListInsightCapabilitiesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListInsightCapabilitiesRequest.Builder, ListInsightCapabilitiesRequest, + ListInsightCapabilitiesResponse>( + new java.util.function.Supplier() { + @Override + public ListInsightCapabilitiesRequest.Builder get() { + return ListInsightCapabilitiesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListInsightCapabilitiesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInsightCapabilitiesRequest.Builder>, + ListInsightCapabilitiesRequest>() { + @Override + public ListInsightCapabilitiesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInsightCapabilitiesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListInsightCapabilitiesRequest, ListInsightCapabilitiesResponse>() { + @Override + public ListInsightCapabilitiesResponse apply( + ListInsightCapabilitiesRequest request) { + return client.listInsightCapabilities(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.psql.model.InsightCapabilitySummary} objects + * contained in responses from the listInsightCapabilities 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.psql.model.InsightCapabilitySummary} objects + * contained in responses received from the service. + */ + public Iterable + listInsightCapabilitiesRecordIterator(final ListInsightCapabilitiesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListInsightCapabilitiesRequest.Builder, ListInsightCapabilitiesRequest, + ListInsightCapabilitiesResponse, + com.oracle.bmc.psql.model.InsightCapabilitySummary>( + new java.util.function.Supplier() { + @Override + public ListInsightCapabilitiesRequest.Builder get() { + return ListInsightCapabilitiesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListInsightCapabilitiesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInsightCapabilitiesRequest.Builder>, + ListInsightCapabilitiesRequest>() { + @Override + public ListInsightCapabilitiesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInsightCapabilitiesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListInsightCapabilitiesRequest, ListInsightCapabilitiesResponse>() { + @Override + public ListInsightCapabilitiesResponse apply( + ListInsightCapabilitiesRequest request) { + return client.listInsightCapabilities(request); + } + }, + new java.util.function.Function< + ListInsightCapabilitiesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListInsightCapabilitiesResponse response) { + return response.getInsightCapabilityCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listShapes operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ChangeRoleToReplicaConverter.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ChangeRoleToReplicaConverter.java new file mode 100644 index 00000000000..2f970b6aa48 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ChangeRoleToReplicaConverter.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.psql.model.*; +import com.oracle.bmc.psql.requests.*; +import com.oracle.bmc.psql.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ChangeRoleToReplicaConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ChangeRoleToReplicaConverter.class); + + public static com.oracle.bmc.psql.requests.ChangeRoleToReplicaRequest interceptRequest( + com.oracle.bmc.psql.requests.ChangeRoleToReplicaRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.psql.requests.ChangeRoleToReplicaRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getChangeRoleToReplicaDetails(), "changeRoleToReplicaDetails is required"); + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220915") + .path("dbSystems") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDbSystemId())) + .path("actions") + .path("changeRoleToReplica"); + + 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()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ChangeRoleToReplicaResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ChangeRoleToReplicaResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ChangeRoleToReplicaResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ChangeRoleToReplicaResponse>() { + @Override + public com.oracle.bmc.psql.responses.ChangeRoleToReplicaResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.psql.responses.ChangeRoleToReplicaResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.psql.responses.ChangeRoleToReplicaResponse.Builder + builder = + com.oracle.bmc.psql.responses + .ChangeRoleToReplicaResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.psql.responses.ChangeRoleToReplicaResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ChangeRoleToStandaloneConverter.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ChangeRoleToStandaloneConverter.java new file mode 100644 index 00000000000..deccd2304e2 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ChangeRoleToStandaloneConverter.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.psql.model.*; +import com.oracle.bmc.psql.requests.*; +import com.oracle.bmc.psql.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ChangeRoleToStandaloneConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ChangeRoleToStandaloneConverter.class); + + public static com.oracle.bmc.psql.requests.ChangeRoleToStandaloneRequest interceptRequest( + com.oracle.bmc.psql.requests.ChangeRoleToStandaloneRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.psql.requests.ChangeRoleToStandaloneRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getChangeRoleToStandaloneDetails(), + "changeRoleToStandaloneDetails is required"); + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220915") + .path("dbSystems") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDbSystemId())) + .path("actions") + .path("changeRoleToStandalone"); + + 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()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ChangeRoleToStandaloneResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ChangeRoleToStandaloneResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ChangeRoleToStandaloneResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ChangeRoleToStandaloneResponse>() { + @Override + public com.oracle.bmc.psql.responses.ChangeRoleToStandaloneResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.psql.responses.ChangeRoleToStandaloneResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.psql.responses.ChangeRoleToStandaloneResponse.Builder + builder = + com.oracle.bmc.psql.responses + .ChangeRoleToStandaloneResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.psql.responses.ChangeRoleToStandaloneResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/GetPitrDetailsConverter.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/GetPitrDetailsConverter.java new file mode 100644 index 00000000000..1610cd7ac60 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/GetPitrDetailsConverter.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.psql.model.*; +import com.oracle.bmc.psql.requests.*; +import com.oracle.bmc.psql.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class GetPitrDetailsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetPitrDetailsConverter.class); + + public static com.oracle.bmc.psql.requests.GetPitrDetailsRequest interceptRequest( + com.oracle.bmc.psql.requests.GetPitrDetailsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.psql.requests.GetPitrDetailsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220915") + .path("dbSystems") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDbSystemId())) + .path("pitrDetails"); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.psql.responses.GetPitrDetailsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.psql.responses.GetPitrDetailsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.GetPitrDetailsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.GetPitrDetailsResponse>() { + @Override + public com.oracle.bmc.psql.responses.GetPitrDetailsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.psql.responses.GetPitrDetailsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.psql.model.PitrDetails>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.psql.model.PitrDetails.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.psql.model.PitrDetails.class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.psql.model.PitrDetails> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.psql.responses.GetPitrDetailsResponse.Builder + builder = + com.oracle.bmc.psql.responses.GetPitrDetailsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.pitrDetails(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.psql.responses.GetPitrDetailsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ListBackupsConverter.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ListBackupsConverter.java index 92a7be8b6f3..bf5cf5e2476 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ListBackupsConverter.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ListBackupsConverter.java @@ -121,6 +121,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getSortBy().getValue())); } + if (request.getBackupSourceType() != null) { + target = + target.queryParam( + "backupSourceType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getBackupSourceType())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ListDbSystemReplicasConverter.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ListDbSystemReplicasConverter.java new file mode 100644 index 00000000000..ddc53e8ef1f --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ListDbSystemReplicasConverter.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.psql.model.*; +import com.oracle.bmc.psql.requests.*; +import com.oracle.bmc.psql.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ListDbSystemReplicasConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListDbSystemReplicasConverter.class); + + public static com.oracle.bmc.psql.requests.ListDbSystemReplicasRequest interceptRequest( + com.oracle.bmc.psql.requests.ListDbSystemReplicasRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.psql.requests.ListDbSystemReplicasRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220915") + .path("dbSystems") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDbSystemId())) + .path("replicas"); + + 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())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ListDbSystemReplicasResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ListDbSystemReplicasResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ListDbSystemReplicasResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ListDbSystemReplicasResponse>() { + @Override + public com.oracle.bmc.psql.responses.ListDbSystemReplicasResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.psql.responses.ListDbSystemReplicasResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.psql.model + .DbSystemReplicaCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.psql.model + .DbSystemReplicaCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.psql.model + .DbSystemReplicaCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.psql.model.DbSystemReplicaCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.psql.responses.ListDbSystemReplicasResponse.Builder + builder = + com.oracle.bmc.psql.responses + .ListDbSystemReplicasResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.dbSystemReplicaCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.psql.responses.ListDbSystemReplicasResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ListDbSystemsConverter.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ListDbSystemsConverter.java index a09fabd33d7..69cf8419f20 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ListDbSystemsConverter.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ListDbSystemsConverter.java @@ -97,6 +97,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getSortBy().getValue())); } + if (request.getSystemRole() != null) { + target = + target.queryParam( + "systemRole", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSystemRole().getValue())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ListInsightCapabilitiesConverter.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ListInsightCapabilitiesConverter.java new file mode 100644 index 00000000000..9f9fa16e917 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/ListInsightCapabilitiesConverter.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.psql.model.*; +import com.oracle.bmc.psql.requests.*; +import com.oracle.bmc.psql.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ListInsightCapabilitiesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListInsightCapabilitiesConverter.class); + + public static com.oracle.bmc.psql.requests.ListInsightCapabilitiesRequest interceptRequest( + com.oracle.bmc.psql.requests.ListInsightCapabilitiesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.psql.requests.ListInsightCapabilitiesRequest request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20220915").path("insightCapabilities"); + + 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())); + } + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ListInsightCapabilitiesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ListInsightCapabilitiesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ListInsightCapabilitiesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.ListInsightCapabilitiesResponse>() { + @Override + public com.oracle.bmc.psql.responses.ListInsightCapabilitiesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.psql.responses.ListInsightCapabilitiesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.psql.model + .InsightCapabilityCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.psql.model + .InsightCapabilityCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.psql.model + .InsightCapabilityCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.psql.model + .InsightCapabilityCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.psql.responses.ListInsightCapabilitiesResponse + .Builder + builder = + com.oracle.bmc.psql.responses + .ListInsightCapabilitiesResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.insightCapabilityCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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.oracle.bmc.psql.responses.ListInsightCapabilitiesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/StartDbSystemConverter.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/StartDbSystemConverter.java new file mode 100644 index 00000000000..3335e5d1698 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/StartDbSystemConverter.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.psql.model.*; +import com.oracle.bmc.psql.requests.*; +import com.oracle.bmc.psql.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class StartDbSystemConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(StartDbSystemConverter.class); + + public static com.oracle.bmc.psql.requests.StartDbSystemRequest interceptRequest( + com.oracle.bmc.psql.requests.StartDbSystemRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.psql.requests.StartDbSystemRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + Validate.notNull(request.getStartDbSystemDetails(), "startDbSystemDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220915") + .path("dbSystems") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDbSystemId())) + .path("actions") + .path("start"); + + 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()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.psql.responses.StartDbSystemResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.psql.responses.StartDbSystemResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.StartDbSystemResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.StartDbSystemResponse>() { + @Override + public com.oracle.bmc.psql.responses.StartDbSystemResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.psql.responses.StartDbSystemResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.psql.responses.StartDbSystemResponse.Builder + builder = + com.oracle.bmc.psql.responses.StartDbSystemResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.psql.responses.StartDbSystemResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/StopDbSystemConverter.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/StopDbSystemConverter.java new file mode 100644 index 00000000000..826bc02931a --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/StopDbSystemConverter.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.psql.model.*; +import com.oracle.bmc.psql.requests.*; +import com.oracle.bmc.psql.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class StopDbSystemConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(StopDbSystemConverter.class); + + public static com.oracle.bmc.psql.requests.StopDbSystemRequest interceptRequest( + com.oracle.bmc.psql.requests.StopDbSystemRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.psql.requests.StopDbSystemRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220915") + .path("dbSystems") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDbSystemId())) + .path("actions") + .path("stop"); + + 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()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.psql.responses.StopDbSystemResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.psql.responses.StopDbSystemResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.StopDbSystemResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.StopDbSystemResponse>() { + @Override + public com.oracle.bmc.psql.responses.StopDbSystemResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.psql.responses.StopDbSystemResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.psql.responses.StopDbSystemResponse.Builder builder = + com.oracle.bmc.psql.responses.StopDbSystemResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.psql.responses.StopDbSystemResponse responseWrapper = + builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/SwitchOverConverter.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/SwitchOverConverter.java new file mode 100644 index 00000000000..bbc211d31d8 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/internal/http/SwitchOverConverter.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.psql.model.*; +import com.oracle.bmc.psql.requests.*; +import com.oracle.bmc.psql.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class SwitchOverConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(SwitchOverConverter.class); + + public static com.oracle.bmc.psql.requests.SwitchOverRequest interceptRequest( + com.oracle.bmc.psql.requests.SwitchOverRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.psql.requests.SwitchOverRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getSwitchOverDetails(), "switchOverDetails is required"); + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220915") + .path("dbSystems") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDbSystemId())) + .path("actions") + .path("switchover"); + + 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()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.psql.responses.SwitchOverResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.psql.responses.SwitchOverResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.psql.responses.SwitchOverResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.psql.responses.SwitchOverResponse>() { + @Override + public com.oracle.bmc.psql.responses.SwitchOverResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.psql.responses.SwitchOverResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + 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.psql.responses.SwitchOverResponse.Builder builder = + com.oracle.bmc.psql.responses.SwitchOverResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.psql.responses.SwitchOverResponse responseWrapper = + builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/Backup.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/Backup.java index fc898b15a75..4fd4990b245 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/Backup.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/Backup.java @@ -627,6 +627,7 @@ public String getCompartmentId() { public enum SourceType { Scheduled("SCHEDULED"), Manual("MANUAL"), + Pitr("PITR"), Copied("COPIED"), /** diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java index fc36723a48a..f71f303ab2d 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java @@ -65,13 +65,13 @@ public Builder retentionPeriod(Integer retentionPeriod) { return this; } /** - * List of region names of the remote region + * List of region names of the remote regions **/ @com.fasterxml.jackson.annotation.JsonProperty("regions") private java.util.List regions; /** - * List of region names of the remote region + * List of region names of the remote regions * @param regions the value to set * @return this builder **/ @@ -148,13 +148,13 @@ public Integer getRetentionPeriod() { } /** - * List of region names of the remote region + * List of region names of the remote regions **/ @com.fasterxml.jackson.annotation.JsonProperty("regions") private final java.util.List regions; /** - * List of region names of the remote region + * List of region names of the remote regions * @return the value **/ public java.util.List getRegions() { diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CustomerLoggingDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ChangeRoleToReplicaDetails.java similarity index 61% rename from bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CustomerLoggingDetails.java rename to bmc-psql/src/main/java/com/oracle/bmc/psql/model/ChangeRoleToReplicaDetails.java index 7406c10d121..6e59ebde38a 100644 --- a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CustomerLoggingDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ChangeRoleToReplicaDetails.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.opensearch.model; +package com.oracle.bmc.psql.model; /** - * Customer logging configuration + * The information required to change a primary database system's role to replica. *
* 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 @@ -14,44 +14,47 @@ * {@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: 20180828") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CustomerLoggingDetails.Builder.class + builder = ChangeRoleToReplicaDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CustomerLoggingDetails +public final class ChangeRoleToReplicaDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"logRetentionDays"}) - public CustomerLoggingDetails(Integer logRetentionDays) { + @java.beans.ConstructorProperties({"primaryDbSystemId"}) + public ChangeRoleToReplicaDetails(String primaryDbSystemId) { super(); - this.logRetentionDays = logRetentionDays; + this.primaryDbSystemId = primaryDbSystemId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * the age of an index after which the index will get deleted by ISM policy + * The [OCID] of the primary database system. + * **/ - @com.fasterxml.jackson.annotation.JsonProperty("logRetentionDays") - private Integer logRetentionDays; + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbSystemId") + private String primaryDbSystemId; /** - * the age of an index after which the index will get deleted by ISM policy - * @param logRetentionDays the value to set + * The [OCID] of the primary database system. + * + * @param primaryDbSystemId the value to set * @return this builder **/ - public Builder logRetentionDays(Integer logRetentionDays) { - this.logRetentionDays = logRetentionDays; - this.__explicitlySet__.add("logRetentionDays"); + public Builder primaryDbSystemId(String primaryDbSystemId) { + this.primaryDbSystemId = primaryDbSystemId; + this.__explicitlySet__.add("primaryDbSystemId"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public CustomerLoggingDetails build() { - CustomerLoggingDetails model = new CustomerLoggingDetails(this.logRetentionDays); + public ChangeRoleToReplicaDetails build() { + ChangeRoleToReplicaDetails model = + new ChangeRoleToReplicaDetails(this.primaryDbSystemId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -59,9 +62,9 @@ public CustomerLoggingDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CustomerLoggingDetails model) { - if (model.wasPropertyExplicitlySet("logRetentionDays")) { - this.logRetentionDays(model.getLogRetentionDays()); + public Builder copy(ChangeRoleToReplicaDetails model) { + if (model.wasPropertyExplicitlySet("primaryDbSystemId")) { + this.primaryDbSystemId(model.getPrimaryDbSystemId()); } return this; } @@ -79,17 +82,19 @@ public Builder toBuilder() { } /** - * the age of an index after which the index will get deleted by ISM policy + * The [OCID] of the primary database system. + * **/ - @com.fasterxml.jackson.annotation.JsonProperty("logRetentionDays") - private final Integer logRetentionDays; + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbSystemId") + private final String primaryDbSystemId; /** - * the age of an index after which the index will get deleted by ISM policy + * The [OCID] of the primary database system. + * * @return the value **/ - public Integer getLogRetentionDays() { - return logRetentionDays; + public String getPrimaryDbSystemId() { + return primaryDbSystemId; } @Override @@ -104,9 +109,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CustomerLoggingDetails("); + sb.append("ChangeRoleToReplicaDetails("); sb.append("super=").append(super.toString()); - sb.append("logRetentionDays=").append(String.valueOf(this.logRetentionDays)); + sb.append("primaryDbSystemId=").append(String.valueOf(this.primaryDbSystemId)); sb.append(")"); return sb.toString(); } @@ -116,12 +121,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CustomerLoggingDetails)) { + if (!(o instanceof ChangeRoleToReplicaDetails)) { return false; } - CustomerLoggingDetails other = (CustomerLoggingDetails) o; - return java.util.Objects.equals(this.logRetentionDays, other.logRetentionDays) + ChangeRoleToReplicaDetails other = (ChangeRoleToReplicaDetails) o; + return java.util.Objects.equals(this.primaryDbSystemId, other.primaryDbSystemId) && super.equals(other); } @@ -131,7 +136,7 @@ public int hashCode() { int result = 1; result = (result * PRIME) - + (this.logRetentionDays == null ? 43 : this.logRetentionDays.hashCode()); + + (this.primaryDbSystemId == null ? 43 : this.primaryDbSystemId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ChangeRoleToStandaloneDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ChangeRoleToStandaloneDetails.java new file mode 100644 index 00000000000..c90e1e259eb --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ChangeRoleToStandaloneDetails.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * The information required to change a replica database system's role to standalone. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeRoleToStandaloneDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeRoleToStandaloneDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"changeMode"}) + public ChangeRoleToStandaloneDetails(ChangeMode changeMode) { + super(); + this.changeMode = changeMode; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type of the mode choose during change role operation. + * REPLAY_PENDING_UPDATES (Default value): In this mode, the role change is delayed until replica database system has processed all Write-Ahead log (WAL) records that were archived before this API call is made. + * IMMEDIATELY: In this mode, the role change is applied right away, without waiting for any pending WAL records to be processed. This allows for an immediate transition. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("changeMode") + private ChangeMode changeMode; + + /** + * Type of the mode choose during change role operation. + * REPLAY_PENDING_UPDATES (Default value): In this mode, the role change is delayed until replica database system has processed all Write-Ahead log (WAL) records that were archived before this API call is made. + * IMMEDIATELY: In this mode, the role change is applied right away, without waiting for any pending WAL records to be processed. This allows for an immediate transition. + * + * @param changeMode the value to set + * @return this builder + **/ + public Builder changeMode(ChangeMode changeMode) { + this.changeMode = changeMode; + this.__explicitlySet__.add("changeMode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeRoleToStandaloneDetails build() { + ChangeRoleToStandaloneDetails model = + new ChangeRoleToStandaloneDetails(this.changeMode); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeRoleToStandaloneDetails model) { + if (model.wasPropertyExplicitlySet("changeMode")) { + this.changeMode(model.getChangeMode()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Type of the mode choose during change role operation. + * REPLAY_PENDING_UPDATES (Default value): In this mode, the role change is delayed until replica database system has processed all Write-Ahead log (WAL) records that were archived before this API call is made. + * IMMEDIATELY: In this mode, the role change is applied right away, without waiting for any pending WAL records to be processed. This allows for an immediate transition. + * + **/ + public enum ChangeMode { + ReplayPendingUpdates("REPLAY_PENDING_UPDATES"), + Immediately("IMMEDIATELY"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ChangeMode v : ChangeMode.values()) { + map.put(v.getValue(), v); + } + } + + ChangeMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ChangeMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ChangeMode: " + key); + } + }; + /** + * Type of the mode choose during change role operation. + * REPLAY_PENDING_UPDATES (Default value): In this mode, the role change is delayed until replica database system has processed all Write-Ahead log (WAL) records that were archived before this API call is made. + * IMMEDIATELY: In this mode, the role change is applied right away, without waiting for any pending WAL records to be processed. This allows for an immediate transition. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("changeMode") + private final ChangeMode changeMode; + + /** + * Type of the mode choose during change role operation. + * REPLAY_PENDING_UPDATES (Default value): In this mode, the role change is delayed until replica database system has processed all Write-Ahead log (WAL) records that were archived before this API call is made. + * IMMEDIATELY: In this mode, the role change is applied right away, without waiting for any pending WAL records to be processed. This allows for an immediate transition. + * + * @return the value + **/ + public ChangeMode getChangeMode() { + return changeMode; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeRoleToStandaloneDetails("); + sb.append("super=").append(super.toString()); + sb.append("changeMode=").append(String.valueOf(this.changeMode)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeRoleToStandaloneDetails)) { + return false; + } + + ChangeRoleToStandaloneDetails other = (ChangeRoleToStandaloneDetails) o; + return java.util.Objects.equals(this.changeMode, other.changeMode) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.changeMode == null ? 43 : this.changeMode.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/CreateDbSystemDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/CreateDbSystemDetails.java index df737437bcd..a565637d410 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/CreateDbSystemDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/CreateDbSystemDetails.java @@ -39,6 +39,8 @@ public final class CreateDbSystemDetails "networkDetails", "managementPolicy", "source", + "replicationConfig", + "odspInsightDetails", "freeformTags", "definedTags" }) @@ -59,6 +61,8 @@ public CreateDbSystemDetails( NetworkDetails networkDetails, ManagementPolicyDetails managementPolicy, SourceDetails source, + CreateReplicationConfigDetails replicationConfig, + OdspInsightDetails odspInsightDetails, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -78,6 +82,8 @@ public CreateDbSystemDetails( this.networkDetails = networkDetails; this.managementPolicy = managementPolicy; this.source = source; + this.replicationConfig = replicationConfig; + this.odspInsightDetails = odspInsightDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -315,6 +321,24 @@ public Builder source(SourceDetails source) { this.__explicitlySet__.add("source"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationConfig") + private CreateReplicationConfigDetails replicationConfig; + + public Builder replicationConfig(CreateReplicationConfigDetails replicationConfig) { + this.replicationConfig = replicationConfig; + this.__explicitlySet__.add("replicationConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightDetails") + private OdspInsightDetails odspInsightDetails; + + public Builder odspInsightDetails(OdspInsightDetails odspInsightDetails) { + this.odspInsightDetails = odspInsightDetails; + this.__explicitlySet__.add("odspInsightDetails"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -379,6 +403,8 @@ public CreateDbSystemDetails build() { this.networkDetails, this.managementPolicy, this.source, + this.replicationConfig, + this.odspInsightDetails, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -437,6 +463,12 @@ public Builder copy(CreateDbSystemDetails model) { if (model.wasPropertyExplicitlySet("source")) { this.source(model.getSource()); } + if (model.wasPropertyExplicitlySet("replicationConfig")) { + this.replicationConfig(model.getReplicationConfig()); + } + if (model.wasPropertyExplicitlySet("odspInsightDetails")) { + this.odspInsightDetails(model.getOdspInsightDetails()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -657,6 +689,20 @@ public SourceDetails getSource() { return source; } + @com.fasterxml.jackson.annotation.JsonProperty("replicationConfig") + private final CreateReplicationConfigDetails replicationConfig; + + public CreateReplicationConfigDetails getReplicationConfig() { + return replicationConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightDetails") + private final OdspInsightDetails odspInsightDetails; + + public OdspInsightDetails getOdspInsightDetails() { + return odspInsightDetails; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -724,6 +770,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", networkDetails=").append(String.valueOf(this.networkDetails)); sb.append(", managementPolicy=").append(String.valueOf(this.managementPolicy)); sb.append(", source=").append(String.valueOf(this.source)); + sb.append(", replicationConfig=").append(String.valueOf(this.replicationConfig)); + sb.append(", odspInsightDetails=").append(String.valueOf(this.odspInsightDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -757,6 +805,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.networkDetails, other.networkDetails) && java.util.Objects.equals(this.managementPolicy, other.managementPolicy) && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.replicationConfig, other.replicationConfig) + && java.util.Objects.equals(this.odspInsightDetails, other.odspInsightDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -800,6 +850,14 @@ public int hashCode() { (result * PRIME) + (this.managementPolicy == null ? 43 : this.managementPolicy.hashCode()); result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = + (result * PRIME) + + (this.replicationConfig == null ? 43 : this.replicationConfig.hashCode()); + result = + (result * PRIME) + + (this.odspInsightDetails == null + ? 43 + : this.odspInsightDetails.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/CreateReplicationConfigDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/CreateReplicationConfigDetails.java new file mode 100644 index 00000000000..1516e488def --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/CreateReplicationConfigDetails.java @@ -0,0 +1,196 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Details of the replication configuration that is applicable when database system gets the + * PRIMARY_DB_SYSTEM role. + *

+ * This configuration does not have any effect on database systems with other roles. + * + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateReplicationConfigDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateReplicationConfigDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isRpoEnforced", "rpoInSeconds"}) + public CreateReplicationConfigDetails(Boolean isRpoEnforced, Long rpoInSeconds) { + super(); + this.isRpoEnforced = isRpoEnforced; + this.rpoInSeconds = rpoInSeconds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRpoEnforced") + private Boolean isRpoEnforced; + + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + * + * @param isRpoEnforced the value to set + * @return this builder + **/ + public Builder isRpoEnforced(Boolean isRpoEnforced) { + this.isRpoEnforced = isRpoEnforced; + this.__explicitlySet__.add("isRpoEnforced"); + return this; + } + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rpoInSeconds") + private Long rpoInSeconds; + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + * @param rpoInSeconds the value to set + * @return this builder + **/ + public Builder rpoInSeconds(Long rpoInSeconds) { + this.rpoInSeconds = rpoInSeconds; + this.__explicitlySet__.add("rpoInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateReplicationConfigDetails build() { + CreateReplicationConfigDetails model = + new CreateReplicationConfigDetails(this.isRpoEnforced, this.rpoInSeconds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateReplicationConfigDetails model) { + if (model.wasPropertyExplicitlySet("isRpoEnforced")) { + this.isRpoEnforced(model.getIsRpoEnforced()); + } + if (model.wasPropertyExplicitlySet("rpoInSeconds")) { + this.rpoInSeconds(model.getRpoInSeconds()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRpoEnforced") + private final Boolean isRpoEnforced; + + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + * + * @return the value + **/ + public Boolean getIsRpoEnforced() { + return isRpoEnforced; + } + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rpoInSeconds") + private final Long rpoInSeconds; + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + * @return the value + **/ + public Long getRpoInSeconds() { + return rpoInSeconds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateReplicationConfigDetails("); + sb.append("super=").append(super.toString()); + sb.append("isRpoEnforced=").append(String.valueOf(this.isRpoEnforced)); + sb.append(", rpoInSeconds=").append(String.valueOf(this.rpoInSeconds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateReplicationConfigDetails)) { + return false; + } + + CreateReplicationConfigDetails other = (CreateReplicationConfigDetails) o; + return java.util.Objects.equals(this.isRpoEnforced, other.isRpoEnforced) + && java.util.Objects.equals(this.rpoInSeconds, other.rpoInSeconds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isRpoEnforced == null ? 43 : this.isRpoEnforced.hashCode()); + result = (result * PRIME) + (this.rpoInSeconds == null ? 43 : this.rpoInSeconds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DateTimeRangeCapability.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DateTimeRangeCapability.java new file mode 100644 index 00000000000..7709e202c18 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DateTimeRangeCapability.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Indicates whether a time range is required for the insight. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DateTimeRangeCapability.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DateTimeRangeCapability + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isRequired"}) + public DateTimeRangeCapability(Boolean isRequired) { + super(); + this.isRequired = isRequired; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Indicates whether start and end time parameters are required. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRequired") + private Boolean isRequired; + + /** + * Indicates whether start and end time parameters are required. + * @param isRequired the value to set + * @return this builder + **/ + public Builder isRequired(Boolean isRequired) { + this.isRequired = isRequired; + this.__explicitlySet__.add("isRequired"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DateTimeRangeCapability build() { + DateTimeRangeCapability model = new DateTimeRangeCapability(this.isRequired); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DateTimeRangeCapability model) { + if (model.wasPropertyExplicitlySet("isRequired")) { + this.isRequired(model.getIsRequired()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Indicates whether start and end time parameters are required. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRequired") + private final Boolean isRequired; + + /** + * Indicates whether start and end time parameters are required. + * @return the value + **/ + public Boolean getIsRequired() { + return isRequired; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DateTimeRangeCapability("); + sb.append("super=").append(super.toString()); + sb.append("isRequired=").append(String.valueOf(this.isRequired)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DateTimeRangeCapability)) { + return false; + } + + DateTimeRangeCapability other = (DateTimeRangeCapability) o; + return java.util.Objects.equals(this.isRequired, other.isRequired) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isRequired == null ? 43 : this.isRequired.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystem.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystem.java index 8ac55d89afe..f206ba298eb 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystem.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystem.java @@ -33,6 +33,8 @@ public final class DbSystem extends com.oracle.bmc.http.internal.ExplicitlySetBm "definedTags", "systemTags", "systemType", + "systemRole", + "replicationConfig", "dbVersion", "configId", "shape", @@ -43,7 +45,9 @@ public final class DbSystem extends com.oracle.bmc.http.internal.ExplicitlySetBm "storageDetails", "networkDetails", "managementPolicy", - "source" + "source", + "kerberosAuthDetails", + "odspInsightDetails" }) public DbSystem( String id, @@ -59,6 +63,8 @@ public DbSystem( java.util.Map> definedTags, java.util.Map> systemTags, SystemType systemType, + SystemRole systemRole, + ReplicationConfig replicationConfig, String dbVersion, String configId, String shape, @@ -69,7 +75,9 @@ public DbSystem( StorageDetails storageDetails, NetworkDetails networkDetails, ManagementPolicy managementPolicy, - SourceDetails source) { + SourceDetails source, + KerberosAuthDetails kerberosAuthDetails, + OdspInsightDetails odspInsightDetails) { super(); this.id = id; this.displayName = displayName; @@ -84,6 +92,8 @@ public DbSystem( this.definedTags = definedTags; this.systemTags = systemTags; this.systemType = systemType; + this.systemRole = systemRole; + this.replicationConfig = replicationConfig; this.dbVersion = dbVersion; this.configId = configId; this.shape = shape; @@ -95,6 +105,8 @@ public DbSystem( this.networkDetails = networkDetails; this.managementPolicy = managementPolicy; this.source = source; + this.kerberosAuthDetails = kerberosAuthDetails; + this.odspInsightDetails = odspInsightDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -336,6 +348,31 @@ public Builder systemType(SystemType systemType) { this.__explicitlySet__.add("systemType"); return this; } + /** + * Type of the database system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemRole") + private SystemRole systemRole; + + /** + * Type of the database system. + * @param systemRole the value to set + * @return this builder + **/ + public Builder systemRole(SystemRole systemRole) { + this.systemRole = systemRole; + this.__explicitlySet__.add("systemRole"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationConfig") + private ReplicationConfig replicationConfig; + + public Builder replicationConfig(ReplicationConfig replicationConfig) { + this.replicationConfig = replicationConfig; + this.__explicitlySet__.add("replicationConfig"); + return this; + } /** * The major and minor versions of the database system software. **/ @@ -489,6 +526,24 @@ public Builder source(SourceDetails source) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("kerberosAuthDetails") + private KerberosAuthDetails kerberosAuthDetails; + + public Builder kerberosAuthDetails(KerberosAuthDetails kerberosAuthDetails) { + this.kerberosAuthDetails = kerberosAuthDetails; + this.__explicitlySet__.add("kerberosAuthDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightDetails") + private OdspInsightDetails odspInsightDetails; + + public Builder odspInsightDetails(OdspInsightDetails odspInsightDetails) { + this.odspInsightDetails = odspInsightDetails; + this.__explicitlySet__.add("odspInsightDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -508,6 +563,8 @@ public DbSystem build() { this.definedTags, this.systemTags, this.systemType, + this.systemRole, + this.replicationConfig, this.dbVersion, this.configId, this.shape, @@ -518,7 +575,9 @@ public DbSystem build() { this.storageDetails, this.networkDetails, this.managementPolicy, - this.source); + this.source, + this.kerberosAuthDetails, + this.odspInsightDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -566,6 +625,12 @@ public Builder copy(DbSystem model) { if (model.wasPropertyExplicitlySet("systemType")) { this.systemType(model.getSystemType()); } + if (model.wasPropertyExplicitlySet("systemRole")) { + this.systemRole(model.getSystemRole()); + } + if (model.wasPropertyExplicitlySet("replicationConfig")) { + this.replicationConfig(model.getReplicationConfig()); + } if (model.wasPropertyExplicitlySet("dbVersion")) { this.dbVersion(model.getDbVersion()); } @@ -599,6 +664,12 @@ public Builder copy(DbSystem model) { if (model.wasPropertyExplicitlySet("source")) { this.source(model.getSource()); } + if (model.wasPropertyExplicitlySet("kerberosAuthDetails")) { + this.kerberosAuthDetails(model.getKerberosAuthDetails()); + } + if (model.wasPropertyExplicitlySet("odspInsightDetails")) { + this.odspInsightDetails(model.getOdspInsightDetails()); + } return this; } } @@ -925,6 +996,77 @@ public SystemType getSystemType() { return systemType; } + /** + * Type of the database system. + **/ + public enum SystemRole { + StandaloneDbSystem("STANDALONE_DB_SYSTEM"), + PrimaryDbSystem("PRIMARY_DB_SYSTEM"), + WarmStandbyDbSystem("WARM_STANDBY_DB_SYSTEM"), + PilotLightDbSystem("PILOT_LIGHT_DB_SYSTEM"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(SystemRole.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SystemRole v : SystemRole.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SystemRole(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SystemRole create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SystemRole', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Type of the database system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemRole") + private final SystemRole systemRole; + + /** + * Type of the database system. + * @return the value + **/ + public SystemRole getSystemRole() { + return systemRole; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationConfig") + private final ReplicationConfig replicationConfig; + + public ReplicationConfig getReplicationConfig() { + return replicationConfig; + } + /** * The major and minor versions of the database system software. **/ @@ -1055,6 +1197,20 @@ public SourceDetails getSource() { return source; } + @com.fasterxml.jackson.annotation.JsonProperty("kerberosAuthDetails") + private final KerberosAuthDetails kerberosAuthDetails; + + public KerberosAuthDetails getKerberosAuthDetails() { + return kerberosAuthDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightDetails") + private final OdspInsightDetails odspInsightDetails; + + public OdspInsightDetails getOdspInsightDetails() { + return odspInsightDetails; + } + @Override public String toString() { return this.toString(true); @@ -1082,6 +1238,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", systemType=").append(String.valueOf(this.systemType)); + sb.append(", systemRole=").append(String.valueOf(this.systemRole)); + sb.append(", replicationConfig=").append(String.valueOf(this.replicationConfig)); sb.append(", dbVersion=").append(String.valueOf(this.dbVersion)); sb.append(", configId=").append(String.valueOf(this.configId)); sb.append(", shape=").append(String.valueOf(this.shape)); @@ -1094,6 +1252,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", networkDetails=").append(String.valueOf(this.networkDetails)); sb.append(", managementPolicy=").append(String.valueOf(this.managementPolicy)); sb.append(", source=").append(String.valueOf(this.source)); + sb.append(", kerberosAuthDetails=").append(String.valueOf(this.kerberosAuthDetails)); + sb.append(", odspInsightDetails=").append(String.valueOf(this.odspInsightDetails)); sb.append(")"); return sb.toString(); } @@ -1121,6 +1281,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.systemType, other.systemType) + && java.util.Objects.equals(this.systemRole, other.systemRole) + && java.util.Objects.equals(this.replicationConfig, other.replicationConfig) && java.util.Objects.equals(this.dbVersion, other.dbVersion) && java.util.Objects.equals(this.configId, other.configId) && java.util.Objects.equals(this.shape, other.shape) @@ -1133,6 +1295,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.networkDetails, other.networkDetails) && java.util.Objects.equals(this.managementPolicy, other.managementPolicy) && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.kerberosAuthDetails, other.kerberosAuthDetails) + && java.util.Objects.equals(this.odspInsightDetails, other.odspInsightDetails) && super.equals(other); } @@ -1161,6 +1325,10 @@ public int hashCode() { result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.systemType == null ? 43 : this.systemType.hashCode()); + result = (result * PRIME) + (this.systemRole == null ? 43 : this.systemRole.hashCode()); + result = + (result * PRIME) + + (this.replicationConfig == null ? 43 : this.replicationConfig.hashCode()); result = (result * PRIME) + (this.dbVersion == null ? 43 : this.dbVersion.hashCode()); result = (result * PRIME) + (this.configId == null ? 43 : this.configId.hashCode()); result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); @@ -1186,6 +1354,16 @@ public int hashCode() { (result * PRIME) + (this.managementPolicy == null ? 43 : this.managementPolicy.hashCode()); result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = + (result * PRIME) + + (this.kerberosAuthDetails == null + ? 43 + : this.kerberosAuthDetails.hashCode()); + result = + (result * PRIME) + + (this.odspInsightDetails == null + ? 43 + : this.odspInsightDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystemReplicaCollection.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystemReplicaCollection.java new file mode 100644 index 00000000000..e7f03d960eb --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystemReplicaCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Results of replica database system search. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DbSystemReplicaCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DbSystemReplicaCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DbSystemReplicaCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of replica database systems. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of replica database systems. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DbSystemReplicaCollection build() { + DbSystemReplicaCollection model = new DbSystemReplicaCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DbSystemReplicaCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of replica database systems. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of replica database systems. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DbSystemReplicaCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DbSystemReplicaCollection)) { + return false; + } + + DbSystemReplicaCollection other = (DbSystemReplicaCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystemReplicaSummary.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystemReplicaSummary.java new file mode 100644 index 00000000000..89cc97c7c84 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystemReplicaSummary.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Summary information about a replica database system. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DbSystemReplicaSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DbSystemReplicaSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "region"}) + public DbSystemReplicaSummary(String id, String region) { + super(); + this.id = id; + this.region = region; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A unique identifier for the replica database system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * A unique identifier for the replica database system. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * Region name of the replica database system region. + * Example: {@code us-phoenix-1} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * Region name of the replica database system region. + * Example: {@code us-phoenix-1} + * + * @param region the value to set + * @return this builder + **/ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DbSystemReplicaSummary build() { + DbSystemReplicaSummary model = new DbSystemReplicaSummary(this.id, this.region); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DbSystemReplicaSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A unique identifier for the replica database system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * A unique identifier for the replica database system. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * Region name of the replica database system region. + * Example: {@code us-phoenix-1} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * Region name of the replica database system region. + * Example: {@code us-phoenix-1} + * + * @return the value + **/ + public String getRegion() { + return region; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DbSystemReplicaSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DbSystemReplicaSummary)) { + return false; + } + + DbSystemReplicaSummary other = (DbSystemReplicaSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.region, other.region) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DisabledInsightDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DisabledInsightDetails.java new file mode 100644 index 00000000000..5bf33020e73 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DisabledInsightDetails.java @@ -0,0 +1,101 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Disable Insight for the database system. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DisabledInsightDetails.Builder.class +) +@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) +public final class DisabledInsightDetails extends OdspInsightDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DisabledInsightDetails build() { + DisabledInsightDetails model = new DisabledInsightDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DisabledInsightDetails model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DisabledInsightDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DisabledInsightDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisabledInsightDetails)) { + return false; + } + + DisabledInsightDetails other = (DisabledInsightDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DisabledKerberosAuthDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DisabledKerberosAuthDetails.java new file mode 100644 index 00000000000..788777625c4 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DisabledKerberosAuthDetails.java @@ -0,0 +1,101 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Disable Kerberos Authentication for the database system. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DisabledKerberosAuthDetails.Builder.class +) +@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) +public final class DisabledKerberosAuthDetails extends KerberosAuthDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DisabledKerberosAuthDetails build() { + DisabledKerberosAuthDetails model = new DisabledKerberosAuthDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DisabledKerberosAuthDetails model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DisabledKerberosAuthDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DisabledKerberosAuthDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisabledKerberosAuthDetails)) { + return false; + } + + DisabledKerberosAuthDetails other = (DisabledKerberosAuthDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/EnabledInsightDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/EnabledInsightDetails.java new file mode 100644 index 00000000000..5be9a17f30f --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/EnabledInsightDetails.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Enable or Update Existing Insights for the database system. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnabledInsightDetails.Builder.class +) +@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) +public final class EnabledInsightDetails extends OdspInsightDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of ODSP Insight and their configurations. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightList") + private java.util.List odspInsightList; + + /** + * List of ODSP Insight and their configurations. + * @param odspInsightList the value to set + * @return this builder + **/ + public Builder odspInsightList(java.util.List odspInsightList) { + this.odspInsightList = odspInsightList; + this.__explicitlySet__.add("odspInsightList"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnabledInsightDetails build() { + EnabledInsightDetails model = new EnabledInsightDetails(this.odspInsightList); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnabledInsightDetails model) { + if (model.wasPropertyExplicitlySet("odspInsightList")) { + this.odspInsightList(model.getOdspInsightList()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public EnabledInsightDetails(java.util.List odspInsightList) { + super(); + this.odspInsightList = odspInsightList; + } + + /** + * List of ODSP Insight and their configurations. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightList") + private final java.util.List odspInsightList; + + /** + * List of ODSP Insight and their configurations. + * @return the value + **/ + public java.util.List getOdspInsightList() { + return odspInsightList; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnabledInsightDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", odspInsightList=").append(String.valueOf(this.odspInsightList)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnabledInsightDetails)) { + return false; + } + + EnabledInsightDetails other = (EnabledInsightDetails) o; + return java.util.Objects.equals(this.odspInsightList, other.odspInsightList) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.odspInsightList == null ? 43 : this.odspInsightList.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/EnabledKerberosAuthDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/EnabledKerberosAuthDetails.java new file mode 100644 index 00000000000..2ef99e04948 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/EnabledKerberosAuthDetails.java @@ -0,0 +1,180 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Enable or Update Existing Kerberos Authentication for the database system. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnabledKerberosAuthDetails.Builder.class +) +@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) +public final class EnabledKerberosAuthDetails extends KerberosAuthDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of Kerberos Credentials to be configured for the dbsystem. Currently supports only one entry. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("credentials") + private java.util.List credentials; + + /** + * List of Kerberos Credentials to be configured for the dbsystem. Currently supports only one entry. + * @param credentials the value to set + * @return this builder + **/ + public Builder credentials(java.util.List credentials) { + this.credentials = credentials; + this.__explicitlySet__.add("credentials"); + return this; + } + /** + * Optional. List of Kerberos Credentials previously configured for the dbsystem. Currently supports only one entry. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupCredentials") + private java.util.List backupCredentials; + + /** + * Optional. List of Kerberos Credentials previously configured for the dbsystem. Currently supports only one entry. + * @param backupCredentials the value to set + * @return this builder + **/ + public Builder backupCredentials(java.util.List backupCredentials) { + this.backupCredentials = backupCredentials; + this.__explicitlySet__.add("backupCredentials"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnabledKerberosAuthDetails build() { + EnabledKerberosAuthDetails model = + new EnabledKerberosAuthDetails(this.credentials, this.backupCredentials); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnabledKerberosAuthDetails model) { + if (model.wasPropertyExplicitlySet("credentials")) { + this.credentials(model.getCredentials()); + } + if (model.wasPropertyExplicitlySet("backupCredentials")) { + this.backupCredentials(model.getBackupCredentials()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public EnabledKerberosAuthDetails( + java.util.List credentials, + java.util.List backupCredentials) { + super(); + this.credentials = credentials; + this.backupCredentials = backupCredentials; + } + + /** + * List of Kerberos Credentials to be configured for the dbsystem. Currently supports only one entry. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("credentials") + private final java.util.List credentials; + + /** + * List of Kerberos Credentials to be configured for the dbsystem. Currently supports only one entry. + * @return the value + **/ + public java.util.List getCredentials() { + return credentials; + } + + /** + * Optional. List of Kerberos Credentials previously configured for the dbsystem. Currently supports only one entry. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupCredentials") + private final java.util.List backupCredentials; + + /** + * Optional. List of Kerberos Credentials previously configured for the dbsystem. Currently supports only one entry. + * @return the value + **/ + public java.util.List getBackupCredentials() { + return backupCredentials; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnabledKerberosAuthDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", credentials=").append(String.valueOf(this.credentials)); + sb.append(", backupCredentials=").append(String.valueOf(this.backupCredentials)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnabledKerberosAuthDetails)) { + return false; + } + + EnabledKerberosAuthDetails other = (EnabledKerberosAuthDetails) o; + return java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.backupCredentials, other.backupCredentials) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.backupCredentials == null ? 43 : this.backupCredentials.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/GranularityCapability.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/GranularityCapability.java new file mode 100644 index 00000000000..c3761279b21 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/GranularityCapability.java @@ -0,0 +1,258 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Describes time granularity behavior for time-series Insight. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GranularityCapability.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class GranularityCapability + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "minSeconds", "maxSeconds"}) + public GranularityCapability(Type type, Integer minSeconds, Integer maxSeconds) { + super(); + this.type = type; + this.minSeconds = minSeconds; + this.maxSeconds = maxSeconds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Granularity selection strategy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Granularity selection strategy. + * @param type the value to set + * @return this builder + **/ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * Minimum supported granularity in seconds. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minSeconds") + private Integer minSeconds; + + /** + * Minimum supported granularity in seconds. + * @param minSeconds the value to set + * @return this builder + **/ + public Builder minSeconds(Integer minSeconds) { + this.minSeconds = minSeconds; + this.__explicitlySet__.add("minSeconds"); + return this; + } + /** + * Maximum supported granularity in seconds. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxSeconds") + private Integer maxSeconds; + + /** + * Maximum supported granularity in seconds. + * @param maxSeconds the value to set + * @return this builder + **/ + public Builder maxSeconds(Integer maxSeconds) { + this.maxSeconds = maxSeconds; + this.__explicitlySet__.add("maxSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GranularityCapability build() { + GranularityCapability model = + new GranularityCapability(this.type, this.minSeconds, this.maxSeconds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GranularityCapability model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("minSeconds")) { + this.minSeconds(model.getMinSeconds()); + } + if (model.wasPropertyExplicitlySet("maxSeconds")) { + this.maxSeconds(model.getMaxSeconds()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Granularity selection strategy. + **/ + public enum Type { + Fixed("FIXED"), + ClientInput("CLIENT_INPUT"), + BackendDetermined("BACKEND_DETERMINED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** + * Granularity selection strategy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Granularity selection strategy. + * @return the value + **/ + public Type getType() { + return type; + } + + /** + * Minimum supported granularity in seconds. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("minSeconds") + private final Integer minSeconds; + + /** + * Minimum supported granularity in seconds. + * @return the value + **/ + public Integer getMinSeconds() { + return minSeconds; + } + + /** + * Maximum supported granularity in seconds. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxSeconds") + private final Integer maxSeconds; + + /** + * Maximum supported granularity in seconds. + * @return the value + **/ + public Integer getMaxSeconds() { + return maxSeconds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GranularityCapability("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", minSeconds=").append(String.valueOf(this.minSeconds)); + sb.append(", maxSeconds=").append(String.valueOf(this.maxSeconds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GranularityCapability)) { + return false; + } + + GranularityCapability other = (GranularityCapability) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.minSeconds, other.minSeconds) + && java.util.Objects.equals(this.maxSeconds, other.maxSeconds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.minSeconds == null ? 43 : this.minSeconds.hashCode()); + result = (result * PRIME) + (this.maxSeconds == null ? 43 : this.maxSeconds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightCapabilityCollection.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightCapabilityCollection.java new file mode 100644 index 00000000000..5f0a9f40de3 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightCapabilityCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * PostgreSQL insight capabilities 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InsightCapabilityCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InsightCapabilityCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public InsightCapabilityCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * PostgreSQL insight capabilities list. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * PostgreSQL insight capabilities list. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InsightCapabilityCollection build() { + InsightCapabilityCollection model = new InsightCapabilityCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InsightCapabilityCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * PostgreSQL insight capabilities list. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * PostgreSQL insight capabilities list. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InsightCapabilityCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InsightCapabilityCollection)) { + return false; + } + + InsightCapabilityCollection other = (InsightCapabilityCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightCapabilitySummary.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightCapabilitySummary.java new file mode 100644 index 00000000000..14df9e2561b --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightCapabilitySummary.java @@ -0,0 +1,267 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Describes supported insight types and their capabilities. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InsightCapabilitySummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InsightCapabilitySummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"insightType", "description", "dataTypeCapabilities"}) + public InsightCapabilitySummary( + InsightType insightType, + String description, + java.util.List dataTypeCapabilities) { + super(); + this.insightType = insightType; + this.description = description; + this.dataTypeCapabilities = dataTypeCapabilities; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Echo of the requested insight type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("insightType") + private InsightType insightType; + + /** + * Echo of the requested insight type. + * @param insightType the value to set + * @return this builder + **/ + public Builder insightType(InsightType insightType) { + this.insightType = insightType; + this.__explicitlySet__.add("insightType"); + return this; + } + /** + * Human-readable description of the insight type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Human-readable description of the insight type. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Supported insight data types for this insight type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataTypeCapabilities") + private java.util.List dataTypeCapabilities; + + /** + * Supported insight data types for this insight type. + * @param dataTypeCapabilities the value to set + * @return this builder + **/ + public Builder dataTypeCapabilities( + java.util.List dataTypeCapabilities) { + this.dataTypeCapabilities = dataTypeCapabilities; + this.__explicitlySet__.add("dataTypeCapabilities"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InsightCapabilitySummary build() { + InsightCapabilitySummary model = + new InsightCapabilitySummary( + this.insightType, this.description, this.dataTypeCapabilities); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InsightCapabilitySummary model) { + if (model.wasPropertyExplicitlySet("insightType")) { + this.insightType(model.getInsightType()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("dataTypeCapabilities")) { + this.dataTypeCapabilities(model.getDataTypeCapabilities()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Echo of the requested insight type. + **/ + public enum InsightType { + QueryInsight("QUERY_INSIGHT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(InsightType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InsightType v : InsightType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + InsightType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static InsightType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'InsightType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Echo of the requested insight type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("insightType") + private final InsightType insightType; + + /** + * Echo of the requested insight type. + * @return the value + **/ + public InsightType getInsightType() { + return insightType; + } + + /** + * Human-readable description of the insight type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Human-readable description of the insight type. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Supported insight data types for this insight type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataTypeCapabilities") + private final java.util.List dataTypeCapabilities; + + /** + * Supported insight data types for this insight type. + * @return the value + **/ + public java.util.List getDataTypeCapabilities() { + return dataTypeCapabilities; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InsightCapabilitySummary("); + sb.append("super=").append(super.toString()); + sb.append("insightType=").append(String.valueOf(this.insightType)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", dataTypeCapabilities=").append(String.valueOf(this.dataTypeCapabilities)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InsightCapabilitySummary)) { + return false; + } + + InsightCapabilitySummary other = (InsightCapabilitySummary) o; + return java.util.Objects.equals(this.insightType, other.insightType) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.dataTypeCapabilities, other.dataTypeCapabilities) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.insightType == null ? 43 : this.insightType.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.dataTypeCapabilities == null + ? 43 + : this.dataTypeCapabilities.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightDataContract.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightDataContract.java new file mode 100644 index 00000000000..d255063d84b --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightDataContract.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Describes the response data format returned for an insight 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InsightDataContract.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InsightDataContract extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"kind", "unit"}) + public InsightDataContract(Kind kind, String unit) { + super(); + this.kind = kind; + this.unit = unit; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Indicates the structure of the insight data payload. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kind") + private Kind kind; + + /** + * Indicates the structure of the insight data payload. + * @param kind the value to set + * @return this builder + **/ + public Builder kind(Kind kind) { + this.kind = kind; + this.__explicitlySet__.add("kind"); + return this; + } + /** + * Optional unit associated with numeric values. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("unit") + private String unit; + + /** + * Optional unit associated with numeric values. + * @param unit the value to set + * @return this builder + **/ + public Builder unit(String unit) { + this.unit = unit; + this.__explicitlySet__.add("unit"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InsightDataContract build() { + InsightDataContract model = new InsightDataContract(this.kind, this.unit); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InsightDataContract model) { + if (model.wasPropertyExplicitlySet("kind")) { + this.kind(model.getKind()); + } + if (model.wasPropertyExplicitlySet("unit")) { + this.unit(model.getUnit()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Indicates the structure of the insight data payload. + **/ + public enum Kind { + TimeSeries("TIME_SERIES"), + Table("TABLE"), + Summary("SUMMARY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Kind.class); + + 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; + } + }; + /** + * Indicates the structure of the insight data payload. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kind") + private final Kind kind; + + /** + * Indicates the structure of the insight data payload. + * @return the value + **/ + public Kind getKind() { + return kind; + } + + /** + * Optional unit associated with numeric values. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("unit") + private final String unit; + + /** + * Optional unit associated with numeric values. + * @return the value + **/ + public String getUnit() { + return unit; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InsightDataContract("); + sb.append("super=").append(super.toString()); + sb.append("kind=").append(String.valueOf(this.kind)); + sb.append(", unit=").append(String.valueOf(this.unit)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InsightDataContract)) { + return false; + } + + InsightDataContract other = (InsightDataContract) o; + return java.util.Objects.equals(this.kind, other.kind) + && java.util.Objects.equals(this.unit, other.unit) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.kind == null ? 43 : this.kind.hashCode()); + result = (result * PRIME) + (this.unit == null ? 43 : this.unit.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightDataTypeCapability.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightDataTypeCapability.java new file mode 100644 index 00000000000..10a83a75990 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightDataTypeCapability.java @@ -0,0 +1,431 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Capability metadata for a specific insight data 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InsightDataTypeCapability.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InsightDataTypeCapability + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "insightDataType", + "description", + "dataContract", + "dateTimeRangeSupport", + "granularity", + "filters", + "sorting", + "pagination", + "limits" + }) + public InsightDataTypeCapability( + InsightDataType insightDataType, + String description, + InsightDataContract dataContract, + DateTimeRangeCapability dateTimeRangeSupport, + GranularityCapability granularity, + java.util.List filters, + SortingCapability sorting, + PaginationCapability pagination, + InsightLimits limits) { + super(); + this.insightDataType = insightDataType; + this.description = description; + this.dataContract = dataContract; + this.dateTimeRangeSupport = dateTimeRangeSupport; + this.granularity = granularity; + this.filters = filters; + this.sorting = sorting; + this.pagination = pagination; + this.limits = limits; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Insight data type identifier (for example, AAS_TIME_SERIES). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("insightDataType") + private InsightDataType insightDataType; + + /** + * Insight data type identifier (for example, AAS_TIME_SERIES). + * @param insightDataType the value to set + * @return this builder + **/ + public Builder insightDataType(InsightDataType insightDataType) { + this.insightDataType = insightDataType; + this.__explicitlySet__.add("insightDataType"); + return this; + } + /** + * Human-readable description of the insight data type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Human-readable description of the insight data type. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataContract") + private InsightDataContract dataContract; + + public Builder dataContract(InsightDataContract dataContract) { + this.dataContract = dataContract; + this.__explicitlySet__.add("dataContract"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dateTimeRangeSupport") + private DateTimeRangeCapability dateTimeRangeSupport; + + public Builder dateTimeRangeSupport(DateTimeRangeCapability dateTimeRangeSupport) { + this.dateTimeRangeSupport = dateTimeRangeSupport; + this.__explicitlySet__.add("dateTimeRangeSupport"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("granularity") + private GranularityCapability granularity; + + public Builder granularity(GranularityCapability granularity) { + this.granularity = granularity; + this.__explicitlySet__.add("granularity"); + return this; + } + /** + * Supported filters for this insight data type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("filters") + private java.util.List filters; + + /** + * Supported filters for this insight data type. + * @param filters the value to set + * @return this builder + **/ + public Builder filters(java.util.List filters) { + this.filters = filters; + this.__explicitlySet__.add("filters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sorting") + private SortingCapability sorting; + + public Builder sorting(SortingCapability sorting) { + this.sorting = sorting; + this.__explicitlySet__.add("sorting"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pagination") + private PaginationCapability pagination; + + public Builder pagination(PaginationCapability pagination) { + this.pagination = pagination; + this.__explicitlySet__.add("pagination"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("limits") + private InsightLimits limits; + + public Builder limits(InsightLimits limits) { + this.limits = limits; + this.__explicitlySet__.add("limits"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InsightDataTypeCapability build() { + InsightDataTypeCapability model = + new InsightDataTypeCapability( + this.insightDataType, + this.description, + this.dataContract, + this.dateTimeRangeSupport, + this.granularity, + this.filters, + this.sorting, + this.pagination, + this.limits); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InsightDataTypeCapability model) { + if (model.wasPropertyExplicitlySet("insightDataType")) { + this.insightDataType(model.getInsightDataType()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("dataContract")) { + this.dataContract(model.getDataContract()); + } + if (model.wasPropertyExplicitlySet("dateTimeRangeSupport")) { + this.dateTimeRangeSupport(model.getDateTimeRangeSupport()); + } + if (model.wasPropertyExplicitlySet("granularity")) { + this.granularity(model.getGranularity()); + } + if (model.wasPropertyExplicitlySet("filters")) { + this.filters(model.getFilters()); + } + if (model.wasPropertyExplicitlySet("sorting")) { + this.sorting(model.getSorting()); + } + if (model.wasPropertyExplicitlySet("pagination")) { + this.pagination(model.getPagination()); + } + if (model.wasPropertyExplicitlySet("limits")) { + this.limits(model.getLimits()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Insight data type identifier (for example, AAS_TIME_SERIES). + **/ + public enum InsightDataType { + AasTimeSeries("AAS_TIME_SERIES"), + TopQueries("TOP_QUERIES"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(InsightDataType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InsightDataType v : InsightDataType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + InsightDataType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static InsightDataType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'InsightDataType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Insight data type identifier (for example, AAS_TIME_SERIES). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("insightDataType") + private final InsightDataType insightDataType; + + /** + * Insight data type identifier (for example, AAS_TIME_SERIES). + * @return the value + **/ + public InsightDataType getInsightDataType() { + return insightDataType; + } + + /** + * Human-readable description of the insight data type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Human-readable description of the insight data type. + * @return the value + **/ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataContract") + private final InsightDataContract dataContract; + + public InsightDataContract getDataContract() { + return dataContract; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dateTimeRangeSupport") + private final DateTimeRangeCapability dateTimeRangeSupport; + + public DateTimeRangeCapability getDateTimeRangeSupport() { + return dateTimeRangeSupport; + } + + @com.fasterxml.jackson.annotation.JsonProperty("granularity") + private final GranularityCapability granularity; + + public GranularityCapability getGranularity() { + return granularity; + } + + /** + * Supported filters for this insight data type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("filters") + private final java.util.List filters; + + /** + * Supported filters for this insight data type. + * @return the value + **/ + public java.util.List getFilters() { + return filters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sorting") + private final SortingCapability sorting; + + public SortingCapability getSorting() { + return sorting; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pagination") + private final PaginationCapability pagination; + + public PaginationCapability getPagination() { + return pagination; + } + + @com.fasterxml.jackson.annotation.JsonProperty("limits") + private final InsightLimits limits; + + public InsightLimits getLimits() { + return limits; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InsightDataTypeCapability("); + sb.append("super=").append(super.toString()); + sb.append("insightDataType=").append(String.valueOf(this.insightDataType)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", dataContract=").append(String.valueOf(this.dataContract)); + sb.append(", dateTimeRangeSupport=").append(String.valueOf(this.dateTimeRangeSupport)); + sb.append(", granularity=").append(String.valueOf(this.granularity)); + sb.append(", filters=").append(String.valueOf(this.filters)); + sb.append(", sorting=").append(String.valueOf(this.sorting)); + sb.append(", pagination=").append(String.valueOf(this.pagination)); + sb.append(", limits=").append(String.valueOf(this.limits)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InsightDataTypeCapability)) { + return false; + } + + InsightDataTypeCapability other = (InsightDataTypeCapability) o; + return java.util.Objects.equals(this.insightDataType, other.insightDataType) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.dataContract, other.dataContract) + && java.util.Objects.equals(this.dateTimeRangeSupport, other.dateTimeRangeSupport) + && java.util.Objects.equals(this.granularity, other.granularity) + && java.util.Objects.equals(this.filters, other.filters) + && java.util.Objects.equals(this.sorting, other.sorting) + && java.util.Objects.equals(this.pagination, other.pagination) + && java.util.Objects.equals(this.limits, other.limits) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.insightDataType == null ? 43 : this.insightDataType.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.dataContract == null ? 43 : this.dataContract.hashCode()); + result = + (result * PRIME) + + (this.dateTimeRangeSupport == null + ? 43 + : this.dateTimeRangeSupport.hashCode()); + result = (result * PRIME) + (this.granularity == null ? 43 : this.granularity.hashCode()); + result = (result * PRIME) + (this.filters == null ? 43 : this.filters.hashCode()); + result = (result * PRIME) + (this.sorting == null ? 43 : this.sorting.hashCode()); + result = (result * PRIME) + (this.pagination == null ? 43 : this.pagination.hashCode()); + result = (result * PRIME) + (this.limits == null ? 43 : this.limits.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightFilterCapability.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightFilterCapability.java new file mode 100644 index 00000000000..b9f17c5525f --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightFilterCapability.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Describes a supported filter for an insight 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InsightFilterCapability.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InsightFilterCapability + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "type", "values", "canUsePartialMatch"}) + public InsightFilterCapability( + String name, String type, java.util.List values, Boolean canUsePartialMatch) { + super(); + this.name = name; + this.type = type; + this.values = values; + this.canUsePartialMatch = canUsePartialMatch; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Name of the filter parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the filter parameter. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * Data type of the filter parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * Data type of the filter parameter. + * @param type the value to set + * @return this builder + **/ + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * Allowed values for enum-based filters. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private java.util.List values; + + /** + * Allowed values for enum-based filters. + * @param values the value to set + * @return this builder + **/ + public Builder values(java.util.List values) { + this.values = values; + this.__explicitlySet__.add("values"); + return this; + } + /** + * Indicates whether partial matching is supported. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("canUsePartialMatch") + private Boolean canUsePartialMatch; + + /** + * Indicates whether partial matching is supported. + * @param canUsePartialMatch the value to set + * @return this builder + **/ + public Builder canUsePartialMatch(Boolean canUsePartialMatch) { + this.canUsePartialMatch = canUsePartialMatch; + this.__explicitlySet__.add("canUsePartialMatch"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InsightFilterCapability build() { + InsightFilterCapability model = + new InsightFilterCapability( + this.name, this.type, this.values, this.canUsePartialMatch); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InsightFilterCapability model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("values")) { + this.values(model.getValues()); + } + if (model.wasPropertyExplicitlySet("canUsePartialMatch")) { + this.canUsePartialMatch(model.getCanUsePartialMatch()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Name of the filter parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the filter parameter. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * Data type of the filter parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * Data type of the filter parameter. + * @return the value + **/ + public String getType() { + return type; + } + + /** + * Allowed values for enum-based filters. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private final java.util.List values; + + /** + * Allowed values for enum-based filters. + * @return the value + **/ + public java.util.List getValues() { + return values; + } + + /** + * Indicates whether partial matching is supported. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("canUsePartialMatch") + private final Boolean canUsePartialMatch; + + /** + * Indicates whether partial matching is supported. + * @return the value + **/ + public Boolean getCanUsePartialMatch() { + return canUsePartialMatch; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InsightFilterCapability("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", values=").append(String.valueOf(this.values)); + sb.append(", canUsePartialMatch=").append(String.valueOf(this.canUsePartialMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InsightFilterCapability)) { + return false; + } + + InsightFilterCapability other = (InsightFilterCapability) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.values, other.values) + && java.util.Objects.equals(this.canUsePartialMatch, other.canUsePartialMatch) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.values == null ? 43 : this.values.hashCode()); + result = + (result * PRIME) + + (this.canUsePartialMatch == null + ? 43 + : this.canUsePartialMatch.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightLimits.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightLimits.java new file mode 100644 index 00000000000..7a121a08311 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightLimits.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Defines limits applicable to an insight 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = InsightLimits.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InsightLimits extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"maxTimeRangeDays", "maxRows"}) + public InsightLimits(Integer maxTimeRangeDays, Integer maxRows) { + super(); + this.maxTimeRangeDays = maxTimeRangeDays; + this.maxRows = maxRows; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Maximum allowed time range in days. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxTimeRangeDays") + private Integer maxTimeRangeDays; + + /** + * Maximum allowed time range in days. + * @param maxTimeRangeDays the value to set + * @return this builder + **/ + public Builder maxTimeRangeDays(Integer maxTimeRangeDays) { + this.maxTimeRangeDays = maxTimeRangeDays; + this.__explicitlySet__.add("maxTimeRangeDays"); + return this; + } + /** + * Maximum number of rows returned. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxRows") + private Integer maxRows; + + /** + * Maximum number of rows returned. + * @param maxRows the value to set + * @return this builder + **/ + public Builder maxRows(Integer maxRows) { + this.maxRows = maxRows; + this.__explicitlySet__.add("maxRows"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InsightLimits build() { + InsightLimits model = new InsightLimits(this.maxTimeRangeDays, this.maxRows); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InsightLimits model) { + if (model.wasPropertyExplicitlySet("maxTimeRangeDays")) { + this.maxTimeRangeDays(model.getMaxTimeRangeDays()); + } + if (model.wasPropertyExplicitlySet("maxRows")) { + this.maxRows(model.getMaxRows()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Maximum allowed time range in days. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxTimeRangeDays") + private final Integer maxTimeRangeDays; + + /** + * Maximum allowed time range in days. + * @return the value + **/ + public Integer getMaxTimeRangeDays() { + return maxTimeRangeDays; + } + + /** + * Maximum number of rows returned. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxRows") + private final Integer maxRows; + + /** + * Maximum number of rows returned. + * @return the value + **/ + public Integer getMaxRows() { + return maxRows; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InsightLimits("); + sb.append("super=").append(super.toString()); + sb.append("maxTimeRangeDays=").append(String.valueOf(this.maxTimeRangeDays)); + sb.append(", maxRows=").append(String.valueOf(this.maxRows)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InsightLimits)) { + return false; + } + + InsightLimits other = (InsightLimits) o; + return java.util.Objects.equals(this.maxTimeRangeDays, other.maxTimeRangeDays) + && java.util.Objects.equals(this.maxRows, other.maxRows) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.maxTimeRangeDays == null ? 43 : this.maxTimeRangeDays.hashCode()); + result = (result * PRIME) + (this.maxRows == null ? 43 : this.maxRows.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/KerberosAuthDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/KerberosAuthDetails.java new file mode 100644 index 00000000000..37cbcf38b3b --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/KerberosAuthDetails.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Kerberos Authentication details for the database system. + *
+ * 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: 20220915") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "kind", + defaultImpl = KerberosAuthDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DisabledKerberosAuthDetails.class, + name = "DISABLED" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = EnabledKerberosAuthDetails.class, + name = "ENABLED" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class KerberosAuthDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected KerberosAuthDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("KerberosAuthDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof KerberosAuthDetails)) { + return false; + } + + KerberosAuthDetails other = (KerberosAuthDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * Specifies the management of Kerberos Authentication for the dbSystem. + **/ + public enum Kind { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Kind.class); + + 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-psql/src/main/java/com/oracle/bmc/psql/model/KerberosCredential.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/KerberosCredential.java new file mode 100644 index 00000000000..957964e4a1d --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/KerberosCredential.java @@ -0,0 +1,245 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Kerberos Credential details as OCI Vault Secret for the keytab. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = KerberosCredential.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class KerberosCredential extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"realmName", "keytabSecretId", "keytabSecretVersion"}) + public KerberosCredential(String realmName, String keytabSecretId, Long keytabSecretVersion) { + super(); + this.realmName = realmName; + this.keytabSecretId = keytabSecretId; + this.keytabSecretVersion = keytabSecretVersion; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Kerberos realm name. + * https://docs.oracle.com/cd/E36784_01/html/E37126/kplanning-27.html + * Realm names can consist of any ASCII string. Usually, the realm name is the same as your DNS domain name + * except that the realm name is in uppercase. This convention helps differentiate problems with the Kerberos + * service from problems with the DNS namespace, while keeping a name that is familiar. You can use any string, + * but configuration and maintenance might then require more work. Use realm names that follow the standard + * Internet naming structure. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("realmName") + private String realmName; + + /** + * Kerberos realm name. + * https://docs.oracle.com/cd/E36784_01/html/E37126/kplanning-27.html + * Realm names can consist of any ASCII string. Usually, the realm name is the same as your DNS domain name + * except that the realm name is in uppercase. This convention helps differentiate problems with the Kerberos + * service from problems with the DNS namespace, while keeping a name that is familiar. You can use any string, + * but configuration and maintenance might then require more work. Use realm names that follow the standard + * Internet naming structure. + * + * @param realmName the value to set + * @return this builder + **/ + public Builder realmName(String realmName) { + this.realmName = realmName; + this.__explicitlySet__.add("realmName"); + return this; + } + /** + * The OCID of the secret where the Kerberos keytab file is stored as base64 text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keytabSecretId") + private String keytabSecretId; + + /** + * The OCID of the secret where the Kerberos keytab file is stored as base64 text. + * @param keytabSecretId the value to set + * @return this builder + **/ + public Builder keytabSecretId(String keytabSecretId) { + this.keytabSecretId = keytabSecretId; + this.__explicitlySet__.add("keytabSecretId"); + return this; + } + /** + * The secret version of the stored Kerberos keytab file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keytabSecretVersion") + private Long keytabSecretVersion; + + /** + * The secret version of the stored Kerberos keytab file. + * @param keytabSecretVersion the value to set + * @return this builder + **/ + public Builder keytabSecretVersion(Long keytabSecretVersion) { + this.keytabSecretVersion = keytabSecretVersion; + this.__explicitlySet__.add("keytabSecretVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public KerberosCredential build() { + KerberosCredential model = + new KerberosCredential( + this.realmName, this.keytabSecretId, this.keytabSecretVersion); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(KerberosCredential model) { + if (model.wasPropertyExplicitlySet("realmName")) { + this.realmName(model.getRealmName()); + } + if (model.wasPropertyExplicitlySet("keytabSecretId")) { + this.keytabSecretId(model.getKeytabSecretId()); + } + if (model.wasPropertyExplicitlySet("keytabSecretVersion")) { + this.keytabSecretVersion(model.getKeytabSecretVersion()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Kerberos realm name. + * https://docs.oracle.com/cd/E36784_01/html/E37126/kplanning-27.html + * Realm names can consist of any ASCII string. Usually, the realm name is the same as your DNS domain name + * except that the realm name is in uppercase. This convention helps differentiate problems with the Kerberos + * service from problems with the DNS namespace, while keeping a name that is familiar. You can use any string, + * but configuration and maintenance might then require more work. Use realm names that follow the standard + * Internet naming structure. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("realmName") + private final String realmName; + + /** + * Kerberos realm name. + * https://docs.oracle.com/cd/E36784_01/html/E37126/kplanning-27.html + * Realm names can consist of any ASCII string. Usually, the realm name is the same as your DNS domain name + * except that the realm name is in uppercase. This convention helps differentiate problems with the Kerberos + * service from problems with the DNS namespace, while keeping a name that is familiar. You can use any string, + * but configuration and maintenance might then require more work. Use realm names that follow the standard + * Internet naming structure. + * + * @return the value + **/ + public String getRealmName() { + return realmName; + } + + /** + * The OCID of the secret where the Kerberos keytab file is stored as base64 text. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keytabSecretId") + private final String keytabSecretId; + + /** + * The OCID of the secret where the Kerberos keytab file is stored as base64 text. + * @return the value + **/ + public String getKeytabSecretId() { + return keytabSecretId; + } + + /** + * The secret version of the stored Kerberos keytab file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keytabSecretVersion") + private final Long keytabSecretVersion; + + /** + * The secret version of the stored Kerberos keytab file. + * @return the value + **/ + public Long getKeytabSecretVersion() { + return keytabSecretVersion; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("KerberosCredential("); + sb.append("super=").append(super.toString()); + sb.append("realmName=").append(String.valueOf(this.realmName)); + sb.append(", keytabSecretId=").append(String.valueOf(this.keytabSecretId)); + sb.append(", keytabSecretVersion=").append(String.valueOf(this.keytabSecretVersion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof KerberosCredential)) { + return false; + } + + KerberosCredential other = (KerberosCredential) o; + return java.util.Objects.equals(this.realmName, other.realmName) + && java.util.Objects.equals(this.keytabSecretId, other.keytabSecretId) + && java.util.Objects.equals(this.keytabSecretVersion, other.keytabSecretVersion) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.realmName == null ? 43 : this.realmName.hashCode()); + result = + (result * PRIME) + + (this.keytabSecretId == null ? 43 : this.keytabSecretId.hashCode()); + result = + (result * PRIME) + + (this.keytabSecretVersion == null + ? 43 + : this.keytabSecretVersion.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ManagementPolicy.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ManagementPolicy.java index c646b990b97..f3465015dae 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ManagementPolicy.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ManagementPolicy.java @@ -19,11 +19,13 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class ManagementPolicy extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"maintenanceWindowStart", "backupPolicy"}) - public ManagementPolicy(String maintenanceWindowStart, BackupPolicy backupPolicy) { + @java.beans.ConstructorProperties({"maintenanceWindowStart", "backupPolicy", "pitrPolicy"}) + public ManagementPolicy( + String maintenanceWindowStart, BackupPolicy backupPolicy, PitrPolicy pitrPolicy) { super(); this.maintenanceWindowStart = maintenanceWindowStart; this.backupPolicy = backupPolicy; + this.pitrPolicy = pitrPolicy; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -56,12 +58,22 @@ public Builder backupPolicy(BackupPolicy backupPolicy) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("pitrPolicy") + private PitrPolicy pitrPolicy; + + public Builder pitrPolicy(PitrPolicy pitrPolicy) { + this.pitrPolicy = pitrPolicy; + this.__explicitlySet__.add("pitrPolicy"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ManagementPolicy build() { ManagementPolicy model = - new ManagementPolicy(this.maintenanceWindowStart, this.backupPolicy); + new ManagementPolicy( + this.maintenanceWindowStart, this.backupPolicy, this.pitrPolicy); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -76,6 +88,9 @@ public Builder copy(ManagementPolicy model) { if (model.wasPropertyExplicitlySet("backupPolicy")) { this.backupPolicy(model.getBackupPolicy()); } + if (model.wasPropertyExplicitlySet("pitrPolicy")) { + this.pitrPolicy(model.getPitrPolicy()); + } return this; } } @@ -114,6 +129,13 @@ public BackupPolicy getBackupPolicy() { return backupPolicy; } + @com.fasterxml.jackson.annotation.JsonProperty("pitrPolicy") + private final PitrPolicy pitrPolicy; + + public PitrPolicy getPitrPolicy() { + return pitrPolicy; + } + @Override public String toString() { return this.toString(true); @@ -130,6 +152,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("maintenanceWindowStart=").append(String.valueOf(this.maintenanceWindowStart)); sb.append(", backupPolicy=").append(String.valueOf(this.backupPolicy)); + sb.append(", pitrPolicy=").append(String.valueOf(this.pitrPolicy)); sb.append(")"); return sb.toString(); } @@ -146,6 +169,7 @@ public boolean equals(Object o) { ManagementPolicy other = (ManagementPolicy) o; return java.util.Objects.equals(this.maintenanceWindowStart, other.maintenanceWindowStart) && java.util.Objects.equals(this.backupPolicy, other.backupPolicy) + && java.util.Objects.equals(this.pitrPolicy, other.pitrPolicy) && super.equals(other); } @@ -159,6 +183,7 @@ public int hashCode() { ? 43 : this.maintenanceWindowStart.hashCode()); result = (result * PRIME) + (this.backupPolicy == null ? 43 : this.backupPolicy.hashCode()); + result = (result * PRIME) + (this.pitrPolicy == null ? 43 : this.pitrPolicy.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ManagementPolicyDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ManagementPolicyDetails.java index 3d4d4c42992..4d216a25ed2 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ManagementPolicyDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ManagementPolicyDetails.java @@ -22,11 +22,13 @@ public final class ManagementPolicyDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"maintenanceWindowStart", "backupPolicy"}) - public ManagementPolicyDetails(String maintenanceWindowStart, BackupPolicy backupPolicy) { + @java.beans.ConstructorProperties({"maintenanceWindowStart", "backupPolicy", "pitrPolicy"}) + public ManagementPolicyDetails( + String maintenanceWindowStart, BackupPolicy backupPolicy, PitrPolicy pitrPolicy) { super(); this.maintenanceWindowStart = maintenanceWindowStart; this.backupPolicy = backupPolicy; + this.pitrPolicy = pitrPolicy; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -67,12 +69,22 @@ public Builder backupPolicy(BackupPolicy backupPolicy) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("pitrPolicy") + private PitrPolicy pitrPolicy; + + public Builder pitrPolicy(PitrPolicy pitrPolicy) { + this.pitrPolicy = pitrPolicy; + this.__explicitlySet__.add("pitrPolicy"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ManagementPolicyDetails build() { ManagementPolicyDetails model = - new ManagementPolicyDetails(this.maintenanceWindowStart, this.backupPolicy); + new ManagementPolicyDetails( + this.maintenanceWindowStart, this.backupPolicy, this.pitrPolicy); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -87,6 +99,9 @@ public Builder copy(ManagementPolicyDetails model) { if (model.wasPropertyExplicitlySet("backupPolicy")) { this.backupPolicy(model.getBackupPolicy()); } + if (model.wasPropertyExplicitlySet("pitrPolicy")) { + this.pitrPolicy(model.getPitrPolicy()); + } return this; } } @@ -133,6 +148,13 @@ public BackupPolicy getBackupPolicy() { return backupPolicy; } + @com.fasterxml.jackson.annotation.JsonProperty("pitrPolicy") + private final PitrPolicy pitrPolicy; + + public PitrPolicy getPitrPolicy() { + return pitrPolicy; + } + @Override public String toString() { return this.toString(true); @@ -149,6 +171,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("maintenanceWindowStart=").append(String.valueOf(this.maintenanceWindowStart)); sb.append(", backupPolicy=").append(String.valueOf(this.backupPolicy)); + sb.append(", pitrPolicy=").append(String.valueOf(this.pitrPolicy)); sb.append(")"); return sb.toString(); } @@ -165,6 +188,7 @@ public boolean equals(Object o) { ManagementPolicyDetails other = (ManagementPolicyDetails) o; return java.util.Objects.equals(this.maintenanceWindowStart, other.maintenanceWindowStart) && java.util.Objects.equals(this.backupPolicy, other.backupPolicy) + && java.util.Objects.equals(this.pitrPolicy, other.pitrPolicy) && super.equals(other); } @@ -178,6 +202,7 @@ public int hashCode() { ? 43 : this.maintenanceWindowStart.hashCode()); result = (result * PRIME) + (this.backupPolicy == null ? 43 : this.backupPolicy.hashCode()); + result = (result * PRIME) + (this.pitrPolicy == null ? 43 : this.pitrPolicy.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/NonePitrPolicy.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/NonePitrPolicy.java new file mode 100644 index 00000000000..bcfdc014980 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/NonePitrPolicy.java @@ -0,0 +1,99 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * None point-in-time recovery policy. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = NonePitrPolicy.Builder.class) +@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) +public final class NonePitrPolicy extends PitrPolicy { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NonePitrPolicy build() { + NonePitrPolicy model = new NonePitrPolicy(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NonePitrPolicy model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public NonePitrPolicy() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NonePitrPolicy("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NonePitrPolicy)) { + return false; + } + + NonePitrPolicy other = (NonePitrPolicy) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OdspInsight.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OdspInsight.java new file mode 100644 index 00000000000..2408053c7e7 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OdspInsight.java @@ -0,0 +1,221 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Details for a single ODSP insight. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OdspInsight.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OdspInsight extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"insightType", "retentionPeriodInDays"}) + public OdspInsight(InsightType insightType, Integer retentionPeriodInDays) { + super(); + this.insightType = insightType; + this.retentionPeriodInDays = retentionPeriodInDays; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type of Insight collected for the database system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("insightType") + private InsightType insightType; + + /** + * Type of Insight collected for the database system. + * @param insightType the value to set + * @return this builder + **/ + public Builder insightType(InsightType insightType) { + this.insightType = insightType; + this.__explicitlySet__.add("insightType"); + return this; + } + /** + * Retention period for Insight data, in days. Current supported value is 7 days. the system default is 7 days. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") + private Integer retentionPeriodInDays; + + /** + * Retention period for Insight data, in days. Current supported value is 7 days. the system default is 7 days. + * @param retentionPeriodInDays the value to set + * @return this builder + **/ + public Builder retentionPeriodInDays(Integer retentionPeriodInDays) { + this.retentionPeriodInDays = retentionPeriodInDays; + this.__explicitlySet__.add("retentionPeriodInDays"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OdspInsight build() { + OdspInsight model = new OdspInsight(this.insightType, this.retentionPeriodInDays); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OdspInsight model) { + if (model.wasPropertyExplicitlySet("insightType")) { + this.insightType(model.getInsightType()); + } + if (model.wasPropertyExplicitlySet("retentionPeriodInDays")) { + this.retentionPeriodInDays(model.getRetentionPeriodInDays()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Type of Insight collected for the database system. + **/ + public enum InsightType { + QueryInsight("QUERY_INSIGHT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(InsightType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InsightType v : InsightType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + InsightType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static InsightType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'InsightType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Type of Insight collected for the database system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("insightType") + private final InsightType insightType; + + /** + * Type of Insight collected for the database system. + * @return the value + **/ + public InsightType getInsightType() { + return insightType; + } + + /** + * Retention period for Insight data, in days. Current supported value is 7 days. the system default is 7 days. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") + private final Integer retentionPeriodInDays; + + /** + * Retention period for Insight data, in days. Current supported value is 7 days. the system default is 7 days. + * @return the value + **/ + public Integer getRetentionPeriodInDays() { + return retentionPeriodInDays; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OdspInsight("); + sb.append("super=").append(super.toString()); + sb.append("insightType=").append(String.valueOf(this.insightType)); + sb.append(", retentionPeriodInDays=").append(String.valueOf(this.retentionPeriodInDays)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OdspInsight)) { + return false; + } + + OdspInsight other = (OdspInsight) o; + return java.util.Objects.equals(this.insightType, other.insightType) + && java.util.Objects.equals(this.retentionPeriodInDays, other.retentionPeriodInDays) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.insightType == null ? 43 : this.insightType.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriodInDays == null + ? 43 + : this.retentionPeriodInDays.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OdspInsightDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OdspInsightDetails.java new file mode 100644 index 00000000000..4a23223e132 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OdspInsightDetails.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * ODSP Insight details for the database system. + *
+ * 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: 20220915") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "kind", + defaultImpl = OdspInsightDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DisabledInsightDetails.class, + name = "DISABLED" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = EnabledInsightDetails.class, + name = "ENABLED" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class OdspInsightDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected OdspInsightDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OdspInsightDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OdspInsightDetails)) { + return false; + } + + OdspInsightDetails other = (OdspInsightDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * Specifies the management of Insight for the dbSystem. + **/ + public enum Kind { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Kind.class); + + 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-psql/src/main/java/com/oracle/bmc/psql/model/PaginationCapability.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PaginationCapability.java new file mode 100644 index 00000000000..d55d9530d22 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PaginationCapability.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Describes pagination support for an insight 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PaginationCapability.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PaginationCapability extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isSupported", "maxLimit", "defaultLimit"}) + public PaginationCapability(Boolean isSupported, Integer maxLimit, Integer defaultLimit) { + super(); + this.isSupported = isSupported; + this.maxLimit = maxLimit; + this.defaultLimit = defaultLimit; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Indicates whether pagination is supported. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSupported") + private Boolean isSupported; + + /** + * Indicates whether pagination is supported. + * @param isSupported the value to set + * @return this builder + **/ + public Builder isSupported(Boolean isSupported) { + this.isSupported = isSupported; + this.__explicitlySet__.add("isSupported"); + return this; + } + /** + * Maximum number of items per page. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxLimit") + private Integer maxLimit; + + /** + * Maximum number of items per page. + * @param maxLimit the value to set + * @return this builder + **/ + public Builder maxLimit(Integer maxLimit) { + this.maxLimit = maxLimit; + this.__explicitlySet__.add("maxLimit"); + return this; + } + /** + * Default number of items per page. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultLimit") + private Integer defaultLimit; + + /** + * Default number of items per page. + * @param defaultLimit the value to set + * @return this builder + **/ + public Builder defaultLimit(Integer defaultLimit) { + this.defaultLimit = defaultLimit; + this.__explicitlySet__.add("defaultLimit"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PaginationCapability build() { + PaginationCapability model = + new PaginationCapability(this.isSupported, this.maxLimit, this.defaultLimit); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PaginationCapability model) { + if (model.wasPropertyExplicitlySet("isSupported")) { + this.isSupported(model.getIsSupported()); + } + if (model.wasPropertyExplicitlySet("maxLimit")) { + this.maxLimit(model.getMaxLimit()); + } + if (model.wasPropertyExplicitlySet("defaultLimit")) { + this.defaultLimit(model.getDefaultLimit()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Indicates whether pagination is supported. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSupported") + private final Boolean isSupported; + + /** + * Indicates whether pagination is supported. + * @return the value + **/ + public Boolean getIsSupported() { + return isSupported; + } + + /** + * Maximum number of items per page. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxLimit") + private final Integer maxLimit; + + /** + * Maximum number of items per page. + * @return the value + **/ + public Integer getMaxLimit() { + return maxLimit; + } + + /** + * Default number of items per page. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultLimit") + private final Integer defaultLimit; + + /** + * Default number of items per page. + * @return the value + **/ + public Integer getDefaultLimit() { + return defaultLimit; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PaginationCapability("); + sb.append("super=").append(super.toString()); + sb.append("isSupported=").append(String.valueOf(this.isSupported)); + sb.append(", maxLimit=").append(String.valueOf(this.maxLimit)); + sb.append(", defaultLimit=").append(String.valueOf(this.defaultLimit)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PaginationCapability)) { + return false; + } + + PaginationCapability other = (PaginationCapability) o; + return java.util.Objects.equals(this.isSupported, other.isSupported) + && java.util.Objects.equals(this.maxLimit, other.maxLimit) + && java.util.Objects.equals(this.defaultLimit, other.defaultLimit) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isSupported == null ? 43 : this.isSupported.hashCode()); + result = (result * PRIME) + (this.maxLimit == null ? 43 : this.maxLimit.hashCode()); + result = (result * PRIME) + (this.defaultLimit == null ? 43 : this.defaultLimit.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PitrDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PitrDetails.java new file mode 100644 index 00000000000..ff1852289f7 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PitrDetails.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Point-in-time recovery details + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PitrDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PitrDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"pitrState", "recoveryTimeWindows"}) + public PitrDetails(PitrState pitrState, java.util.List recoveryTimeWindows) { + super(); + this.pitrState = pitrState; + this.recoveryTimeWindows = recoveryTimeWindows; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The current state of the point-in-time recovery of the db system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("pitrState") + private PitrState pitrState; + + /** + * The current state of the point-in-time recovery of the db system. + * @param pitrState the value to set + * @return this builder + **/ + public Builder pitrState(PitrState pitrState) { + this.pitrState = pitrState; + this.__explicitlySet__.add("pitrState"); + return this; + } + /** + * List of point-in-time recovery windows. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryTimeWindows") + private java.util.List recoveryTimeWindows; + + /** + * List of point-in-time recovery windows. + * @param recoveryTimeWindows the value to set + * @return this builder + **/ + public Builder recoveryTimeWindows(java.util.List recoveryTimeWindows) { + this.recoveryTimeWindows = recoveryTimeWindows; + this.__explicitlySet__.add("recoveryTimeWindows"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PitrDetails build() { + PitrDetails model = new PitrDetails(this.pitrState, this.recoveryTimeWindows); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PitrDetails model) { + if (model.wasPropertyExplicitlySet("pitrState")) { + this.pitrState(model.getPitrState()); + } + if (model.wasPropertyExplicitlySet("recoveryTimeWindows")) { + this.recoveryTimeWindows(model.getRecoveryTimeWindows()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The current state of the point-in-time recovery of the db system. + **/ + public enum PitrState { + Active("ACTIVE"), + Updating("UPDATING"), + 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 static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PitrState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PitrState v : PitrState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PitrState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PitrState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PitrState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the point-in-time recovery of the db system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("pitrState") + private final PitrState pitrState; + + /** + * The current state of the point-in-time recovery of the db system. + * @return the value + **/ + public PitrState getPitrState() { + return pitrState; + } + + /** + * List of point-in-time recovery windows. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryTimeWindows") + private final java.util.List recoveryTimeWindows; + + /** + * List of point-in-time recovery windows. + * @return the value + **/ + public java.util.List getRecoveryTimeWindows() { + return recoveryTimeWindows; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PitrDetails("); + sb.append("super=").append(super.toString()); + sb.append("pitrState=").append(String.valueOf(this.pitrState)); + sb.append(", recoveryTimeWindows=").append(String.valueOf(this.recoveryTimeWindows)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PitrDetails)) { + return false; + } + + PitrDetails other = (PitrDetails) o; + return java.util.Objects.equals(this.pitrState, other.pitrState) + && java.util.Objects.equals(this.recoveryTimeWindows, other.recoveryTimeWindows) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.pitrState == null ? 43 : this.pitrState.hashCode()); + result = + (result * PRIME) + + (this.recoveryTimeWindows == null + ? 43 + : this.recoveryTimeWindows.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PitrPolicy.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PitrPolicy.java new file mode 100644 index 00000000000..957a02cfc28 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PitrPolicy.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Point-in-time recovery policy. + *
+ * 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: 20220915") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "kind", + defaultImpl = PitrPolicy.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = StandardPitrPolicy.class, + name = "STANDARD" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = NonePitrPolicy.class, name = "NONE") +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class PitrPolicy extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected PitrPolicy() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PitrPolicy("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PitrPolicy)) { + return false; + } + + PitrPolicy other = (PitrPolicy) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The kind of recovery policy. + **/ + public enum Kind { + Standard("STANDARD"), + None("NONE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Kind.class); + + 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-psql/src/main/java/com/oracle/bmc/psql/model/PitrTimeWindow.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PitrTimeWindow.java new file mode 100644 index 00000000000..f33bf543e6f --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PitrTimeWindow.java @@ -0,0 +1,231 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Time interval for which point-in-time recovery (PITR) is supported. + * The database can be restored to any timestamp between + * {@code timeRecoveryWindowStart} and {@code timeRecoveryWindowEnd} (inclusive). + * + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PitrTimeWindow.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PitrTimeWindow extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"timeRecoveryWindowStart", "timeRecoveryWindowEnd"}) + public PitrTimeWindow( + java.util.Date timeRecoveryWindowStart, java.util.Date timeRecoveryWindowEnd) { + super(); + this.timeRecoveryWindowStart = timeRecoveryWindowStart; + this.timeRecoveryWindowEnd = timeRecoveryWindowEnd; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Earliest timestamp in the PITR window to which the database can be + * restored. Timestamps earlier than this are not recoverable. + * The value must be an [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp. + *

+ * Example: {@code 2016-08-25T21:10:29Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRecoveryWindowStart") + private java.util.Date timeRecoveryWindowStart; + + /** + * Earliest timestamp in the PITR window to which the database can be + * restored. Timestamps earlier than this are not recoverable. + * The value must be an [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp. + *

+ * Example: {@code 2016-08-25T21:10:29Z} + * + * @param timeRecoveryWindowStart the value to set + * @return this builder + **/ + public Builder timeRecoveryWindowStart(java.util.Date timeRecoveryWindowStart) { + this.timeRecoveryWindowStart = timeRecoveryWindowStart; + this.__explicitlySet__.add("timeRecoveryWindowStart"); + return this; + } + /** + * Latest timestamp in the PITR window to which the database can be + * restored. Timestamps later than this are not recoverable. + * The value must be an [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp. + *

+ * Example: {@code 2016-08-25T21:10:29Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRecoveryWindowEnd") + private java.util.Date timeRecoveryWindowEnd; + + /** + * Latest timestamp in the PITR window to which the database can be + * restored. Timestamps later than this are not recoverable. + * The value must be an [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp. + *

+ * Example: {@code 2016-08-25T21:10:29Z} + * + * @param timeRecoveryWindowEnd the value to set + * @return this builder + **/ + public Builder timeRecoveryWindowEnd(java.util.Date timeRecoveryWindowEnd) { + this.timeRecoveryWindowEnd = timeRecoveryWindowEnd; + this.__explicitlySet__.add("timeRecoveryWindowEnd"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PitrTimeWindow build() { + PitrTimeWindow model = + new PitrTimeWindow(this.timeRecoveryWindowStart, this.timeRecoveryWindowEnd); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PitrTimeWindow model) { + if (model.wasPropertyExplicitlySet("timeRecoveryWindowStart")) { + this.timeRecoveryWindowStart(model.getTimeRecoveryWindowStart()); + } + if (model.wasPropertyExplicitlySet("timeRecoveryWindowEnd")) { + this.timeRecoveryWindowEnd(model.getTimeRecoveryWindowEnd()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Earliest timestamp in the PITR window to which the database can be + * restored. Timestamps earlier than this are not recoverable. + * The value must be an [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp. + *

+ * Example: {@code 2016-08-25T21:10:29Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRecoveryWindowStart") + private final java.util.Date timeRecoveryWindowStart; + + /** + * Earliest timestamp in the PITR window to which the database can be + * restored. Timestamps earlier than this are not recoverable. + * The value must be an [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp. + *

+ * Example: {@code 2016-08-25T21:10:29Z} + * + * @return the value + **/ + public java.util.Date getTimeRecoveryWindowStart() { + return timeRecoveryWindowStart; + } + + /** + * Latest timestamp in the PITR window to which the database can be + * restored. Timestamps later than this are not recoverable. + * The value must be an [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp. + *

+ * Example: {@code 2016-08-25T21:10:29Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeRecoveryWindowEnd") + private final java.util.Date timeRecoveryWindowEnd; + + /** + * Latest timestamp in the PITR window to which the database can be + * restored. Timestamps later than this are not recoverable. + * The value must be an [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp. + *

+ * Example: {@code 2016-08-25T21:10:29Z} + * + * @return the value + **/ + public java.util.Date getTimeRecoveryWindowEnd() { + return timeRecoveryWindowEnd; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PitrTimeWindow("); + sb.append("super=").append(super.toString()); + sb.append("timeRecoveryWindowStart=").append(String.valueOf(this.timeRecoveryWindowStart)); + sb.append(", timeRecoveryWindowEnd=").append(String.valueOf(this.timeRecoveryWindowEnd)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PitrTimeWindow)) { + return false; + } + + PitrTimeWindow other = (PitrTimeWindow) o; + return java.util.Objects.equals(this.timeRecoveryWindowStart, other.timeRecoveryWindowStart) + && java.util.Objects.equals(this.timeRecoveryWindowEnd, other.timeRecoveryWindowEnd) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.timeRecoveryWindowStart == null + ? 43 + : this.timeRecoveryWindowStart.hashCode()); + result = + (result * PRIME) + + (this.timeRecoveryWindowEnd == null + ? 43 + : this.timeRecoveryWindowEnd.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PointInTimeDbSystemSourceDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PointInTimeDbSystemSourceDetails.java new file mode 100644 index 00000000000..cad8892f364 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PointInTimeDbSystemSourceDetails.java @@ -0,0 +1,199 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Details of database system point-in-time recovery. + * + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PointInTimeDbSystemSourceDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "sourceType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PointInTimeDbSystemSourceDetails extends SourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the source database system which will be used to perform point-in-time recovery. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the source database system which will be used to perform point-in-time recovery. + * @param dbSystemId the value to set + * @return this builder + **/ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + this.__explicitlySet__.add("dbSystemId"); + return this; + } + /** + * The target point-in-time of the source database system that will be restored, expressed in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + *

+ * Point-in-time recovery can only performed in granularity of seconds. + * Example: {@code 2016-08-25T21:10:29Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeToRestore") + private java.util.Date timeToRestore; + + /** + * The target point-in-time of the source database system that will be restored, expressed in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + *

+ * Point-in-time recovery can only performed in granularity of seconds. + * Example: {@code 2016-08-25T21:10:29Z} + * + * @param timeToRestore the value to set + * @return this builder + **/ + public Builder timeToRestore(java.util.Date timeToRestore) { + this.timeToRestore = timeToRestore; + this.__explicitlySet__.add("timeToRestore"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PointInTimeDbSystemSourceDetails build() { + PointInTimeDbSystemSourceDetails model = + new PointInTimeDbSystemSourceDetails(this.dbSystemId, this.timeToRestore); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PointInTimeDbSystemSourceDetails model) { + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } + if (model.wasPropertyExplicitlySet("timeToRestore")) { + this.timeToRestore(model.getTimeToRestore()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PointInTimeDbSystemSourceDetails(String dbSystemId, java.util.Date timeToRestore) { + super(); + this.dbSystemId = dbSystemId; + this.timeToRestore = timeToRestore; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the source database system which will be used to perform point-in-time recovery. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the source database system which will be used to perform point-in-time recovery. + * @return the value + **/ + public String getDbSystemId() { + return dbSystemId; + } + + /** + * The target point-in-time of the source database system that will be restored, expressed in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + *

+ * Point-in-time recovery can only performed in granularity of seconds. + * Example: {@code 2016-08-25T21:10:29Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeToRestore") + private final java.util.Date timeToRestore; + + /** + * The target point-in-time of the source database system that will be restored, expressed in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + *

+ * Point-in-time recovery can only performed in granularity of seconds. + * Example: {@code 2016-08-25T21:10:29Z} + * + * @return the value + **/ + public java.util.Date getTimeToRestore() { + return timeToRestore; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PointInTimeDbSystemSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(", timeToRestore=").append(String.valueOf(this.timeToRestore)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PointInTimeDbSystemSourceDetails)) { + return false; + } + + PointInTimeDbSystemSourceDetails other = (PointInTimeDbSystemSourceDetails) o; + return java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.timeToRestore, other.timeToRestore) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = + (result * PRIME) + + (this.timeToRestore == null ? 43 : this.timeToRestore.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PrimaryDbSystemSourceDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PrimaryDbSystemSourceDetails.java new file mode 100644 index 00000000000..7135c276d88 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PrimaryDbSystemSourceDetails.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Details of the primary database system. + * + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PrimaryDbSystemSourceDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "sourceType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PrimaryDbSystemSourceDetails extends SourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID] of the primary database system. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbSystemId") + private String primaryDbSystemId; + + /** + * The [OCID] of the primary database system. + * + * @param primaryDbSystemId the value to set + * @return this builder + **/ + public Builder primaryDbSystemId(String primaryDbSystemId) { + this.primaryDbSystemId = primaryDbSystemId; + this.__explicitlySet__.add("primaryDbSystemId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PrimaryDbSystemSourceDetails build() { + PrimaryDbSystemSourceDetails model = + new PrimaryDbSystemSourceDetails(this.primaryDbSystemId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PrimaryDbSystemSourceDetails model) { + if (model.wasPropertyExplicitlySet("primaryDbSystemId")) { + this.primaryDbSystemId(model.getPrimaryDbSystemId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PrimaryDbSystemSourceDetails(String primaryDbSystemId) { + super(); + this.primaryDbSystemId = primaryDbSystemId; + } + + /** + * The [OCID] of the primary database system. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbSystemId") + private final String primaryDbSystemId; + + /** + * The [OCID] of the primary database system. + * + * @return the value + **/ + public String getPrimaryDbSystemId() { + return primaryDbSystemId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PrimaryDbSystemSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", primaryDbSystemId=").append(String.valueOf(this.primaryDbSystemId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PrimaryDbSystemSourceDetails)) { + return false; + } + + PrimaryDbSystemSourceDetails other = (PrimaryDbSystemSourceDetails) o; + return java.util.Objects.equals(this.primaryDbSystemId, other.primaryDbSystemId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.primaryDbSystemId == null ? 43 : this.primaryDbSystemId.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ReplicationConfig.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ReplicationConfig.java new file mode 100644 index 00000000000..6ed8e8955d5 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ReplicationConfig.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Replication configuration that is applicable on database systems with the PRIMARY_DB_SYSTEM + * role. + *

+ * This configuration does not have any effect on database systems with other roles. + * + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ReplicationConfig.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ReplicationConfig extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isRpoEnforced", "rpoInSeconds"}) + public ReplicationConfig(Boolean isRpoEnforced, Long rpoInSeconds) { + super(); + this.isRpoEnforced = isRpoEnforced; + this.rpoInSeconds = rpoInSeconds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Specifies if Recovery point objective (RPO) enforcement is enabled on the database system. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRpoEnforced") + private Boolean isRpoEnforced; + + /** + * Specifies if Recovery point objective (RPO) enforcement is enabled on the database system. + * + * @param isRpoEnforced the value to set + * @return this builder + **/ + public Builder isRpoEnforced(Boolean isRpoEnforced) { + this.isRpoEnforced = isRpoEnforced; + this.__explicitlySet__.add("isRpoEnforced"); + return this; + } + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rpoInSeconds") + private Long rpoInSeconds; + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + * @param rpoInSeconds the value to set + * @return this builder + **/ + public Builder rpoInSeconds(Long rpoInSeconds) { + this.rpoInSeconds = rpoInSeconds; + this.__explicitlySet__.add("rpoInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ReplicationConfig build() { + ReplicationConfig model = new ReplicationConfig(this.isRpoEnforced, this.rpoInSeconds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ReplicationConfig model) { + if (model.wasPropertyExplicitlySet("isRpoEnforced")) { + this.isRpoEnforced(model.getIsRpoEnforced()); + } + if (model.wasPropertyExplicitlySet("rpoInSeconds")) { + this.rpoInSeconds(model.getRpoInSeconds()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Specifies if Recovery point objective (RPO) enforcement is enabled on the database system. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRpoEnforced") + private final Boolean isRpoEnforced; + + /** + * Specifies if Recovery point objective (RPO) enforcement is enabled on the database system. + * + * @return the value + **/ + public Boolean getIsRpoEnforced() { + return isRpoEnforced; + } + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rpoInSeconds") + private final Long rpoInSeconds; + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + * @return the value + **/ + public Long getRpoInSeconds() { + return rpoInSeconds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ReplicationConfig("); + sb.append("super=").append(super.toString()); + sb.append("isRpoEnforced=").append(String.valueOf(this.isRpoEnforced)); + sb.append(", rpoInSeconds=").append(String.valueOf(this.rpoInSeconds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplicationConfig)) { + return false; + } + + ReplicationConfig other = (ReplicationConfig) o; + return java.util.Objects.equals(this.isRpoEnforced, other.isRpoEnforced) + && java.util.Objects.equals(this.rpoInSeconds, other.rpoInSeconds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isRpoEnforced == null ? 43 : this.isRpoEnforced.hashCode()); + result = (result * PRIME) + (this.rpoInSeconds == null ? 43 : this.rpoInSeconds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/RestoreDbSystemDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/RestoreDbSystemDetails.java index 5897f13e897..33ebd240e9d 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/RestoreDbSystemDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/RestoreDbSystemDetails.java @@ -22,11 +22,12 @@ public final class RestoreDbSystemDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"backupId", "ad"}) - public RestoreDbSystemDetails(String backupId, String ad) { + @java.beans.ConstructorProperties({"backupId", "ad", "timeToRestore"}) + public RestoreDbSystemDetails(String backupId, String ad, java.util.Date timeToRestore) { super(); this.backupId = backupId; this.ad = ad; + this.timeToRestore = timeToRestore; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -67,12 +68,37 @@ public Builder ad(String ad) { this.__explicitlySet__.add("ad"); return this; } + /** + * The target point-in-time that the database system restore can get started from, expressed in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeToRestore") + private java.util.Date timeToRestore; + + /** + * The target point-in-time that the database system restore can get started from, expressed in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeToRestore the value to set + * @return this builder + **/ + public Builder timeToRestore(java.util.Date timeToRestore) { + this.timeToRestore = timeToRestore; + this.__explicitlySet__.add("timeToRestore"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public RestoreDbSystemDetails build() { - RestoreDbSystemDetails model = new RestoreDbSystemDetails(this.backupId, this.ad); + RestoreDbSystemDetails model = + new RestoreDbSystemDetails(this.backupId, this.ad, this.timeToRestore); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -87,6 +113,9 @@ public Builder copy(RestoreDbSystemDetails model) { if (model.wasPropertyExplicitlySet("ad")) { this.ad(model.getAd()); } + if (model.wasPropertyExplicitlySet("timeToRestore")) { + this.timeToRestore(model.getTimeToRestore()); + } return this; } } @@ -134,6 +163,28 @@ public String getAd() { return ad; } + /** + * The target point-in-time that the database system restore can get started from, expressed in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeToRestore") + private final java.util.Date timeToRestore; + + /** + * The target point-in-time that the database system restore can get started from, expressed in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + *

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeToRestore() { + return timeToRestore; + } + @Override public String toString() { return this.toString(true); @@ -150,6 +201,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("backupId=").append(String.valueOf(this.backupId)); sb.append(", ad=").append(String.valueOf(this.ad)); + sb.append(", timeToRestore=").append(String.valueOf(this.timeToRestore)); sb.append(")"); return sb.toString(); } @@ -166,6 +218,7 @@ public boolean equals(Object o) { RestoreDbSystemDetails other = (RestoreDbSystemDetails) o; return java.util.Objects.equals(this.backupId, other.backupId) && java.util.Objects.equals(this.ad, other.ad) + && java.util.Objects.equals(this.timeToRestore, other.timeToRestore) && super.equals(other); } @@ -175,6 +228,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.backupId == null ? 43 : this.backupId.hashCode()); result = (result * PRIME) + (this.ad == null ? 43 : this.ad.hashCode()); + result = + (result * PRIME) + + (this.timeToRestore == null ? 43 : this.timeToRestore.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SortingCapability.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SortingCapability.java new file mode 100644 index 00000000000..147cb03e3ad --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SortingCapability.java @@ -0,0 +1,197 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Describes sorting support for an insight 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SortingCapability.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SortingCapability extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isSupported", "fields", "defaultSort"}) + public SortingCapability( + Boolean isSupported, java.util.List fields, SortingDefault defaultSort) { + super(); + this.isSupported = isSupported; + this.fields = fields; + this.defaultSort = defaultSort; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Indicates whether sorting is supported. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSupported") + private Boolean isSupported; + + /** + * Indicates whether sorting is supported. + * @param isSupported the value to set + * @return this builder + **/ + public Builder isSupported(Boolean isSupported) { + this.isSupported = isSupported; + this.__explicitlySet__.add("isSupported"); + return this; + } + /** + * Fields that can be used for sorting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fields") + private java.util.List fields; + + /** + * Fields that can be used for sorting. + * @param fields the value to set + * @return this builder + **/ + public Builder fields(java.util.List fields) { + this.fields = fields; + this.__explicitlySet__.add("fields"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("defaultSort") + private SortingDefault defaultSort; + + public Builder defaultSort(SortingDefault defaultSort) { + this.defaultSort = defaultSort; + this.__explicitlySet__.add("defaultSort"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SortingCapability build() { + SortingCapability model = + new SortingCapability(this.isSupported, this.fields, this.defaultSort); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SortingCapability model) { + if (model.wasPropertyExplicitlySet("isSupported")) { + this.isSupported(model.getIsSupported()); + } + if (model.wasPropertyExplicitlySet("fields")) { + this.fields(model.getFields()); + } + if (model.wasPropertyExplicitlySet("defaultSort")) { + this.defaultSort(model.getDefaultSort()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Indicates whether sorting is supported. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSupported") + private final Boolean isSupported; + + /** + * Indicates whether sorting is supported. + * @return the value + **/ + public Boolean getIsSupported() { + return isSupported; + } + + /** + * Fields that can be used for sorting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fields") + private final java.util.List fields; + + /** + * Fields that can be used for sorting. + * @return the value + **/ + public java.util.List getFields() { + return fields; + } + + @com.fasterxml.jackson.annotation.JsonProperty("defaultSort") + private final SortingDefault defaultSort; + + public SortingDefault getDefaultSort() { + return defaultSort; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SortingCapability("); + sb.append("super=").append(super.toString()); + sb.append("isSupported=").append(String.valueOf(this.isSupported)); + sb.append(", fields=").append(String.valueOf(this.fields)); + sb.append(", defaultSort=").append(String.valueOf(this.defaultSort)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SortingCapability)) { + return false; + } + + SortingCapability other = (SortingCapability) o; + return java.util.Objects.equals(this.isSupported, other.isSupported) + && java.util.Objects.equals(this.fields, other.fields) + && java.util.Objects.equals(this.defaultSort, other.defaultSort) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isSupported == null ? 43 : this.isSupported.hashCode()); + result = (result * PRIME) + (this.fields == null ? 43 : this.fields.hashCode()); + result = (result * PRIME) + (this.defaultSort == null ? 43 : this.defaultSort.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SortingDefault.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SortingDefault.java new file mode 100644 index 00000000000..453c12b6596 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SortingDefault.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Default sorting behavior for an insight 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SortingDefault.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SortingDefault extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"field", "order"}) + public SortingDefault(String field, Order order) { + super(); + this.field = field; + this.order = order; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Default field used for sorting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("field") + private String field; + + /** + * Default field used for sorting. + * @param field the value to set + * @return this builder + **/ + public Builder field(String field) { + this.field = field; + this.__explicitlySet__.add("field"); + return this; + } + /** + * Default sort order. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("order") + private Order order; + + /** + * Default sort order. + * @param order the value to set + * @return this builder + **/ + public Builder order(Order order) { + this.order = order; + this.__explicitlySet__.add("order"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SortingDefault build() { + SortingDefault model = new SortingDefault(this.field, this.order); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SortingDefault model) { + if (model.wasPropertyExplicitlySet("field")) { + this.field(model.getField()); + } + if (model.wasPropertyExplicitlySet("order")) { + this.order(model.getOrder()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Default field used for sorting. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("field") + private final String field; + + /** + * Default field used for sorting. + * @return the value + **/ + public String getField() { + return field; + } + + /** + * Default sort order. + **/ + public enum Order { + Asc("ASC"), + Desc("DESC"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Order.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Order v : Order.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Order(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Order create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Order', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Default sort order. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("order") + private final Order order; + + /** + * Default sort order. + * @return the value + **/ + public Order getOrder() { + return order; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SortingDefault("); + sb.append("super=").append(super.toString()); + sb.append("field=").append(String.valueOf(this.field)); + sb.append(", order=").append(String.valueOf(this.order)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SortingDefault)) { + return false; + } + + SortingDefault other = (SortingDefault) o; + return java.util.Objects.equals(this.field, other.field) + && java.util.Objects.equals(this.order, other.order) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.field == null ? 43 : this.field.hashCode()); + result = (result * PRIME) + (this.order == null ? 43 : this.order.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SourceDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SourceDetails.java index b5cede67065..d1c4351cd52 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SourceDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SourceDetails.java @@ -26,9 +26,17 @@ value = BackupSourceDetails.class, name = "BACKUP" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PrimaryDbSystemSourceDetails.class, + name = "DB_SYSTEM" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = NoneSourceDetails.class, name = "NONE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PointInTimeDbSystemSourceDetails.class, + name = "POINT_IN_TIME_DB_SYSTEM" ) }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) @@ -85,6 +93,8 @@ public int hashCode() { public enum SourceType { Backup("BACKUP"), None("NONE"), + PointInTimeDbSystem("POINT_IN_TIME_DB_SYSTEM"), + DbSystem("DB_SYSTEM"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StandardPitrPolicy.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StandardPitrPolicy.java new file mode 100644 index 00000000000..d3385c9975a --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StandardPitrPolicy.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * A standard point-in-time recovery policy. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StandardPitrPolicy.Builder.class +) +@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) +public final class StandardPitrPolicy extends PitrPolicy { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The number of days the database system retains backups required for point-in-time recovery. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("restoreDays") + private Integer restoreDays; + + /** + * The number of days the database system retains backups required for point-in-time recovery. + * @param restoreDays the value to set + * @return this builder + **/ + public Builder restoreDays(Integer restoreDays) { + this.restoreDays = restoreDays; + this.__explicitlySet__.add("restoreDays"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StandardPitrPolicy build() { + StandardPitrPolicy model = new StandardPitrPolicy(this.restoreDays); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StandardPitrPolicy model) { + if (model.wasPropertyExplicitlySet("restoreDays")) { + this.restoreDays(model.getRestoreDays()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public StandardPitrPolicy(Integer restoreDays) { + super(); + this.restoreDays = restoreDays; + } + + /** + * The number of days the database system retains backups required for point-in-time recovery. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("restoreDays") + private final Integer restoreDays; + + /** + * The number of days the database system retains backups required for point-in-time recovery. + * @return the value + **/ + public Integer getRestoreDays() { + return restoreDays; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StandardPitrPolicy("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", restoreDays=").append(String.valueOf(this.restoreDays)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StandardPitrPolicy)) { + return false; + } + + StandardPitrPolicy other = (StandardPitrPolicy) o; + return java.util.Objects.equals(this.restoreDays, other.restoreDays) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.restoreDays == null ? 43 : this.restoreDays.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StartDbSystemDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StartDbSystemDetails.java new file mode 100644 index 00000000000..eaaf9b39a0c --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StartDbSystemDetails.java @@ -0,0 +1,276 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * DB System start parameters to update ocpu, memory, shape and configuration. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StartDbSystemDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class StartDbSystemDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "instanceOcpuCount", + "instanceMemorySizeInGBs", + "shape", + "configId" + }) + public StartDbSystemDetails( + Integer instanceOcpuCount, + Integer instanceMemorySizeInGBs, + String shape, + String configId) { + super(); + this.instanceOcpuCount = instanceOcpuCount; + this.instanceMemorySizeInGBs = instanceMemorySizeInGBs; + this.shape = shape; + this.configId = configId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The total number of OCPUs available to each database system node. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceOcpuCount") + private Integer instanceOcpuCount; + + /** + * The total number of OCPUs available to each database system node. + * @param instanceOcpuCount the value to set + * @return this builder + **/ + public Builder instanceOcpuCount(Integer instanceOcpuCount) { + this.instanceOcpuCount = instanceOcpuCount; + this.__explicitlySet__.add("instanceOcpuCount"); + return this; + } + /** + * The total amount of memory available to each database system node, in gigabytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceMemorySizeInGBs") + private Integer instanceMemorySizeInGBs; + + /** + * The total amount of memory available to each database system node, in gigabytes. + * @param instanceMemorySizeInGBs the value to set + * @return this builder + **/ + public Builder instanceMemorySizeInGBs(Integer instanceMemorySizeInGBs) { + this.instanceMemorySizeInGBs = instanceMemorySizeInGBs; + this.__explicitlySet__.add("instanceMemorySizeInGBs"); + return this; + } + /** + * The name of the shape for the database system nodes. Example: {@code VM.Standard.E4.Flex} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private String shape; + + /** + * The name of the shape for the database system nodes. Example: {@code VM.Standard.E4.Flex} + * + * @param shape the value to set + * @return this builder + **/ + public Builder shape(String shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** + * The updated configId for the database system. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configId") + private String configId; + + /** + * The updated configId for the database system. + * + * @param configId the value to set + * @return this builder + **/ + public Builder configId(String configId) { + this.configId = configId; + this.__explicitlySet__.add("configId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StartDbSystemDetails build() { + StartDbSystemDetails model = + new StartDbSystemDetails( + this.instanceOcpuCount, + this.instanceMemorySizeInGBs, + this.shape, + this.configId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StartDbSystemDetails model) { + if (model.wasPropertyExplicitlySet("instanceOcpuCount")) { + this.instanceOcpuCount(model.getInstanceOcpuCount()); + } + if (model.wasPropertyExplicitlySet("instanceMemorySizeInGBs")) { + this.instanceMemorySizeInGBs(model.getInstanceMemorySizeInGBs()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("configId")) { + this.configId(model.getConfigId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The total number of OCPUs available to each database system node. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceOcpuCount") + private final Integer instanceOcpuCount; + + /** + * The total number of OCPUs available to each database system node. + * @return the value + **/ + public Integer getInstanceOcpuCount() { + return instanceOcpuCount; + } + + /** + * The total amount of memory available to each database system node, in gigabytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceMemorySizeInGBs") + private final Integer instanceMemorySizeInGBs; + + /** + * The total amount of memory available to each database system node, in gigabytes. + * @return the value + **/ + public Integer getInstanceMemorySizeInGBs() { + return instanceMemorySizeInGBs; + } + + /** + * The name of the shape for the database system nodes. Example: {@code VM.Standard.E4.Flex} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final String shape; + + /** + * The name of the shape for the database system nodes. Example: {@code VM.Standard.E4.Flex} + * + * @return the value + **/ + public String getShape() { + return shape; + } + + /** + * The updated configId for the database system. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configId") + private final String configId; + + /** + * The updated configId for the database system. + * + * @return the value + **/ + public String getConfigId() { + return configId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StartDbSystemDetails("); + sb.append("super=").append(super.toString()); + sb.append("instanceOcpuCount=").append(String.valueOf(this.instanceOcpuCount)); + sb.append(", instanceMemorySizeInGBs=") + .append(String.valueOf(this.instanceMemorySizeInGBs)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", configId=").append(String.valueOf(this.configId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StartDbSystemDetails)) { + return false; + } + + StartDbSystemDetails other = (StartDbSystemDetails) o; + return java.util.Objects.equals(this.instanceOcpuCount, other.instanceOcpuCount) + && java.util.Objects.equals( + this.instanceMemorySizeInGBs, other.instanceMemorySizeInGBs) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals(this.configId, other.configId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.instanceOcpuCount == null ? 43 : this.instanceOcpuCount.hashCode()); + result = + (result * PRIME) + + (this.instanceMemorySizeInGBs == null + ? 43 + : this.instanceMemorySizeInGBs.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = (result * PRIME) + (this.configId == null ? 43 : this.configId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SwitchOverDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SwitchOverDetails.java new file mode 100644 index 00000000000..34b4dcbaa44 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SwitchOverDetails.java @@ -0,0 +1,141 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * The information required to swap role between the primary and an existing replica database system. + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SwitchOverDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SwitchOverDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"replicaDbSystemId"}) + public SwitchOverDetails(String replicaDbSystemId) { + super(); + this.replicaDbSystemId = replicaDbSystemId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the replica database system that will get the primary role after switchover. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicaDbSystemId") + private String replicaDbSystemId; + + /** + * The OCID of the replica database system that will get the primary role after switchover. + * + * @param replicaDbSystemId the value to set + * @return this builder + **/ + public Builder replicaDbSystemId(String replicaDbSystemId) { + this.replicaDbSystemId = replicaDbSystemId; + this.__explicitlySet__.add("replicaDbSystemId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SwitchOverDetails build() { + SwitchOverDetails model = new SwitchOverDetails(this.replicaDbSystemId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SwitchOverDetails model) { + if (model.wasPropertyExplicitlySet("replicaDbSystemId")) { + this.replicaDbSystemId(model.getReplicaDbSystemId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the replica database system that will get the primary role after switchover. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicaDbSystemId") + private final String replicaDbSystemId; + + /** + * The OCID of the replica database system that will get the primary role after switchover. + * + * @return the value + **/ + public String getReplicaDbSystemId() { + return replicaDbSystemId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SwitchOverDetails("); + sb.append("super=").append(super.toString()); + sb.append("replicaDbSystemId=").append(String.valueOf(this.replicaDbSystemId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SwitchOverDetails)) { + return false; + } + + SwitchOverDetails other = (SwitchOverDetails) o; + return java.util.Objects.equals(this.replicaDbSystemId, other.replicaDbSystemId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.replicaDbSystemId == null ? 43 : this.replicaDbSystemId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateDbSystemDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateDbSystemDetails.java index f2edd95c16d..1aa31aee044 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateDbSystemDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateDbSystemDetails.java @@ -31,7 +31,10 @@ public final class UpdateDbSystemDetails "dbConfigurationParams", "managementPolicy", "storageDetails", + "replicationConfig", "networkDetails", + "kerberosAuthDetails", + "odspInsightDetails", "freeformTags", "definedTags" }) @@ -44,7 +47,10 @@ public UpdateDbSystemDetails( UpdateDbConfigParams dbConfigurationParams, ManagementPolicyDetails managementPolicy, UpdateStorageDetailsParams storageDetails, + UpdateReplicationConfigDetails replicationConfig, UpdateNetworkDetails networkDetails, + KerberosAuthDetails kerberosAuthDetails, + OdspInsightDetails odspInsightDetails, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -56,7 +62,10 @@ public UpdateDbSystemDetails( this.dbConfigurationParams = dbConfigurationParams; this.managementPolicy = managementPolicy; this.storageDetails = storageDetails; + this.replicationConfig = replicationConfig; this.networkDetails = networkDetails; + this.kerberosAuthDetails = kerberosAuthDetails; + this.odspInsightDetails = odspInsightDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -175,6 +184,15 @@ public Builder storageDetails(UpdateStorageDetailsParams storageDetails) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("replicationConfig") + private UpdateReplicationConfigDetails replicationConfig; + + public Builder replicationConfig(UpdateReplicationConfigDetails replicationConfig) { + this.replicationConfig = replicationConfig; + this.__explicitlySet__.add("replicationConfig"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("networkDetails") private UpdateNetworkDetails networkDetails; @@ -183,6 +201,24 @@ public Builder networkDetails(UpdateNetworkDetails networkDetails) { this.__explicitlySet__.add("networkDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("kerberosAuthDetails") + private KerberosAuthDetails kerberosAuthDetails; + + public Builder kerberosAuthDetails(KerberosAuthDetails kerberosAuthDetails) { + this.kerberosAuthDetails = kerberosAuthDetails; + this.__explicitlySet__.add("kerberosAuthDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightDetails") + private OdspInsightDetails odspInsightDetails; + + public Builder odspInsightDetails(OdspInsightDetails odspInsightDetails) { + this.odspInsightDetails = odspInsightDetails; + this.__explicitlySet__.add("odspInsightDetails"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -239,7 +275,10 @@ public UpdateDbSystemDetails build() { this.dbConfigurationParams, this.managementPolicy, this.storageDetails, + this.replicationConfig, this.networkDetails, + this.kerberosAuthDetails, + this.odspInsightDetails, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -274,9 +313,18 @@ public Builder copy(UpdateDbSystemDetails model) { if (model.wasPropertyExplicitlySet("storageDetails")) { this.storageDetails(model.getStorageDetails()); } + if (model.wasPropertyExplicitlySet("replicationConfig")) { + this.replicationConfig(model.getReplicationConfig()); + } if (model.wasPropertyExplicitlySet("networkDetails")) { this.networkDetails(model.getNetworkDetails()); } + if (model.wasPropertyExplicitlySet("kerberosAuthDetails")) { + this.kerberosAuthDetails(model.getKerberosAuthDetails()); + } + if (model.wasPropertyExplicitlySet("odspInsightDetails")) { + this.odspInsightDetails(model.getOdspInsightDetails()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -393,6 +441,13 @@ public UpdateStorageDetailsParams getStorageDetails() { return storageDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("replicationConfig") + private final UpdateReplicationConfigDetails replicationConfig; + + public UpdateReplicationConfigDetails getReplicationConfig() { + return replicationConfig; + } + @com.fasterxml.jackson.annotation.JsonProperty("networkDetails") private final UpdateNetworkDetails networkDetails; @@ -400,6 +455,20 @@ public UpdateNetworkDetails getNetworkDetails() { return networkDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("kerberosAuthDetails") + private final KerberosAuthDetails kerberosAuthDetails; + + public KerberosAuthDetails getKerberosAuthDetails() { + return kerberosAuthDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightDetails") + private final OdspInsightDetails odspInsightDetails; + + public OdspInsightDetails getOdspInsightDetails() { + return odspInsightDetails; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -459,7 +528,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dbConfigurationParams=").append(String.valueOf(this.dbConfigurationParams)); sb.append(", managementPolicy=").append(String.valueOf(this.managementPolicy)); sb.append(", storageDetails=").append(String.valueOf(this.storageDetails)); + sb.append(", replicationConfig=").append(String.valueOf(this.replicationConfig)); sb.append(", networkDetails=").append(String.valueOf(this.networkDetails)); + sb.append(", kerberosAuthDetails=").append(String.valueOf(this.kerberosAuthDetails)); + sb.append(", odspInsightDetails=").append(String.valueOf(this.odspInsightDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -485,7 +557,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dbConfigurationParams, other.dbConfigurationParams) && java.util.Objects.equals(this.managementPolicy, other.managementPolicy) && java.util.Objects.equals(this.storageDetails, other.storageDetails) + && java.util.Objects.equals(this.replicationConfig, other.replicationConfig) && java.util.Objects.equals(this.networkDetails, other.networkDetails) + && java.util.Objects.equals(this.kerberosAuthDetails, other.kerberosAuthDetails) + && java.util.Objects.equals(this.odspInsightDetails, other.odspInsightDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -517,9 +592,22 @@ public int hashCode() { result = (result * PRIME) + (this.storageDetails == null ? 43 : this.storageDetails.hashCode()); + result = + (result * PRIME) + + (this.replicationConfig == null ? 43 : this.replicationConfig.hashCode()); result = (result * PRIME) + (this.networkDetails == null ? 43 : this.networkDetails.hashCode()); + result = + (result * PRIME) + + (this.kerberosAuthDetails == null + ? 43 + : this.kerberosAuthDetails.hashCode()); + result = + (result * PRIME) + + (this.odspInsightDetails == null + ? 43 + : this.odspInsightDetails.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateReplicationConfigDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateReplicationConfigDetails.java new file mode 100644 index 00000000000..c28e17a7e41 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateReplicationConfigDetails.java @@ -0,0 +1,196 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.model; + +/** + * Details of the replication configuration that is applicable when database system gets the + * PRIMARY_DB_SYSTEM role. + *

+ * This configuration does not have any effect on database systems with other roles. + * + *
+ * 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: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateReplicationConfigDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateReplicationConfigDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isRpoEnforced", "rpoInSeconds"}) + public UpdateReplicationConfigDetails(Boolean isRpoEnforced, Long rpoInSeconds) { + super(); + this.isRpoEnforced = isRpoEnforced; + this.rpoInSeconds = rpoInSeconds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRpoEnforced") + private Boolean isRpoEnforced; + + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + * + * @param isRpoEnforced the value to set + * @return this builder + **/ + public Builder isRpoEnforced(Boolean isRpoEnforced) { + this.isRpoEnforced = isRpoEnforced; + this.__explicitlySet__.add("isRpoEnforced"); + return this; + } + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rpoInSeconds") + private Long rpoInSeconds; + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + * @param rpoInSeconds the value to set + * @return this builder + **/ + public Builder rpoInSeconds(Long rpoInSeconds) { + this.rpoInSeconds = rpoInSeconds; + this.__explicitlySet__.add("rpoInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateReplicationConfigDetails build() { + UpdateReplicationConfigDetails model = + new UpdateReplicationConfigDetails(this.isRpoEnforced, this.rpoInSeconds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateReplicationConfigDetails model) { + if (model.wasPropertyExplicitlySet("isRpoEnforced")) { + this.isRpoEnforced(model.getIsRpoEnforced()); + } + if (model.wasPropertyExplicitlySet("rpoInSeconds")) { + this.rpoInSeconds(model.getRpoInSeconds()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRpoEnforced") + private final Boolean isRpoEnforced; + + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + * + * @return the value + **/ + public Boolean getIsRpoEnforced() { + return isRpoEnforced; + } + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rpoInSeconds") + private final Long rpoInSeconds; + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + * @return the value + **/ + public Long getRpoInSeconds() { + return rpoInSeconds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateReplicationConfigDetails("); + sb.append("super=").append(super.toString()); + sb.append("isRpoEnforced=").append(String.valueOf(this.isRpoEnforced)); + sb.append(", rpoInSeconds=").append(String.valueOf(this.rpoInSeconds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateReplicationConfigDetails)) { + return false; + } + + UpdateReplicationConfigDetails other = (UpdateReplicationConfigDetails) o; + return java.util.Objects.equals(this.isRpoEnforced, other.isRpoEnforced) + && java.util.Objects.equals(this.rpoInSeconds, other.rpoInSeconds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isRpoEnforced == null ? 43 : this.isRpoEnforced.hashCode()); + result = (result * PRIME) + (this.rpoInSeconds == null ? 43 : this.rpoInSeconds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ChangeRoleToReplicaRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ChangeRoleToReplicaRequest.java new file mode 100644 index 00000000000..5f50e5d50e7 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ChangeRoleToReplicaRequest.java @@ -0,0 +1,349 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use ChangeRoleToReplicaRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ChangeRoleToReplicaRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails> { + + /** + * Change a standalone database system's role to warm-standby replica parameters. + */ + private com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails changeRoleToReplicaDetails; + + /** + * Change a standalone database system's role to warm-standby replica parameters. + */ + public com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails getChangeRoleToReplicaDetails() { + return changeRoleToReplicaDetails; + } + /** + * A unique identifier for the database system. + */ + private String dbSystemId; + + /** + * A unique identifier for the database system. + */ + public String getDbSystemId() { + return dbSystemId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails getBody$() { + return changeRoleToReplicaDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeRoleToReplicaRequest, + com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Change a standalone database system's role to warm-standby replica parameters. + */ + private com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails changeRoleToReplicaDetails = + null; + + /** + * Change a standalone database system's role to warm-standby replica parameters. + * @param changeRoleToReplicaDetails the value to set + * @return this builder instance + */ + public Builder changeRoleToReplicaDetails( + com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails changeRoleToReplicaDetails) { + this.changeRoleToReplicaDetails = changeRoleToReplicaDetails; + return this; + } + + /** + * A unique identifier for the database system. + */ + private String dbSystemId = null; + + /** + * A unique identifier for the database system. + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(ChangeRoleToReplicaRequest o) { + changeRoleToReplicaDetails(o.getChangeRoleToReplicaDetails()); + dbSystemId(o.getDbSystemId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeRoleToReplicaRequest 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 ChangeRoleToReplicaRequest + */ + public ChangeRoleToReplicaRequest build() { + ChangeRoleToReplicaRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails body) { + changeRoleToReplicaDetails(body); + return this; + } + + /** + * Build the instance of ChangeRoleToReplicaRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ChangeRoleToReplicaRequest + */ + public ChangeRoleToReplicaRequest buildWithoutInvocationCallback() { + ChangeRoleToReplicaRequest request = new ChangeRoleToReplicaRequest(); + request.changeRoleToReplicaDetails = changeRoleToReplicaDetails; + request.dbSystemId = dbSystemId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeRoleToReplicaRequest(changeRoleToReplicaDetails, dbSystemId, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .changeRoleToReplicaDetails(changeRoleToReplicaDetails) + .dbSystemId(dbSystemId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",changeRoleToReplicaDetails=") + .append(String.valueOf(this.changeRoleToReplicaDetails)); + sb.append(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeRoleToReplicaRequest)) { + return false; + } + + ChangeRoleToReplicaRequest other = (ChangeRoleToReplicaRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.changeRoleToReplicaDetails, other.changeRoleToReplicaDetails) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.changeRoleToReplicaDetails == null + ? 43 + : this.changeRoleToReplicaDetails.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ChangeRoleToStandaloneRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ChangeRoleToStandaloneRequest.java new file mode 100644 index 00000000000..bd1c4fa2415 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ChangeRoleToStandaloneRequest.java @@ -0,0 +1,351 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use ChangeRoleToStandaloneRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ChangeRoleToStandaloneRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails> { + + /** + * Change a replica database system's role to standalone parameters. + */ + private com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails changeRoleToStandaloneDetails; + + /** + * Change a replica database system's role to standalone parameters. + */ + public com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails + getChangeRoleToStandaloneDetails() { + return changeRoleToStandaloneDetails; + } + /** + * A unique identifier for the database system. + */ + private String dbSystemId; + + /** + * A unique identifier for the database system. + */ + public String getDbSystemId() { + return dbSystemId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails getBody$() { + return changeRoleToStandaloneDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeRoleToStandaloneRequest, + com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Change a replica database system's role to standalone parameters. + */ + private com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails + changeRoleToStandaloneDetails = null; + + /** + * Change a replica database system's role to standalone parameters. + * @param changeRoleToStandaloneDetails the value to set + * @return this builder instance + */ + public Builder changeRoleToStandaloneDetails( + com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails + changeRoleToStandaloneDetails) { + this.changeRoleToStandaloneDetails = changeRoleToStandaloneDetails; + return this; + } + + /** + * A unique identifier for the database system. + */ + private String dbSystemId = null; + + /** + * A unique identifier for the database system. + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(ChangeRoleToStandaloneRequest o) { + changeRoleToStandaloneDetails(o.getChangeRoleToStandaloneDetails()); + dbSystemId(o.getDbSystemId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeRoleToStandaloneRequest 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 ChangeRoleToStandaloneRequest + */ + public ChangeRoleToStandaloneRequest build() { + ChangeRoleToStandaloneRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails body) { + changeRoleToStandaloneDetails(body); + return this; + } + + /** + * Build the instance of ChangeRoleToStandaloneRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ChangeRoleToStandaloneRequest + */ + public ChangeRoleToStandaloneRequest buildWithoutInvocationCallback() { + ChangeRoleToStandaloneRequest request = new ChangeRoleToStandaloneRequest(); + request.changeRoleToStandaloneDetails = changeRoleToStandaloneDetails; + request.dbSystemId = dbSystemId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeRoleToStandaloneRequest(changeRoleToStandaloneDetails, dbSystemId, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .changeRoleToStandaloneDetails(changeRoleToStandaloneDetails) + .dbSystemId(dbSystemId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",changeRoleToStandaloneDetails=") + .append(String.valueOf(this.changeRoleToStandaloneDetails)); + sb.append(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeRoleToStandaloneRequest)) { + return false; + } + + ChangeRoleToStandaloneRequest other = (ChangeRoleToStandaloneRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.changeRoleToStandaloneDetails, other.changeRoleToStandaloneDetails) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.changeRoleToStandaloneDetails == null + ? 43 + : this.changeRoleToStandaloneDetails.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/GetPitrDetailsRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/GetPitrDetailsRequest.java new file mode 100644 index 00000000000..4cdcebe0522 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/GetPitrDetailsRequest.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use GetPitrDetailsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class GetPitrDetailsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * A unique identifier for the database system. + */ + private String dbSystemId; + + /** + * A unique identifier for the database system. + */ + public String getDbSystemId() { + return dbSystemId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetPitrDetailsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * A unique identifier for the database system. + */ + private String dbSystemId = null; + + /** + * A unique identifier for the database system. + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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(GetPitrDetailsRequest o) { + dbSystemId(o.getDbSystemId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetPitrDetailsRequest 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 GetPitrDetailsRequest + */ + public GetPitrDetailsRequest build() { + GetPitrDetailsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetPitrDetailsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetPitrDetailsRequest + */ + public GetPitrDetailsRequest buildWithoutInvocationCallback() { + GetPitrDetailsRequest request = new GetPitrDetailsRequest(); + request.dbSystemId = dbSystemId; + request.opcRequestId = opcRequestId; + return request; + // new GetPitrDetailsRequest(dbSystemId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().dbSystemId(dbSystemId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetPitrDetailsRequest)) { + return false; + } + + GetPitrDetailsRequest other = (GetPitrDetailsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListBackupsRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListBackupsRequest.java index 40f957bdeae..b0fd366136a 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListBackupsRequest.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListBackupsRequest.java @@ -182,6 +182,17 @@ public SortBy getSortBy() { public String getOpcRequestId() { return opcRequestId; } + /** + * A filter to return only backups whose backupSourceType matches the given backupSourceType + */ + private String backupSourceType; + + /** + * A filter to return only backups whose backupSourceType matches the given backupSourceType + */ + public String getBackupSourceType() { + return backupSourceType; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -373,6 +384,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * A filter to return only backups whose backupSourceType matches the given backupSourceType + */ + private String backupSourceType = null; + + /** + * A filter to return only backups whose backupSourceType matches the given backupSourceType + * @param backupSourceType the value to set + * @return this builder instance + */ + public Builder backupSourceType(String backupSourceType) { + this.backupSourceType = backupSourceType; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -413,6 +439,7 @@ public Builder copy(ListBackupsRequest o) { sortOrder(o.getSortOrder()); sortBy(o.getSortBy()); opcRequestId(o.getOpcRequestId()); + backupSourceType(o.getBackupSourceType()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -457,8 +484,9 @@ public ListBackupsRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.sortBy = sortBy; request.opcRequestId = opcRequestId; + request.backupSourceType = backupSourceType; return request; - // new ListBackupsRequest(compartmentId, timeStarted, timeEnded, lifecycleState, displayName, backupId, id, limit, page, sortOrder, sortBy, opcRequestId); + // new ListBackupsRequest(compartmentId, timeStarted, timeEnded, lifecycleState, displayName, backupId, id, limit, page, sortOrder, sortBy, opcRequestId, backupSourceType); } } @@ -479,7 +507,8 @@ public Builder toBuilder() { .page(page) .sortOrder(sortOrder) .sortBy(sortBy) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .backupSourceType(backupSourceType); } /** @@ -507,6 +536,7 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",backupSourceType=").append(String.valueOf(this.backupSourceType)); sb.append(")"); return sb.toString(); } @@ -533,7 +563,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.sortBy, other.sortBy) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.backupSourceType, other.backupSourceType); } @Override @@ -556,6 +587,9 @@ public int hashCode() { result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.backupSourceType == null ? 43 : this.backupSourceType.hashCode()); return result; } } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListDbSystemReplicasRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListDbSystemReplicasRequest.java new file mode 100644 index 00000000000..47180a9ed3d --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListDbSystemReplicasRequest.java @@ -0,0 +1,260 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use ListDbSystemReplicasRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ListDbSystemReplicasRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * A unique identifier for the database system. + */ + private String dbSystemId; + + /** + * A unique identifier for the database system. + */ + public String getDbSystemId() { + return dbSystemId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDbSystemReplicasRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * A unique identifier for the database system. + */ + private String dbSystemId = null; + + /** + * A unique identifier for the database system. + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDbSystemReplicasRequest o) { + dbSystemId(o.getDbSystemId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDbSystemReplicasRequest 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 ListDbSystemReplicasRequest + */ + public ListDbSystemReplicasRequest build() { + ListDbSystemReplicasRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDbSystemReplicasRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListDbSystemReplicasRequest + */ + public ListDbSystemReplicasRequest buildWithoutInvocationCallback() { + ListDbSystemReplicasRequest request = new ListDbSystemReplicasRequest(); + request.dbSystemId = dbSystemId; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListDbSystemReplicasRequest(dbSystemId, opcRequestId, limit, page); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dbSystemId(dbSystemId) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDbSystemReplicasRequest)) { + return false; + } + + ListDbSystemReplicasRequest other = (ListDbSystemReplicasRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListDbSystemsRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListDbSystemsRequest.java index cb21ce1a4a2..f8cda097aed 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListDbSystemsRequest.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListDbSystemsRequest.java @@ -138,6 +138,17 @@ public static SortBy create(String key) { public SortBy getSortBy() { return sortBy; } + /** + * A filter to return only DbSystem resources if their {@code systemRole} matches the given value. + */ + private com.oracle.bmc.psql.model.DbSystem.SystemRole systemRole; + + /** + * A filter to return only DbSystem resources if their {@code systemRole} matches the given value. + */ + public com.oracle.bmc.psql.model.DbSystem.SystemRole getSystemRole() { + return systemRole; + } /** * The client request ID for tracing. */ @@ -280,6 +291,21 @@ public Builder sortBy(SortBy sortBy) { return this; } + /** + * A filter to return only DbSystem resources if their {@code systemRole} matches the given value. + */ + private com.oracle.bmc.psql.model.DbSystem.SystemRole systemRole = null; + + /** + * A filter to return only DbSystem resources if their {@code systemRole} matches the given value. + * @param systemRole the value to set + * @return this builder instance + */ + public Builder systemRole(com.oracle.bmc.psql.model.DbSystem.SystemRole systemRole) { + this.systemRole = systemRole; + return this; + } + /** * The client request ID for tracing. */ @@ -331,6 +357,7 @@ public Builder copy(ListDbSystemsRequest o) { page(o.getPage()); sortOrder(o.getSortOrder()); sortBy(o.getSortBy()); + systemRole(o.getSystemRole()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -372,9 +399,10 @@ public ListDbSystemsRequest buildWithoutInvocationCallback() { request.page = page; request.sortOrder = sortOrder; request.sortBy = sortBy; + request.systemRole = systemRole; request.opcRequestId = opcRequestId; return request; - // new ListDbSystemsRequest(compartmentId, lifecycleState, displayName, id, limit, page, sortOrder, sortBy, opcRequestId); + // new ListDbSystemsRequest(compartmentId, lifecycleState, displayName, id, limit, page, sortOrder, sortBy, systemRole, opcRequestId); } } @@ -392,6 +420,7 @@ public Builder toBuilder() { .page(page) .sortOrder(sortOrder) .sortBy(sortBy) + .systemRole(systemRole) .opcRequestId(opcRequestId); } @@ -416,6 +445,7 @@ public String toString() { sb.append(",page=").append(String.valueOf(this.page)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",systemRole=").append(String.valueOf(this.systemRole)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -440,6 +470,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.systemRole, other.systemRole) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -459,6 +490,7 @@ public int hashCode() { result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.systemRole == null ? 43 : this.systemRole.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListInsightCapabilitiesRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListInsightCapabilitiesRequest.java new file mode 100644 index 00000000000..c7741593cfa --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListInsightCapabilitiesRequest.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use ListInsightCapabilitiesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ListInsightCapabilitiesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListInsightCapabilitiesRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListInsightCapabilitiesRequest o) { + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListInsightCapabilitiesRequest 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 ListInsightCapabilitiesRequest + */ + public ListInsightCapabilitiesRequest build() { + ListInsightCapabilitiesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListInsightCapabilitiesRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListInsightCapabilitiesRequest + */ + public ListInsightCapabilitiesRequest buildWithoutInvocationCallback() { + ListInsightCapabilitiesRequest request = new ListInsightCapabilitiesRequest(); + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListInsightCapabilitiesRequest(opcRequestId, limit, page); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().opcRequestId(opcRequestId).limit(limit).page(page); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListInsightCapabilitiesRequest)) { + return false; + } + + ListInsightCapabilitiesRequest other = (ListInsightCapabilitiesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/StartDbSystemRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/StartDbSystemRequest.java new file mode 100644 index 00000000000..ba9642b0e21 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/StartDbSystemRequest.java @@ -0,0 +1,344 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use StartDbSystemRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class StartDbSystemRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * A unique identifier for the database system. + */ + private String dbSystemId; + + /** + * A unique identifier for the database system. + */ + public String getDbSystemId() { + return dbSystemId; + } + /** + * The information to be updated the DB System while starting DB System after stop. + */ + private com.oracle.bmc.psql.model.StartDbSystemDetails startDbSystemDetails; + + /** + * The information to be updated the DB System while starting DB System after stop. + */ + public com.oracle.bmc.psql.model.StartDbSystemDetails getStartDbSystemDetails() { + return startDbSystemDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.psql.model.StartDbSystemDetails getBody$() { + return startDbSystemDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + StartDbSystemRequest, com.oracle.bmc.psql.model.StartDbSystemDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * A unique identifier for the database system. + */ + private String dbSystemId = null; + + /** + * A unique identifier for the database system. + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** + * The information to be updated the DB System while starting DB System after stop. + */ + private com.oracle.bmc.psql.model.StartDbSystemDetails startDbSystemDetails = null; + + /** + * The information to be updated the DB System while starting DB System after stop. + * @param startDbSystemDetails the value to set + * @return this builder instance + */ + public Builder startDbSystemDetails( + com.oracle.bmc.psql.model.StartDbSystemDetails startDbSystemDetails) { + this.startDbSystemDetails = startDbSystemDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(StartDbSystemRequest o) { + dbSystemId(o.getDbSystemId()); + startDbSystemDetails(o.getStartDbSystemDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of StartDbSystemRequest 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 StartDbSystemRequest + */ + public StartDbSystemRequest build() { + StartDbSystemRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.psql.model.StartDbSystemDetails body) { + startDbSystemDetails(body); + return this; + } + + /** + * Build the instance of StartDbSystemRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of StartDbSystemRequest + */ + public StartDbSystemRequest buildWithoutInvocationCallback() { + StartDbSystemRequest request = new StartDbSystemRequest(); + request.dbSystemId = dbSystemId; + request.startDbSystemDetails = startDbSystemDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new StartDbSystemRequest(dbSystemId, startDbSystemDetails, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dbSystemId(dbSystemId) + .startDbSystemDetails(startDbSystemDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",startDbSystemDetails=").append(String.valueOf(this.startDbSystemDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StartDbSystemRequest)) { + return false; + } + + StartDbSystemRequest other = (StartDbSystemRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.startDbSystemDetails, other.startDbSystemDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = + (result * PRIME) + + (this.startDbSystemDetails == null + ? 43 + : this.startDbSystemDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/StopDbSystemRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/StopDbSystemRequest.java new file mode 100644 index 00000000000..8caa6dcd50e --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/StopDbSystemRequest.java @@ -0,0 +1,285 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use StopDbSystemRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class StopDbSystemRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * A unique identifier for the database system. + */ + private String dbSystemId; + + /** + * A unique identifier for the database system. + */ + public String getDbSystemId() { + return dbSystemId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + StopDbSystemRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * A unique identifier for the database system. + */ + private String dbSystemId = null; + + /** + * A unique identifier for the database system. + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(StopDbSystemRequest o) { + dbSystemId(o.getDbSystemId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of StopDbSystemRequest 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 StopDbSystemRequest + */ + public StopDbSystemRequest build() { + StopDbSystemRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of StopDbSystemRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of StopDbSystemRequest + */ + public StopDbSystemRequest buildWithoutInvocationCallback() { + StopDbSystemRequest request = new StopDbSystemRequest(); + request.dbSystemId = dbSystemId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new StopDbSystemRequest(dbSystemId, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dbSystemId(dbSystemId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StopDbSystemRequest)) { + return false; + } + + StopDbSystemRequest other = (StopDbSystemRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/SwitchOverRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/SwitchOverRequest.java new file mode 100644 index 00000000000..2513f8a2ba4 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/SwitchOverRequest.java @@ -0,0 +1,342 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use SwitchOverRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class SwitchOverRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Switchover the primary and replica role parameters. + */ + private com.oracle.bmc.psql.model.SwitchOverDetails switchOverDetails; + + /** + * Switchover the primary and replica role parameters. + */ + public com.oracle.bmc.psql.model.SwitchOverDetails getSwitchOverDetails() { + return switchOverDetails; + } + /** + * A unique identifier for the database system. + */ + private String dbSystemId; + + /** + * A unique identifier for the database system. + */ + public String getDbSystemId() { + return dbSystemId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.psql.model.SwitchOverDetails getBody$() { + return switchOverDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + SwitchOverRequest, com.oracle.bmc.psql.model.SwitchOverDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Switchover the primary and replica role parameters. + */ + private com.oracle.bmc.psql.model.SwitchOverDetails switchOverDetails = null; + + /** + * Switchover the primary and replica role parameters. + * @param switchOverDetails the value to set + * @return this builder instance + */ + public Builder switchOverDetails( + com.oracle.bmc.psql.model.SwitchOverDetails switchOverDetails) { + this.switchOverDetails = switchOverDetails; + return this; + } + + /** + * A unique identifier for the database system. + */ + private String dbSystemId = null; + + /** + * A unique identifier for the database system. + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, {@code retrytoken} could be expired or invalidated. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(SwitchOverRequest o) { + switchOverDetails(o.getSwitchOverDetails()); + dbSystemId(o.getDbSystemId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SwitchOverRequest 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 SwitchOverRequest + */ + public SwitchOverRequest build() { + SwitchOverRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.psql.model.SwitchOverDetails body) { + switchOverDetails(body); + return this; + } + + /** + * Build the instance of SwitchOverRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of SwitchOverRequest + */ + public SwitchOverRequest buildWithoutInvocationCallback() { + SwitchOverRequest request = new SwitchOverRequest(); + request.switchOverDetails = switchOverDetails; + request.dbSystemId = dbSystemId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new SwitchOverRequest(switchOverDetails, dbSystemId, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .switchOverDetails(switchOverDetails) + .dbSystemId(dbSystemId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",switchOverDetails=").append(String.valueOf(this.switchOverDetails)); + sb.append(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SwitchOverRequest)) { + return false; + } + + SwitchOverRequest other = (SwitchOverRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.switchOverDetails, other.switchOverDetails) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.switchOverDetails == null ? 43 : this.switchOverDetails.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ChangeRoleToReplicaResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ChangeRoleToReplicaResponse.java new file mode 100644 index 00000000000..ecc71335b36 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ChangeRoleToReplicaResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ChangeRoleToReplicaResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeRoleToReplicaResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeRoleToReplicaResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeRoleToReplicaResponse build() { + return new ChangeRoleToReplicaResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeRoleToReplicaResponse)) { + return false; + } + + ChangeRoleToReplicaResponse other = (ChangeRoleToReplicaResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ChangeRoleToStandaloneResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ChangeRoleToStandaloneResponse.java new file mode 100644 index 00000000000..82ef981becb --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ChangeRoleToStandaloneResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ChangeRoleToStandaloneResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeRoleToStandaloneResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeRoleToStandaloneResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeRoleToStandaloneResponse build() { + return new ChangeRoleToStandaloneResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeRoleToStandaloneResponse)) { + return false; + } + + ChangeRoleToStandaloneResponse other = (ChangeRoleToStandaloneResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/GetPitrDetailsResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/GetPitrDetailsResponse.java new file mode 100644 index 00000000000..1419816a0eb --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/GetPitrDetailsResponse.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class GetPitrDetailsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned PitrDetails instance. + */ + private com.oracle.bmc.psql.model.PitrDetails pitrDetails; + + /** + * The returned PitrDetails instance. + * @return the value + */ + public com.oracle.bmc.psql.model.PitrDetails getPitrDetails() { + return pitrDetails; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "pitrDetails" + }) + private GetPitrDetailsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.psql.model.PitrDetails pitrDetails) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.pitrDetails = pitrDetails; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned PitrDetails instance. + */ + private com.oracle.bmc.psql.model.PitrDetails pitrDetails; + + /** + * The returned PitrDetails instance. + * @param pitrDetails the value to set + * @return this builder + */ + public Builder pitrDetails(com.oracle.bmc.psql.model.PitrDetails pitrDetails) { + this.pitrDetails = pitrDetails; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetPitrDetailsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + pitrDetails(o.getPitrDetails()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetPitrDetailsResponse build() { + return new GetPitrDetailsResponse( + __httpStatusCode__, headers, etag, opcRequestId, pitrDetails); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",pitrDetails=").append(String.valueOf(pitrDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetPitrDetailsResponse)) { + return false; + } + + GetPitrDetailsResponse other = (GetPitrDetailsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.pitrDetails, other.pitrDetails); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.pitrDetails == null ? 43 : this.pitrDetails.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ListDbSystemReplicasResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ListDbSystemReplicasResponse.java new file mode 100644 index 00000000000..30e9f673359 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ListDbSystemReplicasResponse.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ListDbSystemReplicasResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned DbSystemReplicaCollection instance. + */ + private com.oracle.bmc.psql.model.DbSystemReplicaCollection dbSystemReplicaCollection; + + /** + * The returned DbSystemReplicaCollection instance. + * @return the value + */ + public com.oracle.bmc.psql.model.DbSystemReplicaCollection getDbSystemReplicaCollection() { + return dbSystemReplicaCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "dbSystemReplicaCollection" + }) + private ListDbSystemReplicasResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.psql.model.DbSystemReplicaCollection dbSystemReplicaCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.dbSystemReplicaCollection = dbSystemReplicaCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned DbSystemReplicaCollection instance. + */ + private com.oracle.bmc.psql.model.DbSystemReplicaCollection dbSystemReplicaCollection; + + /** + * The returned DbSystemReplicaCollection instance. + * @param dbSystemReplicaCollection the value to set + * @return this builder + */ + public Builder dbSystemReplicaCollection( + com.oracle.bmc.psql.model.DbSystemReplicaCollection dbSystemReplicaCollection) { + this.dbSystemReplicaCollection = dbSystemReplicaCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDbSystemReplicasResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + dbSystemReplicaCollection(o.getDbSystemReplicaCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDbSystemReplicasResponse build() { + return new ListDbSystemReplicasResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + dbSystemReplicaCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",dbSystemReplicaCollection=").append(String.valueOf(dbSystemReplicaCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDbSystemReplicasResponse)) { + return false; + } + + ListDbSystemReplicasResponse other = (ListDbSystemReplicasResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.dbSystemReplicaCollection, other.dbSystemReplicaCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.dbSystemReplicaCollection == null + ? 43 + : this.dbSystemReplicaCollection.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ListInsightCapabilitiesResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ListInsightCapabilitiesResponse.java new file mode 100644 index 00000000000..40200f26d3b --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ListInsightCapabilitiesResponse.java @@ -0,0 +1,221 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ListInsightCapabilitiesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned InsightCapabilityCollection instance. + */ + private com.oracle.bmc.psql.model.InsightCapabilityCollection insightCapabilityCollection; + + /** + * The returned InsightCapabilityCollection instance. + * @return the value + */ + public com.oracle.bmc.psql.model.InsightCapabilityCollection getInsightCapabilityCollection() { + return insightCapabilityCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "insightCapabilityCollection" + }) + private ListInsightCapabilitiesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.psql.model.InsightCapabilityCollection insightCapabilityCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.insightCapabilityCollection = insightCapabilityCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned InsightCapabilityCollection instance. + */ + private com.oracle.bmc.psql.model.InsightCapabilityCollection insightCapabilityCollection; + + /** + * The returned InsightCapabilityCollection instance. + * @param insightCapabilityCollection the value to set + * @return this builder + */ + public Builder insightCapabilityCollection( + com.oracle.bmc.psql.model.InsightCapabilityCollection insightCapabilityCollection) { + this.insightCapabilityCollection = insightCapabilityCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListInsightCapabilitiesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + insightCapabilityCollection(o.getInsightCapabilityCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListInsightCapabilitiesResponse build() { + return new ListInsightCapabilitiesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + insightCapabilityCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",insightCapabilityCollection=") + .append(String.valueOf(insightCapabilityCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListInsightCapabilitiesResponse)) { + return false; + } + + ListInsightCapabilitiesResponse other = (ListInsightCapabilitiesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.insightCapabilityCollection, other.insightCapabilityCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.insightCapabilityCollection == null + ? 43 + : this.insightCapabilityCollection.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/StartDbSystemResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/StartDbSystemResponse.java new file mode 100644 index 00000000000..96e861abcec --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/StartDbSystemResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class StartDbSystemResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private StartDbSystemResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(StartDbSystemResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public StartDbSystemResponse build() { + return new StartDbSystemResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StartDbSystemResponse)) { + return false; + } + + StartDbSystemResponse other = (StartDbSystemResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/StopDbSystemResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/StopDbSystemResponse.java new file mode 100644 index 00000000000..5f4d396c50e --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/StopDbSystemResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class StopDbSystemResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private StopDbSystemResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(StopDbSystemResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public StopDbSystemResponse build() { + return new StopDbSystemResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StopDbSystemResponse)) { + return false; + } + + StopDbSystemResponse other = (StopDbSystemResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/SwitchOverResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/SwitchOverResponse.java new file mode 100644 index 00000000000..0d46c083fc3 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/SwitchOverResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class SwitchOverResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private SwitchOverResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(SwitchOverResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public SwitchOverResponse build() { + return new SwitchOverResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SwitchOverResponse)) { + return false; + } + + SwitchOverResponse other = (SwitchOverResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 074af77fef1..5eab4401a50 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-queue @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index c7624bff69a..3e7bda64ee5 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-recovery @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index 6249beb4d87..b45b237fcce 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-resourceanalytics/pom.xml b/bmc-resourceanalytics/pom.xml index 9828c340dab..46052f97c39 100644 --- a/bmc-resourceanalytics/pom.xml +++ b/bmc-resourceanalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-resourceanalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 4c416d9dfa7..5e0f070f3cf 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-resourcemanager @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketCloudUsernameAppPasswordConfigurationSourceProvider.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketCloudEmailApiTokenConfigurationSourceProvider.java similarity index 85% rename from bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketCloudUsernameAppPasswordConfigurationSourceProvider.java rename to bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketCloudEmailApiTokenConfigurationSourceProvider.java index 4b3ab1f4a3f..13a70335953 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketCloudUsernameAppPasswordConfigurationSourceProvider.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketCloudEmailApiTokenConfigurationSourceProvider.java @@ -5,8 +5,8 @@ package com.oracle.bmc.resourcemanager.model; /** - * The properties that define a configuration source provider of the type {@code BITBUCKET_CLOUD_USERNAME_APPPASSWORD}. - * This type corresponds to a configuration source provider in Bitbucket cloud that is authenticated with a username and app password. + * The properties that define a configuration source provider of the type {@code BITBUCKET_CLOUD_ACCESS_TOKEN}. + * This type corresponds to a configuration source provider in Bitbucket Cloud that is authenticated with Atlassian account email and API token. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -18,7 +18,7 @@ **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180917") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = BitbucketCloudUsernameAppPasswordConfigurationSourceProvider.Builder.class + builder = BitbucketCloudEmailApiTokenConfigurationSourceProvider.Builder.class ) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, @@ -26,7 +26,7 @@ property = "configSourceProviderType" ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class BitbucketCloudUsernameAppPasswordConfigurationSourceProvider +public final class BitbucketCloudEmailApiTokenConfigurationSourceProvider extends ConfigurationSourceProvider { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { @@ -103,6 +103,24 @@ public Builder username(String username) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isMigrationRequired") + private Boolean isMigrationRequired; + + public Builder isMigrationRequired(Boolean isMigrationRequired) { + this.isMigrationRequired = isMigrationRequired; + this.__explicitlySet__.add("isMigrationRequired"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -163,9 +181,9 @@ public Builder apiEndpoint(String apiEndpoint) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public BitbucketCloudUsernameAppPasswordConfigurationSourceProvider build() { - BitbucketCloudUsernameAppPasswordConfigurationSourceProvider model = - new BitbucketCloudUsernameAppPasswordConfigurationSourceProvider( + public BitbucketCloudEmailApiTokenConfigurationSourceProvider build() { + BitbucketCloudEmailApiTokenConfigurationSourceProvider model = + new BitbucketCloudEmailApiTokenConfigurationSourceProvider( this.id, this.compartmentId, this.displayName, @@ -174,6 +192,8 @@ public BitbucketCloudUsernameAppPasswordConfigurationSourceProvider build() { this.lifecycleState, this.privateServerConfigDetails, this.username, + this.email, + this.isMigrationRequired, this.secretId, this.freeformTags, this.definedTags, @@ -186,7 +206,7 @@ public BitbucketCloudUsernameAppPasswordConfigurationSourceProvider build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(BitbucketCloudUsernameAppPasswordConfigurationSourceProvider model) { + public Builder copy(BitbucketCloudEmailApiTokenConfigurationSourceProvider model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } @@ -211,6 +231,12 @@ public Builder copy(BitbucketCloudUsernameAppPasswordConfigurationSourceProvider if (model.wasPropertyExplicitlySet("username")) { this.username(model.getUsername()); } + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } + if (model.wasPropertyExplicitlySet("isMigrationRequired")) { + this.isMigrationRequired(model.getIsMigrationRequired()); + } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } @@ -242,7 +268,7 @@ public Builder toBuilder() { } @Deprecated - public BitbucketCloudUsernameAppPasswordConfigurationSourceProvider( + public BitbucketCloudEmailApiTokenConfigurationSourceProvider( String id, String compartmentId, String displayName, @@ -251,6 +277,8 @@ public BitbucketCloudUsernameAppPasswordConfigurationSourceProvider( LifecycleState lifecycleState, PrivateServerConfigDetails privateServerConfigDetails, String username, + String email, + Boolean isMigrationRequired, String secretId, java.util.Map freeformTags, java.util.Map> definedTags, @@ -265,6 +293,8 @@ public BitbucketCloudUsernameAppPasswordConfigurationSourceProvider( lifecycleState, privateServerConfigDetails, username, + email, + isMigrationRequired, secretId, freeformTags, definedTags, @@ -302,7 +332,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("BitbucketCloudUsernameAppPasswordConfigurationSourceProvider("); + sb.append("BitbucketCloudEmailApiTokenConfigurationSourceProvider("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", apiEndpoint=").append(String.valueOf(this.apiEndpoint)); sb.append(")"); @@ -314,12 +344,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof BitbucketCloudUsernameAppPasswordConfigurationSourceProvider)) { + if (!(o instanceof BitbucketCloudEmailApiTokenConfigurationSourceProvider)) { return false; } - BitbucketCloudUsernameAppPasswordConfigurationSourceProvider other = - (BitbucketCloudUsernameAppPasswordConfigurationSourceProvider) o; + BitbucketCloudEmailApiTokenConfigurationSourceProvider other = + (BitbucketCloudEmailApiTokenConfigurationSourceProvider) o; return java.util.Objects.equals(this.apiEndpoint, other.apiEndpoint) && super.equals(other); } diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary.java similarity index 86% rename from bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary.java rename to bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary.java index 77f0ed6cc6f..72e50600d33 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary.java @@ -5,8 +5,8 @@ package com.oracle.bmc.resourcemanager.model; /** - * Summary information for a configuration source provider of the type {@code BITBUCKET_CLOUD_USERNAME_APPPASSWORD}. - * This type corresponds to a configuration source provider in Bitbucket cloud that is authenticated with a username and app password. + * Summary information for a configuration source provider of the type {@code BITBUCKET_CLOUD_ACCESS_TOKEN}. + * This type corresponds to a configuration source provider in Bitbucket Cloud that is authenticated with Atlassian account email and API token. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -18,7 +18,7 @@ **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180917") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary.Builder.class + builder = BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary.Builder.class ) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, @@ -26,7 +26,7 @@ property = "configSourceProviderType" ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary +public final class BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary extends ConfigurationSourceProviderSummary { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { @@ -94,6 +94,15 @@ public Builder privateServerConfigDetails( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isMigrationRequired") + private Boolean isMigrationRequired; + + public Builder isMigrationRequired(Boolean isMigrationRequired) { + this.isMigrationRequired = isMigrationRequired; + this.__explicitlySet__.add("isMigrationRequired"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private java.util.Map freeformTags; @@ -145,9 +154,9 @@ public Builder apiEndpoint(String apiEndpoint) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary build() { - BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary model = - new BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary( + public BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary build() { + BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary model = + new BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary( this.id, this.compartmentId, this.displayName, @@ -155,6 +164,7 @@ public BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary build this.timeCreated, this.lifecycleState, this.privateServerConfigDetails, + this.isMigrationRequired, this.freeformTags, this.definedTags, this.systemTags, @@ -166,8 +176,7 @@ public BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary build } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy( - BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary model) { + public Builder copy(BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } @@ -189,6 +198,9 @@ public Builder copy( if (model.wasPropertyExplicitlySet("privateServerConfigDetails")) { this.privateServerConfigDetails(model.getPrivateServerConfigDetails()); } + if (model.wasPropertyExplicitlySet("isMigrationRequired")) { + this.isMigrationRequired(model.getIsMigrationRequired()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -217,7 +229,7 @@ public Builder toBuilder() { } @Deprecated - public BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary( + public BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary( String id, String compartmentId, String displayName, @@ -225,6 +237,7 @@ public BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary( java.util.Date timeCreated, ConfigurationSourceProvider.LifecycleState lifecycleState, PrivateServerConfigDetails privateServerConfigDetails, + Boolean isMigrationRequired, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, @@ -237,6 +250,7 @@ public BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary( timeCreated, lifecycleState, privateServerConfigDetails, + isMigrationRequired, freeformTags, definedTags, systemTags); @@ -273,7 +287,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary("); + sb.append("BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", apiEndpoint=").append(String.valueOf(this.apiEndpoint)); sb.append(")"); @@ -285,12 +299,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary)) { + if (!(o instanceof BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary)) { return false; } - BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary other = - (BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary) o; + BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary other = + (BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary) o; return java.util.Objects.equals(this.apiEndpoint, other.apiEndpoint) && super.equals(other); } diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketServerAccessTokenConfigurationSourceProvider.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketServerAccessTokenConfigurationSourceProvider.java index 15c8745a25f..680cda40559 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketServerAccessTokenConfigurationSourceProvider.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketServerAccessTokenConfigurationSourceProvider.java @@ -103,6 +103,24 @@ public Builder username(String username) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isMigrationRequired") + private Boolean isMigrationRequired; + + public Builder isMigrationRequired(Boolean isMigrationRequired) { + this.isMigrationRequired = isMigrationRequired; + this.__explicitlySet__.add("isMigrationRequired"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -174,6 +192,8 @@ public BitbucketServerAccessTokenConfigurationSourceProvider build() { this.lifecycleState, this.privateServerConfigDetails, this.username, + this.email, + this.isMigrationRequired, this.secretId, this.freeformTags, this.definedTags, @@ -211,6 +231,12 @@ public Builder copy(BitbucketServerAccessTokenConfigurationSourceProvider model) if (model.wasPropertyExplicitlySet("username")) { this.username(model.getUsername()); } + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } + if (model.wasPropertyExplicitlySet("isMigrationRequired")) { + this.isMigrationRequired(model.getIsMigrationRequired()); + } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } @@ -251,6 +277,8 @@ public BitbucketServerAccessTokenConfigurationSourceProvider( LifecycleState lifecycleState, PrivateServerConfigDetails privateServerConfigDetails, String username, + String email, + Boolean isMigrationRequired, String secretId, java.util.Map freeformTags, java.util.Map> definedTags, @@ -265,6 +293,8 @@ public BitbucketServerAccessTokenConfigurationSourceProvider( lifecycleState, privateServerConfigDetails, username, + email, + isMigrationRequired, secretId, freeformTags, definedTags, diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketServerAccessTokenConfigurationSourceProviderSummary.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketServerAccessTokenConfigurationSourceProviderSummary.java index f043618e857..3712f6262f1 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketServerAccessTokenConfigurationSourceProviderSummary.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/BitbucketServerAccessTokenConfigurationSourceProviderSummary.java @@ -94,6 +94,15 @@ public Builder privateServerConfigDetails( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isMigrationRequired") + private Boolean isMigrationRequired; + + public Builder isMigrationRequired(Boolean isMigrationRequired) { + this.isMigrationRequired = isMigrationRequired; + this.__explicitlySet__.add("isMigrationRequired"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private java.util.Map freeformTags; @@ -155,6 +164,7 @@ public BitbucketServerAccessTokenConfigurationSourceProviderSummary build() { this.timeCreated, this.lifecycleState, this.privateServerConfigDetails, + this.isMigrationRequired, this.freeformTags, this.definedTags, this.systemTags, @@ -188,6 +198,9 @@ public Builder copy(BitbucketServerAccessTokenConfigurationSourceProviderSummary if (model.wasPropertyExplicitlySet("privateServerConfigDetails")) { this.privateServerConfigDetails(model.getPrivateServerConfigDetails()); } + if (model.wasPropertyExplicitlySet("isMigrationRequired")) { + this.isMigrationRequired(model.getIsMigrationRequired()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -224,6 +237,7 @@ public BitbucketServerAccessTokenConfigurationSourceProviderSummary( java.util.Date timeCreated, ConfigurationSourceProvider.LifecycleState lifecycleState, PrivateServerConfigDetails privateServerConfigDetails, + Boolean isMigrationRequired, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, @@ -236,6 +250,7 @@ public BitbucketServerAccessTokenConfigurationSourceProviderSummary( timeCreated, lifecycleState, privateServerConfigDetails, + isMigrationRequired, freeformTags, definedTags, systemTags); diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/ConfigurationSourceProvider.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/ConfigurationSourceProvider.java index de9f5190f76..d9d5f91e278 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/ConfigurationSourceProvider.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/ConfigurationSourceProvider.java @@ -34,12 +34,12 @@ name = "GITLAB_ACCESS_TOKEN" ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = BitbucketServerAccessTokenConfigurationSourceProvider.class, - name = "BITBUCKET_SERVER_ACCESS_TOKEN" + value = BitbucketCloudEmailApiTokenConfigurationSourceProvider.class, + name = "BITBUCKET_CLOUD_ACCESS_TOKEN" ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = BitbucketCloudUsernameAppPasswordConfigurationSourceProvider.class, - name = "BITBUCKET_CLOUD_USERNAME_APPPASSWORD" + value = BitbucketServerAccessTokenConfigurationSourceProvider.class, + name = "BITBUCKET_SERVER_ACCESS_TOKEN" ) }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) @@ -55,6 +55,8 @@ public class ConfigurationSourceProvider "lifecycleState", "privateServerConfigDetails", "username", + "email", + "isMigrationRequired", "secretId", "freeformTags", "definedTags", @@ -69,6 +71,8 @@ protected ConfigurationSourceProvider( LifecycleState lifecycleState, PrivateServerConfigDetails privateServerConfigDetails, String username, + String email, + Boolean isMigrationRequired, String secretId, java.util.Map freeformTags, java.util.Map> definedTags, @@ -82,6 +86,8 @@ protected ConfigurationSourceProvider( this.lifecycleState = lifecycleState; this.privateServerConfigDetails = privateServerConfigDetails; this.username = username; + this.email = email; + this.isMigrationRequired = isMigrationRequired; this.secretId = secretId; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -257,6 +263,36 @@ public String getUsername() { return username; } + /** + * Atlassian account email used for Bitbucket Cloud API token authentication. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private final String email; + + /** + * Atlassian account email used for Bitbucket Cloud API token authentication. + * @return the value + **/ + public String getEmail() { + return email; + } + + /** + * Indicates whether this configuration source provider uses legacy Bitbucket Cloud username/app-password credentials and must be migrated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMigrationRequired") + private final Boolean isMigrationRequired; + + /** + * Indicates whether this configuration source provider uses legacy Bitbucket Cloud username/app-password credentials and must be migrated. + * + * @return the value + **/ + public Boolean getIsMigrationRequired() { + return isMigrationRequired; + } + /** * Secret ocid which is used to authorize the user. **/ @@ -354,6 +390,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", privateServerConfigDetails=") .append(String.valueOf(this.privateServerConfigDetails)); sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", email=").append(String.valueOf(this.email)); + sb.append(", isMigrationRequired=").append(String.valueOf(this.isMigrationRequired)); sb.append(", secretId=").append(String.valueOf(this.secretId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -381,6 +419,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.privateServerConfigDetails, other.privateServerConfigDetails) && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.email, other.email) + && java.util.Objects.equals(this.isMigrationRequired, other.isMigrationRequired) && java.util.Objects.equals(this.secretId, other.secretId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -408,6 +448,12 @@ public int hashCode() { ? 43 : this.privateServerConfigDetails.hashCode()); result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + (this.email == null ? 43 : this.email.hashCode()); + result = + (result * PRIME) + + (this.isMigrationRequired == null + ? 43 + : this.isMigrationRequired.hashCode()); result = (result * PRIME) + (this.secretId == null ? 43 : this.secretId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); @@ -418,14 +464,14 @@ public int hashCode() { /** * The type of configuration source provider. - * The {@code BITBUCKET_CLOUD_USERNAME_APPPASSWORD} type corresponds to Bitbucket Cloud. + * The {@code BITBUCKET_CLOUD_ACCESS_TOKEN} type corresponds to Bitbucket Cloud. * The {@code BITBUCKET_SERVER_ACCESS_TOKEN} type corresponds to Bitbucket Server. * The {@code GITLAB_ACCESS_TOKEN} type corresponds to GitLab. * The {@code GITHUB_ACCESS_TOKEN} type corresponds to GitHub. * **/ public enum ConfigSourceProviderType { - BitbucketCloudUsernameApppassword("BITBUCKET_CLOUD_USERNAME_APPPASSWORD"), + BitbucketCloudAccessToken("BITBUCKET_CLOUD_ACCESS_TOKEN"), BitbucketServerAccessToken("BITBUCKET_SERVER_ACCESS_TOKEN"), GitlabAccessToken("GITLAB_ACCESS_TOKEN"), GithubAccessToken("GITHUB_ACCESS_TOKEN"), diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/ConfigurationSourceProviderSummary.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/ConfigurationSourceProviderSummary.java index d466aca6bea..32cc411d4ca 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/ConfigurationSourceProviderSummary.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/ConfigurationSourceProviderSummary.java @@ -27,14 +27,14 @@ value = GitlabAccessTokenConfigurationSourceProviderSummary.class, name = "GITLAB_ACCESS_TOKEN" ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = BitbucketCloudUsernameAppPasswordConfigurationSourceProviderSummary.class, - name = "BITBUCKET_CLOUD_USERNAME_APPPASSWORD" - ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = BitbucketServerAccessTokenConfigurationSourceProviderSummary.class, name = "BITBUCKET_SERVER_ACCESS_TOKEN" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = BitbucketCloudEmailApiTokenConfigurationSourceProviderSummary.class, + name = "BITBUCKET_CLOUD_ACCESS_TOKEN" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = GithubAccessTokenConfigurationSourceProviderSummary.class, name = "GITHUB_ACCESS_TOKEN" @@ -52,6 +52,7 @@ public class ConfigurationSourceProviderSummary "timeCreated", "lifecycleState", "privateServerConfigDetails", + "isMigrationRequired", "freeformTags", "definedTags", "systemTags" @@ -64,6 +65,7 @@ protected ConfigurationSourceProviderSummary( java.util.Date timeCreated, ConfigurationSourceProvider.LifecycleState lifecycleState, PrivateServerConfigDetails privateServerConfigDetails, + Boolean isMigrationRequired, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -75,6 +77,7 @@ protected ConfigurationSourceProviderSummary( this.timeCreated = timeCreated; this.lifecycleState = lifecycleState; this.privateServerConfigDetails = privateServerConfigDetails; + this.isMigrationRequired = isMigrationRequired; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -185,6 +188,22 @@ public PrivateServerConfigDetails getPrivateServerConfigDetails() { return privateServerConfigDetails; } + /** + * Indicates whether this configuration source provider uses legacy Bitbucket Cloud username/app-password credentials and must be migrated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMigrationRequired") + private final Boolean isMigrationRequired; + + /** + * Indicates whether this configuration source provider uses legacy Bitbucket Cloud username/app-password credentials and must be migrated. + * + * @return the value + **/ + public Boolean getIsMigrationRequired() { + return isMigrationRequired; + } + /** * Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -267,6 +286,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", privateServerConfigDetails=") .append(String.valueOf(this.privateServerConfigDetails)); + sb.append(", isMigrationRequired=").append(String.valueOf(this.isMigrationRequired)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -292,6 +312,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals( this.privateServerConfigDetails, other.privateServerConfigDetails) + && java.util.Objects.equals(this.isMigrationRequired, other.isMigrationRequired) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -317,6 +338,11 @@ public int hashCode() { + (this.privateServerConfigDetails == null ? 43 : this.privateServerConfigDetails.hashCode()); + result = + (result * PRIME) + + (this.isMigrationRequired == null + ? 43 + : this.isMigrationRequired.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails.java similarity index 81% rename from bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails.java rename to bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails.java index 4cc0760e876..b5cfe4dbab7 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails.java @@ -5,8 +5,9 @@ package com.oracle.bmc.resourcemanager.model; /** - * Creation details for a configuration source provider of the type {@code BITBUCKET_CLOUD_USERNAME_appPASSWORD}. - * This type corresponds to a configuration source provider in Bitbucket that is authenticated with a username and app password. + * Creation details for a configuration source provider of the type {@code BITBUCKET_CLOUD_ACCESS_TOKEN}. + * This type corresponds to a configuration source provider in Bitbucket Cloud that is authenticated with Atlassian account email and API token. + * Legacy username/app-password create request shapes are no longer supported. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -18,8 +19,7 @@ **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180917") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = - CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails.Builder.class + builder = CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, @@ -27,7 +27,7 @@ property = "configSourceProviderType" ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails +public final class CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails extends CreateConfigurationSourceProviderDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { @@ -107,19 +107,19 @@ public Builder apiEndpoint(String apiEndpoint) { return this; } /** - * The username for the user of the Bitbucket cloud repository. + * Atlassian account email used for Bitbucket Cloud API token authentication. **/ - @com.fasterxml.jackson.annotation.JsonProperty("username") - private String username; + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; /** - * The username for the user of the Bitbucket cloud repository. - * @param username the value to set + * Atlassian account email used for Bitbucket Cloud API token authentication. + * @param email the value to set * @return this builder **/ - public Builder username(String username) { - this.username = username; - this.__explicitlySet__.add("username"); + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); return this; } /** @@ -144,9 +144,9 @@ public Builder secretId(String secretId) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails build() { - CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails model = - new CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails( + public CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails build() { + CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails model = + new CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails( this.compartmentId, this.displayName, this.description, @@ -154,7 +154,7 @@ public CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails this.freeformTags, this.definedTags, this.apiEndpoint, - this.username, + this.email, this.secretId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -164,7 +164,7 @@ public CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy( - CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails model) { + CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } @@ -186,8 +186,8 @@ public Builder copy( if (model.wasPropertyExplicitlySet("apiEndpoint")) { this.apiEndpoint(model.getApiEndpoint()); } - if (model.wasPropertyExplicitlySet("username")) { - this.username(model.getUsername()); + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); @@ -208,7 +208,7 @@ public Builder toBuilder() { } @Deprecated - public CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails( + public CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails( String compartmentId, String displayName, String description, @@ -216,7 +216,7 @@ public CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails java.util.Map freeformTags, java.util.Map> definedTags, String apiEndpoint, - String username, + String email, String secretId) { super( compartmentId, @@ -226,7 +226,7 @@ public CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails freeformTags, definedTags); this.apiEndpoint = apiEndpoint; - this.username = username; + this.email = email; this.secretId = secretId; } @@ -249,17 +249,17 @@ public String getApiEndpoint() { } /** - * The username for the user of the Bitbucket cloud repository. + * Atlassian account email used for Bitbucket Cloud API token authentication. **/ - @com.fasterxml.jackson.annotation.JsonProperty("username") - private final String username; + @com.fasterxml.jackson.annotation.JsonProperty("email") + private final String email; /** - * The username for the user of the Bitbucket cloud repository. + * Atlassian account email used for Bitbucket Cloud API token authentication. * @return the value **/ - public String getUsername() { - return username; + public String getEmail() { + return email; } /** @@ -290,10 +290,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails("); + sb.append("CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", apiEndpoint=").append(String.valueOf(this.apiEndpoint)); - sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", email=").append(String.valueOf(this.email)); sb.append(", secretId=").append(String.valueOf(this.secretId)); sb.append(")"); return sb.toString(); @@ -304,16 +304,14 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o - instanceof - CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails)) { + if (!(o instanceof CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails)) { return false; } - CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails other = - (CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails) o; + CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails other = + (CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails) o; return java.util.Objects.equals(this.apiEndpoint, other.apiEndpoint) - && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.email, other.email) && java.util.Objects.equals(this.secretId, other.secretId) && super.equals(other); } @@ -323,7 +321,7 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.apiEndpoint == null ? 43 : this.apiEndpoint.hashCode()); - result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + (this.email == null ? 43 : this.email.hashCode()); result = (result * PRIME) + (this.secretId == null ? 43 : this.secretId.hashCode()); return result; } diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/CreateConfigurationSourceProviderDetails.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/CreateConfigurationSourceProviderDetails.java index b336d7f0be4..986534d4801 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/CreateConfigurationSourceProviderDetails.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/CreateConfigurationSourceProviderDetails.java @@ -28,8 +28,8 @@ name = "GITLAB_ACCESS_TOKEN" ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails.class, - name = "BITBUCKET_CLOUD_USERNAME_APPPASSWORD" + value = CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails.class, + name = "BITBUCKET_CLOUD_ACCESS_TOKEN" ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateGithubAccessTokenConfigurationSourceProviderDetails.class, diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GithubAccessTokenConfigurationSourceProvider.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GithubAccessTokenConfigurationSourceProvider.java index 297bc8f044f..e4e3d28d8d6 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GithubAccessTokenConfigurationSourceProvider.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GithubAccessTokenConfigurationSourceProvider.java @@ -103,6 +103,24 @@ public Builder username(String username) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isMigrationRequired") + private Boolean isMigrationRequired; + + public Builder isMigrationRequired(Boolean isMigrationRequired) { + this.isMigrationRequired = isMigrationRequired; + this.__explicitlySet__.add("isMigrationRequired"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -174,6 +192,8 @@ public GithubAccessTokenConfigurationSourceProvider build() { this.lifecycleState, this.privateServerConfigDetails, this.username, + this.email, + this.isMigrationRequired, this.secretId, this.freeformTags, this.definedTags, @@ -211,6 +231,12 @@ public Builder copy(GithubAccessTokenConfigurationSourceProvider model) { if (model.wasPropertyExplicitlySet("username")) { this.username(model.getUsername()); } + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } + if (model.wasPropertyExplicitlySet("isMigrationRequired")) { + this.isMigrationRequired(model.getIsMigrationRequired()); + } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } @@ -251,6 +277,8 @@ public GithubAccessTokenConfigurationSourceProvider( LifecycleState lifecycleState, PrivateServerConfigDetails privateServerConfigDetails, String username, + String email, + Boolean isMigrationRequired, String secretId, java.util.Map freeformTags, java.util.Map> definedTags, @@ -265,6 +293,8 @@ public GithubAccessTokenConfigurationSourceProvider( lifecycleState, privateServerConfigDetails, username, + email, + isMigrationRequired, secretId, freeformTags, definedTags, diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GithubAccessTokenConfigurationSourceProviderSummary.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GithubAccessTokenConfigurationSourceProviderSummary.java index d3638ba0dde..f86490a32a9 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GithubAccessTokenConfigurationSourceProviderSummary.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GithubAccessTokenConfigurationSourceProviderSummary.java @@ -94,6 +94,15 @@ public Builder privateServerConfigDetails( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isMigrationRequired") + private Boolean isMigrationRequired; + + public Builder isMigrationRequired(Boolean isMigrationRequired) { + this.isMigrationRequired = isMigrationRequired; + this.__explicitlySet__.add("isMigrationRequired"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private java.util.Map freeformTags; @@ -155,6 +164,7 @@ public GithubAccessTokenConfigurationSourceProviderSummary build() { this.timeCreated, this.lifecycleState, this.privateServerConfigDetails, + this.isMigrationRequired, this.freeformTags, this.definedTags, this.systemTags, @@ -188,6 +198,9 @@ public Builder copy(GithubAccessTokenConfigurationSourceProviderSummary model) { if (model.wasPropertyExplicitlySet("privateServerConfigDetails")) { this.privateServerConfigDetails(model.getPrivateServerConfigDetails()); } + if (model.wasPropertyExplicitlySet("isMigrationRequired")) { + this.isMigrationRequired(model.getIsMigrationRequired()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -224,6 +237,7 @@ public GithubAccessTokenConfigurationSourceProviderSummary( java.util.Date timeCreated, ConfigurationSourceProvider.LifecycleState lifecycleState, PrivateServerConfigDetails privateServerConfigDetails, + Boolean isMigrationRequired, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, @@ -236,6 +250,7 @@ public GithubAccessTokenConfigurationSourceProviderSummary( timeCreated, lifecycleState, privateServerConfigDetails, + isMigrationRequired, freeformTags, definedTags, systemTags); diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GitlabAccessTokenConfigurationSourceProvider.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GitlabAccessTokenConfigurationSourceProvider.java index 95f3b4edd96..196c103ec6f 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GitlabAccessTokenConfigurationSourceProvider.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GitlabAccessTokenConfigurationSourceProvider.java @@ -103,6 +103,24 @@ public Builder username(String username) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isMigrationRequired") + private Boolean isMigrationRequired; + + public Builder isMigrationRequired(Boolean isMigrationRequired) { + this.isMigrationRequired = isMigrationRequired; + this.__explicitlySet__.add("isMigrationRequired"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -174,6 +192,8 @@ public GitlabAccessTokenConfigurationSourceProvider build() { this.lifecycleState, this.privateServerConfigDetails, this.username, + this.email, + this.isMigrationRequired, this.secretId, this.freeformTags, this.definedTags, @@ -211,6 +231,12 @@ public Builder copy(GitlabAccessTokenConfigurationSourceProvider model) { if (model.wasPropertyExplicitlySet("username")) { this.username(model.getUsername()); } + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } + if (model.wasPropertyExplicitlySet("isMigrationRequired")) { + this.isMigrationRequired(model.getIsMigrationRequired()); + } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } @@ -251,6 +277,8 @@ public GitlabAccessTokenConfigurationSourceProvider( LifecycleState lifecycleState, PrivateServerConfigDetails privateServerConfigDetails, String username, + String email, + Boolean isMigrationRequired, String secretId, java.util.Map freeformTags, java.util.Map> definedTags, @@ -265,6 +293,8 @@ public GitlabAccessTokenConfigurationSourceProvider( lifecycleState, privateServerConfigDetails, username, + email, + isMigrationRequired, secretId, freeformTags, definedTags, diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GitlabAccessTokenConfigurationSourceProviderSummary.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GitlabAccessTokenConfigurationSourceProviderSummary.java index bec4073201b..1f254a6294f 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GitlabAccessTokenConfigurationSourceProviderSummary.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/GitlabAccessTokenConfigurationSourceProviderSummary.java @@ -94,6 +94,15 @@ public Builder privateServerConfigDetails( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isMigrationRequired") + private Boolean isMigrationRequired; + + public Builder isMigrationRequired(Boolean isMigrationRequired) { + this.isMigrationRequired = isMigrationRequired; + this.__explicitlySet__.add("isMigrationRequired"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private java.util.Map freeformTags; @@ -155,6 +164,7 @@ public GitlabAccessTokenConfigurationSourceProviderSummary build() { this.timeCreated, this.lifecycleState, this.privateServerConfigDetails, + this.isMigrationRequired, this.freeformTags, this.definedTags, this.systemTags, @@ -188,6 +198,9 @@ public Builder copy(GitlabAccessTokenConfigurationSourceProviderSummary model) { if (model.wasPropertyExplicitlySet("privateServerConfigDetails")) { this.privateServerConfigDetails(model.getPrivateServerConfigDetails()); } + if (model.wasPropertyExplicitlySet("isMigrationRequired")) { + this.isMigrationRequired(model.getIsMigrationRequired()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -224,6 +237,7 @@ public GitlabAccessTokenConfigurationSourceProviderSummary( java.util.Date timeCreated, ConfigurationSourceProvider.LifecycleState lifecycleState, PrivateServerConfigDetails privateServerConfigDetails, + Boolean isMigrationRequired, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, @@ -236,6 +250,7 @@ public GitlabAccessTokenConfigurationSourceProviderSummary( timeCreated, lifecycleState, privateServerConfigDetails, + isMigrationRequired, freeformTags, definedTags, systemTags); diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails.java similarity index 78% rename from bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails.java rename to bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails.java index 36c51a0480a..1241e7c04da 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails.java @@ -5,8 +5,9 @@ package com.oracle.bmc.resourcemanager.model; /** - * Update details for a configuration source provider of the type {@code BITBUCKET_CLOUD_USERNAME_APPPASSWORD}. - * This type corresponds to a configuration source provider in Bitbucket that is authenticated with a username and app password. + * Update details for a configuration source provider of the type {@code BITBUCKET_CLOUD_ACCESS_TOKEN}. + * This type corresponds to a configuration source provider in Bitbucket Cloud that is authenticated with Atlassian account email and API token. + * Legacy username/app-password update request shapes are no longer supported. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -18,8 +19,7 @@ **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180917") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = - UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails.Builder.class + builder = UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, @@ -27,7 +27,7 @@ property = "configSourceProviderType" ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails +public final class UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails extends UpdateConfigurationSourceProviderDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { @@ -98,30 +98,30 @@ public Builder apiEndpoint(String apiEndpoint) { return this; } /** - * The username for the user of the Bitbucket cloud repository. + * Atlassian account email used for Bitbucket Cloud API token authentication. **/ - @com.fasterxml.jackson.annotation.JsonProperty("username") - private String username; + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; /** - * The username for the user of the Bitbucket cloud repository. - * @param username the value to set + * Atlassian account email used for Bitbucket Cloud API token authentication. + * @param email the value to set * @return this builder **/ - public Builder username(String username) { - this.username = username; - this.__explicitlySet__.add("username"); + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); return this; } /** - * The secret ocid which is used to authorize the user. + * The secret OCID containing an Atlassian API token. * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; /** - * The secret ocid which is used to authorize the user. + * The secret OCID containing an Atlassian API token. * * @param secretId the value to set * @return this builder @@ -135,16 +135,16 @@ public Builder secretId(String secretId) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails build() { - UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails model = - new UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails( + public UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails build() { + UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails model = + new UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails( this.displayName, this.description, this.privateServerConfigDetails, this.freeformTags, this.definedTags, this.apiEndpoint, - this.username, + this.email, this.secretId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -154,7 +154,7 @@ public UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy( - UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails model) { + UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } @@ -173,8 +173,8 @@ public Builder copy( if (model.wasPropertyExplicitlySet("apiEndpoint")) { this.apiEndpoint(model.getApiEndpoint()); } - if (model.wasPropertyExplicitlySet("username")) { - this.username(model.getUsername()); + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); @@ -195,18 +195,18 @@ public Builder toBuilder() { } @Deprecated - public UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails( + public UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails( String displayName, String description, PrivateServerConfigDetails privateServerConfigDetails, java.util.Map freeformTags, java.util.Map> definedTags, String apiEndpoint, - String username, + String email, String secretId) { super(displayName, description, privateServerConfigDetails, freeformTags, definedTags); this.apiEndpoint = apiEndpoint; - this.username = username; + this.email = email; this.secretId = secretId; } @@ -229,28 +229,28 @@ public String getApiEndpoint() { } /** - * The username for the user of the Bitbucket cloud repository. + * Atlassian account email used for Bitbucket Cloud API token authentication. **/ - @com.fasterxml.jackson.annotation.JsonProperty("username") - private final String username; + @com.fasterxml.jackson.annotation.JsonProperty("email") + private final String email; /** - * The username for the user of the Bitbucket cloud repository. + * Atlassian account email used for Bitbucket Cloud API token authentication. * @return the value **/ - public String getUsername() { - return username; + public String getEmail() { + return email; } /** - * The secret ocid which is used to authorize the user. + * The secret OCID containing an Atlassian API token. * **/ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private final String secretId; /** - * The secret ocid which is used to authorize the user. + * The secret OCID containing an Atlassian API token. * * @return the value **/ @@ -270,10 +270,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails("); + sb.append("UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", apiEndpoint=").append(String.valueOf(this.apiEndpoint)); - sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", email=").append(String.valueOf(this.email)); sb.append(", secretId=").append(String.valueOf(this.secretId)); sb.append(")"); return sb.toString(); @@ -284,16 +284,14 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o - instanceof - UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails)) { + if (!(o instanceof UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails)) { return false; } - UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails other = - (UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails) o; + UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails other = + (UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails) o; return java.util.Objects.equals(this.apiEndpoint, other.apiEndpoint) - && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.email, other.email) && java.util.Objects.equals(this.secretId, other.secretId) && super.equals(other); } @@ -303,7 +301,7 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.apiEndpoint == null ? 43 : this.apiEndpoint.hashCode()); - result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + (this.email == null ? 43 : this.email.hashCode()); result = (result * PRIME) + (this.secretId == null ? 43 : this.secretId.hashCode()); return result; } diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/UpdateConfigurationSourceProviderDetails.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/UpdateConfigurationSourceProviderDetails.java index f484250c911..da0f169acb5 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/UpdateConfigurationSourceProviderDetails.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/model/UpdateConfigurationSourceProviderDetails.java @@ -23,10 +23,6 @@ defaultImpl = UpdateConfigurationSourceProviderDetails.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = UpdateBitbucketCloudUsernameAppPasswordConfigurationSourceProviderDetails.class, - name = "BITBUCKET_CLOUD_USERNAME_APPPASSWORD" - ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateBitbucketServerAccessTokenConfigurationSourceProviderDetails.class, name = "BITBUCKET_SERVER_ACCESS_TOKEN" @@ -35,6 +31,10 @@ value = UpdateGitlabAccessTokenConfigurationSourceProviderDetails.class, name = "GITLAB_ACCESS_TOKEN" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails.class, + name = "BITBUCKET_CLOUD_ACCESS_TOKEN" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateGithubAccessTokenConfigurationSourceProviderDetails.class, name = "GITHUB_ACCESS_TOKEN" diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index d4e6b7a7513..3b103d9a8d2 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/Schedule.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/Schedule.java index dd162265bb4..eff07f4d638 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/Schedule.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/Schedule.java @@ -84,7 +84,7 @@ public interface Schedule extends AutoCloseable { CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request); /** - * This API) moves a schedule into a different compartment within the same tenancy. For information about moving resources between + * This API moves a schedule into a different compartment within the same tenancy. For information about moving resources between * compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * * @param request The request object containing the details to send diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsync.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsync.java index 59833473f66..2182dad539e 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsync.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsync.java @@ -90,7 +90,7 @@ java.util.concurrent.Future cancelWorkRequest( handler); /** - * This API) moves a schedule into a different compartment within the same tenancy. For information about moving resources between + * This API moves a schedule into a different compartment within the same tenancy. For information about moving resources between * compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * * diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/internal/http/ListResourceTypesConverter.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/internal/http/ListResourceTypesConverter.java index 327a04d8315..cf4ff46690b 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/internal/http/ListResourceTypesConverter.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/internal/http/ListResourceTypesConverter.java @@ -42,6 +42,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCompartmentId())); } + if (request.getActionType() != null) { + target = + target.queryParam( + "actionType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getActionType())); + } + if (request.getLimit() != null) { target = target.queryParam( diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CreateScheduleDetails.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CreateScheduleDetails.java index 2fc4ca34451..0562474e08c 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CreateScheduleDetails.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CreateScheduleDetails.java @@ -417,6 +417,7 @@ public String getDescription() { public enum Action { StartResource("START_RESOURCE"), StopResource("STOP_RESOURCE"), + BackupResource("BACKUP_RESOURCE"), ; private final String value; diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/OperationType.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/OperationType.java index 614efaf3ea0..c34a1866f40 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/OperationType.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/OperationType.java @@ -11,6 +11,7 @@ public enum OperationType { StartResource("START_RESOURCE"), StopResource("STOP_RESOURCE"), + BackupResource("BACKUP_RESOURCE"), ChangeScheduleCompartment("CHANGE_SCHEDULE_COMPARTMENT"), CreateSchedule("CREATE_SCHEDULE"), UpdateSchedule("UPDATE_SCHEDULE"), diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Schedule.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Schedule.java index 5335571aa64..f53cd60dbb6 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Schedule.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Schedule.java @@ -648,6 +648,7 @@ public String getDescription() { public enum Action { StartResource("START_RESOURCE"), StopResource("STOP_RESOURCE"), + BackupResource("BACKUP_RESOURCE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleSummary.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleSummary.java index 369a89fe9bd..72be868e2eb 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleSummary.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleSummary.java @@ -628,6 +628,7 @@ public String getDisplayName() { public enum Action { StartResource("START_RESOURCE"), StopResource("STOP_RESOURCE"), + BackupResource("BACKUP_RESOURCE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/UpdateScheduleDetails.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/UpdateScheduleDetails.java index 023184a11a8..2b4b78233ad 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/UpdateScheduleDetails.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/UpdateScheduleDetails.java @@ -380,6 +380,7 @@ public String getDescription() { public enum Action { StartResource("START_RESOURCE"), StopResource("STOP_RESOURCE"), + BackupResource("BACKUP_RESOURCE"), ; private final String value; diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ChangeScheduleCompartmentRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ChangeScheduleCompartmentRequest.java index f1786a29d0d..f3789712a2d 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ChangeScheduleCompartmentRequest.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ChangeScheduleCompartmentRequest.java @@ -25,13 +25,13 @@ public String getScheduleId() { return scheduleId; } /** - * This is the change schedule compartment details that will be updated. + * These are the change schedule compartment details that will be updated. */ private com.oracle.bmc.resourcescheduler.model.ChangeScheduleCompartmentDetails changeScheduleCompartmentDetails; /** - * This is the change schedule compartment details that will be updated. + * These are the change schedule compartment details that will be updated. */ public com.oracle.bmc.resourcescheduler.model.ChangeScheduleCompartmentDetails getChangeScheduleCompartmentDetails() { @@ -131,13 +131,13 @@ public Builder scheduleId(String scheduleId) { } /** - * This is the change schedule compartment details that will be updated. + * These are the change schedule compartment details that will be updated. */ private com.oracle.bmc.resourcescheduler.model.ChangeScheduleCompartmentDetails changeScheduleCompartmentDetails = null; /** - * This is the change schedule compartment details that will be updated. + * These are the change schedule compartment details that will be updated. * @param changeScheduleCompartmentDetails the value to set * @return this builder instance */ diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListResourceTypesRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListResourceTypesRequest.java index 1e707a65480..ec006cb974f 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListResourceTypesRequest.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListResourceTypesRequest.java @@ -22,6 +22,17 @@ public class ListResourceTypesRequest extends com.oracle.bmc.requests.BmcRequest public String getCompartmentId() { return compartmentId; } + /** + * This describes the Action Type + */ + private String actionType; + + /** + * This describes the Action Type + */ + public String getActionType() { + return actionType; + } /** * For list pagination. The maximum number of results per page, or items to return in a * paginated "List" call. For important details about how pagination works, see @@ -98,6 +109,21 @@ public Builder compartmentId(String compartmentId) { return this; } + /** + * This describes the Action Type + */ + private String actionType = null; + + /** + * This describes the Action Type + * @param actionType the value to set + * @return this builder instance + */ + public Builder actionType(String actionType) { + this.actionType = actionType; + return this; + } + /** * For list pagination. The maximum number of results per page, or items to return in a * paginated "List" call. For important details about how pagination works, see @@ -192,6 +218,7 @@ public Builder retryConfiguration( */ public Builder copy(ListResourceTypesRequest o) { compartmentId(o.getCompartmentId()); + actionType(o.getActionType()); limit(o.getLimit()); page(o.getPage()); opcRequestId(o.getOpcRequestId()); @@ -228,11 +255,12 @@ public ListResourceTypesRequest build() { public ListResourceTypesRequest buildWithoutInvocationCallback() { ListResourceTypesRequest request = new ListResourceTypesRequest(); request.compartmentId = compartmentId; + request.actionType = actionType; request.limit = limit; request.page = page; request.opcRequestId = opcRequestId; return request; - // new ListResourceTypesRequest(compartmentId, limit, page, opcRequestId); + // new ListResourceTypesRequest(compartmentId, actionType, limit, page, opcRequestId); } } @@ -243,6 +271,7 @@ public ListResourceTypesRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) + .actionType(actionType) .limit(limit) .page(page) .opcRequestId(opcRequestId); @@ -262,6 +291,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",actionType=").append(String.valueOf(this.actionType)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); @@ -281,6 +311,7 @@ public boolean equals(Object o) { ListResourceTypesRequest other = (ListResourceTypesRequest) o; return super.equals(o) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.actionType, other.actionType) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); @@ -293,6 +324,7 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index dba8ecf7c98..d629166e74a 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-resourcesearch @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index baadf6e581b..fff7890460d 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-rover @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 78ae18ed459..26a70181dd0 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-sch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 3ee0511b7ea..65a0a4394a5 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-secrets @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index 6b1ab139ed7..d903003a5e1 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-self/pom.xml b/bmc-self/pom.xml index c3b7b676cf3..dc92650f767 100644 --- a/bmc-self/pom.xml +++ b/bmc-self/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-self @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 657d047193a..0dc9ebbd4a7 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-servicecatalog @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 19d84c6b437..e01e604d6cc 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.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 5eb163198e2..f5c85f7437c 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 - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 47a401c20ba..819e070c975 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index a8d356d1d6f..2b91a06d784 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 2908feae5c1..9a498cb4cb3 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-streaming @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 071e702543a..e251aa3a91f 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/Link.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/Link.java index ffd28a0e248..50a84419c78 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/Link.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/Link.java @@ -83,6 +83,18 @@ public interface Link extends AutoCloseable { */ GetLinkResponse getLink(GetLinkRequest request); + /** + * Gets information about the link along with the parent and child tenancy names. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetLinkWithTenancyNames API. + */ + GetLinkWithTenancyNamesResponse getLinkWithTenancyNames(GetLinkWithTenancyNamesRequest request); + /** * Return a (paginated) list of links. * @param request The request object containing the details to send diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsync.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsync.java index eb7632ee4fd..05829236c10 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsync.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsync.java @@ -86,6 +86,22 @@ java.util.concurrent.Future getLink( GetLinkRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Gets information about the link along with the parent and child tenancy names. + * + * @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 getLinkWithTenancyNames( + GetLinkWithTenancyNamesRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse> + handler); + /** * Return a (paginated) list of links. * diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsyncClient.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsyncClient.java index 44fc82e6a2b..5ce3a8fd4b4 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsyncClient.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsyncClient.java @@ -553,6 +553,54 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getLinkWithTenancyNames( + GetLinkWithTenancyNamesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse> + handler) { + LOG.trace("Called async getLinkWithTenancyNames"); + final GetLinkWithTenancyNamesRequest interceptedRequest = + GetLinkWithTenancyNamesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetLinkWithTenancyNamesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Link", + "GetLinkWithTenancyNames", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/organizations/20230401/LinkWithTenancyNames/GetLinkWithTenancyNames"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetLinkWithTenancyNamesResponse> + transformer = + GetLinkWithTenancyNamesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse>, + 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< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listLinks( ListLinksRequest request, diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkClient.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkClient.java index 3d8f3c67d9a..ddd1c9a6578 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkClient.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkClient.java @@ -627,6 +627,44 @@ public GetLinkResponse getLink(GetLinkRequest request) { }); } + @Override + public GetLinkWithTenancyNamesResponse getLinkWithTenancyNames( + GetLinkWithTenancyNamesRequest request) { + LOG.trace("Called getLinkWithTenancyNames"); + final GetLinkWithTenancyNamesRequest interceptedRequest = + GetLinkWithTenancyNamesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetLinkWithTenancyNamesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Link", + "GetLinkWithTenancyNames", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/organizations/20230401/LinkWithTenancyNames/GetLinkWithTenancyNames"); + java.util.function.Function + transformer = + GetLinkWithTenancyNamesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListLinksResponse listLinks(ListLinksRequest request) { LOG.trace("Called listLinks"); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeatures.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeatures.java new file mode 100644 index 00000000000..cf71067fa6f --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeatures.java @@ -0,0 +1,73 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane; + +import com.oracle.bmc.tenantmanagercontrolplane.requests.*; +import com.oracle.bmc.tenantmanagercontrolplane.responses.*; + +/** + * Use the Organizations API to consolidate multiple OCI tenancies into an organization, and centrally manage your tenancies and organization resources. For more information, see [Organization Management Overview](https://docs.oracle.com/iaas/Content/General/Concepts/organization_management_overview.htm). + * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public interface LinkFeatures extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Return a list of link features. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListLinkFeatures API. + */ + ListLinkFeaturesResponse listLinkFeatures(ListLinkFeaturesRequest request); +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesAsync.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesAsync.java new file mode 100644 index 00000000000..00c58a28e84 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesAsync.java @@ -0,0 +1,75 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane; + +import com.oracle.bmc.tenantmanagercontrolplane.requests.*; +import com.oracle.bmc.tenantmanagercontrolplane.responses.*; + +/** + * Use the Organizations API to consolidate multiple OCI tenancies into an organization, and centrally manage your tenancies and organization resources. For more information, see [Organization Management Overview](https://docs.oracle.com/iaas/Content/General/Concepts/organization_management_overview.htm). + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public interface LinkFeaturesAsync extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Return a list of link features. + * + * @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 listLinkFeatures( + ListLinkFeaturesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesAsyncClient.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesAsyncClient.java new file mode 100644 index 00000000000..304c4a55190 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesAsyncClient.java @@ -0,0 +1,518 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane; + +import com.oracle.bmc.tenantmanagercontrolplane.internal.http.*; +import com.oracle.bmc.tenantmanagercontrolplane.requests.*; +import com.oracle.bmc.tenantmanagercontrolplane.responses.*; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * Async client implementation for LinkFeatures service.
+ * There are two ways to use async client: + * 1. Use AsyncHandler: using AsyncHandler, if the response to the call is an {@link java.io.InputStream}, like + * getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, + * because the stream will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or the AsyncHandler, + * but not both. If the Future is used, the caller should pass in null as the AsyncHandler. If the AsyncHandler + * is used, it is still safe to use the Future to determine whether or not the request was completed via + * Future.isDone/isCancelled.
+ * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public class LinkFeaturesAsyncClient implements LinkFeaturesAsync { + /** + * Service instance for LinkFeatures. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(LinkFeaturesClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://organizations.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LinkFeaturesAsyncClient.class); + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + */ + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + new java.util.ArrayList()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + */ + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + additionalClientConfigurators, + null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory + .createDefaultRequestSignerFactories(), + additionalClientConfigurators, + endpoint); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.clientConfigurationToUse = configuration; + + this.refreshClient(); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public LinkFeaturesAsyncClient build( + @javax.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + if (authenticationDetailsProvider == null) { + throw new NullPointerException( + "authenticationDetailsProvider is marked non-null but is null"); + } + return new LinkFeaturesAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint); + } + } + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future listLinkFeatures( + ListLinkFeaturesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListLinkFeaturesRequest, ListLinkFeaturesResponse> + handler) { + LOG.trace("Called async listLinkFeatures"); + final ListLinkFeaturesRequest interceptedRequest = + ListLinkFeaturesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListLinkFeaturesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "LinkFeatures", + "ListLinkFeatures", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/organizations/20230401/LinkFeaturesCollection/ListLinkFeatures"); + final java.util.function.Function + transformer = + ListLinkFeaturesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListLinkFeaturesRequest, ListLinkFeaturesResponse>, + 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< + ListLinkFeaturesRequest, ListLinkFeaturesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesClient.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesClient.java new file mode 100644 index 00000000000..aa3a8df63f1 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesClient.java @@ -0,0 +1,521 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane; + +import com.oracle.bmc.tenantmanagercontrolplane.internal.http.*; +import com.oracle.bmc.tenantmanagercontrolplane.requests.*; +import com.oracle.bmc.tenantmanagercontrolplane.responses.*; +import com.oracle.bmc.util.CircuitBreakerUtils; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public class LinkFeaturesClient implements LinkFeatures { + /** + * Service instance for LinkFeatures. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(LinkFeaturesClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://organizations.{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; + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LinkFeaturesClient.class); + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + circuitBreakerConfiguration; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public LinkFeaturesClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public LinkFeaturesClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public LinkFeaturesClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + */ + public LinkFeaturesClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + new java.util.ArrayList()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + */ + public LinkFeaturesClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + additionalClientConfigurators, + null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public LinkFeaturesClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory + .createDefaultRequestSignerFactories(), + additionalClientConfigurators, + endpoint); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public LinkFeaturesClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * Use the {@link Builder} to get access to all these parameters. + * + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + protected LinkFeaturesClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + this.restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + + this.clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + userCircuitBreakerConfiguration = + CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( + configuration); + if (userCircuitBreakerConfiguration == null) { + this.circuitBreakerConfiguration = + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; + } else { + this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; + } + + this.refreshClient(); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public LinkFeaturesClient build( + @javax.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + if (authenticationDetailsProvider == null) { + throw new NullPointerException( + "authenticationDetailsProvider is marked non-null but is null"); + } + return new LinkFeaturesClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + restClientFactoryBuilder); + } + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient, + null, + this.circuitBreakerConfiguration); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public ListLinkFeaturesResponse listLinkFeatures(ListLinkFeaturesRequest request) { + LOG.trace("Called listLinkFeatures"); + final ListLinkFeaturesRequest interceptedRequest = + ListLinkFeaturesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListLinkFeaturesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "LinkFeatures", + "ListLinkFeatures", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/organizations/20230401/LinkFeaturesCollection/ListLinkFeatures"); + java.util.function.Function + transformer = + ListLinkFeaturesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkWaiters.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkWaiters.java index 3101c13ecd6..b4f64c685cc 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkWaiters.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkWaiters.java @@ -119,4 +119,113 @@ public boolean test(GetLinkResponse response) { .Terminated)), request); } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @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< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse> + forLinkWithTenancyNames( + GetLinkWithTenancyNamesRequest request, + com.oracle.bmc.tenantmanagercontrolplane.model.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forLinkWithTenancyNames( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse> + forLinkWithTenancyNames( + GetLinkWithTenancyNamesRequest request, + com.oracle.bmc.tenantmanagercontrolplane.model.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forLinkWithTenancyNames( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse> + forLinkWithTenancyNames( + GetLinkWithTenancyNamesRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.tenantmanagercontrolplane.model.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forLinkWithTenancyNames( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for LinkWithTenancyNames. + private com.oracle.bmc.waiter.Waiter< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse> + forLinkWithTenancyNames( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetLinkWithTenancyNamesRequest request, + final com.oracle.bmc.tenantmanagercontrolplane.model.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse>() { + @Override + public GetLinkWithTenancyNamesResponse apply( + GetLinkWithTenancyNamesRequest request) { + return client.getLinkWithTenancyNames(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetLinkWithTenancyNamesResponse response) { + return targetStatesSet.contains( + response.getLinkWithTenancyNames().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.tenantmanagercontrolplane.model.LifecycleState + .Terminated)), + request); + } } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/SdkClientsMetadata.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/SdkClientsMetadata.java index fe78c376c1b..60caf810c8a 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/SdkClientsMetadata.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/SdkClientsMetadata.java @@ -16,6 +16,8 @@ GovernanceClient.class, LinkAsyncClient.class, LinkClient.class, + LinkFeaturesAsyncClient.class, + LinkFeaturesClient.class, OrdersAsyncClient.class, OrdersClient.class, OrganizationAsyncClient.class, diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/internal/http/GetLinkWithTenancyNamesConverter.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/internal/http/GetLinkWithTenancyNamesConverter.java new file mode 100644 index 00000000000..5f3af75e10d --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/internal/http/GetLinkWithTenancyNamesConverter.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.tenantmanagercontrolplane.model.*; +import com.oracle.bmc.tenantmanagercontrolplane.requests.*; +import com.oracle.bmc.tenantmanagercontrolplane.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public class GetLinkWithTenancyNamesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetLinkWithTenancyNamesConverter.class); + + public static com.oracle.bmc.tenantmanagercontrolplane.requests.GetLinkWithTenancyNamesRequest + interceptRequest( + com.oracle.bmc.tenantmanagercontrolplane.requests.GetLinkWithTenancyNamesRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.tenantmanagercontrolplane.requests.GetLinkWithTenancyNamesRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getLinkId(), "linkId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230401") + .path("links") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getLinkId())) + .path("tenancyNames"); + + 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()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.tenantmanagercontrolplane.responses + .GetLinkWithTenancyNamesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.tenantmanagercontrolplane.responses + .GetLinkWithTenancyNamesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.tenantmanagercontrolplane.responses + .GetLinkWithTenancyNamesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.tenantmanagercontrolplane.responses + .GetLinkWithTenancyNamesResponse>() { + @Override + public com.oracle.bmc.tenantmanagercontrolplane.responses + .GetLinkWithTenancyNamesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.tenantmanagercontrolplane.responses.GetLinkWithTenancyNamesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.tenantmanagercontrolplane + .model.LinkWithTenancyNames>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.tenantmanagercontrolplane.model + .LinkWithTenancyNames + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.tenantmanagercontrolplane.model + .LinkWithTenancyNames + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.tenantmanagercontrolplane.model + .LinkWithTenancyNames> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.tenantmanagercontrolplane.responses + .GetLinkWithTenancyNamesResponse.Builder + builder = + com.oracle.bmc.tenantmanagercontrolplane.responses + .GetLinkWithTenancyNamesResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.linkWithTenancyNames(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.tenantmanagercontrolplane.responses + .GetLinkWithTenancyNamesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/internal/http/ListLinkFeaturesConverter.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/internal/http/ListLinkFeaturesConverter.java new file mode 100644 index 00000000000..3d7613ade58 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/internal/http/ListLinkFeaturesConverter.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.tenantmanagercontrolplane.model.*; +import com.oracle.bmc.tenantmanagercontrolplane.requests.*; +import com.oracle.bmc.tenantmanagercontrolplane.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public class ListLinkFeaturesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListLinkFeaturesConverter.class); + + public static com.oracle.bmc.tenantmanagercontrolplane.requests.ListLinkFeaturesRequest + interceptRequest( + com.oracle.bmc.tenantmanagercontrolplane.requests.ListLinkFeaturesRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.tenantmanagercontrolplane.requests.ListLinkFeaturesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20230401").path("linkFeatures"); + + 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.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.tenantmanagercontrolplane.responses.ListLinkFeaturesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.tenantmanagercontrolplane.responses.ListLinkFeaturesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.tenantmanagercontrolplane.responses.ListLinkFeaturesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.tenantmanagercontrolplane.responses + .ListLinkFeaturesResponse>() { + @Override + public com.oracle.bmc.tenantmanagercontrolplane.responses + .ListLinkFeaturesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.tenantmanagercontrolplane.responses.ListLinkFeaturesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.tenantmanagercontrolplane + .model.LinkFeaturesCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.tenantmanagercontrolplane.model + .LinkFeaturesCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.tenantmanagercontrolplane.model + .LinkFeaturesCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.tenantmanagercontrolplane.model + .LinkFeaturesCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.tenantmanagercontrolplane.responses + .ListLinkFeaturesResponse.Builder + builder = + com.oracle.bmc.tenantmanagercontrolplane.responses + .ListLinkFeaturesResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.linkFeaturesCollection(response.getItem()); + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + 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)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.tenantmanagercontrolplane.responses + .ListLinkFeaturesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/internal/http/ListLinksConverter.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/internal/http/ListLinksConverter.java index 09cc5c9894a..64adc485b8e 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/internal/http/ListLinksConverter.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/internal/http/ListLinksConverter.java @@ -50,6 +50,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getChildTenancyId())); } + if (request.getFeature() != null) { + target = + target.queryParam( + "feature", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFeature())); + } + if (request.getLifecycleState() != null) { target = target.queryParam( diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateChildTenancyDetails.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateChildTenancyDetails.java index 7081468d510..6e189bb160e 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateChildTenancyDetails.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateChildTenancyDetails.java @@ -29,7 +29,8 @@ public final class CreateChildTenancyDetails "adminEmail", "policyName", "governanceStatus", - "subscriptionId" + "subscriptionId", + "features" }) public CreateChildTenancyDetails( String compartmentId, @@ -38,7 +39,8 @@ public CreateChildTenancyDetails( String adminEmail, String policyName, GovernanceStatus governanceStatus, - String subscriptionId) { + String subscriptionId, + java.util.List features) { super(); this.compartmentId = compartmentId; this.tenancyName = tenancyName; @@ -47,6 +49,7 @@ public CreateChildTenancyDetails( this.policyName = policyName; this.governanceStatus = governanceStatus; this.subscriptionId = subscriptionId; + this.features = features; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -163,6 +166,22 @@ public Builder subscriptionId(String subscriptionId) { this.__explicitlySet__.add("subscriptionId"); return this; } + /** + * List of features that the child and parent tenancies will have links for. Link with feature CORE will always be created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * List of features that the child and parent tenancies will have links for. Link with feature CORE will always be created. + * @param features the value to set + * @return this builder + **/ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -176,7 +195,8 @@ public CreateChildTenancyDetails build() { this.adminEmail, this.policyName, this.governanceStatus, - this.subscriptionId); + this.subscriptionId, + this.features); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -206,6 +226,9 @@ public Builder copy(CreateChildTenancyDetails model) { if (model.wasPropertyExplicitlySet("subscriptionId")) { this.subscriptionId(model.getSubscriptionId()); } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } return this; } } @@ -319,6 +342,20 @@ public String getSubscriptionId() { return subscriptionId; } + /** + * List of features that the child and parent tenancies will have links for. Link with feature CORE will always be created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * List of features that the child and parent tenancies will have links for. Link with feature CORE will always be created. + * @return the value + **/ + public java.util.List getFeatures() { + return features; + } + @Override public String toString() { return this.toString(true); @@ -340,6 +377,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", policyName=").append(String.valueOf(this.policyName)); sb.append(", governanceStatus=").append(String.valueOf(this.governanceStatus)); sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); + sb.append(", features=").append(String.valueOf(this.features)); sb.append(")"); return sb.toString(); } @@ -361,6 +399,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.policyName, other.policyName) && java.util.Objects.equals(this.governanceStatus, other.governanceStatus) && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) + && java.util.Objects.equals(this.features, other.features) && super.equals(other); } @@ -381,6 +420,7 @@ public int hashCode() { result = (result * PRIME) + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateSenderInvitationDetails.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateSenderInvitationDetails.java index ca8c4bf32d3..7fad557b274 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateSenderInvitationDetails.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateSenderInvitationDetails.java @@ -28,6 +28,7 @@ public final class CreateSenderInvitationDetails "recipientEmailAddress", "displayName", "subjects", + "features", "freeformTags", "definedTags" }) @@ -37,6 +38,7 @@ public CreateSenderInvitationDetails( String recipientEmailAddress, String displayName, java.util.List subjects, + java.util.List features, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -45,6 +47,7 @@ public CreateSenderInvitationDetails( this.recipientEmailAddress = recipientEmailAddress; this.displayName = displayName; this.subjects = subjects; + this.features = features; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -131,6 +134,22 @@ public Builder subjects(java.util.List subjects) { this.__explicitlySet__.add("subjects"); return this; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + * @param features the value to set + * @return this builder + **/ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -184,6 +203,7 @@ public CreateSenderInvitationDetails build() { this.recipientEmailAddress, this.displayName, this.subjects, + this.features, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -209,6 +229,9 @@ public Builder copy(CreateSenderInvitationDetails model) { if (model.wasPropertyExplicitlySet("subjects")) { this.subjects(model.getSubjects()); } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -300,6 +323,20 @@ public java.util.List getSubjects() { return subjects; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + * @return the value + **/ + public java.util.List getFeatures() { + return features; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -355,6 +392,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", recipientEmailAddress=").append(String.valueOf(this.recipientEmailAddress)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", subjects=").append(String.valueOf(this.subjects)); + sb.append(", features=").append(String.valueOf(this.features)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -376,6 +414,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.recipientEmailAddress, other.recipientEmailAddress) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.subjects, other.subjects) + && java.util.Objects.equals(this.features, other.features) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -400,6 +439,7 @@ public int hashCode() { : this.recipientEmailAddress.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.subjects == null ? 43 : this.subjects.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Domain.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Domain.java index e239ca12404..53c1f056d5b 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Domain.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Domain.java @@ -23,6 +23,7 @@ public final class Domain extends com.oracle.bmc.http.internal.ExplicitlySetBmcM "id", "domainName", "ownerId", + "compartmentId", "lifecycleState", "status", "txtRecord", @@ -36,6 +37,7 @@ public Domain( String id, String domainName, String ownerId, + String compartmentId, LifecycleState lifecycleState, Status status, String txtRecord, @@ -48,6 +50,7 @@ public Domain( this.id = id; this.domainName = domainName; this.ownerId = ownerId; + this.compartmentId = compartmentId; this.lifecycleState = lifecycleState; this.status = status; this.txtRecord = txtRecord; @@ -108,6 +111,22 @@ public Builder ownerId(String ownerId) { this.__explicitlySet__.add("ownerId"); return this; } + /** + * The OCID of the tenancy that has started the registration process for this domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the tenancy that has started the registration process for this domain. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } /** * Lifecycle state of the domain. **/ @@ -259,6 +278,7 @@ public Domain build() { this.id, this.domainName, this.ownerId, + this.compartmentId, this.lifecycleState, this.status, this.txtRecord, @@ -284,6 +304,9 @@ public Builder copy(Domain model) { if (model.wasPropertyExplicitlySet("ownerId")) { this.ownerId(model.getOwnerId()); } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -365,6 +388,20 @@ public String getOwnerId() { return ownerId; } + /** + * The OCID of the tenancy that has started the registration process for this domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the tenancy that has started the registration process for this domain. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + /** * Lifecycle state of the domain. **/ @@ -608,6 +645,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", domainName=").append(String.valueOf(this.domainName)); sb.append(", ownerId=").append(String.valueOf(this.ownerId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", status=").append(String.valueOf(this.status)); sb.append(", txtRecord=").append(String.valueOf(this.txtRecord)); @@ -633,6 +671,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.domainName, other.domainName) && java.util.Objects.equals(this.ownerId, other.ownerId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.status, other.status) && java.util.Objects.equals(this.txtRecord, other.txtRecord) @@ -651,6 +690,9 @@ public int hashCode() { result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.domainName == null ? 43 : this.domainName.hashCode()); result = (result * PRIME) + (this.ownerId == null ? 43 : this.ownerId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernance.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernance.java index 5682930e7c0..26eabe03901 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernance.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernance.java @@ -22,6 +22,7 @@ public final class DomainGovernance extends com.oracle.bmc.http.internal.Explici @java.beans.ConstructorProperties({ "id", "ownerId", + "compartmentId", "domainId", "lifecycleState", "isGovernanceEnabled", @@ -37,6 +38,7 @@ public final class DomainGovernance extends com.oracle.bmc.http.internal.Explici public DomainGovernance( String id, String ownerId, + String compartmentId, String domainId, LifecycleState lifecycleState, Boolean isGovernanceEnabled, @@ -51,6 +53,7 @@ public DomainGovernance( super(); this.id = id; this.ownerId = ownerId; + this.compartmentId = compartmentId; this.domainId = domainId; this.lifecycleState = lifecycleState; this.isGovernanceEnabled = isGovernanceEnabled; @@ -98,6 +101,22 @@ public Builder ownerId(String ownerId) { this.__explicitlySet__.add("ownerId"); return this; } + /** + * The OCID of the tenancy that owns this domain governance entity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the tenancy that owns this domain governance entity. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } /** * The OCID of the domain associated with this domain governance entity. **/ @@ -296,6 +315,7 @@ public DomainGovernance build() { new DomainGovernance( this.id, this.ownerId, + this.compartmentId, this.domainId, this.lifecycleState, this.isGovernanceEnabled, @@ -321,6 +341,9 @@ public Builder copy(DomainGovernance model) { if (model.wasPropertyExplicitlySet("ownerId")) { this.ownerId(model.getOwnerId()); } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } if (model.wasPropertyExplicitlySet("domainId")) { this.domainId(model.getDomainId()); } @@ -397,6 +420,20 @@ public String getOwnerId() { return ownerId; } + /** + * The OCID of the tenancy that owns this domain governance entity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the tenancy that owns this domain governance entity. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + /** * The OCID of the domain associated with this domain governance entity. **/ @@ -627,6 +664,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", ownerId=").append(String.valueOf(this.ownerId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", domainId=").append(String.valueOf(this.domainId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", isGovernanceEnabled=").append(String.valueOf(this.isGovernanceEnabled)); @@ -654,6 +692,7 @@ public boolean equals(Object o) { DomainGovernance other = (DomainGovernance) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.ownerId, other.ownerId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.domainId, other.domainId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.isGovernanceEnabled, other.isGovernanceEnabled) @@ -674,6 +713,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.ownerId == null ? 43 : this.ownerId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.domainId == null ? 43 : this.domainId.hashCode()); result = (result * PRIME) diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernanceSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernanceSummary.java index 7f8d9a4b83b..fd5113bec23 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernanceSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernanceSummary.java @@ -25,6 +25,7 @@ public final class DomainGovernanceSummary @java.beans.ConstructorProperties({ "id", "ownerId", + "compartmentId", "domainId", "lifecycleState", "isGovernanceEnabled", @@ -40,6 +41,7 @@ public final class DomainGovernanceSummary public DomainGovernanceSummary( String id, String ownerId, + String compartmentId, String domainId, DomainGovernance.LifecycleState lifecycleState, Boolean isGovernanceEnabled, @@ -54,6 +56,7 @@ public DomainGovernanceSummary( super(); this.id = id; this.ownerId = ownerId; + this.compartmentId = compartmentId; this.domainId = domainId; this.lifecycleState = lifecycleState; this.isGovernanceEnabled = isGovernanceEnabled; @@ -101,6 +104,22 @@ public Builder ownerId(String ownerId) { this.__explicitlySet__.add("ownerId"); return this; } + /** + * The OCID of the tenancy that has started the registration process for this domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the tenancy that has started the registration process for this domain. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } /** * The OCID of the domain associated with this domain governance entity. **/ @@ -299,6 +318,7 @@ public DomainGovernanceSummary build() { new DomainGovernanceSummary( this.id, this.ownerId, + this.compartmentId, this.domainId, this.lifecycleState, this.isGovernanceEnabled, @@ -324,6 +344,9 @@ public Builder copy(DomainGovernanceSummary model) { if (model.wasPropertyExplicitlySet("ownerId")) { this.ownerId(model.getOwnerId()); } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } if (model.wasPropertyExplicitlySet("domainId")) { this.domainId(model.getDomainId()); } @@ -400,6 +423,20 @@ public String getOwnerId() { return ownerId; } + /** + * The OCID of the tenancy that has started the registration process for this domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the tenancy that has started the registration process for this domain. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + /** * The OCID of the domain associated with this domain governance entity. **/ @@ -582,6 +619,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", ownerId=").append(String.valueOf(this.ownerId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", domainId=").append(String.valueOf(this.domainId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", isGovernanceEnabled=").append(String.valueOf(this.isGovernanceEnabled)); @@ -609,6 +647,7 @@ public boolean equals(Object o) { DomainGovernanceSummary other = (DomainGovernanceSummary) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.ownerId, other.ownerId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.domainId, other.domainId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.isGovernanceEnabled, other.isGovernanceEnabled) @@ -629,6 +668,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.ownerId == null ? 43 : this.ownerId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.domainId == null ? 43 : this.domainId.hashCode()); result = (result * PRIME) diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainSummary.java index 4a30190e0c0..289dbf7fa95 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainSummary.java @@ -23,6 +23,7 @@ public final class DomainSummary extends com.oracle.bmc.http.internal.Explicitly "id", "domainName", "ownerId", + "compartmentId", "lifecycleState", "status", "txtRecord", @@ -36,6 +37,7 @@ public DomainSummary( String id, String domainName, String ownerId, + String compartmentId, Domain.LifecycleState lifecycleState, Domain.Status status, String txtRecord, @@ -48,6 +50,7 @@ public DomainSummary( this.id = id; this.domainName = domainName; this.ownerId = ownerId; + this.compartmentId = compartmentId; this.lifecycleState = lifecycleState; this.status = status; this.txtRecord = txtRecord; @@ -108,6 +111,22 @@ public Builder ownerId(String ownerId) { this.__explicitlySet__.add("ownerId"); return this; } + /** + * The OCID of the tenancy that has started the registration process for this domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the tenancy that has started the registration process for this domain. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } /** * The lifecycle state of the domain. **/ @@ -259,6 +278,7 @@ public DomainSummary build() { this.id, this.domainName, this.ownerId, + this.compartmentId, this.lifecycleState, this.status, this.txtRecord, @@ -284,6 +304,9 @@ public Builder copy(DomainSummary model) { if (model.wasPropertyExplicitlySet("ownerId")) { this.ownerId(model.getOwnerId()); } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -365,6 +388,20 @@ public String getOwnerId() { return ownerId; } + /** + * The OCID of the tenancy that has started the registration process for this domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the tenancy that has started the registration process for this domain. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + /** * The lifecycle state of the domain. **/ @@ -506,6 +543,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", domainName=").append(String.valueOf(this.domainName)); sb.append(", ownerId=").append(String.valueOf(this.ownerId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", status=").append(String.valueOf(this.status)); sb.append(", txtRecord=").append(String.valueOf(this.txtRecord)); @@ -531,6 +569,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.domainName, other.domainName) && java.util.Objects.equals(this.ownerId, other.ownerId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.status, other.status) && java.util.Objects.equals(this.txtRecord, other.txtRecord) @@ -549,6 +588,9 @@ public int hashCode() { result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.domainName == null ? 43 : this.domainName.hashCode()); result = (result * PRIME) + (this.ownerId == null ? 43 : this.ownerId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/InvitationFeature.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/InvitationFeature.java new file mode 100644 index 00000000000..97479598fe4 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/InvitationFeature.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane.model; + +/** + * The feature model for sender invitation. + *
+ * 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: 20230401") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InvitationFeature.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class InvitationFeature extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "recipientInvitationId", "status"}) + public InvitationFeature( + String name, String recipientInvitationId, SenderInvitationStatus status) { + super(); + this.name = name; + this.recipientInvitationId = recipientInvitationId; + this.status = status; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Name of the feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the feature. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * recipientInvitationId for this feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recipientInvitationId") + private String recipientInvitationId; + + /** + * recipientInvitationId for this feature. + * @param recipientInvitationId the value to set + * @return this builder + **/ + public Builder recipientInvitationId(String recipientInvitationId) { + this.recipientInvitationId = recipientInvitationId; + this.__explicitlySet__.add("recipientInvitationId"); + return this; + } + /** + * Status of the sender invitation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private SenderInvitationStatus status; + + /** + * Status of the sender invitation. + * @param status the value to set + * @return this builder + **/ + public Builder status(SenderInvitationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InvitationFeature build() { + InvitationFeature model = + new InvitationFeature(this.name, this.recipientInvitationId, this.status); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InvitationFeature model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("recipientInvitationId")) { + this.recipientInvitationId(model.getRecipientInvitationId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Name of the feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the feature. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * recipientInvitationId for this feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recipientInvitationId") + private final String recipientInvitationId; + + /** + * recipientInvitationId for this feature. + * @return the value + **/ + public String getRecipientInvitationId() { + return recipientInvitationId; + } + + /** + * Status of the sender invitation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final SenderInvitationStatus status; + + /** + * Status of the sender invitation. + * @return the value + **/ + public SenderInvitationStatus getStatus() { + return status; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InvitationFeature("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", recipientInvitationId=").append(String.valueOf(this.recipientInvitationId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InvitationFeature)) { + return false; + } + + InvitationFeature other = (InvitationFeature) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.recipientInvitationId, other.recipientInvitationId) + && java.util.Objects.equals(this.status, other.status) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.recipientInvitationId == null + ? 43 + : this.recipientInvitationId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/InvitationSubject.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/InvitationSubject.java index 26a51aa7a52..93005fc1e2c 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/InvitationSubject.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/InvitationSubject.java @@ -11,6 +11,7 @@ public enum InvitationSubject { Link("LINK"), Governance("GOVERNANCE"), + ExtendedFeatures("EXTENDED_FEATURES"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Link.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Link.java index 62544badc07..49580aabd4c 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Link.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Link.java @@ -26,7 +26,8 @@ public final class Link extends com.oracle.bmc.http.internal.ExplicitlySetBmcMod "lifecycleState", "timeCreated", "timeUpdated", - "timeTerminated" + "timeTerminated", + "feature" }) public Link( String id, @@ -35,7 +36,8 @@ public Link( LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, - java.util.Date timeTerminated) { + java.util.Date timeTerminated, + String feature) { super(); this.id = id; this.parentTenancyId = parentTenancyId; @@ -44,6 +46,7 @@ public Link( this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.timeTerminated = timeTerminated; + this.feature = feature; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -160,6 +163,22 @@ public Builder timeTerminated(java.util.Date timeTerminated) { this.__explicitlySet__.add("timeTerminated"); return this; } + /** + * The feature associated with this link. Default value is CORE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private String feature; + + /** + * The feature associated with this link. Default value is CORE. + * @param feature the value to set + * @return this builder + **/ + public Builder feature(String feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -173,7 +192,8 @@ public Link build() { this.lifecycleState, this.timeCreated, this.timeUpdated, - this.timeTerminated); + this.timeTerminated, + this.feature); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -203,6 +223,9 @@ public Builder copy(Link model) { if (model.wasPropertyExplicitlySet("timeTerminated")) { this.timeTerminated(model.getTimeTerminated()); } + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } return this; } } @@ -316,6 +339,20 @@ public java.util.Date getTimeTerminated() { return timeTerminated; } + /** + * The feature associated with this link. Default value is CORE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final String feature; + + /** + * The feature associated with this link. Default value is CORE. + * @return the value + **/ + public String getFeature() { + return feature; + } + @Override public String toString() { return this.toString(true); @@ -337,6 +374,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", timeTerminated=").append(String.valueOf(this.timeTerminated)); + sb.append(", feature=").append(String.valueOf(this.feature)); sb.append(")"); return sb.toString(); } @@ -358,6 +396,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.timeTerminated, other.timeTerminated) + && java.util.Objects.equals(this.feature, other.feature) && super.equals(other); } @@ -380,6 +419,7 @@ public int hashCode() { result = (result * PRIME) + (this.timeTerminated == null ? 43 : this.timeTerminated.hashCode()); + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkFeatureSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkFeatureSummary.java new file mode 100644 index 00000000000..c38d0b94081 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkFeatureSummary.java @@ -0,0 +1,306 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane.model; + +/** + * Result of a query request for a list of link features. Contains LinkFeature items. + *
+ * 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: 20230401") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LinkFeatureSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class LinkFeatureSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "feature", + "displayName", + "description", + "partnerServiceConsoleUrl", + "userGuideUrl" + }) + public LinkFeatureSummary( + String feature, + String displayName, + String description, + String partnerServiceConsoleUrl, + String userGuideUrl) { + super(); + this.feature = feature; + this.displayName = displayName; + this.description = description; + this.partnerServiceConsoleUrl = partnerServiceConsoleUrl; + this.userGuideUrl = userGuideUrl; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The feature associated with this link. Default value is CORE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private String feature; + + /** + * The feature associated with this link. Default value is CORE. + * @param feature the value to set + * @return this builder + **/ + public Builder feature(String feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } + /** + * Display name of the feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Display name of the feature. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Description of the feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the feature. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * ConsoleUrl of the feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("partnerServiceConsoleUrl") + private String partnerServiceConsoleUrl; + + /** + * ConsoleUrl of the feature. + * @param partnerServiceConsoleUrl the value to set + * @return this builder + **/ + public Builder partnerServiceConsoleUrl(String partnerServiceConsoleUrl) { + this.partnerServiceConsoleUrl = partnerServiceConsoleUrl; + this.__explicitlySet__.add("partnerServiceConsoleUrl"); + return this; + } + /** + * UserGuideUrl of the feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userGuideUrl") + private String userGuideUrl; + + /** + * UserGuideUrl of the feature. + * @param userGuideUrl the value to set + * @return this builder + **/ + public Builder userGuideUrl(String userGuideUrl) { + this.userGuideUrl = userGuideUrl; + this.__explicitlySet__.add("userGuideUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LinkFeatureSummary build() { + LinkFeatureSummary model = + new LinkFeatureSummary( + this.feature, + this.displayName, + this.description, + this.partnerServiceConsoleUrl, + this.userGuideUrl); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LinkFeatureSummary model) { + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("partnerServiceConsoleUrl")) { + this.partnerServiceConsoleUrl(model.getPartnerServiceConsoleUrl()); + } + if (model.wasPropertyExplicitlySet("userGuideUrl")) { + this.userGuideUrl(model.getUserGuideUrl()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The feature associated with this link. Default value is CORE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final String feature; + + /** + * The feature associated with this link. Default value is CORE. + * @return the value + **/ + public String getFeature() { + return feature; + } + + /** + * Display name of the feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Display name of the feature. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Description of the feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the feature. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * ConsoleUrl of the feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("partnerServiceConsoleUrl") + private final String partnerServiceConsoleUrl; + + /** + * ConsoleUrl of the feature. + * @return the value + **/ + public String getPartnerServiceConsoleUrl() { + return partnerServiceConsoleUrl; + } + + /** + * UserGuideUrl of the feature. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userGuideUrl") + private final String userGuideUrl; + + /** + * UserGuideUrl of the feature. + * @return the value + **/ + public String getUserGuideUrl() { + return userGuideUrl; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LinkFeatureSummary("); + sb.append("super=").append(super.toString()); + sb.append("feature=").append(String.valueOf(this.feature)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", partnerServiceConsoleUrl=") + .append(String.valueOf(this.partnerServiceConsoleUrl)); + sb.append(", userGuideUrl=").append(String.valueOf(this.userGuideUrl)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LinkFeatureSummary)) { + return false; + } + + LinkFeatureSummary other = (LinkFeatureSummary) o; + return java.util.Objects.equals(this.feature, other.feature) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals( + this.partnerServiceConsoleUrl, other.partnerServiceConsoleUrl) + && java.util.Objects.equals(this.userGuideUrl, other.userGuideUrl) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.partnerServiceConsoleUrl == null + ? 43 + : this.partnerServiceConsoleUrl.hashCode()); + result = (result * PRIME) + (this.userGuideUrl == null ? 43 : this.userGuideUrl.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkFeaturesCollection.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkFeaturesCollection.java new file mode 100644 index 00000000000..49df5a456d7 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkFeaturesCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane.model; + +/** + * Result of a query request for a list of link features. Contains LinkFeature items. + *
+ * 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: 20230401") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LinkFeaturesCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class LinkFeaturesCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public LinkFeaturesCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Array containing LinkFeature items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array containing LinkFeature items. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LinkFeaturesCollection build() { + LinkFeaturesCollection model = new LinkFeaturesCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LinkFeaturesCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Array containing LinkFeature items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array containing LinkFeature items. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LinkFeaturesCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LinkFeaturesCollection)) { + return false; + } + + LinkFeaturesCollection other = (LinkFeaturesCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkSummary.java index d90f0458115..9ddb911eed5 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkSummary.java @@ -27,7 +27,8 @@ public final class LinkSummary extends com.oracle.bmc.http.internal.ExplicitlySe "timeCreated", "timeUpdated", "timeTerminated", - "systemTags" + "systemTags", + "feature" }) public LinkSummary( String id, @@ -37,7 +38,8 @@ public LinkSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Date timeTerminated, - java.util.Map> systemTags) { + java.util.Map> systemTags, + String feature) { super(); this.id = id; this.parentTenancyId = parentTenancyId; @@ -47,6 +49,7 @@ public LinkSummary( this.timeUpdated = timeUpdated; this.timeTerminated = timeTerminated; this.systemTags = systemTags; + this.feature = feature; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -183,6 +186,22 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * The feature associated with this link. Default value is CORE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private String feature; + + /** + * The feature associated with this link. Default value is CORE. + * @param feature the value to set + * @return this builder + **/ + public Builder feature(String feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -197,7 +216,8 @@ public LinkSummary build() { this.timeCreated, this.timeUpdated, this.timeTerminated, - this.systemTags); + this.systemTags, + this.feature); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -230,6 +250,9 @@ public Builder copy(LinkSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } return this; } } @@ -361,6 +384,20 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * The feature associated with this link. Default value is CORE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final String feature; + + /** + * The feature associated with this link. Default value is CORE. + * @return the value + **/ + public String getFeature() { + return feature; + } + @Override public String toString() { return this.toString(true); @@ -383,6 +420,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", timeTerminated=").append(String.valueOf(this.timeTerminated)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", feature=").append(String.valueOf(this.feature)); sb.append(")"); return sb.toString(); } @@ -405,6 +443,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.timeTerminated, other.timeTerminated) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.feature, other.feature) && super.equals(other); } @@ -428,6 +467,7 @@ public int hashCode() { (result * PRIME) + (this.timeTerminated == null ? 43 : this.timeTerminated.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkWithTenancyNames.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkWithTenancyNames.java new file mode 100644 index 00000000000..64c42886596 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkWithTenancyNames.java @@ -0,0 +1,512 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane.model; + +/** + * A link between a parent tenancy and a child tenancy, including the parent and child tenancy names. + *
+ * 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: 20230401") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LinkWithTenancyNames.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class LinkWithTenancyNames extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "parentTenancyName", + "childTenancyName", + "id", + "parentTenancyId", + "childTenancyId", + "lifecycleState", + "timeCreated", + "timeUpdated", + "timeTerminated", + "feature" + }) + public LinkWithTenancyNames( + String parentTenancyName, + String childTenancyName, + String id, + String parentTenancyId, + String childTenancyId, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeTerminated, + String feature) { + super(); + this.parentTenancyName = parentTenancyName; + this.childTenancyName = childTenancyName; + this.id = id; + this.parentTenancyId = parentTenancyId; + this.childTenancyId = childTenancyId; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeTerminated = timeTerminated; + this.feature = feature; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Name of the parent tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTenancyName") + private String parentTenancyName; + + /** + * Name of the parent tenancy. + * @param parentTenancyName the value to set + * @return this builder + **/ + public Builder parentTenancyName(String parentTenancyName) { + this.parentTenancyName = parentTenancyName; + this.__explicitlySet__.add("parentTenancyName"); + return this; + } + /** + * Name of the child tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("childTenancyName") + private String childTenancyName; + + /** + * Name of the child tenancy. + * @param childTenancyName the value to set + * @return this builder + **/ + public Builder childTenancyName(String childTenancyName) { + this.childTenancyName = childTenancyName; + this.__explicitlySet__.add("childTenancyName"); + return this; + } + /** + * OCID of the link. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * OCID of the link. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * OCID of the parent tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTenancyId") + private String parentTenancyId; + + /** + * OCID of the parent tenancy. + * @param parentTenancyId the value to set + * @return this builder + **/ + public Builder parentTenancyId(String parentTenancyId) { + this.parentTenancyId = parentTenancyId; + this.__explicitlySet__.add("parentTenancyId"); + return this; + } + /** + * OCID of the child tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("childTenancyId") + private String childTenancyId; + + /** + * OCID of the child tenancy. + * @param childTenancyId the value to set + * @return this builder + **/ + public Builder childTenancyId(String childTenancyId) { + this.childTenancyId = childTenancyId; + this.__explicitlySet__.add("childTenancyId"); + return this; + } + /** + * Lifecycle state of the link. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * Lifecycle state of the link. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Date-time when this link was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Date-time when this link was created. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * Date-time when this link was last updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Date-time when this link was last updated. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Date-time when this link was terminated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeTerminated") + private java.util.Date timeTerminated; + + /** + * Date-time when this link was terminated. + * @param timeTerminated the value to set + * @return this builder + **/ + public Builder timeTerminated(java.util.Date timeTerminated) { + this.timeTerminated = timeTerminated; + this.__explicitlySet__.add("timeTerminated"); + return this; + } + /** + * The feature associated with this link. Default value is CORE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private String feature; + + /** + * The feature associated with this link. Default value is CORE. + * @param feature the value to set + * @return this builder + **/ + public Builder feature(String feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LinkWithTenancyNames build() { + LinkWithTenancyNames model = + new LinkWithTenancyNames( + this.parentTenancyName, + this.childTenancyName, + this.id, + this.parentTenancyId, + this.childTenancyId, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.timeTerminated, + this.feature); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LinkWithTenancyNames model) { + if (model.wasPropertyExplicitlySet("parentTenancyName")) { + this.parentTenancyName(model.getParentTenancyName()); + } + if (model.wasPropertyExplicitlySet("childTenancyName")) { + this.childTenancyName(model.getChildTenancyName()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("parentTenancyId")) { + this.parentTenancyId(model.getParentTenancyId()); + } + if (model.wasPropertyExplicitlySet("childTenancyId")) { + this.childTenancyId(model.getChildTenancyId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeTerminated")) { + this.timeTerminated(model.getTimeTerminated()); + } + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Name of the parent tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTenancyName") + private final String parentTenancyName; + + /** + * Name of the parent tenancy. + * @return the value + **/ + public String getParentTenancyName() { + return parentTenancyName; + } + + /** + * Name of the child tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("childTenancyName") + private final String childTenancyName; + + /** + * Name of the child tenancy. + * @return the value + **/ + public String getChildTenancyName() { + return childTenancyName; + } + + /** + * OCID of the link. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * OCID of the link. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * OCID of the parent tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTenancyId") + private final String parentTenancyId; + + /** + * OCID of the parent tenancy. + * @return the value + **/ + public String getParentTenancyId() { + return parentTenancyId; + } + + /** + * OCID of the child tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("childTenancyId") + private final String childTenancyId; + + /** + * OCID of the child tenancy. + * @return the value + **/ + public String getChildTenancyId() { + return childTenancyId; + } + + /** + * Lifecycle state of the link. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * Lifecycle state of the link. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Date-time when this link was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Date-time when this link was created. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Date-time when this link was last updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Date-time when this link was last updated. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Date-time when this link was terminated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeTerminated") + private final java.util.Date timeTerminated; + + /** + * Date-time when this link was terminated. + * @return the value + **/ + public java.util.Date getTimeTerminated() { + return timeTerminated; + } + + /** + * The feature associated with this link. Default value is CORE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final String feature; + + /** + * The feature associated with this link. Default value is CORE. + * @return the value + **/ + public String getFeature() { + return feature; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LinkWithTenancyNames("); + sb.append("super=").append(super.toString()); + sb.append("parentTenancyName=").append(String.valueOf(this.parentTenancyName)); + sb.append(", childTenancyName=").append(String.valueOf(this.childTenancyName)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", parentTenancyId=").append(String.valueOf(this.parentTenancyId)); + sb.append(", childTenancyId=").append(String.valueOf(this.childTenancyId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeTerminated=").append(String.valueOf(this.timeTerminated)); + sb.append(", feature=").append(String.valueOf(this.feature)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LinkWithTenancyNames)) { + return false; + } + + LinkWithTenancyNames other = (LinkWithTenancyNames) o; + return java.util.Objects.equals(this.parentTenancyName, other.parentTenancyName) + && java.util.Objects.equals(this.childTenancyName, other.childTenancyName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.parentTenancyId, other.parentTenancyId) + && java.util.Objects.equals(this.childTenancyId, other.childTenancyId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeTerminated, other.timeTerminated) + && java.util.Objects.equals(this.feature, other.feature) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.parentTenancyName == null ? 43 : this.parentTenancyName.hashCode()); + result = + (result * PRIME) + + (this.childTenancyName == null ? 43 : this.childTenancyName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.parentTenancyId == null ? 43 : this.parentTenancyId.hashCode()); + result = + (result * PRIME) + + (this.childTenancyId == null ? 43 : this.childTenancyId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeTerminated == null ? 43 : this.timeTerminated.hashCode()); + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitation.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitation.java index 4112c3e2741..54da4665372 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitation.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitation.java @@ -33,6 +33,7 @@ public final class RecipientInvitation extends com.oracle.bmc.http.internal.Expl "timeCreated", "timeUpdated", "recipientEmailAddress", + "features", "freeformTags", "definedTags", "systemTags" @@ -49,6 +50,7 @@ public RecipientInvitation( java.util.Date timeCreated, java.util.Date timeUpdated, String recipientEmailAddress, + java.util.List features, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -64,6 +66,7 @@ public RecipientInvitation( this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.recipientEmailAddress = recipientEmailAddress; + this.features = features; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -247,6 +250,22 @@ public Builder recipientEmailAddress(String recipientEmailAddress) { this.__explicitlySet__.add("recipientEmailAddress"); return this; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + * @param features the value to set + * @return this builder + **/ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -326,6 +345,7 @@ public RecipientInvitation build() { this.timeCreated, this.timeUpdated, this.recipientEmailAddress, + this.features, this.freeformTags, this.definedTags, this.systemTags); @@ -370,6 +390,9 @@ public Builder copy(RecipientInvitation model) { if (model.wasPropertyExplicitlySet("recipientEmailAddress")) { this.recipientEmailAddress(model.getRecipientEmailAddress()); } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -548,6 +571,20 @@ public String getRecipientEmailAddress() { return recipientEmailAddress; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + * @return the value + **/ + public java.util.List getFeatures() { + return features; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -627,6 +664,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", recipientEmailAddress=").append(String.valueOf(this.recipientEmailAddress)); + sb.append(", features=").append(String.valueOf(this.features)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -655,6 +693,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.recipientEmailAddress, other.recipientEmailAddress) + && java.util.Objects.equals(this.features, other.features) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -690,6 +729,7 @@ public int hashCode() { + (this.recipientEmailAddress == null ? 43 : this.recipientEmailAddress.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitationSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitationSummary.java index 3699a00abfe..ca93f03cbc0 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitationSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitationSummary.java @@ -34,6 +34,7 @@ public final class RecipientInvitationSummary "timeCreated", "timeUpdated", "recipientEmailAddress", + "features", "freeformTags", "definedTags", "systemTags" @@ -50,6 +51,7 @@ public RecipientInvitationSummary( java.util.Date timeCreated, java.util.Date timeUpdated, String recipientEmailAddress, + java.util.List features, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -65,6 +67,7 @@ public RecipientInvitationSummary( this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.recipientEmailAddress = recipientEmailAddress; + this.features = features; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -248,6 +251,22 @@ public Builder recipientEmailAddress(String recipientEmailAddress) { this.__explicitlySet__.add("recipientEmailAddress"); return this; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + * @param features the value to set + * @return this builder + **/ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -327,6 +346,7 @@ public RecipientInvitationSummary build() { this.timeCreated, this.timeUpdated, this.recipientEmailAddress, + this.features, this.freeformTags, this.definedTags, this.systemTags); @@ -371,6 +391,9 @@ public Builder copy(RecipientInvitationSummary model) { if (model.wasPropertyExplicitlySet("recipientEmailAddress")) { this.recipientEmailAddress(model.getRecipientEmailAddress()); } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -549,6 +572,20 @@ public String getRecipientEmailAddress() { return recipientEmailAddress; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + * @return the value + **/ + public java.util.List getFeatures() { + return features; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -628,6 +665,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", recipientEmailAddress=").append(String.valueOf(this.recipientEmailAddress)); + sb.append(", features=").append(String.valueOf(this.features)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -656,6 +694,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.recipientEmailAddress, other.recipientEmailAddress) + && java.util.Objects.equals(this.features, other.features) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -691,6 +730,7 @@ public int hashCode() { + (this.recipientEmailAddress == null ? 43 : this.recipientEmailAddress.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ReviveWorkflowInstanceDetails.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ReviveWorkflowInstanceDetails.java deleted file mode 100644 index 9d5a49d3194..00000000000 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ReviveWorkflowInstanceDetails.java +++ /dev/null @@ -1,183 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane.model; - -/** - * The parameters for reviving failed workflow - *
- * 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: 20230401") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ReviveWorkflowInstanceDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class ReviveWorkflowInstanceDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"workflowInstanceId", "workflowInstanceName"}) - public ReviveWorkflowInstanceDetails(String workflowInstanceId, String workflowInstanceName) { - super(); - this.workflowInstanceId = workflowInstanceId; - this.workflowInstanceName = workflowInstanceName; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Id of failed workflow - **/ - @com.fasterxml.jackson.annotation.JsonProperty("workflowInstanceId") - private String workflowInstanceId; - - /** - * Id of failed workflow - * @param workflowInstanceId the value to set - * @return this builder - **/ - public Builder workflowInstanceId(String workflowInstanceId) { - this.workflowInstanceId = workflowInstanceId; - this.__explicitlySet__.add("workflowInstanceId"); - return this; - } - /** - * Service specific workflow instance name - **/ - @com.fasterxml.jackson.annotation.JsonProperty("workflowInstanceName") - private String workflowInstanceName; - - /** - * Service specific workflow instance name - * @param workflowInstanceName the value to set - * @return this builder - **/ - public Builder workflowInstanceName(String workflowInstanceName) { - this.workflowInstanceName = workflowInstanceName; - this.__explicitlySet__.add("workflowInstanceName"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ReviveWorkflowInstanceDetails build() { - ReviveWorkflowInstanceDetails model = - new ReviveWorkflowInstanceDetails( - this.workflowInstanceId, this.workflowInstanceName); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ReviveWorkflowInstanceDetails model) { - if (model.wasPropertyExplicitlySet("workflowInstanceId")) { - this.workflowInstanceId(model.getWorkflowInstanceId()); - } - if (model.wasPropertyExplicitlySet("workflowInstanceName")) { - this.workflowInstanceName(model.getWorkflowInstanceName()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Id of failed workflow - **/ - @com.fasterxml.jackson.annotation.JsonProperty("workflowInstanceId") - private final String workflowInstanceId; - - /** - * Id of failed workflow - * @return the value - **/ - public String getWorkflowInstanceId() { - return workflowInstanceId; - } - - /** - * Service specific workflow instance name - **/ - @com.fasterxml.jackson.annotation.JsonProperty("workflowInstanceName") - private final String workflowInstanceName; - - /** - * Service specific workflow instance name - * @return the value - **/ - public String getWorkflowInstanceName() { - return workflowInstanceName; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ReviveWorkflowInstanceDetails("); - sb.append("super=").append(super.toString()); - sb.append("workflowInstanceId=").append(String.valueOf(this.workflowInstanceId)); - sb.append(", workflowInstanceName=").append(String.valueOf(this.workflowInstanceName)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ReviveWorkflowInstanceDetails)) { - return false; - } - - ReviveWorkflowInstanceDetails other = (ReviveWorkflowInstanceDetails) o; - return java.util.Objects.equals(this.workflowInstanceId, other.workflowInstanceId) - && java.util.Objects.equals(this.workflowInstanceName, other.workflowInstanceName) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.workflowInstanceId == null - ? 43 - : this.workflowInstanceId.hashCode()); - result = - (result * PRIME) - + (this.workflowInstanceName == null - ? 43 - : this.workflowInstanceName.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitation.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitation.java index e9d53d5f50b..748990fe053 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitation.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitation.java @@ -31,6 +31,7 @@ public final class SenderInvitation extends com.oracle.bmc.http.internal.Explici "timeCreated", "timeUpdated", "recipientEmailAddress", + "invitationFeatures", "freeformTags", "definedTags", "systemTags" @@ -47,6 +48,7 @@ public SenderInvitation( java.util.Date timeCreated, java.util.Date timeUpdated, String recipientEmailAddress, + java.util.List invitationFeatures, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -62,6 +64,7 @@ public SenderInvitation( this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.recipientEmailAddress = recipientEmailAddress; + this.invitationFeatures = invitationFeatures; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -245,6 +248,22 @@ public Builder recipientEmailAddress(String recipientEmailAddress) { this.__explicitlySet__.add("recipientEmailAddress"); return this; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("invitationFeatures") + private java.util.List invitationFeatures; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + * @param invitationFeatures the value to set + * @return this builder + **/ + public Builder invitationFeatures(java.util.List invitationFeatures) { + this.invitationFeatures = invitationFeatures; + this.__explicitlySet__.add("invitationFeatures"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -324,6 +343,7 @@ public SenderInvitation build() { this.timeCreated, this.timeUpdated, this.recipientEmailAddress, + this.invitationFeatures, this.freeformTags, this.definedTags, this.systemTags); @@ -368,6 +388,9 @@ public Builder copy(SenderInvitation model) { if (model.wasPropertyExplicitlySet("recipientEmailAddress")) { this.recipientEmailAddress(model.getRecipientEmailAddress()); } + if (model.wasPropertyExplicitlySet("invitationFeatures")) { + this.invitationFeatures(model.getInvitationFeatures()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -546,6 +569,20 @@ public String getRecipientEmailAddress() { return recipientEmailAddress; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("invitationFeatures") + private final java.util.List invitationFeatures; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + * @return the value + **/ + public java.util.List getInvitationFeatures() { + return invitationFeatures; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -625,6 +662,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", recipientEmailAddress=").append(String.valueOf(this.recipientEmailAddress)); + sb.append(", invitationFeatures=").append(String.valueOf(this.invitationFeatures)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -653,6 +691,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.recipientEmailAddress, other.recipientEmailAddress) + && java.util.Objects.equals(this.invitationFeatures, other.invitationFeatures) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -690,6 +729,11 @@ public int hashCode() { + (this.recipientEmailAddress == null ? 43 : this.recipientEmailAddress.hashCode()); + result = + (result * PRIME) + + (this.invitationFeatures == null + ? 43 + : this.invitationFeatures.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationStatus.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationStatus.java index 3d6d5950a55..caa3ea3b4f1 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationStatus.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationStatus.java @@ -14,6 +14,7 @@ public enum SenderInvitationStatus { Accepted("ACCEPTED"), Expired("EXPIRED"), Failed("FAILED"), + NotApplicable("NOT_APPLICABLE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationSummary.java index 85ab7f7da63..a8d6e941910 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationSummary.java @@ -34,6 +34,7 @@ public final class SenderInvitationSummary "timeCreated", "timeUpdated", "recipientEmailAddress", + "invitationFeatures", "freeformTags", "definedTags", "systemTags" @@ -50,6 +51,7 @@ public SenderInvitationSummary( java.util.Date timeCreated, java.util.Date timeUpdated, String recipientEmailAddress, + java.util.List invitationFeatures, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -65,6 +67,7 @@ public SenderInvitationSummary( this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.recipientEmailAddress = recipientEmailAddress; + this.invitationFeatures = invitationFeatures; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -248,6 +251,22 @@ public Builder recipientEmailAddress(String recipientEmailAddress) { this.__explicitlySet__.add("recipientEmailAddress"); return this; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("invitationFeatures") + private java.util.List invitationFeatures; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + * @param invitationFeatures the value to set + * @return this builder + **/ + public Builder invitationFeatures(java.util.List invitationFeatures) { + this.invitationFeatures = invitationFeatures; + this.__explicitlySet__.add("invitationFeatures"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -327,6 +346,7 @@ public SenderInvitationSummary build() { this.timeCreated, this.timeUpdated, this.recipientEmailAddress, + this.invitationFeatures, this.freeformTags, this.definedTags, this.systemTags); @@ -371,6 +391,9 @@ public Builder copy(SenderInvitationSummary model) { if (model.wasPropertyExplicitlySet("recipientEmailAddress")) { this.recipientEmailAddress(model.getRecipientEmailAddress()); } + if (model.wasPropertyExplicitlySet("invitationFeatures")) { + this.invitationFeatures(model.getInvitationFeatures()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -549,6 +572,20 @@ public String getRecipientEmailAddress() { return recipientEmailAddress; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("invitationFeatures") + private final java.util.List invitationFeatures; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, of that type. + * @return the value + **/ + public java.util.List getInvitationFeatures() { + return invitationFeatures; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -628,6 +665,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", recipientEmailAddress=").append(String.valueOf(this.recipientEmailAddress)); + sb.append(", invitationFeatures=").append(String.valueOf(this.invitationFeatures)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -656,6 +694,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.recipientEmailAddress, other.recipientEmailAddress) + && java.util.Objects.equals(this.invitationFeatures, other.invitationFeatures) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -693,6 +732,11 @@ public int hashCode() { + (this.recipientEmailAddress == null ? 43 : this.recipientEmailAddress.hashCode()); + result = + (result * PRIME) + + (this.invitationFeatures == null + ? 43 + : this.invitationFeatures.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/GetLinkWithTenancyNamesRequest.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/GetLinkWithTenancyNamesRequest.java new file mode 100644 index 00000000000..6d14518cb86 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/GetLinkWithTenancyNamesRequest.java @@ -0,0 +1,194 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane.requests; + +import com.oracle.bmc.tenantmanagercontrolplane.model.*; +/** + * Example: Click here to see how to use GetLinkWithTenancyNamesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public class GetLinkWithTenancyNamesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * OCID of the link to retrieve. + */ + private String linkId; + + /** + * OCID of the link to retrieve. + */ + public String getLinkId() { + return linkId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetLinkWithTenancyNamesRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * OCID of the link to retrieve. + */ + private String linkId = null; + + /** + * OCID of the link to retrieve. + * @param linkId the value to set + * @return this builder instance + */ + public Builder linkId(String linkId) { + this.linkId = linkId; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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(GetLinkWithTenancyNamesRequest o) { + linkId(o.getLinkId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetLinkWithTenancyNamesRequest 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 GetLinkWithTenancyNamesRequest + */ + public GetLinkWithTenancyNamesRequest build() { + GetLinkWithTenancyNamesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetLinkWithTenancyNamesRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetLinkWithTenancyNamesRequest + */ + public GetLinkWithTenancyNamesRequest buildWithoutInvocationCallback() { + GetLinkWithTenancyNamesRequest request = new GetLinkWithTenancyNamesRequest(); + request.linkId = linkId; + request.opcRequestId = opcRequestId; + return request; + // new GetLinkWithTenancyNamesRequest(linkId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().linkId(linkId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",linkId=").append(String.valueOf(this.linkId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetLinkWithTenancyNamesRequest)) { + return false; + } + + GetLinkWithTenancyNamesRequest other = (GetLinkWithTenancyNamesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.linkId, other.linkId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.linkId == null ? 43 : this.linkId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/ListLinkFeaturesRequest.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/ListLinkFeaturesRequest.java new file mode 100644 index 00000000000..5143e01416b --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/ListLinkFeaturesRequest.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane.requests; + +import com.oracle.bmc.tenantmanagercontrolplane.model.*; +/** + * Example: Click here to see how to use ListLinkFeaturesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public class ListLinkFeaturesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The ID of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListLinkFeaturesRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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(ListLinkFeaturesRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListLinkFeaturesRequest 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 ListLinkFeaturesRequest + */ + public ListLinkFeaturesRequest build() { + ListLinkFeaturesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListLinkFeaturesRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListLinkFeaturesRequest + */ + public ListLinkFeaturesRequest buildWithoutInvocationCallback() { + ListLinkFeaturesRequest request = new ListLinkFeaturesRequest(); + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + return request; + // new ListLinkFeaturesRequest(compartmentId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().compartmentId(compartmentId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListLinkFeaturesRequest)) { + return false; + } + + ListLinkFeaturesRequest other = (ListLinkFeaturesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/ListLinksRequest.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/ListLinksRequest.java index d0c3a226f44..68e1cdea85f 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/ListLinksRequest.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/ListLinksRequest.java @@ -33,6 +33,17 @@ public String getParentTenancyId() { public String getChildTenancyId() { return childTenancyId; } + /** + * The feature associated with this link. + */ + private String feature; + + /** + * The feature associated with this link. + */ + public String getFeature() { + return feature; + } /** * The lifecycle state of the resource. */ @@ -126,6 +137,21 @@ public Builder childTenancyId(String childTenancyId) { return this; } + /** + * The feature associated with this link. + */ + private String feature = null; + + /** + * The feature associated with this link. + * @param feature the value to set + * @return this builder instance + */ + public Builder feature(String feature) { + this.feature = feature; + return this; + } + /** * The lifecycle state of the resource. */ @@ -233,6 +259,7 @@ public Builder retryConfiguration( public Builder copy(ListLinksRequest o) { parentTenancyId(o.getParentTenancyId()); childTenancyId(o.getChildTenancyId()); + feature(o.getFeature()); lifecycleState(o.getLifecycleState()); opcRequestId(o.getOpcRequestId()); page(o.getPage()); @@ -272,13 +299,14 @@ public ListLinksRequest buildWithoutInvocationCallback() { ListLinksRequest request = new ListLinksRequest(); request.parentTenancyId = parentTenancyId; request.childTenancyId = childTenancyId; + request.feature = feature; request.lifecycleState = lifecycleState; request.opcRequestId = opcRequestId; request.page = page; request.limit = limit; request.sortOrder = sortOrder; return request; - // new ListLinksRequest(parentTenancyId, childTenancyId, lifecycleState, opcRequestId, page, limit, sortOrder); + // new ListLinksRequest(parentTenancyId, childTenancyId, feature, lifecycleState, opcRequestId, page, limit, sortOrder); } } @@ -290,6 +318,7 @@ public Builder toBuilder() { return new Builder() .parentTenancyId(parentTenancyId) .childTenancyId(childTenancyId) + .feature(feature) .lifecycleState(lifecycleState) .opcRequestId(opcRequestId) .page(page) @@ -312,6 +341,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",parentTenancyId=").append(String.valueOf(this.parentTenancyId)); sb.append(",childTenancyId=").append(String.valueOf(this.childTenancyId)); + sb.append(",feature=").append(String.valueOf(this.feature)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",page=").append(String.valueOf(this.page)); @@ -334,6 +364,7 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.parentTenancyId, other.parentTenancyId) && java.util.Objects.equals(this.childTenancyId, other.childTenancyId) + && java.util.Objects.equals(this.feature, other.feature) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.page, other.page) @@ -351,6 +382,7 @@ public int hashCode() { result = (result * PRIME) + (this.childTenancyId == null ? 43 : this.childTenancyId.hashCode()); + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/responses/GetLinkWithTenancyNamesResponse.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/responses/GetLinkWithTenancyNamesResponse.java new file mode 100644 index 00000000000..1fce1c9b352 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/responses/GetLinkWithTenancyNamesResponse.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane.responses; + +import com.oracle.bmc.tenantmanagercontrolplane.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public class GetLinkWithTenancyNamesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned LinkWithTenancyNames instance. + */ + private com.oracle.bmc.tenantmanagercontrolplane.model.LinkWithTenancyNames + linkWithTenancyNames; + + /** + * The returned LinkWithTenancyNames instance. + * @return the value + */ + public com.oracle.bmc.tenantmanagercontrolplane.model.LinkWithTenancyNames + getLinkWithTenancyNames() { + return linkWithTenancyNames; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "linkWithTenancyNames" + }) + private GetLinkWithTenancyNamesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.tenantmanagercontrolplane.model.LinkWithTenancyNames + linkWithTenancyNames) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.linkWithTenancyNames = linkWithTenancyNames; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned LinkWithTenancyNames instance. + */ + private com.oracle.bmc.tenantmanagercontrolplane.model.LinkWithTenancyNames + linkWithTenancyNames; + + /** + * The returned LinkWithTenancyNames instance. + * @param linkWithTenancyNames the value to set + * @return this builder + */ + public Builder linkWithTenancyNames( + com.oracle.bmc.tenantmanagercontrolplane.model.LinkWithTenancyNames + linkWithTenancyNames) { + this.linkWithTenancyNames = linkWithTenancyNames; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetLinkWithTenancyNamesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + linkWithTenancyNames(o.getLinkWithTenancyNames()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetLinkWithTenancyNamesResponse build() { + return new GetLinkWithTenancyNamesResponse( + __httpStatusCode__, headers, etag, opcRequestId, linkWithTenancyNames); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",linkWithTenancyNames=").append(String.valueOf(linkWithTenancyNames)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetLinkWithTenancyNamesResponse)) { + return false; + } + + GetLinkWithTenancyNamesResponse other = (GetLinkWithTenancyNamesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.linkWithTenancyNames, other.linkWithTenancyNames); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.linkWithTenancyNames == null + ? 43 + : this.linkWithTenancyNames.hashCode()); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/responses/ListLinkFeaturesResponse.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/responses/ListLinkFeaturesResponse.java new file mode 100644 index 00000000000..e639e3655fe --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/responses/ListLinkFeaturesResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.tenantmanagercontrolplane.responses; + +import com.oracle.bmc.tenantmanagercontrolplane.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public class ListLinkFeaturesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned LinkFeaturesCollection instance. + */ + private com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeaturesCollection + linkFeaturesCollection; + + /** + * The returned LinkFeaturesCollection instance. + * @return the value + */ + public com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeaturesCollection + getLinkFeaturesCollection() { + return linkFeaturesCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "linkFeaturesCollection" + }) + private ListLinkFeaturesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeaturesCollection + linkFeaturesCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.linkFeaturesCollection = linkFeaturesCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned LinkFeaturesCollection instance. + */ + private com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeaturesCollection + linkFeaturesCollection; + + /** + * The returned LinkFeaturesCollection instance. + * @param linkFeaturesCollection the value to set + * @return this builder + */ + public Builder linkFeaturesCollection( + com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeaturesCollection + linkFeaturesCollection) { + this.linkFeaturesCollection = linkFeaturesCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListLinkFeaturesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + linkFeaturesCollection(o.getLinkFeaturesCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListLinkFeaturesResponse build() { + return new ListLinkFeaturesResponse( + __httpStatusCode__, headers, opcNextPage, opcRequestId, linkFeaturesCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",linkFeaturesCollection=").append(String.valueOf(linkFeaturesCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListLinkFeaturesResponse)) { + return false; + } + + ListLinkFeaturesResponse other = (ListLinkFeaturesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.linkFeaturesCollection, other.linkFeaturesCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.linkFeaturesCollection == null + ? 43 + : this.linkFeaturesCollection.hashCode()); + return result; + } +} diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 7b7899a6a1a..d3a916a24ae 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-threatintelligence @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index feecb570e46..ed45b87824e 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-usage @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 4998f7aefb6..5393f876e5f 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-usageapi @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 5aeb37c276f..6621aac40c0 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-vault @@ -16,12 +16,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.93.0 + 2.95.0 diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index f136a8f8e4e..1a3ce48065a 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-vbsinst @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index f6e2463a17e..c8da39f14be 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-visualbuilder @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index ce8ab2ce370..8394f0163c6 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index b154bce56d4..04c13617f52 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index ab6c5b007e1..ea74fb452e6 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-waa @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index bc02402f028..6b0ae568524 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-waas @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 6ad9b124cfe..83c9b4cc16b 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-waf @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-wlms/pom.xml b/bmc-wlms/pom.xml index 7d1d6c13efc..9d61d8b47f1 100644 --- a/bmc-wlms/pom.xml +++ b/bmc-wlms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-wlms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 8ed5bed6f68..9ff05a57fcf 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-workrequests @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index 884c78b57a5..642330ea552 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.93.0 + 2.95.0 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 82827aa24e2..ba07705084d 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 2.93.0 + 2.95.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -37,7 +37,7 @@ 1.3.2 2.21 2.21.2 - 2.21.2 + 2.21.4 2.47 4.5.13 4.4.13 @@ -893,6 +893,7 @@ bmc-containerregistry bmc-databasetoolsruntime bmc-costad + bmc-datacc bmc-full bmc-shaded